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

:root {
  --bg-base:      #0e1420;
  --bg-panel:     #111827;
  --bg-elevated:  #1a2235;
  --bg-card:      #162032;
  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-dim:   rgba(59,130,246,0.12);
  --accent-glow:  rgba(59,130,246,0.25);
  --text-primary: #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:   #64748b;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(59,130,246,0.4);
  --danger:       #ef4444;
  --success:      #22c55e;
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--text-secondary); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Nav ────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(14,20,32,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-logo-placeholder {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-ctas { display: flex; gap: 10px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 { margin-bottom: 20px; }

.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Screenshot frame */
.hero-screenshot {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.1),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(59,130,246,0.08);
  position: relative;
}

.screenshot-placeholder {
  width: 100%;
  /* 16:9 aspect ratio placeholder — replace src with real screenshot */
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.screenshot-placeholder .ss-icon { font-size: 48px; opacity: 0.3; }

.hero-screenshot img {
  width: 100%;
  display: block;
}

/* ── Section shared ─────────────────────────────────────────────────── */
section { padding: 96px 5%; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 16px; }
.section-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

.section-header { text-align: center; }
.section-header .section-sub { margin-left: auto; margin-right: auto; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border), var(--accent));
  opacity: 0.4;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--accent-dim);
  position: relative;
  z-index: 1;
}

.step h3 { color: var(--text-primary); }
.step p  { font-size: 14px; }

/* ── Features ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p { font-size: 14px; line-height: 1.6; }

/* ── Pricing / Comparison ───────────────────────────────────────────── */
.pricing { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card.pro {
  border-color: var(--border-hover);
  background: linear-gradient(160deg, #162032 0%, #0e1a2e 100%);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 24px 64px rgba(59,130,246,0.08);
  position: relative;
  overflow: hidden;
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.plan-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: super;
}

.plan-price sup {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-list li .check { color: var(--success); font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.feature-list li .cross { color: var(--text-muted); font-size: 13px; flex-shrink: 0; margin-top: 1px; opacity: 0.5; }
.feature-list li.locked { opacity: 0.5; }

/* ── Screenshots ────────────────────────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.screenshot-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.screenshot-card .ss-img {
  width: 100%;
  /* 16:9 — replace with real screenshot */
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.screenshot-caption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  border-top: 1px solid var(--border);
}

/* ── CTA Banner ─────────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  background: linear-gradient(160deg, #0e1a2e 0%, var(--bg-base) 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59,130,246,0.12), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p  { margin-bottom: 36px; font-size: 17px; }
.cta-banner .hero-ctas { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left .nav-logo-placeholder {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-primary); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 64px 20px; }
  .hero { padding: 72px 20px 60px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }

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

  .screenshots-grid { grid-template-columns: 1fr; }

  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .nav-ctas .btn-secondary { display: none; }
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.screenshot-card img { cursor: zoom-in; }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
#lightbox.open { display: flex; }

#lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  image-rendering: pixelated;
  cursor: zoom-out;
}

#lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
#lightbox-close:hover { background: rgba(255,255,255,0.2); }
