/* ============================================================
   StopBurnout — landing page styles
   Palette mirrors the app (App.axaml): ink navy base, teal
   accent #14B8A6/#2DD4BF, ember/amber as the "burnout" colors.
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --ink: #f1f5f4;
  --muted: #a4abb6;
  --faint: #6b7280;
  --ember: #ff6b4a;
  --amber: #ffb65c;
  --accent: #14b8a6;
  --teal: #2dd4bf;
  --mint: #7be3a6;
  --blue: #7da5f5;
  --violet: #a78bfa;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  /* app-exact colors for the window mockups */
  --app-bg: #0c0e12;
  --app-card1: #181c26;
  --app-card2: #12151d;
  --app-border: #283041;
  --app-track: #243038;
  --overlay-bg: #0a0c10;
  --radius: 24px;
  --font-head: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --journey: 0; /* 0 = ember (top), 1 = teal (bottom); set by JS on scroll */
}

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

html { scroll-behavior: smooth; }

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

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(45, 212, 191, 0.35); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- ambient aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  min-width: 560px;
  min-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  will-change: opacity, transform;
}
.blob-ember {
  top: -22vw;
  right: -18vw;
  background: radial-gradient(circle at 40% 40%, rgba(255, 107, 74, 0.34), rgba(255, 182, 92, 0.12) 55%, transparent 70%);
  opacity: calc(0.9 - var(--journey) * 0.85);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-teal {
  bottom: -25vw;
  left: -18vw;
  background: radial-gradient(circle at 60% 60%, rgba(45, 212, 191, 0.30), rgba(123, 227, 166, 0.10) 55%, transparent 70%);
  opacity: calc(0.25 + var(--journey) * 0.75);
  animation: drift 30s ease-in-out infinite alternate-reverse;
}
.blob-violet {
  top: 40%;
  left: 55%;
  width: 34vw;
  height: 34vw;
  min-width: 380px;
  min-height: 380px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14), transparent 70%);
  opacity: 0.7;
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

main { position: relative; z-index: 1; }

/* ---------- shared bits ---------- */
.grad-text {
  background: linear-gradient(92deg, var(--teal), var(--mint) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-warm {
  background: linear-gradient(92deg, var(--ember), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-ico { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-primary {
  background: linear-gradient(120deg, #1bc2a8, #0e9c86);
  color: #06231d;
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(45, 212, 191, 0.45); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--card);
}
.btn-ghost:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand em { font-style: normal; color: var(--teal); }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 28px 60px;
}
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800;
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 34px;
}
.lede strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.dot-sep { opacity: 0.5; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; }
.lock-note svg { width: 15px; height: 15px; color: var(--teal); }

/* ---------- desktop window mockups ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  transition-delay: 0.15s;
}
.phone-halo {
  position: absolute;
  width: 520px; height: 520px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(255,107,74,0.18), rgba(255,182,92,0.09), rgba(45,212,191,0.22), rgba(255,107,74,0.18));
  filter: blur(60px);
  animation: haloSpin 18s linear infinite;
}
@keyframes haloSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.winframe {
  position: relative;
  border-radius: 12px;
  background: var(--app-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.winframe img { width: 100%; height: auto; }
.winframe-static { width: 330px; }
.winframe-wide { width: 560px; max-width: 100%; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }

/* live hero window */
.hero-win { width: 400px; max-width: 100%; }
.win-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #090b0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.win-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.win-title svg { width: 15px; height: 15px; }
.win-controls { display: inline-flex; gap: 14px; color: var(--faint); font-size: 10px; font-style: normal; }
.win-controls i { font-style: normal; }
.win-body { padding: 14px 16px 16px; }
.app-tabs {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--app-border);
  margin-bottom: 12px;
}
.app-tab.active {
  color: var(--ink);
  position: relative;
}
.app-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}
.app-card {
  background: linear-gradient(135deg, var(--app-card1), var(--app-card2));
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 16px;
}
.app-status { text-align: center; margin-bottom: 6px; }
.app-state {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}
.app-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--teal);
  margin-top: 2px;
}
.app-mode svg { width: 12px; height: 12px; }
.app-ring { position: relative; width: 190px; margin: 8px auto; }
.app-ring svg { width: 100%; }
.app-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.app-ring-label { font-size: 10.5px; color: var(--muted); }
.app-ring-center strong { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1.1; }
.app-ring-sub { font-size: 10px; color: var(--faint); }
.app-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 10px 0 12px;
}
.app-tile {
  background: var(--app-card1);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-tile span { font-size: 9px; color: var(--faint); line-height: 1.3; }
.app-tile strong { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.app-btn {
  background: linear-gradient(120deg, #1bc2a8, #0e9c86);
  border-radius: 10px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

/* floating chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(16, 24, 42, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.chip-ico { font-size: 12px; }
.chip-ico.teal { color: var(--teal); }
.chip-ico.amber { color: var(--amber); }
.chip-1 { top: 34%; left: -10%; animation-delay: 0s; }
.chip-2 { bottom: 32%; right: -7%; animation-delay: 1.6s; }
.chip-3 { bottom: -4%; left: 4%; animation-delay: 3.1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--teal);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- stats strip ---------- */
.stats { padding: 40px 28px 10px; }
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  background: linear-gradient(120deg, var(--ink), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { font-size: 13.5px; color: var(--muted); margin-top: 6px; max-width: 26ch; margin-inline: auto; }

/* ---------- sections ---------- */
.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 28px 30px;
}
.section-wide { max-width: none; padding-inline: 0; }
.section-wide .section-head { padding-inline: 28px; }
.section-narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 17.5px; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(45,212,191,0.55), transparent 40%, transparent 60%, rgba(255,107,74,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); background: var(--card-hover); }
.feature-card:hover::before { opacity: 1; }
.f-ico {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.f-ico svg { width: 26px; height: 26px; }
.f-teal   { background: rgba(45, 212, 191, 0.12);  color: var(--teal); }
.f-ember  { background: rgba(255, 107, 74, 0.12);  color: var(--ember); }
.f-blue   { background: rgba(125, 165, 245, 0.12); color: var(--blue); }
.f-mint   { background: rgba(123, 227, 166, 0.12); color: var(--mint); }
.f-amber  { background: rgba(255, 182, 92, 0.12);  color: var(--amber); }
.f-violet { background: rgba(167, 139, 250, 0.12); color: var(--violet); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--muted); }
.feature-card p strong, .feature-card p em { color: var(--ink); font-style: normal; }

/* ---------- modes ---------- */
.modes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: stretch;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s ease;
}
.mode-card:hover { transform: translateY(-6px); }
.mode-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.mode-card h3 { font-size: 19px; margin-bottom: 10px; }
.mode-desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.mode-out {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: var(--muted);
}
.mode-out b { color: var(--ink); font-weight: 600; }
/* escalation coloring */
.m-1 { border-color: rgba(45, 212, 191, 0.35); }
.m-1 .mode-level { color: var(--teal); }
.m-2 { border-color: rgba(255, 145, 92, 0.5); }
.m-2 .mode-level { color: #ff8f5c; }
.m-3 {
  border-color: rgba(255, 107, 74, 0.55);
  background: linear-gradient(170deg, rgba(255, 107, 74, 0.10), rgba(255, 255, 255, 0.02));
}
.m-3 .mode-level { color: var(--ember); }
.mode-default { box-shadow: 0 18px 50px rgba(255, 145, 92, 0.10); }
.mode-flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff8f5c, var(--amber));
  color: #331303;
  white-space: nowrap;
}
.modes-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 64ch;
  margin: 36px auto 0;
  padding: 0 28px;
}

/* ---------- how it works ---------- */
.step {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 56px 0;
}
.step-flip .step-copy { order: 2; }
.step-flip .step-shot { order: 1; }
.step-wide { grid-template-columns: 0.9fr 1.1fr; }
.step-num {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.step p { color: var(--muted); max-width: 52ch; }
.step-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.step-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15px;
}
.step-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.step-shot { display: flex; justify-content: center; }

/* ---------- gallery ---------- */
.gallery {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  padding: 20px max(28px, calc((100vw - 1200px) / 2)) 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 212, 191, 0.5) transparent;
  cursor: grab;
  align-items: flex-end;
}
.gallery:active { cursor: grabbing; }
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(45, 212, 191, 0.4); border-radius: 3px; }
.gallery-item { scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.gallery-item .winframe { transition: transform 0.35s ease; }
.gallery-item:hover .winframe { transform: translateY(-10px); }
.gallery-item figcaption { margin-top: 18px; font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* ---------- live demo ---------- */
.demo-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 56px;
  align-items: center;
}
.demo-copy .section-sub { margin-bottom: 30px; }
.demo-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.demo-mode { cursor: pointer; }
.demo-mode input { position: absolute; opacity: 0; pointer-events: none; }
.demo-mode span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.demo-mode b { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.demo-mode small { font-size: 11.5px; color: var(--faint); }
.demo-mode input:checked + span {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.10);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}
.demo-mode input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.demo-disclaimer { margin-top: 16px; font-size: 12.5px; color: rgba(164, 171, 182, 0.7); }

.demo-side { display: grid; gap: 18px; }
.demo-quotebox, .demo-phrase {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
}
.demo-tip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
#demoQuotePreview { font-size: 16px; font-style: italic; color: var(--ink); }
.phrase-text { font-family: var(--font-mono); font-size: 13.5px; color: var(--amber); }
.demo-quote-meta { margin-top: 10px; font-size: 12px; color: var(--faint); }

/* ---------- quotes marquee ---------- */
.marquee { overflow: hidden; padding: 10px 0 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.t-card {
  width: 330px;
  flex: 0 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
}
.t-card p { font-size: 15.5px; line-height: 1.55; font-style: italic; color: var(--muted); }

/* ---------- download ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}
.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px 32px;
}
.dl-card:first-child {
  background: linear-gradient(170deg, rgba(45, 212, 191, 0.10), rgba(255, 255, 255, 0.03));
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 24px 70px rgba(45, 212, 191, 0.12);
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.dl-head svg { width: 40px; height: 40px; color: var(--teal); flex: 0 0 auto; }
.dl-head h3 { font-size: 21px; }
.dl-head p { font-size: 13.5px; color: var(--muted); }
.dl-btn { width: 100%; }
.dl-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.dl-steps {
  margin-top: 22px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.dl-steps b { color: var(--ink); }
.codeblock {
  background: #0a0e16;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.codeblock span { color: var(--faint); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: background 0.2s ease;
}
.faq-list details[open] { background: var(--card-hover); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- final CTA ---------- */
#cta { padding-bottom: 110px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 36px;
  border: 1px solid var(--line);
  padding: 80px 40px;
  background: linear-gradient(160deg, #0d1526, #0a0f1c);
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 74, 0.22), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.26), transparent 45%);
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-panel h2 { position: relative; font-size: clamp(28px, 4vw, 48px); font-weight: 800; max-width: 22ch; margin: 0 auto; }
.cta-panel > p { position: relative; color: var(--muted); margin: 18px auto 34px; max-width: 52ch; }
.cta-actions {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-meta { position: relative; margin-top: 26px; font-size: 13px; color: var(--faint); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.6);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h4 {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a { font-size: 14.5px; color: var(--muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 8px;
}
.footer-legal p { font-size: 12.5px; color: rgba(164, 171, 182, 0.65); }
.footer-disclaimer { max-width: 92ch; }

/* ---------- break overlay demo ---------- */
.break-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.break-overlay[hidden] { display: none; }
.bo-hint {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  opacity: 0;
  animation: hintIn 0.6s ease 1.2s forwards;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes hintIn { to { opacity: 1; } }
.bo-center {
  text-align: center;
  max-width: 620px;
  width: 100%;
}
.bo-caption { color: var(--muted); font-size: 16px; }
.bo-countdown {
  font-family: var(--font-head);
  font-size: clamp(72px, 14vw, 118px);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.1;
  margin: 6px 0 2px;
}
.bo-reason { margin-top: 26px; font-size: 16px; }
.bo-suggestion { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.bo-quote {
  margin-top: 26px;
  font-style: italic;
  font-size: 16px;
  color: var(--teal);
  min-height: 3em;
  transition: opacity 0.4s ease;
}
.bo-mode { margin-top: 14px; color: var(--faint); font-size: 13px; }
.bo-controls { margin-top: 22px; }
.bo-skip {
  background: #1a1e28;
  color: var(--ink);
  border: 1px solid var(--app-border);
  border-radius: 11px;
  height: 46px;
  padding: 0 38px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bo-skip:hover { background: #232836; }
.bo-noway {
  color: var(--faint);
  font-size: 13px;
  max-width: 46ch;
  margin: 0 auto;
}
.bo-emergency {
  margin: 22px auto 0;
  max-width: 440px;
  background: linear-gradient(135deg, var(--app-card1), var(--app-card2));
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}
.bo-emergency h3 { font-size: 17px; margin-bottom: 8px; }
.bo-pass-label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.bo-emergency input {
  width: 100%;
  background: #10141c;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
}
.bo-emergency input:focus { border-color: var(--accent); }
.bo-error { color: #f87171; font-size: 13px; min-height: 1.2em; margin-top: 8px; }
.bo-emergency-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.bo-emergency-actions .bo-skip { padding: 0 26px; height: 42px; }
.bo-unlock {
  background: linear-gradient(120deg, #1bc2a8, #0e9c86);
  color: #fff;
  border: 0;
  border-radius: 11px;
  height: 42px;
  padding: 0 34px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.bo-unlock:disabled { opacity: 0.45; cursor: not-allowed; }
.bo-done { margin-top: 26px; font-size: 17px; color: var(--mint); font-weight: 600; }
.bo-emergency-link {
  position: absolute;
  right: 20px; bottom: 14px;
  background: none;
  border: 0;
  color: var(--faint);
  opacity: 0.55;
  font-size: 12px;
  padding: 10px 6px;
  cursor: pointer;
}
.bo-emergency-link:hover { opacity: 1; color: var(--muted); }

/* Notification-mode demo: corner card, nothing blocks */
.bo-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: min(340px, calc(100vw - 44px));
  background: linear-gradient(135deg, var(--app-card1), var(--app-card2));
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.35s ease;
}
.bo-toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
.bo-toast-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--teal); }
.bo-toast-body { margin-top: 6px; font-size: 13px; color: var(--muted); }
.bo-toast-count {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}
.bo-toast-dismiss { margin-top: 12px; height: 38px; padding: 0 22px; font-size: 13px; }

/* ---------- pricing card ---------- */
.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}
.price-line strong {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}
.price-once { color: var(--muted); font-size: 15px; }
.price-next { font-size: 13.5px; color: var(--faint); }
.price-next b { color: var(--amber); font-weight: 700; }
.tier-progress { margin-bottom: 20px; }
.tier-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tier-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.tier-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.tier-note span:first-child { color: var(--amber); font-weight: 700; }
.buy-error { color: #f87171; }
.pay-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.pay-note svg { width: 14px; height: 14px; color: var(--teal); flex: 0 0 auto; }
.dl-includes {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.dl-includes li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.dl-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.dl-includes b { color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none !important; }

/* ---------- success page ---------- */
.success-wrap {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 48px 20px;
  text-align: center;
}
.success-panel {
  width: min(640px, 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 54px 44px;
}
.success-panel h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.success-sub { color: var(--muted); margin-bottom: 26px; }
.success-check {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: #06231d;
  background: linear-gradient(120deg, var(--teal), var(--mint));
  box-shadow: 0 10px 34px rgba(45, 212, 191, 0.4);
}
.success-check.err {
  color: #33130a;
  background: linear-gradient(120deg, var(--ember), var(--amber));
  box-shadow: 0 10px 34px rgba(255, 107, 74, 0.35);
}
.success-spinner {
  width: 46px; height: 46px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--teal);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.license-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(45, 212, 191, 0.5);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 26px;
}
.license-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.license-key {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.6vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  word-break: break-all;
}
.copy-ok { margin-left: 10px; color: var(--mint); font-size: 13px; font-weight: 600; }
.success-steps { text-align: left; margin: 26px auto 0; max-width: 420px; }
.success-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.success-note a { color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  .success-spinner { animation: none; }
  .tier-bar i { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 70px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero { padding-top: 120px; min-height: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .step, .step-wide, .demo-panel, .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step-flip .step-copy { order: 1; }
  .step-flip .step-shot { order: 2; }
  .demo-panel { padding: 40px 28px; }
  .demo-modes { justify-content: flex-start; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 80px 0 16px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 28px; font-size: 16px; }
  .nav-burger { display: flex; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .modes-row { grid-template-columns: minmax(0, 1fr); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-win { width: 100%; max-width: 360px; }
  .phone-halo { width: 300px; height: 300px; }
  .app-tabs { gap: 12px; font-size: 12px; }
  .winframe-static { width: 280px; max-width: 100%; }
  .winframe-wide { width: 100%; }
  .chip { display: none; }
  .section { padding-top: 80px; }
  .btn-lg { white-space: normal; }
  .dl-card { padding: 28px 22px; }
  .demo-panel { padding: 36px 22px; }
  .cta-panel { padding: 60px 22px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .gallery-wide { max-width: 88vw; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-col a, .footer-col h4 { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 12px 18px; gap: 14px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 9px 14px; font-size: 13px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .nav-links { padding-top: 70px; }
  .hero { padding-inline: 20px; }
  .section { padding-inline: 20px; }
  .section-wide { padding-inline: 0; }
  .section-wide .section-head { padding-inline: 20px; }
  .stats { padding-inline: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .cta-actions .btn { width: 100%; }
  .app-tiles { grid-template-columns: 1fr 1fr; }
  .app-tile span { font-size: 10px; }
  .demo-mode, .demo-mode span { width: 100%; }
  .modes-row, .modes-note { padding-inline: 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .phone-halo, .chip, .pulse-dot, .scroll-hint span, .marquee-track, .cta-glow, .bo-hint, .bo-toast { animation: none !important; }
  .bo-hint { opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #embers { display: none; }
}
