*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-sub: #f7f7f8;
  --border: #e5e5e5;
  --text: #0f0f0f;
  --text-2: #6b6b6b;
  --text-3: #9b9b9b;
  --brand: #2563eb;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --bg-sub: #171717;
    --border: #2a2a2a;
    --text: #ececec;
    --text-2: #9b9b9b;
    --text-3: #555;
    --brand: #3b82f6;
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; color: var(--text);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo svg { width: 28px; height: 28px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-2); text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg-sub); text-decoration: none; }

.site-cta {
  margin-left: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.site-cta:hover { opacity: .88; text-decoration: none; }

.menu-btn {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; cursor: pointer; color: var(--text);
}

@media (max-width: 768px) {
  .menu-btn { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-cta { margin-left: 0; text-align: center; }
}

.site-main { max-width: var(--max); margin: 0 auto; padding: 0 24px 64px; }

.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: 16px;
}
.hero .lead {
  font-size: 18px; color: var(--text-2);
  max-width: 560px; margin: 0 auto 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: .88; text-decoration: none; }
.btn-secondary {
  background: var(--bg-sub); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); text-decoration: none; }

.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.section-sub { color: var(--text-2); margin-bottom: 28px; max-width: 640px; }

.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; background: var(--bg);
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.card .icon { font-size: 28px; margin-bottom: 12px; }

.steps { display: grid; gap: 20px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}

.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; max-width: 720px;
}
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .amount { font-size: 32px; font-weight: 700; margin: 12px 0; }
.price-card ul { list-style: none; font-size: 14px; color: var(--text-2); }
.price-card li { padding: 6px 0; padding-left: 20px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); }

.faq-list details {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; padding: 0 16px;
}
.faq-list summary {
  padding: 16px 0; font-weight: 500; cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--text-3); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .answer { padding: 0 0 16px; font-size: 14px; color: var(--text-2); }

.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose h3 { font-size: 16px; margin: 20px 0 8px; }
.prose p, .prose li { font-size: 15px; color: var(--text-2); margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose code {
  font-size: 13px; background: var(--bg-sub);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border);
}
.prose pre {
  background: var(--bg-sub); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; overflow-x: auto;
  font-size: 13px; margin: 12px 0;
}

.dl-grid { display: grid; gap: 16px; }
.dl-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.dl-card h3 { font-size: 17px; margin-bottom: 4px; }
.dl-card p { font-size: 14px; color: var(--text-2); max-width: 520px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px; margin-top: 24px;
}
.site-footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  font-size: 13px; color: var(--text-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--text-2); }

.page-hero { padding: 40px 0 24px; }
.page-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { color: var(--text-2); max-width: 560px; }
