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

:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #16161f;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --text: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #666680;
  --accent: #a78bfa;
  --accent-dim: rgba(167,139,250,0.15);
  --accent-strong: #8b5cf6;
  --success: #22c55e;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

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

@media (min-width: 769px) {
  .container { padding: 0 24px; }
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: var(--radius-lg); min-height: 52px; }
@media (max-width: 480px) {
  .btn-lg { padding: 14px 20px; font-size: 14px; min-height: 48px; }
}
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 2px 16px rgba(139,92,246,0.3);
}
.btn-primary:hover {
  background: #7c3aed;
  box-shadow: 0 4px 24px rgba(139,92,246,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Badges ──────────────────────────────────────── */
.badge, .section-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(167,139,250,0.15);
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.06);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  padding: 8px 4px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { flex-shrink: 0; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; height: 56px; }
  .nav-logo { height: 26px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.is-open {
    max-height: 280px;
    opacity: 1;
  }
  .nav-links a {
    display: block;
    padding: 14px 12px;
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .nav-inner { padding: 0 24px; height: 64px; }
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 60px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
  display: block;
}
.hero .badge {
  margin-bottom: 24px;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
  padding: 0 8px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 8px;
}
.hero-actions .btn {
  min-height: 48px;
  padding: 14px 24px;
  -webkit-tap-highlight-color: transparent;
}
.hero-screenshot {
  position: relative;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.hero-app-window {
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1220 0%, #0b0d17 100%);
}

.hero-app-titlebar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.hero-app-traffic {
  display: flex;
  gap: 6px;
}

.hero-app-traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.hero-app-traffic span:nth-child(1) { background: #ff5f57; }
.hero-app-traffic span:nth-child(2) { background: #febc2e; }
.hero-app-traffic span:nth-child(3) { background: #28c840; }

.hero-app-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.hero-app-header-center i {
  width: 14px;
  height: 14px;
}

.hero-app-idle {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 2px 6px;
}

.hero-app-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-app-local-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.35);
  color: #86efac;
  background: rgba(34,197,94,0.1);
}

.hero-app-local-pill i {
  width: 12px;
  height: 12px;
}

.hero-app-clear {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-app-clear i {
  width: 12px;
  height: 12px;
}

.hero-app-main {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 460px;
}

.hero-app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(3, 6, 18, 0.65);
}

.hero-side-new {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.hero-side-new i {
  width: 14px;
  height: 14px;
}

.hero-side-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 6px;
  text-align: left;
}

.hero-side-item i {
  width: 14px;
  height: 14px;
}

.hero-side-item.is-active {
  border-color: rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.16);
  color: #ffffff;
}

.hero-side-status {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

.hero-side-status p {
  margin: 0 0 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.66);
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-side-status i {
  width: 12px;
  height: 12px;
}

.hero-side-user {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-side-user-email {
  font-size: 11px;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-side-user-plan {
  font-size: 10px;
  color: #fde68a;
  border: 1px solid rgba(250,204,21,0.35);
  background: rgba(234,179,8,0.12);
  border-radius: 999px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.hero-app-chat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background:
    radial-gradient(800px 280px at 100% -30%, rgba(139,92,246,0.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.hero-chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-chat-avatar img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hero-chat-bubble {
  max-width: 90%;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.55;
}

.hero-chat-user {
  justify-content: flex-end;
}

.hero-chat-user .hero-chat-bubble {
  background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(59,130,246,0.3));
  border-color: rgba(167,139,250,0.45);
}

.hero-chat-meta {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,0.78);
}

.hero-chat-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-chat-meta i {
  width: 12px;
  height: 12px;
}

.hero-chat-code {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2, 6, 23, 0.75);
  overflow-x: auto;
}

.hero-chat-code code {
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.hero-chat-input {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.hero-chat-input i {
  width: 14px;
  height: 14px;
  color: #c4b5fd;
}

.hero-chat-input button {
  margin-left: auto;
  border: 1px solid rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.2);
  color: #e9ddff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.hero-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.hero-chat-message.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}

.hero-chat-bubble-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-chat-bubble-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  animation: hero-dot 1s infinite ease-in-out;
}

.hero-chat-bubble-typing span:nth-child(2) { animation-delay: .15s; }
.hero-chat-bubble-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes hero-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (min-width: 769px) {
  .hero { padding: 160px 0 80px; }
  .hero-logo { width: 64px; height: 64px; margin-bottom: 20px; }
  .hero .badge { margin-bottom: 28px; }
  .hero h1 { margin: 0 0 20px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-actions { gap: 14px; }
  .hero-screenshot { margin-top: 56px; border-radius: var(--radius-xl); }
}

@media (max-width: 900px) {
  .hero-app-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-app-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-side-item { margin-bottom: 0; }
  .hero-side-new {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .hero-side-status {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 10px;
  }
  .hero-side-user {
    grid-column: 1 / -1;
    margin-top: 2px;
  }
}

@media (max-width: 640px) {
  .hero-app-titlebar {
    padding: 0 10px;
  }
  .hero-app-header-center {
    font-size: 12px;
  }
  .hero-app-local-pill {
    font-size: 10px;
    padding: 5px 7px;
  }
  .hero-app-clear {
    display: none;
  }
  .hero-app-chat {
    padding: 12px;
    gap: 10px;
  }
  .hero-chat-bubble {
    max-width: 100%;
    font-size: 12px;
    padding: 10px 11px;
  }
}

/* Screenshot images: show img when available, show placeholder when img fails */
.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot-img[src=""],
.screenshot-img:not([src]) {
  display: none;
}
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
/* Hide placeholder if the real image loaded */
.screenshot-img + .screenshot-placeholder {
  display: flex;
}

/* ── Trust bar ───────────────────────────────────── */
.trust {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-logo-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.trust-logo-item .trust-logo-frame {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 10px;
  box-sizing: border-box;
}
.trust-logo-item .trust-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.trust-logo-item .trust-logo-frame:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}
.trust-logo-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

@media (min-width: 769px) {
  .trust { padding: 48px 0; }
  .trust-label { font-size: 13px; margin-bottom: 20px; }
  .trust-logos { gap: 36px; }
}

/* ── Features ────────────────────────────────────── */
.features {
  padding: 60px 0;
}
.features h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin: 12px 0 32px;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 600px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .features { padding: 80px 0; }
  .features h2 { margin: 16px 0 40px; }
  .feature-card { padding: 24px; }
}
@media (min-width: 769px) {
  .features { padding: 100px 0; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .features h2 { margin: 16px 0 48px; }
  .feature-card { padding: 28px; }
}

/* ── Screenshots ─────────────────────────────────── */
.screenshots {
  padding: 50px 0 70px;
}
.screenshots h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin: 12px 0 32px;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.section-badge { display: block; text-align: center; margin: 0 auto; width: fit-content; }

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .screenshots-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .screenshots { padding: 80px 0 100px; }
  .screenshots h2 { margin: 16px 0 48px; }
}
.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: rgba(167,139,250,0.2);
  transform: translateY(-2px);
}
.screenshot-card .screenshot-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.screenshot-card[data-screenshot] .screenshot-img,
.screenshot-card[data-screenshot] .screenshot-placeholder {
  cursor: pointer;
}
.screenshot-card .screenshot-placeholder {
  aspect-ratio: 3/2;
  padding: 40px 20px;
  border-bottom: 1px solid var(--border);
}
.screenshot-card h4 {
  padding: 16px 20px 4px;
  font-size: 15px;
  font-weight: 700;
}
.screenshot-card p {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 599px) {
  .screenshot-card .screenshot-placeholder { padding: 32px 16px; }
}

/* ── Screenshot lightbox ─────────────────────────── */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.screenshot-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.screenshot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.screenshot-lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.screenshot-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.screenshot-lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}
.screenshot-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.screenshot-lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* ── How it works ────────────────────────────────── */
.how-it-works {
  padding: 50px 0 70px;
  border-top: 1px solid var(--border);
}
.how-it-works h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin: 12px 0 32px;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.step {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transform: rotate(90deg);
}
.step-arrow svg { width: 20px; height: 20px; }

@media (min-width: 641px) {
  .how-it-works { padding: 80px 0 100px; }
  .how-it-works h2 { margin: 16px 0 48px; }
  .steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
  }
  .step { padding: 28px; max-width: 280px; }
  .step-arrow { padding-top: 50px; transform: none; }
}

/* ── Pricing ─────────────────────────────────────── */
.pricing {
  padding: 50px 0 70px;
}
.pricing h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.pricing-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
  padding: 0 8px;
}
.pricing-fine-print {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 0 8px;
}
@media (min-width: 769px) {
  .pricing-sub { margin-bottom: 10px; }
  .pricing-fine-print { margin-bottom: 40px; }
}

.pricing-grid {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1060px) {
  .pricing-grid.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid rgba(167,139,250,0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(139,92,246,0.08);
  display: flex;
  flex-direction: column;
}
.pricing-card-featured {
  border-color: rgba(167,139,250,0.7);
  border-width: 2px;
  box-shadow: 0 0 80px rgba(139,92,246,0.12);
}
@media (min-width: 1060px) {
  .pricing-card-featured {
    transform: scale(1.02);
  }
}
.pricing-card-enterprise {
  border-color: var(--border);
}
.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
}
.pricing-price-contact {
  margin-top: 12px;
}
.price-contact {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  color: var(--text-secondary);
}
.pricing-card-header {
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pricing-card .btn { min-height: 52px; }

@media (min-width: 769px) {
  .pricing { padding: 80px 0 100px; }
  .pricing h2 { margin: 16px 0 12px; }
  .pricing-sub { font-size: 16px; margin-bottom: 40px; }
  .pricing-card-header { padding: 32px 32px 24px; }
}
.pricing-name {
  font-size: 20px;
  font-weight: 700;
}
.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}
.pricing-card-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 0 20px 16px;
  line-height: 1.5;
}
@media (min-width: 769px) {
  .pricing-card-note { padding: 0 24px 20px; }
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}
.price-dollar {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-secondary);
}
.price-amount {
  font-size: clamp(48px, 12vw, 64px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 769px) {
  .pricing-features { padding: 24px 32px; }
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-card .btn {
  margin: 0 20px 18px;
  margin-top: auto;
  width: calc(100% - 40px);
}
.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 24px 20px 0;
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .pricing-card .btn { margin: 0 24px 20px; margin-top: auto; width: calc(100% - 48px); }
  .pricing-note { padding: 32px 24px 0; }
}

/* ── FAQ ─────────────────────────────────────────── */
.faq {
  padding: 50px 0 70px;
  border-top: 1px solid var(--border);
}
.faq h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin: 12px 0 28px;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 769px) {
  .faq { padding: 80px 0 100px; }
  .faq h2 { margin: 16px 0 40px; }
  .faq-item summary { padding: 18px 24px; }
  .faq-item p { padding: 0 24px 18px; }
}

/* ── Final CTA ───────────────────────────────────── */
.final-cta {
  padding: 50px 0 70px;
  text-align: center;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  padding: 0 8px;
}

@media (min-width: 769px) {
  .final-cta { padding: 80px 0; }
  .final-cta h2 { margin-bottom: 28px; }
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  color: var(--text);
}
.footer-logo {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; padding: 24px 0; }
  .footer-brand { justify-content: center; }
}

/* ── Auth Modal ──────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}
.auth-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.auth-overlay.is-open .auth-modal {
  transform: translateY(0);
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.auth-close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.auth-close svg { width: 20px; height: 20px; }
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header img {
  margin: 0 auto 12px;
  border-radius: 12px;
}
.auth-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.auth-field input:focus {
  border-color: var(--accent);
}
.auth-field input::placeholder {
  color: var(--text-muted);
}
.auth-error {
  display: none;
  font-size: 13px;
  color: #f87171;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(248,113,113,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(248,113,113,0.15);
}
#auth-form .btn {
  margin-top: 4px;
}
.auth-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
.auth-toggle-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-toggle-text a {
  color: var(--accent);
  font-weight: 600;
}
.auth-toggle-text a:hover {
  text-decoration: underline;
}

/* ── Utility: hide real img if not loaded ────────── */
.screenshot-img {
  background: var(--bg-surface);
}

/* ── GDPR cookie consent (slide-up from bottom) ─── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.cookie-consent.cookie-consent-visible {
  transform: translateY(0);
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
  min-width: 260px;
}

.cookie-consent-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--accent-strong);
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-consent {
    padding: 14px 16px;
  }
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-consent-actions {
    justify-content: center;
  }
}
