:root {
  --bg: #FAFAFC;
  --bg-alt: #F2F2F8;
  --card: #FFFFFF;
  --card-border: #E5E5EF;
  --indigo: #4F46E5;
  --indigo-deep: #3730A3;
  --indigo-tint: #EEF0FF;
  --amber: #B8720A;
  --amber-tint: #FDF3E3;
  --text: #16162B;
  --muted: #56566E;
  --muted-2: #8A8AA0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 480px;
  background: radial-gradient(ellipse 900px 480px at 50% -10%, var(--indigo-tint), transparent 70%);
  z-index: -1; pointer-events: none;
}

/* NAV */
nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,252,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--card-border); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(160deg, var(--indigo), var(--indigo-deep)); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: white; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--indigo); color: white; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.nav-cta:hover { background: var(--indigo-deep); }

/* Generic sections */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--indigo); margin-bottom: 12px; letter-spacing: 0.05em; font-weight: 500; }
.section h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--card-border); background: var(--bg-alt); }
.page-hero h1 { font-size: 42px; margin-bottom: 16px; max-width: 700px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; }

.btn-primary { background: linear-gradient(160deg, var(--indigo), var(--indigo-deep)); color: white; padding: 15px 28px; border-radius: 10px; font-weight: 500; font-size: 15px; display: inline-block; box-shadow: 0 8px 24px rgba(79,70,229,0.25); }
.btn-ghost { color: var(--muted); font-size: 15px; padding: 15px 8px; border: 1px solid transparent; }

/* Feature detail cards */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; background: var(--card); border: 1px solid var(--card-border); border-left: 3px solid var(--indigo); border-radius: 14px; padding: 32px; box-shadow: 0 4px 20px rgba(22,22,43,0.04); }
.feature-row h3 { font-size: 20px; margin-bottom: 10px; color: var(--indigo-deep); }
.feature-row .feature-body p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.feature-row ul { color: var(--muted); font-size: 14px; padding-left: 20px; }
.feature-row li { margin-bottom: 6px; }

/* Pricing detail */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.plan-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 36px; box-shadow: 0 4px 20px rgba(22,22,43,0.04); }
.plan-card.highlight { border-color: var(--indigo); box-shadow: 0 20px 50px rgba(79,70,229,0.14); position: relative; }
.plan-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--amber); margin-bottom: 10px; font-weight: 600; }
.plan-price { font-size: 40px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.plan-price span { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.plan-feature { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; align-items: flex-start; }
.plan-feature svg { flex-shrink: 0; margin-top: 3px; color: var(--indigo); width: 15px; height: 15px; }
.plan-cta { width: 100%; text-align: center; margin-top: 24px; }
.fair-use-box { background: var(--amber-tint); border: 1px solid #F0DCAF; border-radius: 12px; padding: 24px; margin-top: 40px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.fair-use-box strong { color: var(--text); }

/* FAQ */
.faq-category { margin-bottom: 48px; }
.faq-category h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--indigo); margin-bottom: 20px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.faq-item { border-bottom: 1px solid var(--card-border); padding: 24px 0; }
.faq-q { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.faq-a { color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-a p { margin-bottom: 10px; }
.faq-a ul { padding-left: 20px; margin: 10px 0; }

/* Legal pages */
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content strong { color: var(--text); }
.legal-updated { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted-2); margin-bottom: 40px; }

/* How it works detail */
.workflow-step { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--card-border); }
.workflow-step:last-child { border-bottom: none; }
.workflow-num { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; color: var(--indigo); opacity: 0.35; }
.workflow-step h3 { font-size: 20px; margin-bottom: 10px; }
.workflow-step p { color: var(--muted); font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--card-border); background: var(--bg-alt); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 13px; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--card-border); font-size: 13px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 32px; }
  .workflow-step { grid-template-columns: 1fr; }
}
