/* ── Design tokens ── */
:root {
  --bg:           #080B10;
  --bg-surface:   #0E1117;
  --bg-card:      #131820;
  --chrome:       #1A2030;
  --accent:       #2ECC71;
  --accent-dim:   rgba(46,204,113,0.12);
  --accent-glow:  rgba(46,204,113,0.25);
  --text:         #EEF0F3;
  --text-sub:     #7A8599;
  --text-muted:   #4A5568;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(46,204,113,0.3);
  --radius:       14px;
  --radius-sm:    8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --claude-color: #D4845A;
  --gemini-color: #4285F4;
  --codex-color:  #7B6FE7;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  position: relative;
  flex-shrink: 0;
}
.nav-logo .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: dot-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes dot-pulse {
  from { transform: scale(1);   opacity: 0.25; }
  to   { transform: scale(1.7); opacity: 0;    }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #030F06;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #35E87F;
  box-shadow: 0 0 28px rgba(46,204,113,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Radial glow behind terminal */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(46,204,113,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-visuals {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  width: fit-content;
  background: var(--accent-dim);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.hero-eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-sub);
  max-width: 440px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── Terminal mockup ── */
.terminal-mockup {
  width: 380px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}
.terminal-titlebar {
  background: var(--chrome);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot.red    { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green  { background: #28C840; }
.terminal-titlebar .title {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.terminal-titlebar .title img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  min-height: 170px;
}
.terminal-line { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.terminal-prompt { color: var(--accent); flex-shrink: 0; }
.terminal-cmd    { color: var(--text); }
.terminal-output { color: var(--text-sub); padding-left: 1.2rem; }
.terminal-cursor {
  font-family: var(--font-mono);
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Section base ── */
.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 500px;
  line-height: 1.75;
}

/* ── How it works ── */
.how-it-works {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-it-works .inner {
  max-width: 1000px;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--border-hover); }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(46,204,113,0.2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.step p  { font-size: 0.875rem; color: var(--text-sub); line-height: 1.65; }

/* ── Features ── */
.features { background: var(--bg); }
.features .inner {
  max-width: 1000px;
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
  position: relative;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}
.feature-card:hover { background: var(--bg-surface); }
.feature-card:hover::after { width: 100%; }
.feature-icon {
  color: var(--accent);
  line-height: 0;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.feature-card p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ── Install strip ── */
.install-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.install-strip .inner {
  max-width: 700px;
  margin: 0 auto;
}
.install-strip .section-title { margin-bottom: 0.5rem; }
.install-strip .section-sub { margin: 0 auto 2rem; }
.install-cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-sub);
  text-align: left;
  overflow-x: auto;
  cursor: pointer;
  transition: border-color 0.2s;
  max-width: 560px;
  margin: 0 auto;
}
.install-cmd:hover { border-color: var(--border-hover); }
.install-cmd .prompt { color: var(--accent); flex-shrink: 0; user-select: none; }
.install-cmd code { color: var(--text); flex: 1; white-space: nowrap; }
.install-cmd .copy-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
  transition: color 0.2s;
}
.install-cmd:hover .copy-hint { color: var(--accent); }

/* ── Download grid ── */
.download-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-align: left;
}
.download-card:hover {
  border-color: var(--border-hover);
  background: rgba(46,204,113,0.02);
}
.download-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-icon svg {
  width: 24px;
  height: 24px;
}
.download-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.download-platform {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.download-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.download-badge {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

/* ── Pricing teaser ── */
.pricing-teaser {
  background: var(--bg);
  text-align: center;
}
.pricing-teaser .inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.price-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-display span {
  font-size: 1.25rem;
  color: var(--text-sub);
  font-style: normal;
  font-weight: 400;
}
.pricing-teaser p { color: var(--text-sub); font-size: 1rem; max-width: 380px; }

/* ── Footer ── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Pricing page ── */
.pricing-hero {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at top, rgba(46,204,113,0.07), transparent 70%);
  pointer-events: none;
}
.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  position: relative;
}
.pricing-hero p {
  color: var(--text-sub);
  font-size: 1.05rem;
  position: relative;
}

.pricing-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(4rem, 8vw, 6rem);
  display: flex;
  justify-content: center;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.5rem);
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 0 60px rgba(46,204,113,0.06), 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(46,204,113,0.3));
}
.plan-header { text-align: center; }
.plan-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 900;
  font-style: italic;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-price sup { font-size: 1.5rem; font-weight: 600; vertical-align: top; margin-top: 0.5rem; font-style: normal; }
.plan-price sub { font-size: 1rem; font-weight: 400; color: var(--text-sub); font-style: normal; }
.plan-annual {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-sub);
}
.plan-annual strong { color: var(--accent); }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text);
}
.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-cta { display: flex; flex-direction: column; gap: 0.75rem; text-align: center; }
.plan-cta .btn { width: 100%; padding: 0.95rem; font-size: 0.975rem; border-radius: var(--radius-sm); }
.plan-fine { font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════════════
   Shared phone component styles
   ══════════════════════════════════════ */
.phone-mockup-base {
  background: var(--bg);
  border-radius: 32px;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 0 20px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  padding-bottom: 4px;
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 26px;
}
.phone-header-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent-glow), 0 0 8px rgba(46,204,113,0.15);
}
.phone-header-title {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--text);
}
.phone-header-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.phone-header-icons svg {
  width: 10px;
  height: 10px;
  color: var(--text-sub);
  flex-shrink: 0;
}
.phone-tabs {
  display: flex;
  gap: 3px;
  padding: 3px 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.phone-tab {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}
.phone-tab.active {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.phone-tab .tab-x {
  font-size: 6px;
  color: var(--text-muted);
  margin-left: 1px;
  opacity: 0.6;
}
.phone-tab-icon {
  font-size: 7px;
  line-height: 1;
}
.phone-terminal {
  flex: 1;
  padding: 5px 7px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  line-height: 1.65;
  color: var(--text-sub);
  background: var(--bg);
  overflow: hidden;
  text-align: left;
}
.phone-terminal * { text-align: left; }
.phone-terminal .prompt { color: var(--accent); }
.phone-terminal .cmd { color: var(--text); font-weight: 700; }
.phone-terminal .check { color: var(--accent); }
.phone-terminal .dim { color: var(--text-muted); }
.phone-terminal .claude-dot { color: var(--claude-color); }
.phone-terminal .gemini-dot { color: var(--gemini-color); }
.phone-terminal .codex-dot { color: var(--codex-color); }
.phone-terminal .diff-add { color: #2ECC71; }
.phone-terminal .diff-del { color: #EF4444; }
.phone-terminal .action-blue { color: #4285F4; }
.phone-terminal .action-orange { color: #D4845A; }
.phone-terminal .action-green { color: #2ECC71; }
.phone-terminal .file-path { color: #7B6FE7; }
.phone-terminal .line-num { color: var(--text-muted); user-select: none; }
.phone-terminal .cursor-blink {
  display: inline-block;
  width: 4px;
  height: 8px;
  background: var(--accent);
  animation: phone-cursor-blink 1s step-end infinite;
}
@keyframes phone-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.phone-fab {
  position: absolute;
  right: 8px;
  bottom: 44px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10,10,14,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  overflow: hidden;
}
.phone-fab img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}
.phone-tmux {
  padding: 2px 7px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: left;
}
.phone-input-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px 6px;
  background: var(--bg);
}
.phone-input-bar > svg {
  width: 10px !important;
  height: 10px !important;
  flex-shrink: 0;
  color: var(--text-muted);
  display: block;
}
.phone-input-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 18px;
}
.phone-input-field span {
  font-family: var(--font-body);
  font-size: 7px;
  color: var(--text-muted);
  flex: 1;
  text-align: left;
}
.phone-input-field > svg {
  width: 9px !important;
  height: 9px !important;
  flex-shrink: 0;
  color: var(--text-muted);
  display: block;
}
.phone-input-send {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-input-send svg {
  width: 8px !important;
  height: 8px !important;
  color: #030F06;
  display: block;
}
.phone-keyboard {
  background: var(--chrome);
  padding: 4px 6px 4px;
  border-top: 1px solid var(--border);
}
.phone-kb-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.phone-kb-key {
  padding: 3px 1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--text-sub);
}
.phone-kb-key.accent { color: var(--accent); border-color: rgba(46,204,113,0.2); }
.phone-kb-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 3px 0;
}
.phone-kb-dot-indicator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.phone-kb-dot-indicator.active { background: var(--accent); }

/* ── Hero phone overlay ── */
.hero-phone {
  position: absolute;
  right: -10px;
  bottom: -30px;
  width: 200px;
  height: 433px;
  z-index: 2;
}

.connection-section .inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Connection diagram ── */
.connection-section {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.connection-diagram {
  position: relative;
  margin-top: 3rem;
  height: 140px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.connection-track {
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.connection-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: full-pulse 4s ease-in-out infinite;
}
@keyframes full-pulse {
  0%   { left: 0; opacity: 0; }
  5%   { opacity: 1; }
  45%  { left: calc(100% - 30px); opacity: 1; }
  50%  { left: calc(100% - 30px); opacity: 0; }
  55%  { left: calc(100% - 30px); opacity: 1; }
  95%  { left: 0; opacity: 1; }
  100% { left: 0; opacity: 0; }
}
.connection-node {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.connection-node:nth-child(2) { left: 0; }
.connection-node:nth-child(3) { left: 50%; transform: translateX(-50%); }
.connection-node:nth-child(4) { right: 0; }
.connection-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.connection-icon:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}
.connection-icon svg { width: 28px; height: 28px; color: var(--accent); }
.connection-icon.relay-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin-top: -6px;
}
.connection-icon.relay-icon svg { width: 32px; height: 32px; }
.connection-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  white-space: nowrap;
}
.connection-sublabel {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── Feature mini-visuals ── */
.feature-visual {
  margin-bottom: 0.5rem;
  height: 56px;
  display: flex;
  align-items: flex-end;
}
.mini-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
}
.mini-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.mini-tab.active { color: var(--text); }
.mini-tab-dot { width: 5px; height: 5px; border-radius: 50%; }
.mini-notif {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-width: 260px;
}
.mini-notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-notif-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent-glow);
}
.mini-notif-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mini-notif-title {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text);
}
.mini-notif-body {
  font-family: var(--font-body);
  font-size: 0.52rem;
  color: var(--text-sub);
}
.mini-keyboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: fit-content;
}
.mini-key {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--text-sub);
  text-align: center;
  white-space: nowrap;
}
.mini-key.highlight { color: var(--accent); border-color: rgba(46,204,113,0.2); }
.mini-lock {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-lock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(46,204,113,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lock-glow 2s ease-in-out infinite alternate;
}
@keyframes lock-glow {
  from { box-shadow: 0 0 0 rgba(46,204,113,0); }
  to   { box-shadow: 0 0 16px rgba(46,204,113,0.2); }
}
.mini-lock-icon svg { width: 16px; height: 16px; color: var(--accent); }
.mini-connection {
  position: relative;
  width: 150px;
  height: 36px;
}
.mini-conn-track {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.mini-conn-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: full-pulse 4s ease-in-out infinite;
}
.mini-conn-node {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-conn-node svg { width: 12px; height: 12px; color: var(--text-sub); }
.mini-conn-relay {
  background: var(--accent-dim);
  border-color: rgba(46,204,113,0.2);
}
.mini-conn-relay svg { color: var(--accent); }
.mini-landscape {
  width: 100px;
  height: 48px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
}
.mini-landscape-content {
  flex: 1;
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 0.35rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.mini-landscape-content .g { color: var(--accent); }

.showcase-section .inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── See it in action ── */
.showcase-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.showcase-phone {
  width: 185px;
  height: 401px;
  background: var(--bg);
  border-radius: 32px;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 0 20px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.showcase-phone .phone-terminal {
  padding: 5px 7px;
  font-size: 6.5px;
  text-align: left;
}
.showcase-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.showcase-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
  max-width: 220px;
}
.showcase-notif-overlay {
  position: absolute;
  top: 44px;
  left: 10px;
  right: 10px;
  z-index: 5;
}
.showcase-notif {
  background: rgba(30, 30, 35, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: notif-slide 4s ease-in-out infinite;
}
@keyframes notif-slide {
  0%   { transform: translateY(-14px); opacity: 0; }
  10%  { transform: translateY(0); opacity: 1; }
  82%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-14px); opacity: 0; }
}
.showcase-notif-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.showcase-notif-icon-inner {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px var(--accent-glow);
}
.showcase-notif-text { text-align: left !important; flex: 1; }
.showcase-notif-title {
  font-size: 6px;
  font-weight: 700;
  color: var(--text);
}
.showcase-notif-body {
  font-size: 5.5px;
  color: var(--text-sub);
  line-height: 1.3;
}
.showcase-kb-area {
  background: var(--chrome);
  padding: 4px 6px 4px;
  border-top: 1px solid var(--border);
}
.showcase-kb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.showcase-kb-key {
  padding: 4px 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 5px;
  color: var(--text-sub);
  text-align: center;
}
.showcase-kb-key.a { color: var(--accent); border-color: rgba(46,204,113,0.15); }
.showcase-kb-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 3px 0;
}
.showcase-kb-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.showcase-kb-dot.active { background: var(--accent); }

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  /* Hero: stack vertically, center everything */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; }
  .hero-eyebrow { margin: 0 auto; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-visuals { min-height: 380px; justify-content: center; }
  .terminal-mockup { width: 340px; }
  .hero-phone { width: 160px; height: 347px; right: -5px; bottom: -20px; }

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

  /* Showcase: keep 3 columns but smaller */
  .showcase-grid { gap: 1.5rem; }
  .showcase-phone { width: 155px; height: 336px; border-radius: 26px; }
  .showcase-phone .phone-terminal { font-size: 5.5px; }
  .showcase-phone .phone-header { height: 22px; padding: 3px 8px; }
  .showcase-phone .phone-header-title { font-size: 7px; }
  .showcase-phone .phone-tab { font-size: 6px; padding: 2px 4px; }
  .showcase-phone .phone-tab-icon { font-size: 6px; }
  .showcase-phone .phone-tmux { font-size: 5px; }
  .showcase-phone .phone-input-bar { padding: 3px 5px 4px; gap: 3px; }
  .showcase-phone .phone-input-field { padding: 3px 6px; border-radius: 10px; min-height: 14px; }
  .showcase-phone .phone-input-field span { font-size: 6px; }
  .showcase-phone .phone-input-send { width: 12px; height: 12px; }
  .showcase-phone .phone-fab { width: 20px; height: 20px; bottom: 36px; }
  .showcase-phone .phone-fab img { width: 11px; height: 11px; }

  /* Connection diagram */
  .connection-diagram { max-width: 480px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Steps and features: single column */
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .steps::before, .steps::after { display: none; }
  .feature-grid { grid-template-columns: 1fr; }

  /* Showcase: stack vertically, center */
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 200px; margin-left: auto; margin-right: auto;
    gap: 2.5rem;
  }
  .showcase-phone { width: 185px; height: 401px; border-radius: 32px; }
  .showcase-phone .phone-terminal { font-size: 6.5px; }
  .showcase-phone .phone-header { height: 26px; padding: 4px 10px; }
  .showcase-phone .phone-header-title { font-size: 8px; }
  .showcase-phone .phone-tab { font-size: 7px; padding: 2px 6px; }
  .showcase-phone .phone-tab-icon { font-size: 7px; }
  .showcase-phone .phone-tmux { font-size: 6px; }
  .showcase-phone .phone-input-bar { padding: 5px 7px 6px; gap: 5px; }
  .showcase-phone .phone-input-field { padding: 4px 8px; border-radius: 14px; min-height: 18px; }
  .showcase-phone .phone-input-field span { font-size: 7px; }
  .showcase-phone .phone-input-send { width: 16px; height: 16px; }
  .showcase-phone .phone-fab { width: 24px; height: 24px; bottom: 44px; }
  .showcase-phone .phone-fab img { width: 14px; height: 14px; }

  /* Connection diagram: smaller */
  .connection-diagram { max-width: 300px; height: 120px; }
  .connection-icon { width: 52px; height: 52px; border-radius: 13px; }
  .connection-icon svg { width: 20px; height: 20px; }
  .connection-icon.relay-icon { width: 62px; height: 62px; margin-top: -5px; border-radius: 16px; }
  .connection-icon.relay-icon svg { width: 24px; height: 24px; }
  .connection-track { top: 26px; left: 26px; right: 26px; }
  .connection-label { font-size: 0.6rem; }
  .connection-sublabel { font-size: 0.5rem; }

  /* Hero visuals */
  .hero-visuals { min-height: 350px; }
  .terminal-mockup { width: 300px; }
  .hero-phone { width: 150px; height: 325px; right: -10px; bottom: -20px; }

  /* Footer */
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }

  /* Hide phone mockup, full-width terminal */
  .hero-phone { display: none; }
  .terminal-mockup { width: 100%; }
  .hero-visuals { min-height: auto; }

  /* Download cards */
  .download-badge { padding: 0.4rem 0.8rem; font-size: 0.78rem; }

  /* Connection diagram: even smaller */
  .connection-diagram { max-width: 260px; height: 110px; }
  .connection-icon { width: 44px; height: 44px; border-radius: 11px; }
  .connection-icon svg { width: 18px; height: 18px; }
  .connection-icon.relay-icon { width: 54px; height: 54px; margin-top: -5px; border-radius: 14px; }
  .connection-icon.relay-icon svg { width: 22px; height: 22px; }
  .connection-track { top: 22px; left: 22px; right: 22px; }
  .connection-label { font-size: 0.55rem; margin-top: 0.5rem; }
  .connection-sublabel { font-size: 0.45rem; }

  /* Showcase phones: slightly smaller on very small screens */
  .showcase-phone { width: 170px; height: 368px; border-radius: 30px; }
  .showcase-grid { max-width: 185px; }
}

/* ── Page load animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content,
.hero-visuals {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero-content  { animation-delay: 0.15s; }
.hero-visuals  { animation-delay: 0.5s; }

/* ── Scroll-triggered reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside feature grid and steps */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-visuals {
    animation: none;
    opacity: 1;
  }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS — per-step animated scenes
   ══════════════════════════════════════════════════════════ */

.step {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(26,32,48,0.6), rgba(13,17,23,0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step:hover {
  border-color: rgba(46,204,113,0.25);
  transform: translateY(-2px);
}
.step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 1.25rem;
}
.step p {
  margin: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.step-kicker {
  margin: 1rem 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  padding-left: 22px;
  position: relative;
}
.step-kicker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.step-inline-code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--accent-dim);
  padding: 0.1em 0.45em;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid rgba(46,204,113,0.15);
}

.step-scene {
  height: 150px;
  position: relative;
  background: #0a0d13;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.step-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}
.step-scene::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(46,204,113,0.06), transparent 65%);
  pointer-events: none;
}

/* ── 01 · Download scene ── */
.step-dl-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.step-dl-icon {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(46,204,113,0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-dl-icon svg { width: 16px; height: 16px; }
.step-dl-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.step-dl-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-dl-size {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.step-dl-check {
  grid-column: 3;
  grid-row: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #08160C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
  opacity: 0;
  transform: scale(0.6);
  animation: step-dl-check 4s ease-in-out infinite;
}
.step-dl-check svg { width: 12px; height: 12px; }
.step-dl-bar {
  grid-column: 2 / span 2;
  grid-row: 2;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.step-dl-bar__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent), #35E87F);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: step-dl-fill 4s ease-in-out infinite;
}

@keyframes step-dl-fill {
  0%    { width: 0%; }
  55%   { width: 100%; }
  80%   { width: 100%; }
  90%   { width: 0%; }
  100%  { width: 0%; }
}
@keyframes step-dl-check {
  0%, 55%   { opacity: 0; transform: scale(0.5); }
  62%, 80%  { opacity: 1; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(0.5); }
}

/* ── 02 · QR Scan scene ── */
.step-scene--qr { gap: 14px; }
.step-qr {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.step-qr__svg { width: 100%; height: 100%; display: block; }
.step-qr__scan {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, rgba(46,204,113,0.5), transparent);
  box-shadow: 0 0 14px rgba(46,204,113,0.4);
  animation: step-qr-scan 2.5s ease-in-out infinite;
}
@keyframes step-qr-scan {
  0%    { transform: translateY(0); opacity: 0; }
  10%   { opacity: 1; }
  45%   { transform: translateY(70px); opacity: 1; }
  55%   { transform: translateY(70px); opacity: 0; }
  100%  { transform: translateY(0); opacity: 0; }
}
.step-qr-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0;
  animation: step-qr-badge 2.5s ease-in-out infinite;
}
.step-qr-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
@keyframes step-qr-badge {
  0%, 55%   { opacity: 0; transform: translateX(-8px); }
  65%, 90%  { opacity: 1; transform: translateX(0); }
  100%      { opacity: 0; transform: translateX(-8px); }
}

/* ── 03 · Connect scene ── */
.step-scene--connect {
  flex-direction: column;
  gap: 10px;
}
.step-device {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 8px 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  animation: step-dev-appear 4s ease-in-out infinite;
}
.step-device__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-device__icon svg { width: 14px; height: 14px; }
.step-device__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.step-device__name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-device__sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.step-device__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: dt-sort-dot-pulse 1.4s ease-in-out infinite;
}
.step-device__btn {
  background: var(--accent);
  color: #08160C;
  border: none;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
  box-shadow: 0 0 14px rgba(46,204,113,0.35);
  animation: step-connect-btn 4s ease-in-out infinite;
}
.step-cmd {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
  opacity: 0;
  animation: step-cmd-fade 4s ease-in-out infinite;
}
.step-cmd__prompt {
  color: var(--accent);
  margin-right: 4px;
}
.step-cmd__cursor {
  display: inline-block;
  width: 6px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}

@keyframes step-dev-appear {
  0%, 10%   { opacity: 0; transform: translateY(10px); }
  25%, 85%  { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes step-connect-btn {
  0%, 35%   { box-shadow: 0 0 14px rgba(46,204,113,0.35); background: var(--accent); }
  45%       { box-shadow: 0 0 0 10px rgba(46,204,113,0.35); background: #35E87F; }
  55%, 100% { box-shadow: 0 0 14px rgba(46,204,113,0.35); background: var(--accent); }
}
@keyframes step-cmd-fade {
  0%, 50%   { opacity: 0; }
  60%, 90%  { opacity: 1; }
  100%      { opacity: 0; }
}

/* Responsive touch-ups for steps */
@media (max-width: 768px) {
  .step-scene { height: 130px; }
  .step-dl-card { max-width: 100%; }
  .step-qr { width: 90px; height: 90px; }
  @keyframes step-qr-scan {
    0%    { transform: translateY(0); opacity: 0; }
    10%   { opacity: 1; }
    45%   { transform: translateY(60px); opacity: 1; }
    55%   { transform: translateY(60px); opacity: 0; }
    100%  { transform: translateY(0); opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-dl-bar__fill,
  .step-dl-check,
  .step-qr__scan,
  .step-qr-badge,
  .step-device,
  .step-device__btn,
  .step-device__dot,
  .step-cmd,
  .step-cmd__cursor {
    animation: none !important;
  }
  .step-dl-bar__fill { width: 100%; }
  .step-dl-check { opacity: 1; transform: scale(1); }
  .step-qr-badge { opacity: 1; }
  .step-device { opacity: 1; }
  .step-cmd { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   ARCHITECTURE VISUAL — encrypted packet flow
   ══════════════════════════════════════════════════════════ */

.arch-visual {
  margin: 3rem auto 0;
  max-width: 860px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(160deg, rgba(26,32,48,0.55), rgba(13,17,23,0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: left;
}
.arch-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 95% 75% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}
.arch-visual::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 75%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(46,204,113,0.08), transparent 65%);
  pointer-events: none;
}

.arch-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 96px;
  padding: 0 4px;
}
.arch-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.arch-icon svg { width: 24px; height: 24px; }
.arch-icon--relay {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border-color: rgba(46,204,113,0.35);
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(46,204,113,0.18), 0 0 0 1px rgba(46,204,113,0.08);
}
.arch-icon--relay svg { width: 30px; height: 30px; }
.arch-icon--relay::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(46,204,113,0.4);
  animation: arch-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.arch-icon--relay::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 1px solid rgba(46,204,113,0.2);
  animation: arch-ring 2.4s ease-out 0.6s infinite;
  pointer-events: none;
}
@keyframes arch-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.arch-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.arch-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Link: dashed tunnel + packets + center lock ── */
.arch-link {
  position: relative;
  height: 50px;
  min-width: 40px;
}
.arch-tunnel {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background-image: linear-gradient(to right, rgba(255,255,255,0.14) 45%, transparent 45%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}
.arch-tunnel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--accent) 45%, transparent 45%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  opacity: 0.55;
  animation: arch-flow 1.2s linear infinite;
}
@keyframes arch-flow {
  from { background-position: 0 0; }
  to   { background-position: -10px 0; }
}

.arch-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(46,204,113,0.35);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 16px rgba(46,204,113,0.22), 0 4px 10px rgba(0,0,0,0.4);
}
.arch-lock svg { width: 11px; height: 11px; }

.arch-packet {
  position: absolute;
  top: 50%;
  transform: translate(-50%, calc(-50% - 18px));
  background: var(--bg);
  border: 1px solid rgba(46,204,113,0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 12px rgba(46,204,113,0.15);
  pointer-events: none;
  animation: arch-packet-h 4.5s linear infinite;
  opacity: 0;
}
.arch-packet--b {
  transform: translate(-50%, calc(-50% + 18px));
  animation-name: arch-packet-h-below;
  animation-delay: 1.5s;
}
.arch-packet--c { animation-delay: 0.8s; }
.arch-packet--d {
  transform: translate(-50%, calc(-50% + 18px));
  animation-name: arch-packet-h-below;
  animation-delay: 2.3s;
}

@keyframes arch-packet-h {
  0%   { left: -5%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
@keyframes arch-packet-h-below {
  0%   { left: -5%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

/* ── Features row below ── */
.arch-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  position: relative;
  z-index: 1;
}
.arch-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.arch-feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}

/* ── Responsive: stack vertically on narrow ── */
@media (max-width: 720px) {
  .arch-visual {
    padding: 1.75rem 1rem 1.25rem;
    margin-top: 2.5rem;
  }
  .arch-stage {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
  }
  .arch-link {
    width: 2px;
    height: 60px;
    min-width: 0;
  }
  .arch-tunnel {
    top: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.14) 45%, transparent 45%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
  }
  .arch-tunnel::after {
    background-image: linear-gradient(to bottom, var(--accent) 45%, transparent 45%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
    animation: arch-flow-v 1.2s linear infinite;
  }
  @keyframes arch-flow-v {
    from { background-position: 0 0; }
    to   { background-position: 0 10px; }
  }
  .arch-packet,
  .arch-packet--b,
  .arch-packet--d {
    top: 0;
    left: 50% !important;
    transform: translate(calc(-50% - 44px), 0);
    animation-name: arch-packet-v;
  }
  .arch-packet--b,
  .arch-packet--d {
    transform: translate(calc(-50% + 44px), 0);
  }
  @keyframes arch-packet-v {
    0%   { top: -5%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 105%; opacity: 0; }
  }
  .arch-features { gap: 0.65rem 1.25rem; }
  .arch-features li { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .arch-tunnel::after,
  .arch-packet,
  .arch-icon--relay::before,
  .arch-icon--relay::after {
    animation: none !important;
  }
  .arch-packet { opacity: 1 !important; }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP SUPERPOWERS SHOWCASE
   01 Tile Grid · 02 Session Auto-sort · 03 Head Tracking
   ══════════════════════════════════════════════════════════ */

.dt-showcase {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dt-showcase::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(46,204,113,0.035) 0%, transparent 70%);
  pointer-events: none;
}
.dt-showcase .inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}
.dt-showcase .section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ── Rows ── */
.dt-features {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 6.5rem);
  text-align: left;
}
.dt-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.dt-feature:nth-of-type(even) .dt-feature__visual {
  order: 2;
}

/* ── Visual frame ── */
.dt-feature__visual {
  position: relative;
  aspect-ratio: 5 / 3;
  background: linear-gradient(160deg, rgba(26,32,48,0.55), rgba(13,17,23,0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1rem, 2.2vw, 1.75rem);
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
  isolation: isolate;
}
.dt-feature__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 95% 75% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.dt-feature__visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 85%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(46,204,113,0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
/* Pause animations on hover so people can inspect */
.dt-feature__visual:hover * { animation-play-state: paused !important; }

/* ── Copy column ── */
.dt-feature__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0;
}
.dt-feature__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  padding-left: 22px;
  position: relative;
  margin-bottom: 0.25rem;
}
.dt-feature__num::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.dt-feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}
.dt-feature__title em {
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
}
.dt-feature__desc {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-sub);
  line-height: 1.65;
  max-width: 440px;
}
.dt-feature__bullets {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dt-feature__bullets li {
  font-size: 0.88rem;
  color: var(--text-sub);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.dt-feature__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   01 · TILE GRID STAGE
   ══════════════════════════════════════════════════════════ */

.dt-tile-stage {
  position: absolute;
  inset: clamp(1rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  background: #0a0d12;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.dt-tile-bar {
  flex-shrink: 0;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  background: linear-gradient(to bottom, #1c2230, #141a24);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dt-tile-bar__dots { display: inline-flex; gap: 5px; }
.dt-tile-bar__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4254;
}
.dt-tile-bar__dots i:nth-child(1) { background: #FF605C; }
.dt-tile-bar__dots i:nth-child(2) { background: #FFBD44; }
.dt-tile-bar__dots i:nth-child(3) { background: #00CA4E; }
.dt-tile-bar__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-sub);
  letter-spacing: 0.03em;
}
.dt-tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(46,204,113,0.25);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  animation: dt-tile-btn-pulse 10s ease-in-out infinite;
  white-space: nowrap;
}
.dt-tile-btn svg { width: 10px; height: 10px; }

.dt-tile-area {
  flex: 1;
  position: relative;
  background:
    radial-gradient(circle at 45% 35%, rgba(46,204,113,0.03), transparent 60%),
    #080b10;
  overflow: hidden;
}

.dt-tile-win {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 28%;
  height: 44%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
  transform-origin: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
  animation: dt-tile-cycle 10s cubic-bezier(0.65, 0.02, 0.26, 1.12) infinite;
  will-change: transform;
}
.dt-tile-win--1 { --msx:  55%; --msy:  40%; --msr: -8deg; z-index: 5; }
.dt-tile-win--2 { top: 4%; left: 36%; --msx: -25%; --msy: -30%; --msr:  6deg; z-index: 4; }
.dt-tile-win--3 { top: 4%; left: 68%; --msx: -65%; --msy:  55%; --msr: -5deg; z-index: 3; }
.dt-tile-win--4 { top: 52%; left: 4%; --msx:  70%; --msy: -40%; --msr:  7deg; z-index: 2; }
.dt-tile-win--5 { top: 52%; left: 36%; --msx: -22%; --msy:  15%; --msr: -3deg; z-index: 6; }
.dt-tile-win--6 { top: 52%; left: 68%; --msx: -85%; --msy: -50%; --msr:  4deg; z-index: 1; }

.dt-tile-win__bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  background: #1a2030;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 14px;
}
.dt-tile-win__bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a4254;
}
.dt-tile-win__bar i:nth-child(1) { background: rgba(255,96,92,0.7); }
.dt-tile-win__bar i:nth-child(2) { background: rgba(255,189,68,0.7); }
.dt-tile-win__bar i:nth-child(3) { background: rgba(0,202,78,0.7); }
.dt-tile-win__bar span {
  margin-left: 3px;
  font-family: var(--font-mono);
  font-size: 5.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  letter-spacing: 0.02em;
}

.dt-tile-win__body {
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.5;
  color: var(--text-sub);
}
.dt-tile-win__body .a { color: var(--claude-color); }
.dt-tile-win__body .b { color: var(--gemini-color); }
.dt-tile-win__body .c { color: var(--codex-color); }
.dt-tile-win__body .g { color: var(--accent); }
.dt-tile-win__body .w { color: var(--text); font-weight: 500; }
.dt-tile-win__body .d { color: var(--text-muted); }

@keyframes dt-tile-cycle {
  0%, 18%   { transform: translate(var(--msx), var(--msy)) rotate(var(--msr)); }
  32%, 65%  { transform: translate(0, 0) rotate(0deg); }
  80%, 100% { transform: translate(var(--msx), var(--msy)) rotate(var(--msr)); }
}

@keyframes dt-tile-btn-pulse {
  0%, 17%  { box-shadow: 0 0 0 0 rgba(46,204,113,0); transform: scale(1); }
  21%      { box-shadow: 0 0 0 10px rgba(46,204,113,0.35); transform: scale(1.08); background: rgba(46,204,113,0.3); color: #08160C; }
  27%      { box-shadow: 0 0 0 18px rgba(46,204,113,0); transform: scale(1); background: var(--accent-dim); color: var(--accent); }
  100%     { box-shadow: 0 0 0 0 rgba(46,204,113,0); transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════
   02 · SESSION AUTO-SORT STAGE
   ══════════════════════════════════════════════════════════ */

.dt-sort-stage {
  position: absolute;
  inset: clamp(1rem, 2.2vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-sort-panel {
  width: 100%;
  max-width: 340px;
  background: rgba(13,17,23,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.dt-sort-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 6px 12px;
}
.dt-sort-head__left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dt-sort-head__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.dt-sort-head__count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}
.dt-sort-head__sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.dt-sort-head__sort svg { width: 9px; height: 9px; }

.dt-sort-list {
  position: relative;
  height: 232px; /* 4 slots × 52px card + 3 × 8px gaps = 232px */
}

.dt-sort-card {
  position: absolute;
  inset: 0 0 auto 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  will-change: transform;
}

.dt-sort-card__icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.dt-sort-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-sort-card__name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-sort-card__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-sort-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.dt-sort-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Working (api card — always green) */
.dt-sort-card--api .dt-sort-card__pill {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(46,204,113,0.25);
}
.dt-sort-card--api .dt-sort-pill__dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: dt-sort-dot-pulse 1.4s ease-in-out infinite;
}

/* Reorder animations for each card (12s loop) */
.dt-sort-card--api    { animation: dt-sort-api    12s ease-in-out infinite; }
.dt-sort-card--front  { animation: dt-sort-front  12s ease-in-out infinite; }
.dt-sort-card--tests  { animation: dt-sort-tests  12s ease-in-out infinite,
                                    dt-sort-tests-border 12s ease-in-out infinite; }
.dt-sort-card--deploy { animation: dt-sort-deploy 12s ease-in-out infinite; }

@keyframes dt-sort-api {
  0%, 25%   { transform: translateY(0); }
  33%, 58%  { transform: translateY(60px); }
  66%, 100% { transform: translateY(0); }
}
@keyframes dt-sort-front {
  0%, 25%   { transform: translateY(60px); }
  33%, 58%  { transform: translateY(120px); }
  66%, 100% { transform: translateY(60px); }
}
@keyframes dt-sort-tests {
  0%, 25%   { transform: translateY(120px); }
  33%, 58%  { transform: translateY(0); }
  66%, 91%  { transform: translateY(180px); }
  100%      { transform: translateY(120px); }
}
@keyframes dt-sort-deploy {
  0%, 58%   { transform: translateY(180px); }
  66%, 91%  { transform: translateY(120px); }
  100%      { transform: translateY(180px); }
}

@keyframes dt-sort-tests-border {
  0%, 27%, 63%, 100% {
    border-color: var(--border);
    box-shadow: none;
  }
  33%, 58% {
    border-color: rgba(245,158,11,0.35);
    box-shadow: 0 0 0 1px rgba(245,158,11,0.2), 0 10px 24px rgba(245,158,11,0.1);
  }
}

@keyframes dt-sort-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

/* Tests pill — changes color with status */
.dt-sort-card--tests .dt-sort-card__pill {
  animation: dt-sort-tests-pill 12s ease-in-out infinite;
}
.dt-sort-card--tests .dt-sort-pill__dot {
  animation: dt-sort-tests-dot 12s ease-in-out infinite;
}

@keyframes dt-sort-tests-pill {
  0%, 27%, 95%, 100% { /* idle (gray) */
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border-color: rgba(255,255,255,0.06);
  }
  33%, 58% { /* needs attention (amber) */
    background: rgba(245,158,11,0.12);
    color: #FBBF24;
    border-color: rgba(245,158,11,0.3);
  }
  66%, 91% { /* done (blue) */
    background: rgba(59,130,246,0.12);
    color: #7BB4FF;
    border-color: rgba(59,130,246,0.3);
  }
}

@keyframes dt-sort-tests-dot {
  0%, 27%, 95%, 100% {
    background: var(--text-muted);
    box-shadow: none;
  }
  33%, 58% {
    background: #FBBF24;
    box-shadow: 0 0 8px rgba(251,191,36,0.6);
  }
  66%, 91% {
    background: #7BB4FF;
    box-shadow: 0 0 6px rgba(59,130,246,0.5);
  }
}

/* Stacked labels — only one visible at a time */
.dt-sort-pill__stack {
  position: relative;
  display: inline-block;
  min-width: 58px;
}
.dt-sort-pill__label {
  display: block;
  opacity: 0;
}
.dt-sort-pill__label--idle { position: static; animation: dt-sort-lab-idle 12s ease-in-out infinite; }
.dt-sort-pill__label--attn { position: absolute; inset: 0; animation: dt-sort-lab-attn 12s ease-in-out infinite; }
.dt-sort-pill__label--done { position: absolute; inset: 0; animation: dt-sort-lab-done 12s ease-in-out infinite; }

@keyframes dt-sort-lab-idle {
  0%, 27%       { opacity: 1; }
  30%, 94%      { opacity: 0; }
  97%, 100%     { opacity: 1; }
}
@keyframes dt-sort-lab-attn {
  0%, 27%       { opacity: 0; }
  33%, 58%      { opacity: 1; }
  63%, 100%     { opacity: 0; }
}
@keyframes dt-sort-lab-done {
  0%, 60%       { opacity: 0; }
  66%, 91%      { opacity: 1; }
  94%, 100%     { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   03 · HEAD TRACKING STAGE
   ══════════════════════════════════════════════════════════ */

.dt-track-stage {
  position: absolute;
  inset: clamp(1rem, 2.2vw, 1.75rem);
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr) minmax(0, 2.2fr);
  align-items: center;
  gap: clamp(6px, 1.5vw, 18px);
}

.dt-track-face {
  position: relative;
  width: clamp(86px, 13vw, 128px);
  aspect-ratio: 1;
}
.dt-track-face__svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: dt-track-head 10s ease-in-out infinite;
  transform-origin: 50% 60%;
}
.dt-track-face__head {
  stroke-width: 1.5;
}
.dt-track-face__pupil--l,
.dt-track-face__pupil--r {
  animation: dt-track-eyes 10s ease-in-out infinite;
  transform-origin: center;
}
.dt-track-face__mouth {
  stroke-width: 1.5;
}

.dt-track-viewfinder {
  position: absolute;
  inset: 8%;
  pointer-events: none;
}
.dt-track-vf {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  opacity: 0.75;
}
.dt-track-vf--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.dt-track-vf--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.dt-track-vf--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.dt-track-vf--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.dt-track-pill {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(8,11,16,0.9);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  white-space: nowrap;
}
.dt-track-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: dt-sort-dot-pulse 1.4s ease-in-out infinite;
}

.dt-track-beam {
  width: 100%;
  height: 40px;
  overflow: visible;
}
.dt-track-beam path {
  animation: dt-track-beam 2s linear infinite;
}

.dt-track-window {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: perspective(800px);
  transform-origin: center center;
  animation: dt-track-win 10s ease-in-out infinite;
  will-change: transform;
}
.dt-track-window__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: #1a2030;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 20px;
}
.dt-track-window__bar i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #3a4254;
}
.dt-track-window__bar i:nth-child(1) { background: rgba(255,96,92,0.75); }
.dt-track-window__bar i:nth-child(2) { background: rgba(255,189,68,0.75); }
.dt-track-window__bar i:nth-child(3) { background: rgba(0,202,78,0.75); }
.dt-track-window__bar span {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}

.dt-track-window__viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(46,204,113,0.03), transparent 70%),
    #080b10;
}
.dt-track-window__content {
  display: flex;
  height: 100%;
  width: 300%;
  animation: dt-track-content 10s ease-in-out infinite;
  will-change: transform;
}
.dt-track-pane {
  flex: 0 0 33.333%;
  padding: 10px 12px;
  border-right: 1px dashed rgba(255,255,255,0.05);
  position: relative;
}
.dt-track-pane:last-child { border-right: 0; }
.dt-track-pane__label {
  position: absolute;
  top: 7px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(46,204,113,0.25);
}
.dt-track-pane__body {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--text-sub);
  padding-top: 18px;
}
.dt-track-pane__body .a { color: var(--claude-color); }
.dt-track-pane__body .g { color: var(--accent); }
.dt-track-pane__body .d { color: var(--text-muted); }

.dt-track-window__rail {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
}
.dt-track-window__rail span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: dt-track-rail 10s ease-in-out infinite;
}

/* ── Head-track keyframes (10s loop) ── */
@keyframes dt-track-head {
  0%, 10%   { transform: rotate(0deg); }
  25%, 42%  { transform: rotate(-5deg); }
  50%       { transform: rotate(-5deg); }
  65%, 82%  { transform: rotate(-10deg); }
  95%, 100% { transform: rotate(0deg); }
}
@keyframes dt-track-eyes {
  0%, 10%   { transform: translate(0, 0); }
  25%, 42%  { transform: translate(2.5px, 0); }
  50%       { transform: translate(2.5px, 0); }
  65%, 82%  { transform: translate(4.5px, 0); }
  95%, 100% { transform: translate(0, 0); }
}
@keyframes dt-track-win {
  0%, 10%   { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
  25%, 42%  { transform: perspective(800px) rotateY(4deg) rotateX(-1deg); }
  50%       { transform: perspective(800px) rotateY(4deg) rotateX(-1deg); }
  65%, 82%  { transform: perspective(800px) rotateY(8deg) rotateX(-2deg); }
  95%, 100% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
}
@keyframes dt-track-content {
  0%, 10%   { transform: translateX(0); }
  25%, 50%  { transform: translateX(-33.333%); }
  65%, 82%  { transform: translateX(-66.666%); }
  95%, 100% { transform: translateX(0); }
}
@keyframes dt-track-rail {
  0%, 10%   { transform: translateX(0); }
  25%, 50%  { transform: translateX(100%); }
  65%, 82%  { transform: translateX(200%); }
  95%, 100% { transform: translateX(0); }
}
@keyframes dt-track-beam {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -16; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet / small laptop */
@media (max-width: 960px) {
  .dt-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 620px;
    margin: 0 auto;
  }
  .dt-feature:nth-of-type(even) .dt-feature__visual {
    order: 0;
  }
  .dt-feature__body {
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }
  .dt-feature__visual {
    aspect-ratio: 16 / 10;
  }
}

/* Phone */
@media (max-width: 640px) {
  .dt-showcase { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .dt-features { gap: 3.5rem; }
  .dt-feature__visual {
    aspect-ratio: 5 / 4;
    border-radius: 16px;
    padding: 0.9rem;
  }
  .dt-tile-stage {
    inset: 0.9rem;
  }
  .dt-sort-stage {
    inset: 0.9rem;
  }
  .dt-sort-panel {
    max-width: 280px;
    padding: 11px 10px;
  }
  .dt-sort-list { height: 212px; } /* preserve 60px-per-slot relationship */
  /* Rebuild keyframes to match new slot height = 52px card + 8px gap = 60px; same */
  .dt-tile-win__body { font-size: 5.5px; }
  .dt-tile-bar__title { font-size: 0.58rem; }
  .dt-tile-btn { font-size: 0.56rem; padding: 2px 7px; }
  .dt-tile-btn svg { width: 9px; height: 9px; }
  .dt-track-stage {
    grid-template-columns: auto minmax(14px, 0.5fr) minmax(0, 2fr);
    gap: 6px;
    inset: 0.9rem;
  }
  .dt-track-face { width: 72px; }
  .dt-track-window__bar span { font-size: 0.5rem; }
  .dt-track-pane__body { font-size: 0.54rem; padding-top: 16px; }
  .dt-track-pane__label { font-size: 0.46rem; padding: 1px 5px; }
  .dt-track-pill { font-size: 0.5rem; padding: 2px 7px; }
  .dt-feature__bullets li { font-size: 0.82rem; }
  .dt-feature__desc { font-size: 0.93rem; }
}

/* Very small */
@media (max-width: 400px) {
  .dt-feature__visual {
    aspect-ratio: 1 / 1;
  }
  .dt-track-face { width: 60px; }
  .dt-tile-win__bar span { display: none; }
  .dt-tile-win__body { font-size: 5px; padding: 3px 4px; }
  .dt-sort-panel { max-width: 100%; }
}

/* Reduced-motion — freeze at the "resolved" state of each scene */
@media (prefers-reduced-motion: reduce) {
  .dt-tile-win,
  .dt-tile-btn,
  .dt-sort-card,
  .dt-sort-card--tests,
  .dt-sort-card__pill,
  .dt-sort-pill__dot,
  .dt-sort-pill__label,
  .dt-track-face__svg,
  .dt-track-face__pupil--l,
  .dt-track-face__pupil--r,
  .dt-track-window,
  .dt-track-window__content,
  .dt-track-window__rail span,
  .dt-track-beam path {
    animation: none !important;
  }
  /* Snap tile windows into grid when motion disabled */
  .dt-tile-win { transform: translate(0, 0) rotate(0) !important; }
  /* Freeze sort cards in their Phase 1 positions */
  .dt-sort-card--api { transform: translateY(0); }
  .dt-sort-card--front { transform: translateY(60px); }
  .dt-sort-card--tests { transform: translateY(120px); }
  .dt-sort-card--deploy { transform: translateY(180px); }
  .dt-sort-pill__label--idle { opacity: 1; }
  /* Keep head/window in starting state */
  .dt-track-window { transform: perspective(800px); }
  .dt-track-window__content { transform: translateX(0); }
}
