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

    :root {
      --bg: #faf6f1;
      --bg-warm: #f3ece3;
      --bg-code: #2c2825;
      --border: #d6cdc0;
      --border-light: #e5ddd2;
      --text: #2c2421;
      --text-secondary: #6b5d52;
      --text-muted: #9a8b7d;
      --terracotta: #b8593b;
      --terracotta-dark: #943e24;
      --terracotta-light: #d4795c;
      --terracotta-bg: #f7ebe5;
      --olive: #5a6b3c;
      --olive-bg: #eef1e8;
      --charcoal: #3a3330;
      --font-display: 'Cormorant Garamond', 'Georgia', serif;
      --font-body: 'Instrument Sans', system-ui, sans-serif;
      --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
    }

    html {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      font-size: 16px;
    }

    body { overflow-x: hidden; }

    /* --- Header --- */
    .header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 2.5rem 0 1.5rem;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      text-decoration: none;
      color: var(--text);
    }

    .logo-mark {
      font-family: 'Press Start 2P', monospace;
      font-weight: 400;
      font-size: 1.34rem;
      color: var(--terracotta);
      letter-spacing: -0.02em;
      line-height: 1;
      align-self: flex-end;
      margin-bottom: -0.08rem;
    }

    .logo-text {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: -0.02em;
    }

    .header-nav {
      display: flex;
      align-items: center;
      gap: 2.2rem;
    }

    .header-nav a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .header-nav a:hover { color: var(--text); }

    .verified-indicator {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.22rem 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.62rem;
      color: var(--text-secondary);
      text-decoration: none;
      letter-spacing: 0.01em;
      transition: color 0.2s;
      border-left: 1px solid var(--border);
      margin-left: 0.4rem;
      padding-left: 1rem;
    }
    .verified-indicator:hover { color: var(--text); }
    .verified-dot {
      width: 6px; height: 6px; border-radius: 50%; background: #4a7c59;
      animation: pulse-dot 4s ease-in-out infinite;
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(74,124,89,0); }
      50% { opacity: 1; box-shadow: 0 0 0 3px rgba(74,124,89,0.15); }
    }

    .btn-sm {
      padding: 0.42rem 1rem;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.15s;
      font-family: var(--font-body);
      border: 1.5px solid var(--terracotta);
      color: var(--terracotta);
      background: transparent;
    }

    .btn-sm:hover {
      background: var(--terracotta);
      color: #fff;
    }

    /* --- Breadcrumbs --- */
    .breadcrumbs {
      max-width: 900px;
      margin: 80px auto 0;
      padding: 1rem 2rem 0;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .breadcrumbs a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }

    .breadcrumbs a:hover { color: var(--terracotta); }

    .breadcrumb-sep { color: var(--border); }

    /* --- Hero --- */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 3rem 2rem 5rem;
      max-width: 900px;
      margin: 0 auto;
    }

    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2.4rem, 5.5vw, 3.8rem);
      font-weight: 400;
      line-height: 1.1;
      letter-spacing: -0.025em;
      margin-bottom: 1.5rem;
      color: var(--text);
      max-width: 780px;
    }

    .hero h1 em {
      font-style: italic;
      font-weight: 500;
    }

    .hero-sub {
      font-size: 1.1rem;
      color: var(--text-secondary);
      max-width: 580px;
      line-height: 1.7;
      font-weight: 400;
      margin-bottom: 2rem;
    }

    /* --- Sections --- */
    section { padding: 5rem 2rem; }

    .section-inner {
      max-width: 900px;
      margin: 0 auto;
    }

    .section-label {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--terracotta);
      margin-bottom: 1.2rem;
      font-weight: 500;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 2.8rem);
      font-weight: 400;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin-bottom: 1rem;
      max-width: 550px;
    }

    .section-desc {
      font-size: 1rem;
      color: var(--text-secondary);
      max-width: 480px;
      line-height: 1.7;
    }

    .section-alt { background: var(--bg-warm); }

    /* --- Content prose --- */
    .prose {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .prose p {
      font-size: 1rem;
      line-height: 1.75;
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
    }

    .prose h2 {
      font-family: var(--font-display);
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 400;
      line-height: 1.2;
      letter-spacing: -0.02em;
      margin: 3rem 0 1rem;
      color: var(--text);
    }

    .prose h3 {
      font-family: var(--font-body);
      font-size: 1.1rem;
      font-weight: 600;
      margin: 2rem 0 0.75rem;
      color: var(--text);
    }

    /* --- Cards grid --- */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .card {
      background: var(--bg);
      border: 1px solid var(--border);
      padding: 1.8rem;
      transition: border-color 0.15s;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .card:hover { border-color: var(--terracotta-light); }

    .card h3 {
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.6rem;
      color: var(--text);
    }

    .card p {
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--text-secondary);
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-link {
      display: flex;
      text-decoration: none;
      color: inherit;
    }

    .card-link .card-arrow {
      font-size: 0.82rem;
      color: var(--terracotta);
      margin-top: 0.8rem;
      font-weight: 500;
      transition: transform 0.15s;
      display: inline-block;
    }

    .card-link:hover .card-arrow { transform: translateX(3px); }

    /* --- Code blocks --- */
    .code-block {
      background: var(--bg-code);
      border: 1px solid #3d3835;
      margin: 1.5rem 0;
      overflow: hidden;
    }

    .code-block-header {
      display: flex;
      align-items: center;
      padding: 0.55rem 1rem;
      border-bottom: 1px solid #3d3835;
      background: #342f2c;
    }

    .code-block-lang {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      color: #8a7e76;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .code-block pre {
      padding: 1.2rem 1.4rem;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      line-height: 1.8;
      overflow-x: auto;
      color: #d4c8be;
      margin: 0;
    }

    .code-block code {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
      background: transparent;
      padding: 0;
    }

    .code-block .kw { color: #c9937a; }
    .code-block .str { color: #a3b87c; }
    .code-block .fn { color: #d4a96a; }
    .code-block .cm { color: #6b6360; font-style: italic; }
    .code-block .num { color: #d4a96a; }

    /* Inline code */
    code {
      background: var(--bg-warm);
      padding: 0.12rem 0.35rem;
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: var(--terracotta-dark);
    }

    /* --- Buttons --- */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.8rem 1.8rem;
      font-size: 0.9rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.15s;
      font-family: var(--font-body);
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: var(--terracotta);
      color: #fff;
      border: 1.5px solid var(--terracotta);
    }

    .btn-primary:hover {
      background: var(--terracotta-dark);
      border-color: var(--terracotta-dark);
    }

    .btn .arrow { transition: transform 0.15s; }
    .btn:hover .arrow { transform: translateX(3px); }

    /* --- CTA section --- */
    .cta-section {
      text-align: center;
      padding: 7rem 2rem;
      background: var(--bg-warm);
    }

    .cta-section .section-title {
      max-width: 600px;
      margin: 0 auto 1rem;
    }

    .cta-section .section-desc {
      max-width: 440px;
      margin: 0 auto 2.5rem;
    }


    /* --- Tables --- */
    .data-table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
      font-size: 0.88rem;
    }

    .data-table th {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      text-align: left;
      padding: 0.8rem 1rem;
      border-bottom: 2px solid var(--border);
      font-weight: 500;
    }

    .data-table td {
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--border-light);
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .data-table tr:last-child td { border-bottom: none; }

    /* --- FAQ --- */
    .faq-item {
      border-bottom: 1px solid var(--border-light);
      padding: 1.5rem 0;
    }

    .faq-item:last-child { border-bottom: none; }

    .faq-question {
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.6rem;
    }

    .faq-answer {
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    /* --- Severity indicators --- */
    .severity {
      display: inline-block;
      padding: 0.15rem 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.68rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .severity-high {
      background: var(--terracotta-bg);
      color: var(--terracotta-dark);
    }

    .severity-medium {
      background: var(--olive-bg);
      color: var(--olive);
    }

    .severity-low {
      background: var(--bg-warm);
      color: var(--text-muted);
    }

    /* --- Step flow --- */
    .step-flow {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 2rem 0;
    }

    .step-item {
      display: flex;
      gap: 1.5rem;
      padding: 1.5rem 0;
      position: relative;
    }

    .step-number {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--terracotta);
      border: 1.5px solid var(--terracotta);
      background: var(--bg);
    }

    .step-content h3 {
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
      color: var(--text);
    }

    .step-content p {
      font-size: 0.9rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Divider --- */
    .divider {
      max-width: 900px;
      margin: 0 auto;
      border: none;
      border-top: 1px solid var(--border);
    }

    /* --- Footer --- */
    .footer {
      border-top: 1px solid var(--border);
      padding: 2.5rem;
    }

    .footer-inner {
      max-width: 900px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-left {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .footer-copy {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
    }

    .footer-links a {
      font-size: 0.78rem;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }

    .footer-links a:hover { color: var(--text-secondary); }

    /* --- Animations --- */
    .fade-up {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .stagger-1 { transition-delay: 0.04s; }
    .stagger-2 { transition-delay: 0.08s; }
    .stagger-3 { transition-delay: 0.12s; }
    .stagger-4 { transition-delay: 0.16s; }
    .stagger-5 { transition-delay: 0.2s; }
    .stagger-6 { transition-delay: 0.24s; }

    /* --- Architecture flow --- */
    .arch-flow {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 2rem 0;
    }

    .arch-step {
      display: flex;
      align-items: flex-start;
      gap: 1.2rem;
      padding: 1.2rem 1.4rem;
      border-left: 2px solid var(--border);
      position: relative;
    }

    .arch-step::before {
      content: '';
      position: absolute;
      left: -5px;
      top: 1.4rem;
      width: 8px;
      height: 8px;
      background: var(--terracotta);
      border-radius: 50%;
    }

    .arch-step-tool {
      flex-shrink: 0;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: var(--terracotta);
      background: var(--terracotta-bg);
      padding: 0.2rem 0.5rem;
      font-weight: 500;
    }

    .arch-step-label {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.2rem;
    }

    .arch-step-desc {
      font-size: 0.85rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* --- Email preview card --- */
    .email-card {
      border: 1px solid var(--border);
      background: var(--bg);
      margin: 2rem 0;
      max-width: 560px;
    }

    .email-card-header {
      padding: 1rem 1.2rem;
      border-bottom: 1px solid var(--border-light);
      font-size: 0.82rem;
    }

    .email-card-field {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.3rem;
    }

    .email-card-field-label {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      flex-shrink: 0;
      width: 3.5rem;
    }

    .email-card-field-value {
      color: var(--text-secondary);
      font-size: 0.82rem;
    }

    .email-card-subject {
      font-weight: 600;
      color: var(--text);
    }

    .email-card-body {
      padding: 1.2rem;
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Oversight mode card --- */
    .oversight-card {
      border: 1px solid var(--terracotta-light);
      background: var(--terracotta-bg);
      padding: 1.5rem 1.8rem;
      margin: 1.5rem 0;
    }

    .oversight-mode-label {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--terracotta);
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .oversight-mode-name {
      font-family: var(--font-body);
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--terracotta-dark);
      margin-bottom: 0.6rem;
    }

    .oversight-mode-desc {
      font-size: 0.9rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Troubleshooting --- */
    .troubleshoot-item {
      padding: 1.2rem 0;
      border-bottom: 1px solid var(--border-light);
    }

    .troubleshoot-item:last-child { border-bottom: none; }

    .troubleshoot-problem {
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.4rem;
      font-size: 0.95rem;
    }

    .troubleshoot-solution {
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Responsive --- */
    @media (max-width: 900px) {
      .cards-grid { grid-template-columns: 1fr; }
      .header-nav { display: none; }
      .verified-indicator { display: none; }
      .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
      .footer-left { flex-direction: column; }
      .data-table { font-size: 0.8rem; }
      .data-table th, .data-table td { padding: 0.6rem 0.6rem; }
    }

    @media (max-width: 600px) {
      .hero h1 { font-size: 2.2rem; }
      section { padding: 3.5rem 1.25rem; }
      .breadcrumbs { padding: 0.8rem 1.25rem 0; margin-top: 70px; }
      .prose { padding: 0 1.25rem; }
      .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
      .arch-step { flex-direction: column; gap: 0.6rem; }
    }
    .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
    .why-card { background: var(--bg); border: 1px solid var(--border); padding: 1.6rem; transition: border-color 0.15s; }
    .why-card:hover { border-color: var(--terracotta-light); }
    .why-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
    .why-card p { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); }
    .code-sample { margin: 2.5rem 0; }
    .code-sample-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terracotta); margin-bottom: 0.8rem; font-weight: 500; }
    .code-sample-desc { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); margin-top: 1rem; }
    .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
    .pain-card { background: var(--bg); border: 1px solid var(--border); padding: 1.6rem; border-left: 3px solid var(--terracotta); }
    .pain-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
    .pain-card p { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); }
    .tools-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
    .tools-table th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); text-align: left; padding: 0.8rem 1rem; border-bottom: 2px solid var(--border); font-weight: 500; }
    .tools-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; vertical-align: top; }
    .tools-table tr:last-child td { border-bottom: none; }
    .tools-table .tool-name { font-family: var(--font-mono); font-size: 0.8rem; color: var(--terracotta-dark); font-weight: 500; white-space: nowrap; }
    .tools-table .tool-prompt { font-style: italic; color: var(--text-muted); font-size: 0.82rem; }
