:root {
  --brand: #7C3AED;
  --brand-hover: #6D28D9;
  --brand-soft: rgba(124, 58, 237, 0.12);

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E6E9EF;
  --text: #202124;
  --text-soft: #5F6368;

  --footer-height: 52px;
}

[data-theme="dark"] {
  --bg: #16171A;
  --surface: #1E1F23;
  --border: #2C2E33;
  --text: #F4F5F7;
  --text-soft: #A7ABB3;
  --brand-soft: rgba(124, 58, 237, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Controls ---------- */
.page-controls {
  position: fixed;
  top: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  z-index: 50;
  display: flex;
  gap: 8px;
}

.control-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.control-btn:hover { color: var(--text); border-color: var(--brand); }
.control-btn .icon-moon { display: none; }
[data-theme="dark"] .control-btn .icon-sun { display: none; }
[data-theme="dark"] .control-btn .icon-moon { display: block; }

/* ---------- Layout ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section {
  padding: clamp(56px, 10vw, 96px) clamp(20px, 5vw, 48px);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
}

.section-sub {
  margin-top: 12px;
  text-align: center;
  color: var(--text-soft);
  font-size: clamp(15px, 2.5vw, 17px);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(90dvh, 720px);
  padding: clamp(48px, 10vw, 96px) clamp(20px, 5vw, 48px);
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--brand-soft), transparent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  width: 100%;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  max-width: min(280px, 80vw);
}

.hero-logo-light,
.hero-logo-dark {
  width: 100%;
  height: auto;
}

.hero-logo-light { display: block; }
.hero-logo-dark { display: none; }
[data-theme="dark"] .hero-logo-light { display: none; }
[data-theme="dark"] .hero-logo-dark { display: block; }

.hero-title {
  margin-top: clamp(12px, 2vw, 20px);
  font-size: clamp(26px, 5.5vw, 44px);
  font-weight: 700;
}

.hero-title .accent {
  display: block;
  color: var(--brand);
}

.hero-sub {
  margin-top: clamp(14px, 3vw, 20px);
  max-width: 480px;
  font-size: clamp(15px, 2.8vw, 17px);
  color: var(--text-soft);
}

.hero-actions {
  margin-top: clamp(24px, 5vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, border-color .2s, color .2s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.btn-block { width: 100%; }

/* ---------- Features ---------- */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.feature-grid {
  margin-top: clamp(32px, 6vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color .2s;
}

.feature-card:hover { border-color: var(--brand); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  margin-top: clamp(32px, 6vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.pricing-price {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.pricing-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.pricing-annual {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.pricing-features {
  margin-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.pricing-card .btn {
  margin-top: 24px;
}

.pricing-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  min-height: var(--footer-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 16px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
}

.footer-copy { color: var(--text-soft); font-size: 13px; }

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--brand); }

@media (min-width: 480px) {
  .hero-title .accent { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
