/* ═══════════════════════════════════════════════════════════════
   Chatarpattar — landing page styles
   Apple-inspired: system type, glass surfaces, fluid motion
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.18);
  --shadow-float: 0 24px 80px -20px rgba(0, 0, 0, 0.35);

  --nav-h: 60px;
  --ease: cubic-bezier(0.32, 0.72, 0.25, 1);
}

/* ── Light theme ─────────────────────────────────────────────── */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --hairline: rgba(0, 0, 0, 0.1);
  --accent: #00a8a0;
  --accent-2: #0071e3;
  --accent-soft: rgba(0, 168, 160, 0.12);
  --accent-2-soft: rgba(0, 113, 227, 0.12);
  --beam: #ff9f0a;
  --nav-glass: rgba(245, 245, 247, 0.78);
  --input-bg: #ffffff;
  --grid-line: rgba(0, 0, 0, 0.05);
  --glow-1: rgba(0, 200, 190, 0.35);
  --glow-2: rgba(0, 113, 227, 0.25);
}

/* ── Dark theme ──────────────────────────────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0e0e13;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --card: rgba(255, 255, 255, 0.05);
  --card-solid: #14141a;
  --card-border: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.12);
  --accent: #00e5db;
  --accent-2: #0a84ff;
  --accent-soft: rgba(0, 229, 219, 0.1);
  --accent-2-soft: rgba(10, 132, 255, 0.14);
  --beam: #ffb340;
  --nav-glass: rgba(5, 5, 7, 0.72);
  --input-bg: #101016;
  --grid-line: rgba(255, 255, 255, 0.05);
  --glow-1: rgba(0, 229, 219, 0.22);
  --glow-2: rgba(10, 132, 255, 0.2);
}

/* System preference is the default before JS resolves the theme */
html[data-theme="system"] { color-scheme: light dark; }

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Faint color wash that adapts to theme */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--glow-1), transparent 60%),
    radial-gradient(1000px 500px at 85% 0%, var(--glow-2), transparent 55%);
  pointer-events: none;
  transition: background 0.4s ease;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 980px;
  font: 600 15px/1 var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn svg { width: 17px; height: 17px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #00c9c0 0%, #0071e3 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 8px 24px -8px rgba(0, 140, 190, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 34px -10px rgba(0, 140, 190, 0.65);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--hairline);
}

.btn-ghost:hover { background: var(--card); transform: translateY(-2px); }

.btn-glass {
  color: var(--text);
  background: var(--card);
  border-color: var(--card-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.btn-glass:hover { transform: translateY(-2px); border-color: var(--accent); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ── Navbar ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-glass);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #00c9c0, #0071e3);
  box-shadow: 0 4px 14px -4px rgba(0, 140, 190, 0.6);
}

.brand-mark svg { width: 15px; height: 15px; }

.nav-links { display: flex; gap: 26px; margin: 0 auto; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease;
}

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

.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* Theme switch — Apple-style segmented control */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 980px;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.theme-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { color: var(--text); }
.theme-btn[aria-checked="true"] {
  background: var(--card-solid);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
}

.hamburger span {
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 18px;
  border-top: 1px solid var(--hairline);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-glass);
}

.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 12px; font-weight: 500; color: var(--text); border-radius: 10px; }
.mobile-menu a:hover { background: var(--card); }
.mobile-menu a.btn { margin-top: 8px; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 130px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, var(--glow-1), transparent 70%);
  pointer-events: none;
  animation: glow-drift 9s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translateX(-56%); opacity: 0.75; }
  to   { transform: translateX(-44%); opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  margin-bottom: 34px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--beam);
  box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 159, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0); }
}

.hero-title {
  position: relative;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.grad {
  background: linear-gradient(100deg, #00c9c0, #0a84ff 55%, #ff9f0a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  position: relative;
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}

.hero-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 76px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: var(--text-3); }

/* ── Sections ────────────────────────────────────────────────── */
.section {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 110px 24px;
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-sub { margin-top: 16px; font-size: 17px; color: var(--text-2); }

/* ── How it works ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.step-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
}

.step-icon svg { width: 26px; height: 26px; }

.step-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.step-card p { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }

/* ── Live demo ───────────────────────────────────────────────── */
.section-demo { max-width: 1180px; }

.demo-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  column-gap: clamp(24px, 3.5vw, 56px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 0 30px;
  min-height: 540px;
}

/* The light beam between the phones — fills the middle track */
.beam {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  height: 130px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}

.beam-light {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--beam) 20%, var(--beam) 80%, transparent);
  opacity: 0.22;
  filter: drop-shadow(0 0 10px var(--beam));
  transform-origin: center;
  transition: opacity 0.18s ease, height 0.18s ease;
}

.beam.bright .beam-light {
  opacity: 1;
  height: 7px;
  animation: beam-pulse 0.4s ease infinite alternate;
}

.beam.sync .beam-light {
  opacity: 0.9;
  animation: beam-pulse 0.7s ease infinite alternate;
}

@keyframes beam-pulse {
  from { filter: drop-shadow(0 0 8px var(--beam)) brightness(1); }
  to   { filter: drop-shadow(0 0 24px var(--beam)) brightness(1.35); }
}

.beam-flash-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 179, 64, 0.28), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.beam-flash-pulse.on { animation: flash-pop 0.45s ease; }

@keyframes flash-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

/* Phones */
.phone {
  position: relative;
  width: 248px;
  aspect-ratio: 9 / 18.5;
  border-radius: 40px;
  background: #0a0a0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 0 11px var(--hairline),
    var(--shadow-float);
  z-index: 2;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.phone-sender { grid-column: 1; grid-row: 1; }
.phone-receiver { grid-column: 3; grid-row: 1; }

.phone:hover { transform: translateY(-6px); }

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  border-radius: 12px;
  background: #000;
  z-index: 3;
}

.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101016 0%, #0b0b10 100%);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 22px 14px 10px;
  font-size: 11px;
  color: #d8d8de;
}

.app-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00e5db;
  box-shadow: 0 0 8px #00e5db;
}

.app-title { font-weight: 700; letter-spacing: 0.02em; }
.app-mode { margin-left: auto; font-size: 10px; color: #6e6e73; }

.phone-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
}

.status-chip {
  align-self: center;
  font-size: 9.5px;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 980px;
}

.bubble {
  max-width: 86%;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.35;
  border-radius: 16px;
  word-break: break-word;
  transition: opacity 0.4s ease;
}

.bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, #00b8af, #0071e3);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  border-bottom-left-radius: 5px;
  min-height: 18px;
}

.bubble-in .caret {
  display: none;
  color: #00e5db;
  animation: caret-blink 0.7s steps(1) infinite;
}

.bubble-in.typing .caret { display: inline; }

@keyframes caret-blink { 50% { opacity: 0; } }

.bitstream {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #5e5e66;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 2px;
  height: 13px;
  opacity: 0.5;
}

.bit-caret { color: #00e5db; }

/* Flash lens (sender) */
.flash-lens {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a3a44, #17171c 65%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.15s ease;
}

.flash-ring { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.08); }
.flash-core {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6e6e78, #2a2a31);
  transition: background 0.1s ease, box-shadow 0.1s ease;
}

.phone.flashing .flash-core {
  background: radial-gradient(circle at 40% 35%, #fff8e0, #ffb340);
  box-shadow: 0 0 18px 4px rgba(255, 179, 64, 0.9), 0 0 40px 10px rgba(255, 179, 64, 0.4);
}

/* Camera viewfinder (receiver) */
.phone-cam {
  position: relative;
  margin: 2px 12px 0;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050507;
}

#lumaCanvas { width: 100%; height: 100%; display: block; }

.roi-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58%; height: 46%;
  border: 1.5px solid rgba(0, 229, 219, 0.55);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  animation: roi-glow 2.4s ease-in-out infinite;
}

@keyframes roi-glow {
  0%, 100% { border-color: rgba(0, 229, 219, 0.45); }
  50%      { border-color: rgba(0, 229, 219, 0.85); }
}

.cam-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.cam-lens {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3a3a44;
  background: radial-gradient(circle at 35% 30%, #3a3a44, #17171c 65%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cam-lens svg { width: 22px; height: 22px; }

.phone.light-hit .cam-lens { color: #ffb340; box-shadow: 0 0 22px rgba(255, 179, 64, 0.45); }

/* Demo controls */
.demo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-controls input {
  width: min(360px, 70vw);
  padding: 14px 22px;
  font: 500 15px var(--font);
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-controls input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.demo-note {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.demo-ledger {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ledger-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 10px;
  transition: color 0.2s ease;
}

.ledger-line.live { color: var(--beam); }
.ledger-line.rx-live { color: var(--accent); }

/* ── Features ────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--accent-2);
  background: var(--accent-2-soft);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* ── Protocol ────────────────────────────────────────────────── */
.section-protocol .proto-frame {
  display: flex;
  gap: 8px;
  margin: 0 auto;
  max-width: 920px;
}

.proto-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 26px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.proto-block:hover { transform: translateY(-4px); }

.proto-block span {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.proto-sync  { flex: 1.2; color: #fff; background: linear-gradient(135deg, #ff9f0a, #ff5e3a); }
.proto-guard { flex: 0.9; color: var(--text); background: var(--card); border: 1px dashed var(--hairline); }
.proto-data  { flex: 3.2; color: #fff; background: linear-gradient(135deg, #00c9c0, #0071e3); }
.proto-eom   { flex: 1.1; color: #fff; background: linear-gradient(135deg, #5e5ce6, #7d7aff); }

.proto-strip {
  max-width: 920px;
  margin: 26px auto 0;
  padding: 18px 26px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
}

.proto-strip strong { color: var(--text); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: var(--accent); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.faq-item[open] summary::after { transform: rotate(225deg); border-color: var(--accent); }

.faq-item p {
  padding: 0 26px 22px;
  font-size: 14.5px;
  color: var(--text-2);
  max-width: 60ch;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.section-cta { max-width: 1120px; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 30px;
  border-radius: 40px;
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.cta-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(closest-side, var(--glow-1), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cta-card p {
  position: relative;
  max-width: 460px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--text-2);
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.waitlist {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.waitlist input {
  width: min(340px, 74vw);
  padding: 14px 24px;
  font: 500 15px var(--font);
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.waitlist input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.waitlist-ok {
  position: relative;
  margin-top: 34px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--accent);
  animation: ok-pop 0.5s var(--ease);
}

@keyframes ok-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.waitlist-error {
  position: relative;
  margin-top: 26px;
  font-size: 14px;
  color: #ff453a;
  animation: ok-pop 0.5s var(--ease);
}

.cta-footnote {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 26px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 24px 60px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.footer-tagline { font-size: 13.5px; color: var(--text-2); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── Reveal-on-scroll ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-right { margin-left: auto; }

  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .demo-stage { min-height: 480px; column-gap: clamp(16px, 2.5vw, 32px); }
  .phone { width: 216px; }
}

@media (max-width: 680px) {
  .hero { padding-top: 84px; }
  .section { padding: 78px 18px; }

  .steps, .feature-grid { grid-template-columns: 1fr; }

  .demo-stage { display: flex; flex-direction: column; gap: 64px; padding: 20px 0; }

  .beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 40vh;
    margin: 0;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .beam-flash-pulse { width: 160px; height: 160px; }

  .phone { width: 250px; }

  .proto-frame { flex-direction: column; }
  .proto-block { padding: 18px; }

  .hero-stats { gap: 26px; margin-top: 54px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
