:root {
      --bg: #f8fafc;
      --surface: #ffffff;
      --surface2: #f1f5f9;
      --border: #e2e8f0;
      --text: #0f172a;
      --text-muted: #64748b;
      --accent: #2563eb;
      --accent-light: #dbeafe;
      --accent2: #7c3aed;
      --green: #16a34a;
      --green-light: #dcfce7;
      --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
      --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
      --radius: 12px;
      --transition: .2s ease;
    }
    [data-theme="dark"] {
      --bg: #0f172a;
      --surface: #1e293b;
      --surface2: #334155;
      --border: #334155;
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --accent-light: #1e3a8a;
      --green-light: #14532d;
      --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
      --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      transition: background var(--transition), color var(--transition);
    }

    /* Nav */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(8px);
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
      transition: background var(--transition), border-color var(--transition);
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: .95rem;
      text-decoration: none;
      color: var(--text);
    }
    .nav-brand .dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
    }
    .nav-links { display: flex; align-items: center; gap: 8px; }
    .nav-links a {
      font-size: .875rem;
      color: var(--text-muted);
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 8px;
      transition: color var(--transition), background var(--transition);
    }
    .nav-links a:hover { color: var(--text); background: var(--surface2); }

    .theme-btn {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 8px;
      width: 36px; height: 36px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      transition: background var(--transition);
      color: var(--text);
    }
    .theme-btn:hover { background: var(--border); }

    /* Hero */
    .hero {
      text-align: center;
      padding: 80px 24px 64px;
      max-width: 720px;
      margin: 0 auto;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--accent-light);
      color: var(--accent);
      font-size: .8rem;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 999px;
      margin-bottom: 24px;
      letter-spacing: .02em;
    }
    .hero-badge .pulse {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: .3; }
    }
    .hero h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -.02em;
      margin-bottom: 20px;
    }
    .hero h1 span {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero p {
      font-size: 1.125rem;
      color: var(--text-muted);
      max-width: 520px;
      margin: 0 auto 36px;
    }
    .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 22px;
      border-radius: 10px;
      font-size: .9rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      border: none;
      transition: all var(--transition);
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #fff;
      box-shadow: 0 4px 14px rgba(37,99,235,.35);
    }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.45); }
    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .btn-secondary:hover { background: var(--surface2); }

    /* Stats strip */
    .stats {
      background: var(--surface);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0;
    }
    .stat {
      padding: 20px 40px;
      text-align: center;
      border-right: 1px solid var(--border);
    }
    .stat:last-child { border-right: none; }
    .stat-value {
      font-size: 1.5rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

    /* Section */
    section { padding: 72px 24px; }
    .container { max-width: 1100px; margin: 0 auto; }
    .section-header { text-align: center; margin-bottom: 48px; }
    .section-tag {
      display: inline-block;
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 12px;
    }
    .section-header h2 {
      font-size: clamp(1.5rem, 3vw, 2.25rem);
      font-weight: 800;
      letter-spacing: -.02em;
      margin-bottom: 12px;
    }
    .section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

    /* Cards */
    .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: var(--shadow);
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
    .card-icon {
      width: 44px; height: 44px;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.25rem;
      margin-bottom: 16px;
    }
    .card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
    .card p { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

    /* Pipeline steps */
    .pipeline {
      display: flex;
      align-items: center;
      gap: 0;
      flex-wrap: wrap;
      justify-content: center;
      margin: 48px 0 0;
    }
    .pipeline-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 20px 24px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      min-width: 130px;
      box-shadow: var(--shadow);
      position: relative;
    }
    .pipeline-arrow {
      color: var(--text-muted);
      font-size: 1.2rem;
      padding: 0 4px;
      flex-shrink: 0;
    }
    .step-icon { font-size: 1.5rem; }
    .step-label { font-size: .78rem; font-weight: 700; text-align: center; }
    .step-sub { font-size: .7rem; color: var(--text-muted); text-align: center; }
    .step-badge {
      position: absolute;
      top: -8px; right: -8px;
      background: var(--green);
      color: #fff;
      font-size: .6rem;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 999px;
      letter-spacing: .03em;
    }

    /* Feature alternating */
    .alt-bg { background: var(--surface2); }

    /* Code block */
    .code-demo {
      background: #0f172a;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      max-width: 640px;
      margin: 40px auto 0;
    }
    .code-header {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      background: #1e293b;
      gap: 8px;
    }
    .code-dots { display: flex; gap: 6px; }
    .code-dot { width: 10px; height: 10px; border-radius: 50%; }
    .code-title { margin-left: 8px; font-size: .78rem; color: #94a3b8; font-family: monospace; }
    .code-body {
      padding: 20px 24px;
      font-family: 'Courier New', 'Fira Code', monospace;
      font-size: .83rem;
      line-height: 1.8;
      color: #e2e8f0;
      overflow-x: auto;
    }
    .c-key { color: #93c5fd; }
    .c-val { color: #86efac; }
    .c-str { color: #fbbf24; }
    .c-comment { color: #475569; font-style: italic; }
    .c-num { color: #f9a8d4; }

    /* Checklist */
    .checklist { list-style: none; display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
    .checklist li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 14px 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: .9rem;
    }
    .check { color: var(--green); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

    /* Footer */
    footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 32px 24px;
      text-align: center;
      font-size: .82rem;
      color: var(--text-muted);
    }
    footer strong { color: var(--text); }

    @media (max-width: 640px) {
      .stat { padding: 16px 20px; border-right: none; border-bottom: 1px solid var(--border); }
      .stat:last-child { border-bottom: none; }
      .pipeline { flex-direction: column; }
      .pipeline-arrow { transform: rotate(90deg); }
      nav { padding: 0 16px; }
      .nav-links a { display: none; }
    }
