:root {
  --ink: #06080c;
  --ink-2: #0c1118;
  --panel: rgba(16, 22, 32, 0.72);
  --line: rgba(232, 236, 244, 0.08);
  --text: #eef2f7;
  --muted: #8b97a8;
  --teal: #3ee0c4;
  --teal-dim: #1a8f7c;
  --gold: #e8b86d;
  --rose: #ff7a8a;
  --blue: #6ea8ff;
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { min-height: 100%; }
body {
  font-family: "Manrope", sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  position: fixed;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.orb-a { top: -12%; left: -8%; background: #124a4a; animation: drift 18s ease-in-out infinite; }
.orb-b { bottom: 10%; right: -12%; background: #3a2a12; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift {
  50% { transform: translate3d(6%, 8%, 0) scale(1.12); }
}

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: rgba(6, 8, 12, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #0e3d3a 55%, var(--gold));
  box-shadow: 0 0 24px rgba(62, 224, 196, 0.35);
}
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: transparent; }
.btn-primary {
  background: linear-gradient(180deg, #5ef0d4, #2bb9a0);
  color: #04221d;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(62, 224, 196, 0.28);
}
.btn:hover { transform: translateY(-2px); }

.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(62, 224, 196, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px transparent; }
}
h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 18px 0 20px;
}
.grad {
  background: linear-gradient(120deg, #fff 10%, var(--teal) 50%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.stat span { color: var(--muted); font-size: 12px; }

.stage {
  position: relative;
  height: 620px;
}
.hero-bg {
  position: absolute;
  inset: 40px -20px auto;
  height: 420px;
  border-radius: 36px;
  overflow: hidden;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }

.phone {
  position: absolute;
  width: 230px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, #2a3140, #12161d);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform-origin: center;
}
.phone img {
  border-radius: 26px;
  height: 460px;
  object-fit: cover;
  background: #111;
}
.phone:nth-child(2) { left: 18%; top: 28px; transform: rotate(-11deg); animation: float 6.5s ease-in-out infinite; z-index: 2; }
.phone:nth-child(3) { right: 6%; top: 70px; transform: rotate(10deg); animation: float 7.4s ease-in-out infinite 0.6s; z-index: 3; }
.phone:nth-child(4) { left: 42%; top: 110px; width: 210px; animation: float 8s ease-in-out infinite 0.3s; z-index: 1; opacity: 0.88; }
.phone:nth-child(4) img { height: 420px; }
@keyframes float {
  50% { translate: 0 -16px; }
}

.marquee {
  margin: 28px 0 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  gap: 48px;
  padding: 18px 0;
  width: max-content;
  animation: slide 28s linear infinite;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@keyframes slide { to { transform: translateX(-50%); } }

.section { padding: 96px 0; position: relative; z-index: 1; }
.section h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 720px;
}
.section .sub { margin: 14px 0 40px; color: var(--muted); max-width: 560px; line-height: 1.6; }
.section code, .card code, .step code, .faq-item code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  color: var(--teal);
}

.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 230px;
  backdrop-filter: blur(16px);
  transition: transform .35s ease, border-color .35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(62, 224, 196, 0.35); }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.card h3 { font-family: "Syne", sans-serif; font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.step, .fact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  backdrop-filter: blur(16px);
}
.step-n {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 16px;
}
.step h3, .fact h3 {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
}
.step p, .fact p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.cases { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  color: var(--muted);
}
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0d12;
  position: relative;
}
.shot img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.shot figcaption {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
}
.shot figcaption b { display: block; font-family: "Syne", sans-serif; }
.shot.tall img { height: 380px; }

.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.world {
  position: relative;
  height: 420px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 40%, rgba(62,224,196,0.12), transparent 28%),
    radial-gradient(circle at 70% 55%, rgba(232,184,109,0.1), transparent 24%),
    linear-gradient(180deg, #0d131c, #0a0e14);
  border: 1px solid var(--line);
  overflow: hidden;
}
.world svg { width: 100%; height: 100%; opacity: 0.85; }
.pin {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(62,224,196,.5);
  animation: pulse 2.2s infinite;
}
.pin::after {
  content: attr(data-city);
  position: absolute;
  left: 16px; top: -6px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.cov-list { display: grid; gap: 14px; }
.cov-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.cov-item strong { display: block; font-family: "Syne", sans-serif; }
.cov-item span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.fall {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.node {
  flex: 1;
  min-width: 140px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  position: relative;
}
.node b { display: block; font-family: "Syne", sans-serif; margin-bottom: 4px; }
.node span { color: var(--muted); font-size: 12px; }
.node.active {
  border-color: rgba(62, 224, 196, 0.55);
  box-shadow: 0 0 32px rgba(62, 224, 196, 0.12);
}
.node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 2;
}

.code-box {
  margin-top: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0a0e14;
  overflow: hidden;
}
.code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.code-box pre {
  padding: 22px;
  overflow: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #d7e2ef;
}
.kw { color: #7dd3c7; }
.fn { color: #e8b86d; }
.str { color: #9ecbff; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 4px 8px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 500;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}
.faq-item a { color: var(--teal); }

.contact-section { padding-top: 40px; }
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px 40px;
  align-items: center;
  padding: 40px 44px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 0%, rgba(62,224,196,0.12), transparent 42%),
    var(--panel);
}
.contact-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-copy h2 {
  margin: 0 0 14px;
  max-width: 10em;
}
.contact-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.65;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.45);
}
.contact-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-mail {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-mail:hover { color: var(--teal); }
.contact-card .btn { width: 100%; }

footer {
  padding: 36px 0 50px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.foot > div { display: grid; gap: 6px; }
.foot b { color: var(--text); font-weight: 600; }
.foot a { color: var(--teal); }

.reveal { opacity: 0; transform: translateY(28px); animation: none; }
.reveal.in { animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .cases, .coverage, .formats, .steps { grid-template-columns: 1fr; }
  .stage { height: 420px; margin-top: 10px; }
  .phone { width: 160px; }
  .phone img { height: 320px; }
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .node:not(:last-child)::after { display: none; }
  .contact { grid-template-columns: 1fr; padding: 28px 22px; }
  .contact-copy h2 { max-width: none; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
}
