* { box-sizing: border-box; }

:root {
  --bg: #0f1116;
  --bg-elevated: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text-primary: #f2f2f4;
  --text-secondary: #a3a3ab;
  --text-tertiary: #6b6b74;
  --green: #30D158;
  --nav-bg: rgba(15,17,22,0.75);
}

html[data-site-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: rgba(0,0,0,0.025);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --text-primary: #16161a;
  --text-secondary: #55555c;
  --text-tertiary: #8a8a92;
  --green: #1a9e46;
  --nav-bg: rgba(250,250,250,0.8);
}

html, body { margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  transition: background 200ms ease, color 200ms ease;
}

a { color: inherit; }

/* ---------------- nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.brand-logo { width: 22px; height: 22px; border-radius: 6px; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a:not(.nav-cta) {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-links a:not(.nav-cta):hover { color: var(--text-primary); }

.theme-toggle {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
}

.nav-cta {
  background: var(--green);
  color: #05270f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
}

/* ---------------- hero / live demo ---------------- */

.hero {
  padding: 56px 20px 32px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, #ff8a5c22, transparent 45%),
    radial-gradient(circle at 80% 20%, #7b6cff22, transparent 45%),
    linear-gradient(160deg, color-mix(in srgb, var(--bg) 88%, #14172b), var(--bg) 60%);
}

.hero-copy { max-width: 640px; margin: 0 auto 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(48,209,88,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 14px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

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

.demo-frame-wrap {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 0 1px var(--border);
  background: #0f1116;
}

.demo-frame {
  width: 100%;
  height: 190px;
  border: none;
  display: block;
  background: #0f1116;
  transition: height 220ms ease;
}

.hero-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 14px 0 0;
}

/* ---------------- generic section ---------------- */

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 32px;
}

/* ---------------- features ---------------- */

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

.feature {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}

.feature-icon { font-size: 22px; display: block; margin-bottom: 10px; }

.feature h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.feature p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---------------- coming soon ---------------- */

.coming-soon-image {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 32px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
}

.coming-soon-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.coming-soon-item {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 14px;
}

.coming-soon-item h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.coming-soon-item p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ---------------- FAQ ---------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-tertiary);
}
.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
}

/* ---------------- pricing ---------------- */

.pricing-section { text-align: center; }

.pricing-card {
  max-width: 340px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px 28px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.price { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.price-sub { font-size: 13px; color: var(--text-secondary); }

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.pricing-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.pricing-note { font-size: 11px; color: var(--text-tertiary); margin: 0; }

/* ---------------- buttons ---------------- */

.buy-btn {
  display: inline-block;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 0.5px solid var(--border-strong);
  color: var(--text-primary);
  transition: background 150ms ease, filter 150ms ease;
}
.buy-btn:hover { background: var(--bg-elevated); }

.buy-btn-primary {
  background: var(--green);
  color: #05270f;
  border-color: var(--green);
}
.buy-btn-primary:hover { filter: brightness(1.08); background: var(--green); }

.buy-btn-ghost { background: transparent; }

.buy-btn-large { font-size: 16px; padding: 14px 30px; }

/* ---------------- final CTA ---------------- */

.final-cta {
  text-align: center;
  padding: 70px 20px 90px;
  background: linear-gradient(180deg, transparent, var(--bg-elevated));
}

.final-cta h2 { font-size: 26px; margin: 0 0 8px; }
.final-cta p { color: var(--text-secondary); margin: 0 0 22px; font-size: 14px; }

/* ---------------- footer ---------------- */

.footer {
  text-align: center;
  padding: 26px 20px 40px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 0.5px solid var(--border);
}

/* ---------------- responsive ---------------- */

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px 22px;
    border-bottom: 0.5px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { align-self: flex-start; }

  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }

  .features-grid { grid-template-columns: 1fr; }
  .coming-soon-list { grid-template-columns: 1fr; }
}
