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

:root {
  --color-bg: #0a0a0f;
  --color-surface: #13131a;
  --color-border: #1e1e2a;
  --color-text: #e4e4ef;
  --color-text-muted: #8888a0;
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-accent: #a78bfa;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--color-text);
  font-weight: 700; font-size: 18px;
}
.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--color-text-muted);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-text); }

/* ===== Hero ===== */
.hero { padding: 160px 0 80px; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-primary-light);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 640px; margin: 0 auto 40px;
  color: var(--color-text-muted); font-size: 18px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: #3a3a50; background: #1a1a28; }

/* Hero Screenshot */
.hero-screenshot { margin-top: 64px; }
.screenshot-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--color-text-muted); gap: 8px;
}
.screenshot-placeholder span { font-size: 16px; font-weight: 600; }
.screenshot-placeholder small { font-size: 12px; opacity: 0.6; }
.screenshot-placeholder.small { aspect-ratio: 16/10; }

/* When real images are added */
.hero-screenshot img,
.screenshot-item img {
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-border);
}

/* ===== Features ===== */
.features { padding: 100px 0; }
.features h2, .how-it-works h2, .screenshots h2, .download h2 {
  text-align: center; font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--color-text-muted);
  font-size: 17px; margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: #3a3a50; transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.7; }

/* ===== How It Works ===== */
.how-it-works { padding: 100px 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.step { text-align: center; padding: 32px; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--color-text-muted); font-size: 14px; line-height: 1.7; }

/* ===== Screenshots ===== */
.screenshots { padding: 100px 0; }
.screenshots-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.screenshot-item { text-align: center; }
.screenshot-caption {
  margin-top: 12px; color: var(--color-text-muted);
  font-size: 14px; font-weight: 500;
}

/* ===== Download ===== */
.download {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04));
}
.app-store-badge { display: inline-block; transition: transform 0.2s; }
.app-store-badge:hover { transform: scale(1.05); }
.app-store-badge img { height: 56px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-left p { color: var(--color-text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--color-text-muted); font-size: 13px;
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-text); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero-sub { font-size: 16px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
