:root {
  --bg: #050c15;
  --bg-soft: #091321;
  --surface: #0f1a2a;
  --surface-strong: #132238;
  --text: #ebf5ff;
  --muted: #9cb4cf;
  --brand: #26d3f2;
  --accent: #ff7a45;
  --border: rgba(132, 174, 214, 0.24);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(155deg, #040912 0%, var(--bg) 45%, var(--bg-soft) 100%);
  min-height: 100vh;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(38, 211, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 211, 242, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(38, 211, 242, 0.2), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(255, 122, 69, 0.18), transparent 30%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
  z-index: -1;
}

.site-header {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  background: rgba(7, 14, 24, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 1rem;
  z-index: 10;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(38, 211, 242, 0.25));
}

.brand-name {
  color: #f4fbff;
}

.nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 21, 35, 0.9);
}

.lang-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 0.46rem 0.66rem;
  font-family: "Syne", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: #02101a;
  background: var(--brand);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.2rem auto 4rem;
  display: grid;
  gap: 2.2rem;
}

.hero {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(130deg, rgba(14, 25, 40, 0.88), rgba(17, 31, 49, 0.88)),
    linear-gradient(60deg, rgba(38, 211, 242, 0.11), rgba(255, 122, 69, 0.1));
  box-shadow: var(--shadow);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 14, 24, 0.58);
}

.hero-brand img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.hero-brand span {
  font-size: 0.8rem;
  color: #c4dbf3;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0.75rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 1.1;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  max-width: 16ch;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #00b6a5);
  box-shadow: 0 10px 25px rgba(0, 155, 216, 0.34);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(12, 21, 35, 0.74);
  padding: 0.95rem;
}

.stat-number {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
}

.stat-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel,
.workflow,
.links {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(10, 18, 30, 0.76);
  box-shadow: var(--shadow);
}

.panel-head {
  display: grid;
  gap: 0.4rem;
}

h2 {
  font-size: clamp(1.45rem, 3.4vw, 2.45rem);
  max-width: 24ch;
}

.feature-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.usecase-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.setup-intro {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 72ch;
}

.setup-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.setup-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f1b2b;
  padding: 1rem;
}

.setup-card h3 {
  font-size: 1.02rem;
}

.setup-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.setup-steps {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.setup-steps li {
  color: var(--text);
}

.setup-steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

.setup-steps pre {
  margin: 0.42rem 0 0;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #081220;
  overflow: auto;
}

.setup-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #d6e8ff;
  font-size: 0.82rem;
}

.tech-intro {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 72ch;
}

.tech-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tech-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f1b2b;
  padding: 1rem;
}

.tech-card h3 {
  font-size: 1rem;
}

.tech-list {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.tech-list li {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
}

.feature-card p {
  margin: 0.55rem 0 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.92rem;
}

.workflow {
  display: grid;
  gap: 1rem;
}

.workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.workflow li {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(120deg, rgba(16, 28, 44, 0.96), var(--surface-strong));
}

.workflow li h3 {
  font-size: 1.05rem;
}

.workflow li p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #0b1625;
  cursor: zoom-in;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.shot:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 211, 242, 0.6);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.shot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.shot:first-child {
  grid-column: span 4;
}

.shot:nth-child(2) {
  grid-column: span 2;
}

.shot:nth-child(3),
.shot:nth-child(4),
.shot:nth-child(5) {
  grid-column: span 2;
}

.shot img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}

.shot figcaption {
  padding: 0.62rem 0.72rem;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
}

.links h2 {
  margin-bottom: 0.95rem;
}

.faq-panel h2 {
  max-width: 30ch;
}

.faq-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f1b2b;
  padding: 1rem;
}

.faq-item h3 {
  font-size: 1rem;
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.link-grid a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 0.8rem;
  background: #0f1b2b;
  font-weight: 600;
  transition: border-color 160ms ease, transform 160ms ease;
}

.link-grid a:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(38, 211, 242, 0.18);
  transform: translateY(-2px);
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.3rem;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.visit-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.visit-line strong {
  color: var(--text);
  font-family: "Syne", sans-serif;
}

.footer-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  color: #72eaff;
}

.cookie-open {
  justify-self: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1b2b;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.52rem 0.72rem;
  cursor: pointer;
}

.cookie-open:hover {
  border-color: var(--brand);
}

.footer-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(420px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 15, 26, 0.96);
  box-shadow: var(--shadow);
  padding: 0.9rem;
  z-index: 20;
}

.license-modal {
  position: fixed;
  inset: 0;
  z-index: 26;
  background: rgba(2, 7, 14, 0.82);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.license-modal[hidden] {
  display: none;
}

.license-panel {
  width: min(560px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0b1625;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.license-title {
  margin: 0;
  font-size: 1.1rem;
}

.license-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.license-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.license-link:hover {
  color: #72eaff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(2, 7, 14, 0.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-panel {
  width: min(1100px, 96vw);
  max-height: 94vh;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #081220;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.6rem;
}

.lightbox-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: space-between;
  gap: 0.55rem;
}

.lightbox-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1b2b;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.42rem 0.68rem;
  cursor: pointer;
}

.lightbox-btn:hover {
  border-color: var(--brand);
}

.lightbox-image {
  width: 100%;
  max-height: calc(94vh - 100px);
  object-fit: contain;
  border-radius: 10px;
  background: #030a14;
}

.lightbox-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
}

.cookie-text {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-actions {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .stats,
  .feature-grid,
  .setup-grid,
  .tech-grid,
  .usecase-grid,
  .faq-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot,
  .shot:first-child,
  .shot:nth-child(2),
  .shot:nth-child(3),
  .shot:nth-child(4),
  .shot:nth-child(5) {
    grid-column: span 1;
  }

  .nav {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  main {
    margin-top: 1rem;
  }

  .stats,
  .feature-grid,
  .setup-grid,
  .tech-grid,
  .usecase-grid,
  .faq-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
