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

:root {
  --accent:          #33D966;
  --accent-dim:      rgba(51, 217, 102, 0.15);
  --accent-glow:     rgba(51, 217, 102, 0.08);
  --bg:              #000;
  --surface:         rgba(255, 255, 255, 0.05);
  --surface-hover:   rgba(255, 255, 255, 0.08);
  --border:          rgba(255, 255, 255, 0.09);
  --border-strong:   rgba(255, 255, 255, 0.16);
  --text:            #fff;
  --text-2:          rgba(255, 255, 255, 0.55);
  --text-3:          rgba(255, 255, 255, 0.30);
  --font:            -apple-system, "SF Pro Display", BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius-sm:       10px;
  --radius-md:       16px;
  --radius-lg:       24px;
  --radius-xl:       40px;
  --max-w:           1080px;
  --nav-h:           64px;
}

html[data-theme="light"] {
  --accent-dim:      rgba(34, 166, 75, 0.14);
  --accent-glow:     rgba(34, 166, 75, 0.08);
  --bg:              #f7faf8;
  --surface:         rgba(21, 44, 30, 0.055);
  --surface-hover:   rgba(21, 44, 30, 0.09);
  --border:          rgba(21, 44, 30, 0.12);
  --border-strong:   rgba(21, 44, 30, 0.20);
  --text:            #102116;
  --text-2:          rgba(16, 33, 22, 0.66);
  --text-3:          rgba(16, 33, 22, 0.48);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4 {
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 700;
}

/* ─── Layout ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Glass ─────────────────────────────────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ─── Navbar ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(51, 217, 102, 0.35);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-xl);
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { opacity: 0.88; transform: scale(0.98); }

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

.preference-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.preference-control:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-icon { width: 16px; height: 16px; }
.theme-icon--moon { display: none; }
.theme-toggle[data-theme="light"] .theme-icon--sun { display: none; }
.theme-toggle[data-theme="light"] .theme-icon--moon { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(51, 217, 102, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 90% 90%, rgba(51, 217, 102, 0.07) 0%, transparent 55%),
    #000;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 72px;
  padding: 96px 0 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(51, 217, 102, 0.25);
  border-radius: var(--radius-xl);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  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-title {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: var(--radius-xl);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 32px rgba(51, 217, 102, 0.28);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(51, 217, 102, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 0;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.btn-secondary:hover { color: var(--text); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Phone Mockup ───────────────────────────────────── */
.phone-wrap {
  position: relative;
  flex-shrink: 0;
}

.phone-glow {
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(51, 217, 102, 0.14) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.phone {
  width: 268px;
  height: 545px;
  background: #111;
  border-radius: 48px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 7px #0a0a0a,
    0 0 0 8px rgba(255,255,255,0.06),
    0 48px 96px rgba(0,0,0,0.80),
    0 16px 48px rgba(0,0,0,0.50);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 43px;
  overflow: hidden;
  background: #0a0a0a;
}

.phone-screen-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 45% at 50% -5%, rgba(51, 217, 102, 0.24) 0%, transparent 60%),
    #0a0a0a;
}

.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}

.phone-ui {
  position: absolute;
  inset: 0;
  padding: 58px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phone-ui-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 6px;
}

.phone-ui-big-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}

.phone-ui-big-label {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 18px;
}

.phone-ui-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
}

.phone-ui-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-ui-card-dot.green  { background: var(--accent); }
.phone-ui-card-dot.orange { background: rgba(255, 166, 0, 0.85); }

.phone-ui-card-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-ui-card-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}

.phone-ui-card-line.sm { width: 55%; height: 6px; opacity: 0.55; }

.phone-ui-card-value {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.phone-ui-progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding: 0 2px;
}

.phone-ui-progress-bar-bg {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.phone-ui-progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.phone-ui-progress-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
}

/* ─── Phone Screenshot Carousel ─────────────────────── */
.phone-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.65s ease;
  display: block;
}

.phone-screenshot.active { opacity: 1; }
.phone-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.phone-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: none;
  padding: 0;
}

.phone-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Screenshots Gallery ────────────────────────────── */
.screenshots {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(51, 217, 102, 0.05) 0%, transparent 65%),
    var(--bg);
  overflow: hidden;
}

.screenshots-header {
  text-align: center;
  margin-bottom: 64px;
}

.screenshots-header .section-sub { margin: 0 auto; }

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

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.screenshot-phone {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 0 0 5px #0a0a0a,
    0 0 0 6px rgba(255,255,255,0.06),
    0 32px 64px rgba(0,0,0,0.65);
  overflow: hidden;
  position: relative;
}

.screenshot-phone picture,
.screenshot-phone img {
  width: 100%;
  height: 100%;
  display: block;
}

.screenshot-phone img { object-fit: cover; object-position: top center; }

.screenshot-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.screenshot-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.screenshot-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 180px;
}

/* ─── Platform Bar ───────────────────────────────────── */
.platform-bar {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.platform-item + .platform-item {
  border-left: 1px solid var(--border);
}

.platform-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

/* ─── Section Base ───────────────────────────────────── */
section { padding: 100px 0; }

.section-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 560px;
  letter-spacing: -0.01em;
}

/* ─── Stats Strip ────────────────────────────────────── */
.stats-strip {
  padding: 64px 0;
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-cell {
  padding: 32px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-cell-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
}

.stat-cell-num span { color: var(--accent); }

.stat-cell-label {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ─── Features ───────────────────────────────────────── */
.features {
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(51, 217, 102, 0.04) 0%, transparent 60%),
    var(--bg);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-sub { margin: 0 auto; }

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

.features-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid--extended {
  margin-top: 28px;
}

.feature-detail-header {
  max-width: 640px;
  margin: 96px auto 40px;
  text-align: center;
}

.feature-detail-header h3 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.feature-detail-header p {
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.feature-availability {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.feature-card {
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(51, 217, 102, 0.18);
  color: var(--accent);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Premium ────────────────────────────────────────── */
.premium {
  background:
    radial-gradient(ellipse 70% 60% at 100% 50%, rgba(51, 217, 102, 0.04) 0%, transparent 60%),
    var(--bg);
}

.premium-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.premium-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.premium-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.premium-table thead th:not(:first-child) { text-align: center; }
.premium-table th.pro-col { color: var(--accent); }

.premium-table tbody tr { border-top: 1px solid var(--border); }
.premium-table tbody tr:hover { background: rgba(255,255,255,0.025); }

.premium-table td {
  padding: 13px 18px;
  color: var(--text-2);
  font-size: 14px;
}

.premium-table td:not(:first-child) { text-align: center; }

.premium-table td:first-child {
  color: rgba(255,255,255,0.80);
  font-weight: 500;
}

.check     { color: var(--accent); font-size: 15px; font-weight: 700; }
.no        { color: var(--text-3); font-size: 16px; line-height: 1; }
.free-note { font-size: 12px; color: var(--text-3); }

/* ─── Download ───────────────────────────────────────── */
.download {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(51, 217, 102, 0.09) 0%, transparent 65%),
    var(--bg);
  pointer-events: none;
}

.download h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
  position: relative;
}

.download p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 44px;
  position: relative;
  letter-spacing: -0.01em;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #000;
  padding: 14px 26px;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 40px rgba(255,255,255,0.12);
  position: relative;
}

.app-store-btn:hover {
  opacity: 0.90;
  transform: translateY(-2px);
  box-shadow: 0 16px 60px rgba(255,255,255,0.18);
}

.app-store-text-sm {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.50;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-store-text-lg {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}

.download-note {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
  position: relative;
  letter-spacing: 0.02em;
}

.app-store-btn { margin-top: 26px; }
.app-store-btn[hidden] { display: none; }

.app-store-link-note {
  margin: 10px auto 0 !important;
  color: var(--text-3) !important;
  font-size: 13px !important;
}

.faq-section {
  padding: 112px 0;
  background: var(--bg);
}

.faq-section .section-sub { margin: 16px auto 0; }
.faq-section .faq-list { max-width: 760px; margin: 42px auto 0; }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-logo-icon {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

html[data-theme="light"] .nav.scrolled { background: rgba(247, 250, 248, 0.84); }
html[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(51, 217, 102, 0.20) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 90% 90%, rgba(51, 217, 102, 0.09) 0%, transparent 55%),
    #f7faf8;
}
html[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(16, 33, 22, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 22, 0.055) 1px, transparent 1px);
}
html[data-theme="light"] .phone,
html[data-theme="light"] .screenshot-phone { border-color: rgba(16, 33, 22, 0.20); }
html[data-theme="light"] .phone { box-shadow: 0 0 0 8px rgba(16, 33, 22, 0.06), 0 48px 96px rgba(16, 33, 22, 0.22), 0 16px 48px rgba(16, 33, 22, 0.14); }
html[data-theme="light"] .screenshot-phone { box-shadow: 0 0 0 6px rgba(16, 33, 22, 0.05), 0 32px 64px rgba(16, 33, 22, 0.20); }
html[data-theme="light"] .platform-bar,
html[data-theme="light"] .stats-strip,
html[data-theme="light"] .screenshots,
html[data-theme="light"] .premium { background-color: var(--bg); }
html[data-theme="light"] .premium-table thead th { background: rgba(16, 33, 22, 0.04); }
html[data-theme="light"] .premium-table tbody tr:hover { background: rgba(16, 33, 22, 0.035); }
html[data-theme="light"] .premium-table td:first-child,
html[data-theme="light"] .legal-content strong { color: var(--text); }
html[data-theme="light"] .app-store-btn { box-shadow: 0 8px 40px rgba(16, 33, 22, 0.16); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ─── Legal Pages ────────────────────────────────────── */
.legal-wrap {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 100px;
}

.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 16px;
}

.legal-header p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.6;
}

.legal-header .updated {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
}

.legal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.legal-toc a:hover { background: var(--surface); color: var(--text); }

.legal-content h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
  margin: 52px 0 14px;
  padding-top: 4px;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.01em;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.80;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 16px; }

.legal-content li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 7px;
}

.legal-content strong { color: rgba(255,255,255,0.85); }

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-highlight {
  background: var(--accent-dim);
  border: 1px solid rgba(51, 217, 102, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}

.legal-highlight p {
  color: rgba(255,255,255,0.80);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.legal-highlight strong { color: var(--accent); }

/* ─── Support Page ───────────────────────────────────── */
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 6px; }

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(51, 217, 102, 0.28); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  transition: background 0.2s;
  color: var(--text);
  cursor: pointer;
}

.faq-q:hover { background: var(--surface-hover); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-item.open .faq-q { background: rgba(51, 217, 102, 0.06); }

.faq-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.2s;
  color: var(--text-2);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-dim);
  color: var(--accent);
}

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-a-inner {
  padding: 4px 20px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

.faq-a-inner strong { color: var(--text); }
.faq-a-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.contact-card {
  margin-top: 80px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 0.75; }

.info-table {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.info-row:first-child { border-top: none; }
.info-row-label { color: var(--text-2); }
.info-row-value { font-weight: 600; color: var(--text); }

/* ─── Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* stagger */
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.30s; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-wrap { order: -1; }

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

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

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

  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { display: none; }

  .contact-card { grid-template-columns: 1fr; gap: 32px; }

  .screenshots-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  .preference-control { min-width: 34px; height: 34px; padding: 0 9px; }
  .nav-cta { padding: 8px 10px; font-size: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .platform-item { padding: 0 16px; font-size: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .contact-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .screenshots-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 24px 16px;
    margin: 0 -24px;
  }
  .screenshots-track::-webkit-scrollbar { display: none; }
  .screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: 60vw;
    min-width: 200px;
    max-width: 240px;
  }
  .screenshot-phone { max-width: 100%; }
}
