/* ===== Variables ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0d1117;
  --bg-surface: #161b22;
  --border: #e2e8f0;
  --border-dark: #30363d;
  --text: #1a202c;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --nav-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { line-height: 1.7; }

/* ===== Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-dark); border-bottom: 1px solid var(--border-dark);
  height: var(--nav-height);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  font-size: 1.2rem; font-weight: 700; color: var(--text-light);
  letter-spacing: -0.02em; text-decoration: none;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { color: #94a3b8; font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .15s; }
.nav__links a:hover { color: #ffffff; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: #94a3b8;
  margin: 5px 0; transition: transform .2s, opacity .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn--outline { background: transparent; border-color: #475569; color: #94a3b8; }
.btn--outline:hover { border-color: #94a3b8; color: #ffffff; text-decoration: none; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--dark { background: var(--bg-dark); color: #fff; }
.btn--dark:hover { background: #1a2035; text-decoration: none; }

/* ===== Hero ===== */
.hero {
  background: var(--bg-dark);
  padding: 100px 0 80px;
  text-align: center;
}
.hero__label {
  display: inline-block; background: rgba(37,99,235,.15); color: #60a5fa;
  border: 1px solid rgba(37,99,235,.3); border-radius: 20px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 14px; margin-bottom: 24px;
}
.hero h1 { color: #ffffff; margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero__sub {
  color: #94a3b8; font-size: 1.15rem; max-width: 580px;
  margin: 0 auto 40px;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__code {
  margin: 60px auto 0; max-width: 520px;
  background: var(--bg-surface); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); text-align: left; overflow: hidden;
}
.hero__code-bar {
  background: #21262d; padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-dark);
}
.hero__code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #30363d; }
.hero__code pre {
  padding: 20px; font-family: var(--font-mono); font-size: .85rem;
  color: #e6edf3; overflow-x: auto; line-height: 1.8;
}
.hero__code .comment { color: #6e7681; }
.hero__code .cmd { color: #79c0ff; }
.hero__code .arg { color: #a5d6ff; }

/* ===== Problem Section ===== */
.problem { background: var(--bg-dark); border-top: 1px solid var(--border-dark); padding: 80px 0; }
.problem__heading { text-align: center; color: #ffffff; margin-bottom: 48px; }
.problem__heading p { color: #94a3b8; margin-top: 12px; font-size: 1.1rem; }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.problem__card {
  background: var(--bg-surface); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 32px;
}
.problem__card:first-child { border-top: 3px solid var(--danger); }
.problem__card:last-child  { border-top: 3px solid var(--warning); }
.deadline-badge {
  display: inline-block; border-radius: 4px; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; margin-bottom: 16px;
}
.badge--red   { background: rgba(220,38,38,.15); color: #fca5a5; border: 1px solid rgba(220,38,38,.3); }
.badge--amber { background: rgba(217,119,6,.15); color: #fcd34d; border: 1px solid rgba(217,119,6,.3); }
.problem__card h3 { color: #ffffff; margin-bottom: 12px; }
.problem__card p  { color: #94a3b8; font-size: .95rem; }
.problem__card .risk {
  margin-top: 16px; background: rgba(220,38,38,.08); border-left: 3px solid var(--danger);
  padding: 10px 14px; border-radius: 0 4px 4px 0; color: #fca5a5; font-size: .875rem;
}

/* ===== Features Section ===== */
.features { background: var(--bg); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }
.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.feature-card__icon {
  width: 44px; height: 44px; background: rgba(37,99,235,.1);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: .95rem; }
.feature-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.feature-card ul li {
  font-size: .875rem; color: var(--text-muted); padding-left: 18px; position: relative;
}
.feature-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ===== Pricing Section ===== */
.pricing { background: var(--bg-alt); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
}
.pricing-card--featured {
  border-color: var(--accent); border-width: 2px;
  transform: scale(1.02);
}
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 14px;
  border-radius: 12px;
}
.pricing-card__tier { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.pricing-card__price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card__desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.pricing-card__divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-card ul li { font-size: .9rem; color: var(--text-muted); padding-left: 22px; position: relative; }
.pricing-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-card ul li.no::before { content: '—'; color: #cbd5e1; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== CTA Strip ===== */
.cta-strip { background: var(--bg-dark); padding: 72px 0; text-align: center; }
.cta-strip h2 { color: #ffffff; margin-bottom: 12px; }
.cta-strip p { color: #94a3b8; margin-bottom: 32px; font-size: 1.05rem; }

/* ===== Footer ===== */
footer {
  background: var(--bg-dark); border-top: 1px solid var(--border-dark);
  padding: 48px 0 32px;
}
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand p { color: #64748b; font-size: .875rem; margin-top: 10px; max-width: 220px; line-height: 1.6; }
.footer__col h4 { color: #94a3b8; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col ul li a { color: #64748b; font-size: .875rem; text-decoration: none; transition: color .15s; }
.footer__col ul li a:hover { color: #ffffff; }
.footer__bottom { border-top: 1px solid var(--border-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer__bottom p { color: #475569; font-size: .8rem; }
.footer__logo { font-size: 1.1rem; font-weight: 700; color: #ffffff; text-decoration: none; }
.footer__logo span { color: var(--accent); }

/* ===== Docs Layout ===== */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - var(--nav-height)); }
.docs-sidebar {
  background: var(--bg-alt); border-right: 1px solid var(--border);
  padding: 32px 0; position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height)); overflow-y: auto;
}
.docs-sidebar__section { margin-bottom: 28px; padding: 0 20px; }
.docs-sidebar__section h4 { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.docs-sidebar__section a { display: block; padding: 5px 0; font-size: .875rem; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.docs-sidebar__section a:hover, .docs-sidebar__section a.active { color: var(--accent); }
.docs-content { padding: 48px 56px; max-width: 800px; }
.docs-content h1 { margin-bottom: 12px; }
.docs-content h2 { margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.docs-content h3 { margin: 32px 0 12px; }
.docs-content p { margin-bottom: 16px; color: var(--text); }
.docs-content ul, .docs-content ol { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-left: 0; }
.docs-content ul li, .docs-content ol li { padding-left: 20px; position: relative; color: var(--text); }
.docs-content ul li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.docs-content ol { counter-reset: step; }
.docs-content ol li { counter-increment: step; }
.docs-content ol li::before { content: counter(step); position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.docs-content .subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }

/* ===== Code Blocks ===== */
pre {
  background: var(--bg-dark); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 20px 24px; overflow-x: auto;
  margin: 16px 0;
}
pre code {
  font-family: var(--font-mono); font-size: .85rem; color: #e6edf3; line-height: 1.8;
  background: none; padding: 0; border-radius: 0;
}
code {
  font-family: var(--font-mono); font-size: .875em;
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px; color: #c7254e;
}
.comment  { color: #6e7681; }
.keyword  { color: #ff7b72; }
.string   { color: #a5d6ff; }
.prop     { color: #79c0ff; }
.val      { color: #a5d6ff; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
  background: var(--bg-alt); text-align: left; padding: 12px 16px;
  font-weight: 600; border-bottom: 2px solid var(--border); color: var(--text);
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--danger); }

/* ===== Callouts ===== */
.callout {
  border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; font-size: .9rem;
}
.callout--info    { background: rgba(37,99,235,.08); border-left: 4px solid var(--accent); color: #1e40af; }
.callout--warning { background: rgba(217,119,6,.08);  border-left: 4px solid var(--warning); color: #92400e; }
.callout--danger  { background: rgba(220,38,38,.08);  border-left: 4px solid var(--danger); color: #991b1b; }
.callout--success { background: rgba(22,163,74,.08);  border-left: 4px solid var(--success); color: #166534; }
.callout strong { font-weight: 700; }

/* ===== Steps ===== */
.steps { display: flex; flex-direction: column; gap: 32px; margin: 24px 0; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 20px; }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.step__body h3 { margin-bottom: 8px; }
.step__body p { color: var(--text-muted); font-size: .95rem; }

/* ===== File Tree ===== */
.file-tree {
  background: var(--bg-dark); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 20px 24px; margin: 16px 0;
  font-family: var(--font-mono); font-size: .85rem; color: #94a3b8; line-height: 2;
}
.file-tree .dir  { color: #79c0ff; }
.file-tree .file { color: #e6edf3; }
.file-tree .note { color: #6e7681; }

/* ===== Compliance ===== */
.compliance-hero { background: var(--bg-dark); padding: 72px 0; }
.compliance-hero h1 { color: #ffffff; margin-bottom: 12px; }
.compliance-hero p { color: #94a3b8; font-size: 1.1rem; max-width: 600px; }
.reg-block { margin-bottom: 64px; }
.reg-block__header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.reg-block__icon { font-size: 2rem; }
.reg-block__title h2 { margin-bottom: 4px; }
.reg-block__title p { color: var(--text-muted); font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; }
  .pricing__grid  { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .problem__grid  { grid-template-columns: 1fr; }
  .footer__inner  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .docs-layout    { grid-template-columns: 1fr; }
  .docs-sidebar   { display: none; }
  .docs-content   { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-dark); border-bottom: 1px solid var(--border-dark);
    padding: 16px 24px 24px;
  }
  .nav__links.open a { padding: 10px 0; border-bottom: 1px solid var(--border-dark); }
  .nav__links.open .nav__cta { margin-left: 0; margin-top: 8px; }
  .footer__inner  { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero__actions  { flex-direction: column; align-items: center; }
}
