/* ═══════════════════════════════════════════════════════
   AutoXmate — premium dark glass
   Fraunces (display) · Manrope (UI)
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #08080e;
  --ink: #eef0f6;
  --ink-dim: #a7abbd;
  --ink-faint: #6b7086;
  --gold: #f2b544;
  --gold-deep: #d99a1f;
  --ice: #7fd4e8;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-bright: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

/* themed slim scrollbar for the page, hidden inside panels */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.28); }

button, input, select { touch-action: manipulation; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(242, 181, 68, 0.28); }

/* ── ambient scene ─────────────────────────────────── */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob-a {
  width: 55vw; height: 55vw; min-width: 480px; min-height: 480px;
  top: -18%; left: -12%;
  background: radial-gradient(circle at 40% 40%, #2b2470, transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.blob-b {
  width: 42vw; height: 42vw; min-width: 380px; min-height: 380px;
  top: 4%; right: -14%;
  background: radial-gradient(circle at 55% 45%, rgba(217, 154, 31, 0.5), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.blob-c {
  width: 48vw; height: 48vw; min-width: 420px; min-height: 420px;
  bottom: -24%; left: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(28, 90, 110, 0.55), transparent 65%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vw, 7vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7vw, 12vh) scale(0.94); } }
@keyframes drift-c { to { transform: translate(-9vw, -8vh) scale(1.1); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 1.2s steps(4) infinite;
  pointer-events: none;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .grain, .pulse, .pipeline-bar span, .stage-ico.spin { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── glass primitive ───────────────────────────────── */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: var(--shadow);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02) 38%, rgba(255,255,255,0) 62%, rgba(242,181,68,0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── layout ────────────────────────────────────────── */
.container { width: min(1120px, 92vw); margin: 0 auto; }
.container-narrow { width: min(780px, 92vw); }

.section { padding: 108px 0; }
.section-tight { padding-top: 20px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.kicker {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }

h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.01em; }

.section-sub { color: var(--ink-dim); margin-top: 16px; font-size: 16.5px; }

.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.95em;
}

.beta-tag {
  display: inline-block;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 181, 68, 0.1);
  border: 1px solid rgba(242, 181, 68, 0.38);
  padding: 2px 7px; border-radius: 999px;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1.4;
}

/* ── buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(160deg, #ffd57a, var(--gold) 45%, var(--gold-deep));
  color: #241703;
  box-shadow: 0 10px 32px -8px rgba(242, 181, 68, 0.55), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(242, 181, 68, 0.65), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-gold s { opacity: 0.55; font-weight: 600; margin-right: 2px; }

.btn-glass {
  background: var(--glass-strong);
  border-color: var(--stroke-bright);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ── nav (floating capsule) ────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 60;
}
.nav-inner {
  width: min(1060px, calc(100vw - 28px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(13, 13, 22, 0.55);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(10, 10, 17, 0.82);
  border-color: var(--stroke-bright);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 19px;
  color: #241703;
  background: linear-gradient(160deg, #ffd57a, var(--gold-deep));
  border-radius: 10px;
  box-shadow: 0 4px 14px -4px rgba(242, 181, 68, 0.6);
}
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 17.5px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.btn-nav { margin-left: 4px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .nav { top: 10px; }
  .nav-inner { padding: 6px 6px 6px 14px; gap: 14px; }
}

/* ── hero ──────────────────────────────────────────── */
.hero { padding: 170px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.lede { color: var(--ink-dim); font-size: 17.5px; max-width: 520px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); letter-spacing: 0.02em; }

/* pipeline mock */
.hero-visual { position: relative; }

.pipeline-card { padding: 26px; }

.pipeline-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pipeline-topic { font-family: var(--font-display); font-style: italic; font-size: 15.5px; color: var(--ink-dim); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.pill-live { background: rgba(127, 212, 232, 0.12); color: var(--ice); border: 1px solid rgba(127, 212, 232, 0.3); }
.pill-live.pill-done { background: rgba(110, 231, 160, 0.12); color: #6ee7a0; border-color: rgba(110, 231, 160, 0.35); }
.pill-gold { background: rgba(242, 181, 68, 0.13); color: var(--gold); border: 1px solid rgba(242, 181, 68, 0.35); }
.pill-soon { background: rgba(255,255,255,0.06); color: var(--ink-dim); border: 1px solid var(--stroke); }

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice);
  animation: pulse-k 1.6s ease-out infinite;
}
.pulse-green { background: #6ee7a0; display: inline-block; margin-right: 4px; }
@keyframes pulse-k {
  0% { box-shadow: 0 0 0 0 rgba(127, 212, 232, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(127, 212, 232, 0); }
}

.pipeline-stages { list-style: none; display: grid; gap: 4px; }
.stage {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-faint);
}
.stage small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.stage.done { color: var(--ink-dim); }
.stage.done .stage-ico { color: #6ee7a0; border-color: rgba(110, 231, 160, 0.4); background: rgba(110, 231, 160, 0.09); }
.stage.active { color: var(--ink); background: rgba(255,255,255,0.05); }
.stage-ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: grid; place-items: center;
  font-size: 12px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
}
.stage-ico.spin {
  border-color: rgba(127, 212, 232, 0.5);
  border-top-color: var(--ice);
  animation: spin-k 0.9s linear infinite;
}
@keyframes spin-k { to { transform: rotate(360deg); } }

.pipeline-bar {
  height: 5px; margin-top: 18px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px; overflow: hidden;
}
.pipeline-bar span {
  display: block; height: 100%; width: 68%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ice), var(--gold));
  transition: width 0.9s ease;
}
.pipeline-foot {
  margin-top: 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px; color: var(--ink-faint);
}

.chip-float {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  background: rgba(20, 20, 32, 0.55);
}
.chip-float-1 { top: -18px; right: 6%; animation: float-1 7s ease-in-out infinite; }
.chip-float-2 { bottom: -30px; left: 5%; animation: float-1 8s 1.2s ease-in-out infinite; }
@keyframes float-1 { 50% { transform: translateY(-9px); } }
@media (max-width: 940px) { .chip-float { display: none; } }

/* stat strip */
.stat-strip {
  margin-top: 76px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.stat { padding: 22px 10px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--stroke); }
.stat strong { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 500; color: var(--ink); }
.stat span { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--stroke); }
}

/* ── features ──────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 26px 24px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  background: var(--glass-strong);
  border-color: var(--stroke-bright);
}
.f-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(242, 181, 68, 0.1);
  border: 1px solid rgba(242, 181, 68, 0.22);
  color: var(--gold);
  margin-bottom: 18px;
}
.f-ico svg { width: 21px; height: 21px; }
.feature h3 { font-size: 18.5px; margin-bottom: 8px; font-weight: 500; }
.feature p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }

/* ── steps (progress meter) ────────────────────────── */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px 18px;
}
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

.step { display: flex; flex-direction: column; }

.step-track {
  position: relative;
  display: grid; place-items: center;
  height: 54px;
  margin-bottom: 16px;
}
.step-track::before,
.step-track::after {
  content: "";
  position: absolute; top: 50%; height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background:
    linear-gradient(90deg, var(--gold-deep), var(--gold)) no-repeat 0 0 / 0% 100%,
    rgba(255, 255, 255, 0.09);
  transition: background-size 0.45s ease-out;
}
.step-track::before { left: -10px; right: calc(50% + 28px); }
.step-track::after { left: calc(50% + 28px); right: -10px; }
.step:first-child .step-track::before,
.step:last-child .step-track::after { display: none; }
.step.in .step-track::before,
.step.in .step-track::after { background-size: 100% 100%, auto; }

.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-family: var(--font-display); font-style: italic; font-size: 18px;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-bright);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.step.in .step-n {
  color: var(--gold);
  border-color: rgba(242, 181, 68, 0.55);
  background: rgba(242, 181, 68, 0.09);
  box-shadow: 0 0 20px rgba(242, 181, 68, 0.3);
}

/* light the meter left→right: line in, node on, line out — per step */
.step:nth-child(1).in .step-n { transition-delay: 0.15s; }
.step:nth-child(1).in .step-track::after { transition-delay: 0.4s; }
.step:nth-child(2).in .step-track::before { transition-delay: 0.85s; }
.step:nth-child(2).in .step-n { transition-delay: 1.2s; }
.step:nth-child(2).in .step-track::after { transition-delay: 1.45s; }
.step:nth-child(3).in .step-track::before { transition-delay: 1.9s; }
.step:nth-child(3).in .step-n { transition-delay: 2.25s; }
.step:nth-child(3).in .step-track::after { transition-delay: 2.5s; }
.step:nth-child(4).in .step-track::before { transition-delay: 2.95s; }
.step:nth-child(4).in .step-n { transition-delay: 3.3s; }

.step-card { flex: 1; padding: 24px; border-radius: var(--r-md); }
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--ink-dim); }

@media (max-width: 560px) {
  .step-track { height: auto; margin-bottom: 12px; justify-items: start; place-items: start; }
  .step-track::before, .step-track::after { display: none; }
}

/* ── on your laptop ────────────────────────────────── */
.local-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 941px) { .local-visual { order: -1; } }
@media (max-width: 940px) { .local-grid { grid-template-columns: 1fr; } }

.local-copy .kicker { margin-bottom: 12px; }
.local-copy .section-sub { margin-bottom: 26px; }

.local-points { list-style: none; display: grid; gap: 15px; }
.local-points li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px; color: var(--ink-dim);
  line-height: 1.55;
}
.local-points li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(242, 181, 68, 0.45);
  background: radial-gradient(circle at 35% 35%, rgba(242, 181, 68, 0.5), rgba(242, 181, 68, 0.06));
}
.local-points strong { color: var(--ink); }

.browser-card { padding: 0; overflow: hidden; }
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
.b-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.b-dot:nth-child(1) { background: rgba(255, 120, 120, 0.55); }
.b-dot:nth-child(2) { background: rgba(242, 181, 68, 0.55); }
.b-dot:nth-child(3) { background: rgba(110, 231, 160, 0.55); }
.browser-url { margin-left: 8px; font-size: 11.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.browser-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.btab {
  font-size: 12px; font-weight: 700; color: var(--ink-faint);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.btab.active {
  color: var(--gold);
  background: rgba(242, 181, 68, 0.09);
  border-color: rgba(242, 181, 68, 0.3);
}

.local-flow { padding: 16px 16px 20px; display: grid; gap: 5px; }
.flow-node {
  display: grid; gap: 3px;
  padding: 13px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
}
.flow-node small {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.flow-node strong { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.flow-node span { font-size: 12px; color: var(--ink-dim); }
.flow-node-main { border-color: rgba(242, 181, 68, 0.35); background: rgba(242, 181, 68, 0.06); }
.flow-node-main small { color: var(--gold); }
.flow-arrow { text-align: center; color: var(--ink-faint); font-size: 13px; line-height: 1; }

/* ── tutorial ──────────────────────────────────────── */
.tutorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) { .tutorial-grid { grid-template-columns: 1fr; } }

.tutorial-copy .kicker { margin-bottom: 12px; }
.tutorial-copy .section-sub { margin-bottom: 30px; }

.install-steps { list-style: none; display: grid; gap: 18px; margin-bottom: 24px; }
.install-steps li { display: flex; gap: 16px; align-items: flex-start; }
.install-steps .mono {
  flex: 0 0 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--glass-strong);
  border: 1px solid var(--stroke-bright);
  font-weight: 700; font-size: 14px;
  color: var(--gold);
}
.install-steps strong { font-size: 15.5px; }
.install-steps p { font-size: 13.5px; color: var(--ink-dim); margin-top: 2px; }

.video-frame {
  overflow: hidden;
  padding: 10px;
  border-radius: var(--r-lg);
}
.video-frame video {
  display: block; width: 100%;
  border-radius: calc(var(--r-lg) - 8px);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-fallback {
  display: grid; place-items: center; gap: 14px;
  text-align: center;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--r-lg) - 8px);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(43, 36, 112, 0.5), transparent 60%),
    radial-gradient(ellipse at 75% 85%, rgba(217, 154, 31, 0.22), transparent 55%),
    #0c0c15;
  padding: 24px;
  color: var(--ink-dim);
}
.video-fallback svg { color: var(--gold); }
.video-fallback p { font-size: 14px; max-width: 380px; }
.video-fallback strong { color: var(--ink); }

/* ── pricing ───────────────────────────────────────── */
.coupon-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 24px;
  margin: 0 auto 34px;
  max-width: 720px;
  border-style: dashed;
  border-color: rgba(242, 181, 68, 0.45);
  background: rgba(242, 181, 68, 0.06);
}
.coupon-banner::before { display: none; }
.coupon-left { display: flex; flex-direction: column; gap: 2px; }
.coupon-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.coupon-code { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.coupon-desc { flex: 1; font-size: 14px; color: var(--ink-dim); min-width: 200px; }
.coupon-desc strong { color: var(--ink); }

.price-wrap { display: flex; justify-content: center; }
.price-card { width: min(520px, 100%); padding: 38px 36px; }
@media (max-width: 560px) { .price-card { padding: 30px 22px; } }

.price-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.price-head h3 { font-size: 24px; }

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.price-old { font-size: 22px; color: var(--ink-faint); text-decoration: line-through; }
.price-now {
  font-family: var(--font-display);
  font-size: 54px; font-weight: 500; line-height: 1;
  color: var(--gold);
}
.price-per { font-size: 13px; color: var(--ink-dim); }

.price-list { list-style: none; display: grid; gap: 11px; margin-bottom: 30px; }
.price-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px; color: var(--ink-dim);
}
.price-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 800;
}
.price-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-faint); }

/* ── upcoming ──────────────────────────────────────── */
.upcoming-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 940px) { .upcoming-grid { grid-template-columns: 1fr; } }

.upcoming { padding: 28px 26px; transition: transform 0.25s ease, border-color 0.25s ease; }
.upcoming:hover { transform: translateY(-5px); border-color: var(--stroke-bright); }
.upcoming .pill { position: absolute; top: 20px; right: 20px; }
.upcoming .f-ico { background: rgba(127, 212, 232, 0.09); border-color: rgba(127, 212, 232, 0.25); color: var(--ice); }
.upcoming h3 { font-size: 19px; margin-bottom: 8px; }
.upcoming p { font-size: 14px; color: var(--ink-dim); }

.custom-cta {
  margin-top: 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 26px 28px;
}
.custom-cta .f-ico { margin-bottom: 0; flex: 0 0 44px; }
.custom-cta-copy { flex: 1; min-width: 240px; }
.custom-cta-copy h3 { font-size: 21px; margin-bottom: 5px; }
.custom-cta-copy h3 em { font-style: italic; color: var(--gold); font-weight: 400; }
.custom-cta-copy p { font-size: 14px; color: var(--ink-dim); }

/* ── faq ───────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: var(--r-md); overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 52px 19px 24px;
  font-weight: 700; font-size: 15.5px;
  position: relative;
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--gold);
  transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-dim); }

/* ── final cta ─────────────────────────────────────── */
.final-cta { padding-bottom: 80px; }
.cta-card {
  text-align: center;
  padding: 64px 30px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(242, 181, 68, 0.13), transparent 60%),
    var(--glass);
}
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--ink-dim); margin-bottom: 28px; font-size: 16px; }
.cta-card strong { color: var(--ink); font-size: 19px; }

/* ── footer ────────────────────────────────────────── */
.footer { border-top: 1px solid var(--stroke); padding: 40px 0 46px; }
.footer-inner { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer p { font-size: 14px; color: var(--ink-dim); }
.footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer a:hover { color: var(--gold); border-color: var(--gold); }
.footer-fine { font-size: 12px !important; color: var(--ink-faint) !important; }

/* ── reveal on scroll ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── modal ─────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 32px 30px;
  background: rgba(18, 18, 30, 0.82);
  animation: modal-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  scrollbar-width: none;
}
.modal-panel::-webkit-scrollbar { display: none; }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } }
.modal-video { width: min(760px, 100%); padding: 12px; }
.modal-video video { display: block; width: 100%; border-radius: calc(var(--r-lg) - 8px); background: #000; }

.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--ink-dim);
  cursor: pointer; font-size: 13px;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.modal-x:hover { color: var(--ink); background: rgba(255,255,255,0.14); }

.modal-panel h3 { font-size: 26px; margin-bottom: 6px; }
.modal-sub { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 24px; }

/* form */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field select {
  width: 100%;
  padding: 12px 15px;
  font: 600 16px var(--font-body);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a7abbd' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { background: #14141f; color: var(--ink); }
.field input::placeholder { color: var(--ink-faint); font-weight: 500; }
.field input:focus, .field select:focus {
  border-color: rgba(242, 181, 68, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.field input.invalid { border-color: rgba(255, 107, 107, 0.65); }

.coupon-input-row { display: flex; gap: 8px; }
.coupon-input-row input { flex: 1; text-transform: none; }

.coupon-hint {
  margin-top: 8px;
  text-align: left;
  background: rgba(242, 181, 68, 0.07);
  border: 1px dashed rgba(242, 181, 68, 0.4);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font: 600 12.5px var(--font-body);
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.15s ease;
}
.coupon-hint:hover { background: rgba(242, 181, 68, 0.13); }
.coupon-hint .mono { color: var(--gold); font-weight: 700; }

.coupon-msg { font-size: 12.5px; font-weight: 700; margin-top: 7px; }
.coupon-msg.ok { color: #6ee7a0; }
.coupon-msg.bad { color: #ff8484; }

.order-summary {
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 15px 17px;
  margin: 20px 0;
  display: grid; gap: 8px;
  background: rgba(255,255,255,0.03);
}
.order-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-dim); }
.order-discount { color: #6ee7a0; }
.order-total {
  padding-top: 9px;
  border-top: 1px solid var(--stroke);
  font-weight: 800; font-size: 16.5px; color: var(--ink);
}

.form-error { font-size: 13px; font-weight: 700; color: #ff8484; margin-bottom: 12px; }

.shake { animation: shake-k 0.4s ease; }
@keyframes shake-k {
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

/* ── chat ──────────────────────────────────────────── */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 181, 68, 0.4);
  background: linear-gradient(160deg, rgba(38, 32, 22, 0.9), rgba(24, 20, 14, 0.94));
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 14px 40px -8px rgba(0,0,0,0.7), 0 0 0 0 rgba(242, 181, 68, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
  animation: launcher-pulse 3s ease-out infinite;
}
.chat-launcher:hover { transform: scale(1.07); }
@keyframes launcher-pulse {
  0% { box-shadow: 0 14px 40px -8px rgba(0,0,0,0.7), 0 0 0 0 rgba(242, 181, 68, 0.35); }
  40% { box-shadow: 0 14px 40px -8px rgba(0,0,0,0.7), 0 0 0 14px rgba(242, 181, 68, 0); }
  100% { box-shadow: 0 14px 40px -8px rgba(0,0,0,0.7), 0 0 0 0 rgba(242, 181, 68, 0); }
}
.chat-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: #241703;
  background: var(--gold);
  border-radius: 99px;
}
.chat-badge[hidden] { display: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 85;
  width: min(388px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  height: min(560px, calc(100dvh - 130px));
  display: flex; flex-direction: column;
  background: rgba(15, 15, 25, 0.88);
  border-radius: 20px;
  overflow: hidden;
  animation: chat-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
}
.chat-head-info { display: flex; align-items: center; gap: 11px; }
.chat-avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 20px;
  color: #241703;
  background: linear-gradient(160deg, #ffd57a, var(--gold-deep));
  border-radius: 12px;
}
.chat-head-info strong { display: block; font-size: 14.5px; }
.chat-head-info small { font-size: 11.5px; color: var(--ink-dim); display: flex; align-items: center; }
.chat-min {
  width: 30px; height: 30px;
  background: none; border: none;
  color: var(--ink-dim); font-size: 15px; cursor: pointer;
  border-radius: 8px;
}
.chat-min:hover { background: rgba(255,255,255,0.08); color: var(--ink); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: none;
}
.chat-body::-webkit-scrollbar { display: none; }

.msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 13.8px; line-height: 1.5;
  animation: msg-in 0.25s ease;
  overflow-wrap: break-word;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg-bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.065);
  border: 1px solid var(--stroke);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.msg-bot strong { color: var(--gold); }
.msg-bot .mono { background: rgba(255,255,255,0.09); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.msg-bot a { color: var(--ice); font-weight: 700; }
.msg-user {
  align-self: flex-end;
  background: linear-gradient(160deg, rgba(242, 181, 68, 0.24), rgba(217, 154, 31, 0.16));
  border: 1px solid rgba(242, 181, 68, 0.3);
  border-bottom-right-radius: 5px;
}

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
  animation: typing-k 1.1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-k { 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 4px 14px 12px;
}
.chat-chips:empty { display: none; }
.chip {
  padding: 7px 13px;
  font: 700 12.5px var(--font-body);
  color: var(--ink-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--gold); border-color: rgba(242, 181, 68, 0.4); background: rgba(242, 181, 68, 0.08); }

.chat-input {
  display: flex; gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
}
.chat-input input {
  flex: 1;
  padding: 11px 15px;
  font: 500 16px var(--font-body);
  color: var(--ink);
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  outline: none;
}
.chat-input input:focus { border-color: rgba(242, 181, 68, 0.5); }
.chat-input button {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #ffd57a, var(--gold-deep));
  color: #241703;
  border: none; border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chat-input button:hover { transform: scale(1.06); }

@media (max-width: 480px) {
  .chat-panel { right: 16px; bottom: 86px; }
  .chat-launcher { right: 16px; bottom: 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 130px; }
  .modal { padding: 10px; }
  .modal-panel { padding: 26px 20px; }
  .hero-cta .btn-lg { width: 100%; }
  .stat strong { font-size: 19px; }
  h2 { font-size: clamp(27px, 8vw, 34px); }
}
