/* ─────────────────────────────────────────────
   StorageRadar Landing Page — style.css
   ───────────────────────────────────────────── */

/* ── Custom Properties ── */
:root {
  --bg-0:    #080c14;
  --bg-1:    #0d1220;
  --bg-2:    #131828;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);

  --border:  rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);

  --cyan:        #06b6d4;
  --cyan-light:  #22d3ee;
  --cyan-dim:    rgba(6,182,212,0.12);
  --cyan-glow:   rgba(6,182,212,0.25);

  --purple:      #a855f7;
  --purple-dim:  rgba(168,85,247,0.12);

  --green:       #10b981;
  --green-dim:   rgba(16,185,129,0.12);

  --orange:      #f59e0b;
  --orange-dim:  rgba(245,158,11,0.12);

  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,0.12);

  --teal:        #14b8a6;
  --teal-dim:    rgba(20,184,166,0.12);

  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;

  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-card: 0 2px 20px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px rgba(6,182,212,0.15);
  --transition:  all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light theme variables ── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-0:    #f5f8fc;
    --bg-1:    #edf1f8;
    --bg-2:    #e2e8f2;
    --bg-card: rgba(0,0,0,0.025);
    --bg-card-hover: rgba(0,0,0,0.042);
    --border:  rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.14);
    --cyan:        #0284c7;
    --cyan-light:  #0891b2;
    --cyan-dim:    rgba(2,132,199,0.1);
    --cyan-glow:   rgba(2,132,199,0.2);
    --text:        #0f172a;
    --text-muted:  #475569;
    --text-dim:    #94a3b8;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 40px rgba(2,132,199,0.12);
  }
}

[data-theme="light"] {
  --bg-0:    #f5f8fc;
  --bg-1:    #edf1f8;
  --bg-2:    #e2e8f2;
  --bg-card: rgba(0,0,0,0.025);
  --bg-card-hover: rgba(0,0,0,0.042);
  --border:  rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --cyan:        #0284c7;
  --cyan-light:  #0891b2;
  --cyan-dim:    rgba(2,132,199,0.1);
  --cyan-glow:   rgba(2,132,199,0.2);
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-dim:    #94a3b8;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(2,132,199,0.12);
}

[data-theme="dark"] {
  --bg-0:    #080c14;
  --bg-1:    #0d1220;
  --bg-2:    #131828;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);
  --border:  rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);
  --cyan:        #06b6d4;
  --cyan-light:  #22d3ee;
  --cyan-dim:    rgba(6,182,212,0.12);
  --cyan-glow:   rgba(6,182,212,0.25);
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --shadow-card: 0 2px 20px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px rgba(6,182,212,0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  color: var(--cyan-light);
  background: var(--cyan-dim);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  background: var(--cyan-dim);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan-light) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--r);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: #000;
  border: 1px solid var(--cyan);
}
.btn-primary:hover {
  background: var(--cyan-light);
  border-color: var(--cyan-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--cyan-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--text);
}

.btn-sm  { font-size: 0.85rem; padding: 8px 16px; }
.btn-lg  { font-size: 1rem;    padding: 14px 24px; }
.btn-xl  { font-size: 1.05rem; padding: 16px 32px; border-radius: var(--r-lg); }
.btn-full { width: 100%; justify-content: center; padding-top: 13px; padding-bottom: 13px; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(8,12,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 8px; }

/* ── Theme toggle button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--bg-card-hover); color: var(--text); }
.theme-toggle:focus { outline: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Sun icon = visible in dark mode (click → switch to light) */
.icon-sun  { display: flex; }
.icon-moon { display: none; }

/* When system prefers light and no explicit theme set */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .icon-sun  { display: none; }
  html:not([data-theme="dark"]) .icon-moon { display: flex; }
}
/* Explicit themes */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: flex; }
[data-theme="dark"]  .icon-sun  { display: flex; }
[data-theme="dark"]  .icon-moon { display: none; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-mobile-toggle:focus { outline: none; }
.nav-mobile-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nav-mobile-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 20px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  /* sit above page content */
  position: relative;
  z-index: 999;
}
.nav-mobile-menu a {
  padding: 14px 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-menu a:hover { color: var(--text); }
.nav-mobile-menu a:last-child { border-bottom: none; }
/* Fix button text color — override the generic 'a' rule above */
.nav-mobile-menu .btn-primary {
  color: #000 !important;
  margin-top: 12px;
  border-bottom: none;
  padding: 14px 20px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

/* Radar Background */
.radar-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}

.radar-ring {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(6,182,212,0.12);
}
.r1 { width: 500px; height: 500px; }
.r2 { width: 700px; height: 700px; }
.r3 { width: 900px; height: 900px; }
.r4 { width: 1100px; height: 1100px; border-color: rgba(6,182,212,0.05); }

.radar-crosshair {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6,182,212,0.06);
}
.radar-crosshair.h { width: 1100px; height: 1px; }
.radar-crosshair.v { width: 1px; height: 1100px; left: calc(90% - 550px); transform: none; top: calc(50% - 550px); }

.radar-sweep {
  position: absolute;
  right: -10%;
  top: 50%;
  transform-origin: center;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  transform: translateY(-50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(6,182,212,0.18) 25deg,
    rgba(6,182,212,0.06) 45deg,
    transparent 60deg
  );
  animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.radar-dots { position: absolute; inset: 0; }

.radar-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: dotFade var(--dur, 3s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes dotFade {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* Background gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 60% 50%, rgba(6,182,212,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(168,85,247,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--cyan); }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw + 0.5rem, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── App Window Mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-window {
  width: 100%;
  max-width: 540px;
  background: #0e1322;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 60px rgba(6,182,212,0.08);
  animation: windowFloat 5s ease-in-out infinite;
}

@keyframes windowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.traffic-lights { display: flex; gap: 6px; flex-shrink: 0; }
.tl {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.tl-red    { background: #ff5f57; }
.tl-yellow { background: #ffbd2e; }
.tl-green  { background: #28ca41; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.window-search-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.window-body {
  display: flex;
  height: 280px;
}

.window-sidebar {
  width: 130px;
  flex-shrink: 0;
  background: #0d1220;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.4);
  border-radius: 6px;
  margin: 1px 6px;
  transition: all 0.15s;
}
.sb-item.active {
  background: rgba(6,182,212,0.12);
  color: var(--cyan-light);
  font-weight: 600;
}

.window-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.window-toolbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 34px;
}

.wt-tab {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.wt-tab.active {
  color: var(--cyan-light);
  border-bottom-color: var(--cyan);
}

.wt-right { margin-left: auto; }
.status-badge.completed {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 3px 8px;
  border-radius: 100px;
}

.treemap-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
}

.treemap-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 6px;
  overflow: hidden;
}

.tm-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 10px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.tm-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.tm-name { font-size: 0.64rem; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.2; }
.tm-size { font-size: 0.58rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

.tm-app  { background: rgba(99,102,241,0.55); }
.tm-col-right { display: flex; flex-direction: column; gap: 4px; }
.tm-dev  { background: rgba(6,182,212,0.5); flex: 1; }
.tm-row-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tm-docs { background: rgba(168,85,247,0.5); }
.tm-dl   { background: rgba(245,158,11,0.5); }

.treemap-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
}
.bc-current { color: rgba(255,255,255,0.6); font-weight: 500; }
.bc-sep { color: rgba(255,255,255,0.2); }

.treemap-total {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 40px;
  gap: 2px;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Features ── */
.features-section { background: var(--bg-0); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.fc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.fc-icon svg { width: 22px; height: 22px; }

.fc-icon.cyan   { background: var(--cyan-dim);   color: var(--cyan);   }
.fc-icon.purple { background: var(--purple-dim); color: var(--purple); }
.fc-icon.green  { background: var(--green-dim);  color: var(--green);  }
.fc-icon.orange { background: var(--orange-dim); color: var(--orange); }
.fc-icon.red    { background: var(--red-dim);    color: var(--red);    }
.fc-icon.teal   { background: var(--teal-dim);   color: var(--teal);   }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.fc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.fc-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── How It Works ── */
.how-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  opacity: 0;
  transform: translateY(20px);
}
.step.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-arrow {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Pricing ── */
.pricing-section { background: var(--bg-0); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.pricing-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(6,182,212,0.06) 0%, rgba(168,85,247,0.04) 100%);
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(6,182,212,0.1), 0 20px 60px rgba(0,0,0,0.3);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  padding: 4px 14px;
  border-radius: 100px;
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.tier-price {
  margin-bottom: 16px;
}

.price-main {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-left: 4px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.tier-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.tier-features li.inc { color: var(--text-muted); }
.tier-features li.inc::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.tier-features li.exc { color: var(--text-dim); }
.tier-features li.exc::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 36px;
}

/* ── Privacy ── */
.privacy-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.privacy-content h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 16px 0;
}

.privacy-content > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-10px);
}
.privacy-point.visible {
  opacity: 1; transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pp-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.privacy-point strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.privacy-point p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Privacy visual */
.privacy-visual { display: flex; justify-content: center; }

.privacy-card-vis {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pv-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.pv-path-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pv-path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.pv-path.child { padding-left: 20px; }
.pv-icon { font-size: 0.9rem; flex-shrink: 0; }
.pv-path code {
  font-size: 0.72rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
}

.pv-no-cloud {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
}
.pv-no-cloud svg { color: var(--text-dim); flex-shrink: 0; }

/* ── FAQ ── */
.faq-section { background: var(--bg-0); }

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

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--cyan-light); }

.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-a { max-height: 400px; }

.faq-a p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 20px;
}

/* ── Download CTA ── */
.download-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 100px 0;
}

.download-inner {
  position: relative;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(6,182,212,0.04) 0%, rgba(168,85,247,0.03) 100%);
}

.download-radar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6,182,212,0.08);
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
}
.dl-r1 { width: 300px; height: 300px; }
.dl-r2 { width: 500px; height: 500px; border-color: rgba(6,182,212,0.05); }
.dl-r3 { width: 700px; height: 700px; border-color: rgba(6,182,212,0.03); }

.dl-sweep {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(6,182,212,0.1) 25deg,
    transparent 50deg
  );
  animation: radarSpin 4s linear infinite;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-inner h2 {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.download-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.download-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }

.download-req {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-brand .nav-logo { margin-bottom: 14px; }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 300px;
}

.footer-cols {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-made { font-size: 0.82rem; color: var(--text-dim); }

/* ── Scroll Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Staggered delays for grids */
.features-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.32s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.40s; }

.pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid .pricing-card:nth-child(3) { transition-delay: 0.2s; }

.privacy-points .privacy-point:nth-child(2) { transition-delay: 0.1s; }
.privacy-points .privacy-point:nth-child(3) { transition-delay: 0.2s; }
.privacy-points .privacy-point:nth-child(4) { transition-delay: 0.3s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step-arrow { display: none; }

  .privacy-grid { grid-template-columns: 1fr; gap: 48px; }

  .radar-bg { opacity: 0.4; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile-menu.open { display: flex; }
  /* Solid nav bg when mobile menu is open */
  .site-nav:has(.nav-mobile-menu.open) {
    background: var(--bg-0);
    border-bottom-color: var(--border);
  }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .stats-grid { gap: 0; flex-wrap: wrap; }
  .stat-item { padding: 12px 24px; }
  .stat-sep { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { justify-content: flex-start; }

  .download-inner { padding: 60px 24px; }
  .privacy-visual { display: none; }

  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .pricing-card { padding: 24px 20px; }
  .section-header { margin-bottom: 44px; }
}

/* ── Light theme: mobile theme-toggle positioning ── */
@media (max-width: 768px) {
  .theme-toggle { margin-left: auto; }
}

/* ── Light theme: component overrides ── */

/* Nav scrolled: use semi-transparent version of bg-0 */
[data-theme="light"] .site-nav.scrolled,
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .site-nav.scrolled {
    background: rgba(245,248,252,0.9);
    box-shadow: 0 1px 16px rgba(0,0,0,0.1);
  }
}
[data-theme="light"] .site-nav.scrolled {
  background: rgba(245,248,252,0.9);
  box-shadow: 0 1px 16px rgba(0,0,0,0.1);
}

/* Feature cards: shadow instead of border-glow */
[data-theme="light"] .feature-card {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* App window: keep dark regardless of theme (it's a product mockup) */
[data-theme="light"] .app-window {
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.08);
}

/* Pricing featured card */
[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(135deg, rgba(2,132,199,0.06) 0%, rgba(139,92,246,0.04) 100%);
}

/* Privacy path card */
[data-theme="light"] .pv-no-cloud {
  background: rgba(0,0,0,0.04);
}

/* Download CTA inner */
[data-theme="light"] .download-inner {
  background: linear-gradient(135deg, rgba(2,132,199,0.05) 0%, rgba(139,92,246,0.03) 100%);
  border-color: rgba(0,0,0,0.1);
}

/* Hero gradient overlay */
[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 60% 80% at 60% 50%, rgba(2,132,199,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(139,92,246,0.05) 0%, transparent 60%);
}

/* Radar rings: darker for light bg */
[data-theme="light"] .radar-ring { border-color: rgba(2,132,199,0.14); }
[data-theme="light"] .r4 { border-color: rgba(2,132,199,0.06); }
[data-theme="light"] .radar-crosshair { background: rgba(2,132,199,0.07); }
[data-theme="light"] .radar-sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(2,132,199,0.14) 25deg,
    rgba(2,132,199,0.04) 45deg,
    transparent 60deg
  );
}
[data-theme="light"] .dl-ring { border-color: rgba(2,132,199,0.1); }
[data-theme="light"] .dl-sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(2,132,199,0.08) 25deg,
    transparent 50deg
  );
}

/* Stats bar border */
[data-theme="light"] .stats-bar {
  border-color: rgba(0,0,0,0.08);
}

/* Section backgrounds that use bg-1 */
[data-theme="light"] .how-section,
[data-theme="light"] .privacy-section,
[data-theme="light"] .download-section {
  border-color: rgba(0,0,0,0.07);
}
