/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08080e;
  --bg-card:     rgba(255,255,255,0.04);
  --bg-card-h:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(255,255,255,0.18);
  --accent:      #8b7cf8;
  --accent-2:    #60a5fa;
  --accent-grad: linear-gradient(135deg, #60a5fa 0%, #8b7cf8 50%, #a78bfa 100%);
  --accent-glow: rgba(139,124,248,0.22);
  --accent-dim:  rgba(139,124,248,0.11);
  --text:        #f5f5f7;
  --text-2:      rgba(245,245,247,0.62);
  --text-3:      rgba(245,245,247,0.36);
  --radius:      16px;
  --radius-sm:   10px;
  --font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

/* ── Light theme ──────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f5f5f7;
  --bg-card:     rgba(0,0,0,0.035);
  --bg-card-h:   rgba(0,0,0,0.06);
  --border:      rgba(0,0,0,0.08);
  --border-h:    rgba(0,0,0,0.20);
  --accent-glow: rgba(139,124,248,0.16);
  --accent-dim:  rgba(139,124,248,0.09);
  --text:        #1d1d1f;
  --text-2:      rgba(29,29,31,0.60);
  --text-3:      rgba(29,29,31,0.36);
}

[data-theme="light"] nav {
  background: rgba(245,245,247,0.80);
  border-bottom-color: rgba(0,0,0,0.07);
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at center, rgba(139,124,248,0.10) 0%, rgba(96,165,250,0.05) 50%, transparent 70%);
}

[data-theme="light"] .feature-card {
  background: #fff;
  border-color: rgba(0,0,0,0.07);
}

[data-theme="light"] .feature-card:hover {
  background: #fafafc;
  border-color: rgba(139,124,248,0.22);
}

[data-theme="light"] .screenshot-item {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="light"] .screenshot-item:hover {
  border-color: rgba(139,124,248,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 40px rgba(139,124,248,0.08);
}

[data-theme="light"] .screenshot-label {
  color: var(--text-2);
}

[data-theme="light"] .price-badge {
  background: #fff;
}

[data-theme="light"] .btn-theme .icon-moon { display: none; }
[data-theme="light"] .btn-theme .icon-sun  { display: block; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Noise texture overlay ────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Utility ──────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent-grad);
  color: #fff !important;
  font-weight: 600 !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px !important;
  transition: opacity 0.15s, transform 0.15s !important;
}

.btn-nav:hover { opacity: 0.88; transform: scale(1.02); }

.btn-theme {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.btn-theme:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  color: var(--text);
}

.btn-theme svg {
  width: 16px;
  height: 16px;
}

/* Dark theme: show moon, hide sun */
[data-theme="dark"] .btn-theme .icon-sun  { display: none; }
[data-theme="dark"] .btn-theme .icon-moon { display: block; }

.btn-lang {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-lang:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(139,124,248,0.14) 0%, rgba(96,165,250,0.06) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(139,124,248,0.28);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero h1 span.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  text-align: left;
  max-width: 560px;
}

.hero-benefits li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-benefits strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 28px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 28px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: var(--bg-card);
}

/* ── App window mockup ────────────────────────────────── */
.hero-mockup {
  width: 100%;
  max-width: 820px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(20,20,28,0.9);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 120px var(--accent-glow);
}

.mockup-bar {
  height: 38px;
  background: rgba(30,30,38,0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mockup-dot.red    { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green  { background: #28c840; }

.mockup-body {
  display: flex;
  min-height: 360px;
}

.mockup-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: rgba(18,18,24,0.8);
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-section {
  background: rgba(255,255,255,0.04);
  border-radius: 9px;
  padding: 10px 12px;
}

.mock-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mock-row {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row.w-60 { width: 60%; }
.mock-row.w-80 { width: 80%; }
.mock-row.w-40 { width: 40%; }

.mock-btn {
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  margin-top: 4px;
}

.mock-btn.green {
  background: rgba(48,209,88,0.15);
  border: 1px solid rgba(48,209,88,0.32);
  color: #30d158;
}

.mock-btn.gray {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.mockup-grid {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.mock-slide {
  aspect-ratio: 16/9;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.mock-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(96,165,250,0.06) 0%,
    rgba(139,124,248,0.06) 100%);
}

.mock-slide-num {
  position: absolute;
  bottom: 5px;
  left: 7px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-3);
}

.mock-slide.active {
  border-color: rgba(139,124,248,0.6);
  box-shadow: 0 0 0 2px rgba(139,124,248,0.18);
}

/* ── Section shared ───────────────────────────────────── */
section { position: relative; z-index: 1; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
}

/* ── Features ─────────────────────────────────────────── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header .section-sub { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(139,124,248,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Screenshots ──────────────────────────────────────── */
.screenshots {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.screenshots-header {
  text-align: center;
  margin-bottom: 52px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.screenshot-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(20,20,28,0.8);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
  border-color: rgba(139,124,248,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(139,124,248,0.08);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 1px);
}

/* Placeholder when no screenshot provided */
.screenshot-item img[src="screenshot-1.png"],
.screenshot-item img[src="screenshot-2.png"],
.screenshot-item img[src="screenshot-3.png"] {
  min-height: 200px;
  object-fit: cover;
}

.screenshot-item img:not([src]),
.screenshot-item img[src=""] {
  display: none;
}

.screenshot-label {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
  text-align: center;
}

@media (max-width: 640px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

/* ── How it works ─────────────────────────────────────── */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-header .section-sub { margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(16.67% + 22px);
  right: calc(16.67% + 22px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-2) 100%);
  opacity: 0.3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px 32px;
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(139,124,248,0.35);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-icon { font-size: 22px; }

.step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 200px;
}

/* ── CTA band ─────────────────────────────────────────── */
.cta-band {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 36px;
}

.price-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 20px;
}

.price-badge strong { color: var(--text-2); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.footer-brand img { width: 20px; height: 20px; border-radius: 5px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-2); }

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Privacy page ─────────────────────────────────────── */
.privacy-hero {
  padding: 120px 24px 64px;
  text-align: center;
}

.privacy-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.privacy-hero p { font-size: 16px; color: var(--text-2); }

.privacy-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.privacy-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.privacy-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.privacy-content li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.privacy-content strong { color: var(--text); }

.privacy-highlight {
  background: var(--accent-dim);
  border: 1px solid rgba(139,124,248,0.22);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.privacy-highlight p {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

/* ── Who it's for ────────────────────────────────────────── */
.audience {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.audience-header {
  text-align: center;
  margin-bottom: 56px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.audience-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.audience-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.audience-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── FAQ page ─────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 48px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--border-h);
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-cta {
  margin-top: 56px;
  text-align: center;
  padding-bottom: 16px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .mockup-sidebar { display: none; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .mockup-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-benefits li { white-space: normal; }
}
