:root {
  --bg: #070b16;
  --panel: rgba(12, 18, 36, 0.88);
  --panel-strong: rgba(18, 27, 52, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e5eefb;
  --muted: #94a3b8;
  --heading: #ffffff;
  --brand: #7c3aed;
  --brand-2: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 24px 72px rgba(2, 8, 23, 0.48);
  --radius: 24px;
  --container: min(1180px, calc(100vw - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.22), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 24%),
    linear-gradient(180deg, #050812 0%, #070b16 100%);
  color: var(--text);
  min-height: 100vh;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, pre { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, Monaco, monospace; }
.container { width: var(--container); margin: 0 auto; }
.site-shell { position: relative; overflow: clip; }
.site-shell::before, .site-shell::after { content: ""; position: absolute; border-radius: 999px; filter: blur(80px); opacity: 0.45; pointer-events: none; }
.site-shell::before { width: 300px; height: 300px; top: 80px; left: -60px; background: rgba(124, 58, 237, 0.26); }
.site-shell::after { width: 360px; height: 360px; top: 540px; right: -90px; background: rgba(34, 211, 238, 0.18); }
.topbar { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: rgba(5, 8, 18, 0.7); border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-text { font-size: 1.1rem; color: var(--heading); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 10px 14px; color: var(--muted); border-radius: 999px; transition: color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--heading); background: rgba(148, 163, 184, 0.08); }
.nav-cta { border: 1px solid rgba(124, 58, 237, 0.35); color: var(--heading) !important; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.9); border-radius: 14px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { width: 18px; height: 2px; background: var(--heading); border-radius: 999px; }
.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; }
.section { padding: 100px 0; }
.section-dark { background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(148, 163, 184, 0.06); border-bottom: 1px solid rgba(148, 163, 184, 0.06); }
.hero { padding-top: 84px; }
.hero-grid, .workflow-grid, .security-grid, .footer-inner, .cta-card { display: grid; gap: 32px; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.hero-copy h1, .section-heading h2, .workflow-copy h2, .security-copy h2, .cta-card h2, .error-card h1 { margin: 0; color: var(--heading); letter-spacing: -0.05em; line-height: 1.02; }
.hero-copy h1 { font-size: clamp(2.9rem, 6vw, 5.3rem); }
.section-heading h2, .workflow-copy h2, .security-copy h2, .cta-card h2, .error-card h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.8; }
.lede, .section-heading p, .workflow-copy p, .security-copy p, .cta-card p, .feature-card p, .pricing-card p, .error-card p { color: var(--muted); line-height: 1.72; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 16px; font-weight: 700; border: 1px solid transparent; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button-primary { color: #050812; background: linear-gradient(135deg, #e9d5ff 0%, #22d3ee 100%); box-shadow: 0 14px 34px rgba(124, 58, 237, 0.2); }
.button-secondary { border-color: rgba(148, 163, 184, 0.18); background: rgba(15, 23, 42, 0.6); color: var(--heading); }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.hero-points li { border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.45); color: #dbeafe; padding: 10px 14px; border-radius: 999px; font-size: 0.94rem; }
.hero-panels { display: grid; gap: 20px; }
.panel, .feature-card, .pricing-card, .cta-card, .error-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.code-panel { overflow: hidden; }
.panel-head, .board-header { display: flex; align-items: center; gap: 10px; }
.panel-head { padding: 16px 18px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); background: rgba(255, 255, 255, 0.02); }
.panel-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.24); }
.panel-title { margin-left: auto; color: #cbd5e1; font-size: 0.92rem; }
.code-panel pre { margin: 0; padding: 22px; overflow: auto; color: #dbeafe; font-size: 0.95rem; line-height: 1.7; }
.code-ok { color: var(--success); }
.code-info { color: #93c5fd; }
.metrics-panel { padding: 24px; display: grid; gap: 18px; }
.metric-card, .metric-row, .commit-list, .board-card, .check-item { border-radius: 20px; }
.metric-card { padding: 20px; background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.1)); border: 1px solid rgba(167, 139, 250, 0.18); }
.metric-card strong, .metric-row strong { display: block; color: var(--heading); font-size: 2rem; letter-spacing: -0.05em; }
.metric-card p, .metric-label, .commit-list span, .board-label, .plan-tag, .status-pill { color: var(--muted); }
.metric-label, .plan-tag, .status-pill, .badge { font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.metric-row > div { padding: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 20px; }
.commit-list { display: grid; gap: 12px; }
.commit-list > div, .check-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(148, 163, 184, 0.12); background: rgba(255, 255, 255, 0.02); }
.commit-status, .check-icon { width: 14px; height: 14px; border-radius: 999px; flex: 0 0 auto; }
.commit-status.success, .check-icon { background: var(--success); }
.commit-status.pending { background: var(--warning); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card, .pricing-card { padding: 28px; }
.feature-card h3, .pricing-card h3, .security-panel h3, .board-header h3 { margin: 0 0 12px; color: var(--heading); letter-spacing: -0.03em; }
.workflow-grid, .security-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; }
.workflow-stack { display: grid; gap: 16px; margin-top: 28px; }
.workflow-step { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); border-radius: 22px; }
.workflow-step span, .status-pill { display: inline-flex; align-items: center; justify-content: center; }
.workflow-step > span, .status-pill { width: 44px; height: 44px; border-radius: 14px; background: rgba(124, 58, 237, 0.14); color: #ddd6fe; flex: 0 0 auto; }
.workflow-step strong { display: block; margin-bottom: 6px; color: var(--heading); }
.workflow-step p { margin: 0; color: var(--muted); line-height: 1.65; }
.board-panel, .security-panel, .cta-card { padding: 28px; }
.board-header { justify-content: space-between; margin-bottom: 22px; }
.badge, .plan-tag { display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 999px; background: rgba(148, 163, 184, 0.1); }
.badge-live { color: #bfdbfe; background: rgba(59, 130, 246, 0.12); }
.board-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.board-columns section { padding: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); border-radius: 22px; }
.board-columns h4 { margin: 0 0 14px; color: var(--heading); }
.board-card { padding: 14px; margin-bottom: 12px; border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.72); line-height: 1.5; }
.board-card:last-child { margin-bottom: 0; }
.board-card.emphasis { border-color: rgba(124, 58, 237, 0.32); background: linear-gradient(140deg, rgba(124, 58, 237, 0.18), rgba(15, 23, 42, 0.8)); }
.board-card.success { border-color: rgba(52, 211, 153, 0.3); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { padding-left: 28px; position: relative; color: #d8e4f7; }
.check-list li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--success); font-weight: 700; }
.check-list code, .error-card code { padding: 2px 7px; border-radius: 8px; background: rgba(148, 163, 184, 0.12); }
.pricing-card ul { display: grid; gap: 12px; padding: 0; margin: 24px 0 28px; list-style: none; }
.pricing-card li { padding-left: 24px; position: relative; color: #d8e4f7; }
.pricing-card li::before { content: "•"; position: absolute; left: 8px; top: 0; color: #c4b5fd; }
.pricing-card.featured { border-color: rgba(124, 58, 237, 0.34); background: linear-gradient(160deg, rgba(13, 19, 39, 0.94), rgba(20, 29, 58, 0.96)); }
.pricing-card h3 span { font-size: 1rem; color: var(--muted); }
.cta-section { padding-top: 0; }
.cta-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(34, 211, 238, 0.1)); }
.footer { padding: 0 0 32px; }
.footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 10px; color: var(--muted); }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-mail { color: var(--heading); text-decoration: underline; text-underline-offset: 4px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.error-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-card { width: min(720px, 100%); padding: 36px; text-align: center; }
.error-brand { justify-content: center; margin-bottom: 24px; }
.status-pill { margin: 0 auto 20px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1080px) {
  .hero-grid, .workflow-grid, .security-grid, .feature-grid, .pricing-grid, .board-columns, .cta-card, .footer-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.8rem, 9vw, 4.4rem); }
  .cta-card { text-align: left; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: calc(100% + 10px); left: 20px; right: 20px; padding: 18px; border: 1px solid var(--line-strong); background: rgba(7, 11, 22, 0.98); border-radius: 22px; box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .topbar-inner { min-height: 70px; }
  .hero { padding-top: 48px; }
  .section { padding: 78px 0; }
}
@media (max-width: 640px) {
  .error-actions { flex-direction: column; }
  :root { --container: min(100vw - 28px, 100%); --radius: 22px; }
  .hero-actions, .hero-points, .metric-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .feature-card, .pricing-card, .board-panel, .security-panel, .cta-card, .error-card { padding: 22px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .metric-row { display: grid; }
  .board-columns section, .workflow-step, .metric-row > div { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
