:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #161616;
    --border: rgba(255,255,255,0.08);
    --border-bright: rgba(255,255,255,0.15);
    --text: #e8e4db;
    --text-muted: #55585e;
    --text-dim: #9b9691;
    --accent: #c8d8e8;
    --accent-dim: rgba(200,216,232,0.10);
    --accent-glow: rgba(200,216,232,0.14);
    /* semantic state colors */
    --state-parse: #7dd3fc;
    --state-parse-dim: rgba(125,211,252,0.12);
    --state-error: #f87171;
    --state-error-dim: rgba(248,113,113,0.12);
    --state-conflict: #f87171;
    --state-conflict-dim: rgba(248,113,113,0.12);
    --state-warn: #fbbf24;
    --state-warn-dim: rgba(251,191,36,0.12);
    --state-valid: #c8d8e8;
    --state-valid-dim: rgba(200,216,232,0.10);
    --mono: 'DM Mono', monospace;
    --sans: 'IBM Plex Mono', monospace;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  /* ── COMPILE PROGRESS BAR ── */
  .compile-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    z-index: 1100;
    pointer-events: none;
    transition: width 0.1s linear;
    background: linear-gradient(
      to right,
      var(--state-parse) 0%,
      var(--state-warn) 40%,
      var(--state-error) 60%,
      var(--state-valid) 100%
    );
    background-size: 200% 100%;
  }
  /* ── HERO EM CONFLICT PULSE ── */
  /* handled by .hero-heading em rule below */
  /* ── PRICING TIER FLAG NAMES ── */
  .pt-tier-name {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--state-parse);
    text-transform: none;
    font-family: var(--mono);
  }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
  }
  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-bright);
    transition: padding 0.3s;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .logo-mark {
    width: 32px; height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .logo-mark svg { width: 32px; height: 32px; }
  .logo-text {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .logo-text span { color: var(--state-parse); }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    position: relative;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: filter 0.15s;
  }
  .nav-cta:hover { filter: brightness(1.1); }
  /* ── HERO ── */
  .hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .hero-compiler-rail {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--state-parse) 15%,
      var(--state-warn) 45%,
      var(--state-error) 55%,
      var(--state-valid) 75%,
      transparent 100%
    );
    opacity: 0.6;
    pointer-events: none;
  }
  .hero-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 32px;
    position: relative;
  }
  .accent-shape { display: none; }
  .hero-label::before {
    content: '$ postidea --version';
    color: var(--state-parse);
    opacity: 0.5;
    font-size: 10px;
  }
  .hero-heading {
    font-family: var(--mono);
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 900px;
    position: relative;
    color: var(--text);
    margin-bottom: 32px;
  }
  .hero-heading em { /* handled by .hero-em-conflict animation */ }
  /* ── HERO OUTPUT BLOCK ── */
  .hero-output {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 48px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
  }
  .ho-line { display: block; }
  .ho-key  { color: var(--text-muted); min-width: 52px; display: inline-block; }
  .ho-sep  { color: var(--text-muted); margin-right: 6px; }
  .ho-val  { color: var(--text-dim); }
  .ho-err  { color: var(--state-error); font-weight: 500; }
  .ho-muted { color: var(--text-muted); }
  .ho-hint { margin-top: 6px; }
  .ho-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(200,216,232,0.3);
    transition: border-color 0.2s;
  }
  .ho-link:hover { border-color: var(--accent); }
  .hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    position: relative;
  }
  .btn-primary {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    padding: 16px 36px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: filter 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
  }
  .btn-primary:hover { filter: brightness(1.1); }
  .btn-secondary {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border-bright);
    padding: 14px 28px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: border-color 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-secondary:hover { 
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
  }
  /* ── AST VISUALIZATION ── */
  .ast-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  /* ast-label: bracket style, no background */
  .ast-label {
    color: var(--accent);
    font-weight: 500;
  }
  .ast-label::before { content: '<'; opacity: 0.5; margin-right: 1px; }
  .ast-label::after  { content: '>'; opacity: 0.5; margin-left: 1px; }
  .ast-label.conflict {
    color: #d81b60;
  }
  .ast-arrow {
    color: var(--text-muted);
    font-size: 10px;
  }
  .ast-container {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    min-height: 220px;
  }
  .ast-input-block {
    border-right: 1px solid var(--border);
    padding-right: 24px;
    min-width: 0;
  }
  .ast-input-text {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    min-height: 100px;
    word-break: break-word;
  }
  .ast-typed-text { color: var(--text); }
  .ast-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
  }
  .ast-tree {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    min-height: 180px;
  }
  .ast-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .ast-root-node {
    position: relative;
    z-index: 2;
  }
  .ast-node-type {
    display: inline-block;
    background: var(--bg3);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  .ast-nodes-row {
    display: flex;
    gap: 12px;
    justify-content: space-around;
    position: relative;
    z-index: 2;
  }
  .ast-node {
    flex: 1;
  }
  .ast-node .ast-node-type {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(20,184,166,0.06);
    border-color: rgba(20,184,166,0.3);
    color: var(--text-dim);
    padding: 10px 8px;
    font-size: 10px;
  }
  .ast-status {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
    margin-top: 8px;
  }
  .ast-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
  }
  .ast-status-item.parse {
    background: rgba(125,211,252,0.1);
    color: var(--state-parse);
  }
  .ast-status-item.valid {
    background: rgba(20,184,166,0.1);
    color: var(--accent);
  }
  .ast-status-icon {
    font-size: 11px;
  }
  .terminal-body {
    padding: 24px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.8;
  }
  .t-line { display: block; margin-bottom: 2px; }
  .t-prompt { color: var(--accent); }
  .t-cmd { color: var(--text); }
  .t-out { color: var(--text-dim); }
  .t-key { color: #7dd3fc; }
  .t-val { color: #86efac; }
  .t-warn { color: #fbbf24; }
  .t-ok { color: var(--accent); }
  .t-comment { color: var(--text-muted); }
  .t-cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
  /* ── SECTION SHARED ── */
  section { 
    padding: 120px 48px; 
    position: relative; 
  }
  .section-state-badge {
    position: absolute;
    top: 48px;
    right: 48px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid;
  }
  .section-state-badge.parsing {
    color: var(--state-parse);
    border-color: var(--state-parse);
    background: rgba(125, 211, 252, 0.1);
  }
  .section-state-badge.validating {
    color: var(--state-warn);
    border-color: var(--state-warn);
    background: rgba(251, 191, 36, 0.1);
  }
  .section-state-badge.verified {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(232,196,154,0.08);
  }
  .section-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    opacity: 0.7;
  }
  .section-title {
    font-family: var(--mono);
    font-size: clamp(24px, 3.5vw, 48px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 640px;
    color: var(--text);
  }
  .section-title em {
    font-style: italic;
    color: var(--accent);
  }
  .section-desc {
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    max-width: 480px;
    margin-top: 16px;
    line-height: 1.7;
  }
  /* ── STDERR STRIP ── */
  .stderr-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 48px;
    background: var(--bg2);
    font-family: var(--mono);
    font-size: 12.5px;
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 4px;
    overflow: hidden;
  }
  .stderr-prefix { color: var(--text); font-weight: 500; }
  .stderr-sep    { color: var(--text-muted); margin: 0 1px; }
  .stderr-file   { color: var(--state-parse); }
  .stderr-loc    { color: var(--text-muted); }
  .stderr-error  { color: var(--state-error); font-weight: 600; }
  .stderr-msg    { color: var(--text-dim); }
  .stderr-note   {
    display: block;
    width: 100%;
    color: var(--text-muted);
    font-size: 11.5px;
    padding-left: 0;
    margin-top: 2px;
  }
  @media (max-width: 640px) {
    .stderr-strip { padding: 12px 16px; font-size: 11px; }
  }
  /* Respect user motion preferences */
  @media (prefers-reduced-motion: reduce) {
    .hero-label::before { animation: none; }
    .ast-cursor, .t-cursor { animation: none; opacity: 1; }
    .marquee-track { animation: none; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
  /* ── HOW IT WORKS — vertical compiler pipeline ── */
  #how {
    padding-left: 0;
    padding-right: 0;
    padding-top: 80px;
    padding-bottom: 0;
    border-top: 1px solid var(--border-bright);
  }
  #how .section-label-row,
  #how .section-title,
  #how .section-desc {
    padding-left: 48px;
    padding-right: 48px;
  }
  @media (max-width: 900px) {
    #how .section-label-row,
    #how .section-title,
    #how .section-desc { padding-left: 24px; padding-right: 24px; }
  }
  @media (max-width: 640px) {
    #how .section-label-row,
    #how .section-title,
    #how .section-desc { padding-left: 16px; padding-right: 16px; }
  }
  .pipeline {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    margin-top: 48px;
    border: none;
    border-top: 1px solid var(--border-bright);
    border-radius: 0;
    overflow: hidden;
  }
  @media (max-width: 768px) {
    .pipeline {
      grid-template-columns: 1fr;
    }
    .pipeline-track {
      border-right: none;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-direction: column;
    }
    .pipeline-step {
      border-bottom: 1px solid var(--border);
      border-right: none;
      flex-direction: row;
      padding: 16px 14px;
      width: 100%;
    }
    .pipeline-step:last-child { border-bottom: none; }
    .pipeline-detail {
      grid-column: 1;
      padding: 24px 16px;
      border-left: none;
      border-top: 1px solid var(--border-bright);
      margin-top: 16px;
    }
  }
  .pipeline-track {
    border-right: 1px solid var(--border-bright);
    display: flex;
    flex-direction: column;
    grid-row: 1 / -1;
  }
  .pipeline-step {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
  }
  .pipeline-step:last-child { border-bottom: none; }
  .pipeline-step.active { background: var(--bg3); }
  .pipeline-step.active::after {
    content: '';
    position: absolute;
    right: -1px; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--bg3);
  }
  .step-state-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.3s, transform 0.3s;
  }
  .step-state-icon svg { width: 12px; height: 12px; }
  .pipeline-step[data-state="parse"] .step-state-icon  { color: var(--state-parse); }
  .pipeline-step[data-state="valid"] .step-state-icon  { color: var(--accent); }
  .pipeline-step[data-state="warn"]  .step-state-icon  { color: var(--state-warn); transform: scale(1.1); }
  .pipeline-step[data-state="error"] .step-state-icon  { color: var(--state-error); transform: scale(1.15); }
  .pipeline-step:hover .step-state-icon { transform: scale(1.2); }
  .step-num {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
  }
  .step-bracket {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    opacity: 0.6;
    font-weight: 300;
  }
  .step-bracket:first-of-type { margin-right: 2px; }
  .step-bracket:last-of-type { margin-left: 2px; }
  .step-name {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
  }
  .pipeline-detail {
    padding: 40px 48px;
    display: none;
    grid-column: 2;
    grid-row: 1 / -1;
    overflow-y: auto;
    max-height: 600px;
    background: var(--bg);
    border-left: 1px solid var(--border-bright);
  }
  .pipeline-detail.active { 
    display: block; 
  }
  /* each state tag has a distinct visual treatment — no shared pill shape */
  .detail-state-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  /* parse: left border bar */
  .detail-state-tag.parse {
    color: var(--state-parse);
    border-left: 2px solid var(--state-parse);
    padding: 2px 0 2px 10px;
  }
  /* valid: bracket wrap */
  .detail-state-tag.valid {
    color: var(--state-valid);
    padding: 0;
  }
  .detail-state-tag.valid::before { content: '[ '; opacity: 0.5; }
  .detail-state-tag.valid::after  { content: ' ]'; opacity: 0.5; }
  /* warn: slash prefix */
  .detail-state-tag.warn {
    color: var(--state-warn);
    padding: 0;
  }
  .detail-state-tag.warn::before { content: '// '; opacity: 0.6; }
  /* error/conflict: underline only, no background */
  .detail-state-tag.error {
    color: var(--state-conflict);
    border-bottom: 1px solid var(--state-conflict);
    padding-bottom: 2px;
  }
  .detail-title {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .detail-desc {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
    font-weight: 300;
    max-width: 480px;
    margin-bottom: 28px;
  }
  .detail-code {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 16px 20px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-dim);
  }
  .detail-code .c-parse { color: var(--state-parse); }
  .detail-code .c-valid { color: var(--state-valid); }
  .detail-code .c-warn  { color: var(--state-warn); }
  .detail-code .c-error { color: var(--state-error); }
  .detail-code .c-muted { color: var(--text-muted); }
  /* ── FEATURES — asymmetric layout ── */
  .features-layout {
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
  }
  .feature-hero {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-bright);
  }
  .feature-hero-header {
    padding: 40px 48px 24px;
    display: flex;
    align-items: baseline;
    gap: 48px;
    flex-wrap: wrap;
  }
  .feature-hero-header .feature-title {
    font-size: 18px;
    margin-bottom: 0;
  }
  .feature-hero-header .feature-desc {
    max-width: 480px;
    font-size: 14px;
    color: var(--text-dim);
  }
  .feature-hero-demo {
    background: var(--bg2);
    padding: 0;
    border-top: 1px solid var(--border);
  }
  .feature-hero-demo .diff-view {
    border: none;
    border-radius: 0;
  }
  .feature-hero-demo .diff-body {
    padding: 16px 0;
  }
  .feature-hero-demo .diff-line {
    padding: 3px 48px;
    font-size: 13px;
  }
  /* feature-tag: left-border only, no pill */
  .feature-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--state-error);
    border-left: 2px solid var(--state-error);
    padding: 2px 0 2px 10px;
  }
  .feature-title {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
  }
  .feature-desc {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    max-width: 380px;
  }
  .diff-view {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.8;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
  }
  .diff-header {
    background: var(--bg3);
    padding: 8px 16px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 24px;
  }
  .diff-header span:first-child { color: var(--state-error); }
  .diff-header span:last-child  { color: var(--state-valid); }
  .diff-body { background: var(--bg3); padding: 12px 0; }
  .diff-line {
    display: flex;
    padding: 1px 16px;
    font-size: 12px;
  }
  .diff-line.removed { background: rgba(248,113,113,0.08); color: var(--state-error); }
  .diff-line.added   { background: rgba(200,216,232,0.07); color: var(--state-valid); }
  .diff-line.neutral { color: var(--text-muted); }
  .diff-sign { min-width: 16px; margin-right: 8px; }
  /* ── FEATURES TABLE ── */
  .features-table {
    border-top: 1px solid var(--border-bright);
  }
  .features-table-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    padding-left: 12px;
    margin-left: -12px;
  }
  .features-table-row:hover,
  .features-table-row.selected {
    background: rgba(200,216,232,0.04);
    border-bottom-color: var(--accent);
  }
  .features-table-row.selected .ft-name::before {
    content: '> ';
    color: var(--accent);
  }
  .ft-name {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
  }
  .ft-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
  }
  @media (max-width: 640px) {
    .features-table-row { grid-template-columns: 1fr; gap: 6px; }
  }
  /* ── MOATS ── */
  .moats-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
    margin-top: 80px;
  }
  .moats-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-bright);
  }
  .moat-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
  }
  .moat-claim {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .moat-diff-sign {
    color: var(--state-valid);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    opacity: 0.8;
  }
  .moat-annotation {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
  }
  @media (max-width: 1100px) {
    .moats-layout { 
      grid-template-columns: 1fr; 
      gap: 40px; 
    }
    .moat-row { grid-template-columns: 1fr; gap: 8px; }
    .score-card { position: static; }
  }
  /* ── CONFLICT LOG (replaces score card) ── */
  .conflict-log {
    background: var(--bg2);
    border: 1px solid var(--border-bright);
    border-left: 2px solid var(--state-error);
    overflow: hidden;
    position: sticky;
    top: 100px;
    height: fit-content;
    font-family: var(--mono);
  }
  .conflict-log-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .conflict-log-title {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
  }
  .conflict-log-count {
    font-size: 10px;
    color: var(--state-error);
    letter-spacing: 0.06em;
  }
  .conflict-log-body { padding: 8px 0; }
  .cl-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    line-height: 1.5;
  }
  .cl-entry:last-child { border-bottom: none; }
  .cl-entry.error { background: rgba(248,113,113,0.04); }
  .cl-entry.warn  { background: rgba(251,191,36,0.03); }
  .cl-file { color: var(--state-parse); white-space: nowrap; }
  .cl-entry.error .cl-msg { color: var(--state-error); }
  .cl-entry.warn  .cl-msg { color: var(--state-warn); }
  .conflict-log-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(248,113,113,0.06);
  }
  .cl-verdict { font-size: 11px; font-weight: 600; }
  .cl-verdict.error { color: var(--state-error); }
  .cl-action { font-size: 10px; color: var(--text-muted); }
  /* score card — kept for CSS completeness, hidden in moats */
  .score-card {
    background: var(--bg2);
    border: 1px solid var(--border-bright);
    border-radius: 0;
    overflow: hidden;
    position: sticky;
    top: 100px;
    height: fit-content;
  }
  .score-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .score-card-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
  }
  /* score-badge: left-border style, no pill */
  .score-badge {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.1em;
    border-left: 2px solid var(--accent);
    padding: 2px 0 2px 8px;
  }
  .score-rows { padding: 4px 0; }
  .score-row {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .score-row:last-child { border-bottom: none; }
  .score-label { font-size: 13px; font-weight: 400; flex: 1; }
  .score-bar-wrap {
    flex: 2;
    height: 5px;
    background: rgba(255,255,255,0.04);
    border-radius: 0;
    overflow: hidden;
    position: relative;
  }
  .score-bar {
    height: 100%;
    transition: width 1.1s steps(24, end);
    position: relative;
  }
  .score-bar.high   { background: var(--state-valid); }
  .score-bar.medium { background: var(--state-warn); }
  .score-bar.low    { background: var(--state-error); }
  .score-pct {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    min-width: 36px;
    text-align: right;
  }
  .score-footer {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(200,216,232,0.06);
    border-top: 1px solid rgba(200,216,232,0.15);
  }
  .score-total-label { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
  .score-total-val { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--accent); }
  /* ── PRICING TABLE ── */
  .pricing-table {
    margin-top: 56px;
    border: none;
    border-top: 1px solid var(--border-bright);
    border-radius: 0;
    overflow: hidden;
    font-family: var(--mono);
  }
  .pt-head {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    border-bottom: 2px solid var(--border-bright);
    background: var(--bg2);
  }
  .pt-head::before {
    content: '$ postidea init --plan';
    grid-column: 1 / -1;
    display: block;
    padding: 12px 20px 8px;
    font-size: 10px;
    color: var(--state-parse);
    opacity: 0.5;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
  }
  .pt-row {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
  }
  .pt-row:last-child { border-bottom: none; }
  .pt-cell {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-dim);
    border-right: 1px solid var(--border);
  }
  .pt-cell:last-child { border-right: none; }
  .pt-label-col { background: var(--bg2); }
  .pt-label {
    background: var(--bg2);
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .pt-tier {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 20px;
    background: var(--bg2);
  }
  .pt-tier-featured {
    background: var(--bg3);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
  }
  .pt-featured-col {
    background: rgba(200,216,232,0.04);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    color: var(--text);
  }
  /* pt-tier-name defined above */
  .pt-tier-price {
    font-family: var(--mono);
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
  }
  .pt-tier-price sup { font-family: var(--mono); font-size: 16px; vertical-align: top; margin-top: 4px; }
  .pt-tier-price sub { font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
  .pt-tier-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .pt-yes { color: var(--accent); font-weight: 500; }
  .pt-no  { color: var(--text-muted); }
  @media (max-width: 768px) {
    .pt-head, .pt-row { grid-template-columns: 120px repeat(3, 1fr); }
    .pt-cell { padding: 12px 10px; font-size: 11px; }
    .pt-tier { padding: 16px 10px; }
    .pt-tier-price { font-size: 26px; }
  }
  @media (max-width: 480px) {
    .pricing-table { overflow-x: auto; }
    .pt-head, .pt-row { min-width: 480px; }
  }
  .btn-plan {
    width: 100%;
    padding: 16px;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text);
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    display: block;
    text-decoration: none;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
  }
  .btn-plan::before {
    content: attr(data-state);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200,216,232,0.10);
    color: var(--accent);
    opacity: 0;
    transition: opacity 200ms;
    font-size: 12px;
    font-weight: 600;
  }
  .btn-plan:hover::before { opacity: 1; }
  .btn-plan:hover { 
    border-color: var(--accent);
    background: rgba(200,216,232,0.06);
    color: transparent;
  }
  .btn-plan.featured {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
  }
  .btn-plan.featured::before {
    background: transparent;
    color: rgba(0, 0, 0, 0.4);
  }
  .btn-plan.featured:hover { 
    background: var(--accent);
    filter: brightness(1.15);
    color: var(--bg);
  }
  /* ── CTA BANNER ── */
  .cta-banner {
    margin: 0 48px 120px;
    border-top: 1px solid var(--border-bright);
    border-bottom: 1px solid var(--border-bright);
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 80px;
    text-align: left;
    position: relative;
  }
  .cta-banner h2 {
    font-family: var(--mono);
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: var(--text);
  }
  .cta-banner h2 em { font-style: italic; color: var(--accent); }
  .cta-banner p {
    font-size: 16px;
    color: var(--text-dim);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
  }
  .cta-banner .hero-actions {
    justify-content: flex-end;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 200px;
  }
  @media (max-width: 900px) {
    .cta-banner {
      grid-template-columns: 1fr;
      gap: 40px;
      margin: 0 24px 80px;
      padding: 60px 0;
    }
    .cta-banner .hero-actions { flex-direction: row; align-items: center; }
  }
  @media (max-width: 640px) {
    .cta-banner { margin: 0 16px 60px; padding: 40px 0; }
    .cta-banner .hero-actions { flex-direction: column; }
  }
  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-left {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .footer-exit {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
  }
  .footer-exit::before {
    content: '$ ';
    color: var(--accent);
    opacity: 0.6;
  }
  .footer-copy {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
  }
  .footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
  }
  .footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--text); }
  .footer-right {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .footer-right::before {
    content: '$ ';
    font-size: 10px;
    color: var(--state-parse);
    opacity: 0.5;
  }
  /* ── RESPONSIVE ── */
  @media (max-width: 1100px) {
    .hero-terminal { display: none; }
    .moats-layout { grid-template-columns: 1fr; gap: 40px; }
    .score-card { position: static; }
  }
  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    .nav-cta { display: inline-block; }
    section { padding: 80px 24px; }
    .hero { padding: 120px 24px 80px; }
    .pipeline { grid-template-columns: 1fr; }
    .pipeline-track { 
      border-right: none; 
      border-bottom: 1px solid var(--border-bright); 
      flex-direction: row; 
      flex-wrap: wrap; 
    }
  }
  @media (max-width: 640px) {
    body { font-size: 15px; }
    nav { padding: 12px 16px; }
    nav .nav-cta { display: none; }
    section { padding: 60px 16px; }
    .hero { padding: 100px 16px 60px; }
    .hero-heading { font-size: clamp(36px, 9vw, 56px); }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-wrap: wrap; }
    .section-state-badge { position: static; display: inline-block; margin-bottom: 16px; }
    .btn-plan { padding: 12px; font-size: 13px; }
    .pricing-card { padding: 32px 24px; }
    .cta-banner { margin: 0 16px 60px; padding: 40px 24px; }
    .pipeline-detail { padding: 32px 20px; max-height: none; }
    .feature-hero { grid-template-columns: 1fr; }
  }
  /* ── PAGE GUTTER (line numbers) ── */
  .page-gutter {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 40px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    z-index: 800;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
  }
  .gutter-line {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-muted);
    opacity: 0.3;
    text-align: right;
    padding-right: 8px;
    line-height: 24px;
    flex-shrink: 0;
  }
  @media (max-width: 900px) { .page-gutter { display: none; } }
  /* ── NAV LOGO NEW ── */
  .nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: rgba(232,196,154,0.1);
    border: 1px solid rgba(232,196,154,0.3);
    border-radius: 6px;
    flex-shrink: 0;
  }
  .nav-logo-text {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  /* ── NAV CTA PILL ── */
  .nav-cta-pill {
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
  }
  /* ── HERO LABEL ── */
  .hero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
  }
  .hero-label-dot {
    color: var(--accent);
    font-size: 8px;
  }
  /* ── HERO HEADING SERIF ── */
  .hero-heading {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(32px, 3.8vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 32px;
  }
  .hero-heading em,
  .hero-em-conflict {
    font-style: italic;
    color: var(--accent);
    animation: none;
  }
  /* ── HERO DESC ── */
  .hero-desc {
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 48px;
  }
  /* ── PILL BUTTONS ── */
  .btn-pill {
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 14px;
  }
  .btn-pill-outline {
    border-radius: 999px;
    padding: 13px 28px;
    font-size: 14px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid rgba(255,255,255,0.2);
    font-family: var(--mono);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.15s, color 0.15s;
    letter-spacing: 0.02em;
  }
  .btn-pill-outline:hover { border-color: var(--accent); color: var(--accent); }
  /* ── AST HEADER NEW ── */
  .ast-inv-bracket { color: var(--text-muted); font-size: 11px; }
  .ast-inv-arrow { color: var(--text-muted); margin: 0 4px; font-size: 11px; }
  .logo-cmd {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .logo-arg { color: var(--accent); }
  /* ── SECTION LABEL WITH INLINE STATE ── */
  .section-label-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .section-label-row .section-label { margin-bottom: 0; }
  .inline-state {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    padding: 3px 8px;
    border: 1px solid;
  }
  .inline-state.parsing {
    color: var(--state-parse);
    border-color: var(--state-parse);
    background: rgba(125,211,252,0.08);
  }
  .inline-state.validating {
    color: var(--state-warn);
    border-color: var(--state-warn);
    background: rgba(251,191,36,0.08);
  }
  .inline-state.verified {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200,216,232,0.08);
  }
  /* ── MOATS DIAGNOSTIC FORMAT ── */
  .moats-diagnostic {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
  }
  .moats-diagnostic .diag-file { color: var(--state-parse); }
  .moats-diagnostic .diag-note { color: var(--accent); }
  /* ── NAV COMPILER STATUS ── */
  .nav-compiler-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
  }
  .ncs-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s;
  }
  .nav-compiler-status[data-state="parsing"] .ncs-dot { background: var(--state-parse); }
  .nav-compiler-status[data-state="parsing"] .ncs-text { color: var(--state-parse); }
  .nav-compiler-status[data-state="conflict"] .ncs-dot { background: var(--state-error); }
  .nav-compiler-status[data-state="conflict"] .ncs-text { color: var(--state-error); }
  .nav-compiler-status[data-state="verified"] .ncs-dot { background: var(--accent); }
  .nav-compiler-status[data-state="verified"] .ncs-text { color: var(--accent); }
  @media (max-width: 900px) { .nav-compiler-status { display: none; } }
  /* ── SCAN LINE (hero load effect) ── */
  .hero-scanline {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(200,216,232,0.6) 40%, rgba(200,216,232,0.6) 60%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    top: 0;
  }
  .hero-scanline.scanning {
    animation: scandown 1.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  }
  @keyframes scandown {
    0%   { top: 0;    opacity: 0.7; }
    80%  { top: 100%; opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
  }
  /* ── HERO ASYMMETRIC ── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 88px 100px;
    position: relative;
    overflow: clip;
    background-color: #0d0d0d;
    background-image: radial-gradient(circle, rgba(180,130,80,0.18) 1px, transparent 1px);
    background-size: 24px 24px;
    isolation: isolate;
  }
  .hero > * {
    position: relative;
    z-index: 1;
  }
  .hero-top {
    display: none;
  }
  .hero-bottom {
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    column-gap: 80px;
  }
  .hero-ast-viz {
    width: 100%;
    max-height: 520px;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-right: none;
    border-radius: 0;
    background: var(--bg2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media (max-width: 1280px) {
    .hero {
      padding: 140px 24px 100px 88px;
    }
    .hero-bottom {
      grid-template-columns: 1fr;
    }
    .hero-ast-viz {
      border-right: 1px solid var(--border);
      margin-top: 48px;
    }
  }
  @media (max-width: 900px) {
    .hero { padding: 120px 24px 80px 24px; }
  }
  /* ── HERO CTA COMPILER STATE ── */
  .btn-primary-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(0,0,0,0.5);
    opacity: 1;
    transition: opacity 0.3s;
  }
  .btn-primary-label {
    opacity: 0;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-primary.ready .btn-primary-state { opacity: 0; }
  .btn-primary.ready .btn-primary-label { opacity: 1; }
  /* ── STDERR JUMP LINK ── */
  .stderr-jump {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    white-space: nowrap;
    padding-left: 16px;
  }
  .stderr-jump:hover { opacity: 1; }
  /* ── NAV CURSOR HOVER ── */
  .nav-links a::before {
    content: '> ';
    position: static;
    opacity: 0;
    color: var(--state-parse);
    transition: opacity 0.15s;
    font-size: 11px;
  }
  .nav-links a:hover::before { opacity: 1; }
  .nav-links a:hover { color: var(--text); }
  /* ── SECTION LINE NUMBERS ── */
  .section-title[data-line]::before {
    content: attr(data-line);
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    font-weight: 400;
  }


/* ── ROUND 2: CHANGE 1 — Full-bleed oversized hero heading ── */
.hero-heading-bleed {
  max-width: none;
  width: calc(100% + 88px);
  margin-left: -44px;
  padding-left: 44px;
  font-size: clamp(56px, 8.5vw, 128px);
  letter-spacing: -0.05em;
  line-height: 1.0;
  border-left: 3px solid var(--state-error);
  padding-top: 8px;
  padding-bottom: 8px;
}
@media (max-width: 1280px) {
  .hero-heading-bleed {
    width: calc(100% + 24px);
    margin-left: -12px;
    padding-left: 12px;
    font-size: clamp(48px, 7vw, 96px);
  }
}
@media (max-width: 900px) {
  .hero-heading-bleed {
    width: 100%;
    margin-left: 0;
    padding-left: 16px;
    font-size: clamp(40px, 9vw, 72px);
  }
}

/* ── ROUND 2: CHANGE 2 — AST widget compiler invocation header ── */
.ast-invocation {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex: 1;
}
.ast-inv-prompt {
  color: var(--state-parse);
  margin-right: 6px;
  opacity: 0.8;
}
.ast-inv-file {
  color: var(--accent);
}
.ast-inv-flag {
  color: var(--text-muted);
  opacity: 0.7;
}
.ast-inv-status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--state-warn);
  letter-spacing: 0.08em;
  animation: status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* Override the old ast-header layout to accommodate new content */
.ast-header {
  justify-content: space-between;
  text-transform: none;
}

/* ── ROUND 2: CHANGE 3 — Features section compiler margin rule ── */
.features-section {
  position: relative;
}
.features-section::before {
  content: 'pass[4/6]';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  border-right: 2px solid var(--border-bright);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--state-warn);
  letter-spacing: 0.12em;
  opacity: 0.5;
  padding-bottom: 24px;
  background: var(--bg);
}
@media (max-width: 900px) {
  .features-section::before { display: none; }
}

/* ── ROUND 2: CHANGE 4 — CTA as compiler verdict block ── */
.cta-section {
  padding: 0 48px 120px;
}
.cta-verdict {
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.cta-verdict-output {
  padding: 64px 48px;
  border-right: 1px solid var(--border-bright);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg2);
}
.cta-verdict-line {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
.cta-verdict-exit {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.cvl-prompt { color: var(--state-parse); margin-right: 8px; opacity: 0.8; }
.cvl-file   { color: var(--state-parse); }
.cvl-sep    { color: var(--text-muted); margin: 0 1px; }
.cvl-loc    { color: var(--text-muted); }
.cvl-ok     { color: var(--accent); font-weight: 600; }
.cvl-msg    { color: var(--text-dim); }
.cvl-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1.1s step-end infinite;
}
.cta-verdict-result {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cvr-status {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cvr-status.pass { color: var(--accent); }
.cvr-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.cta-verdict-actions {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-verdict-heading {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}
.cta-verdict-heading em { font-style: italic; color: var(--accent); }
.cta-verdict-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .cta-section { padding: 0 24px 80px; }
  .cta-verdict { grid-template-columns: 1fr; }
  .cta-verdict-output { border-right: none; border-bottom: 1px solid var(--border-bright); padding: 40px 24px; }
  .cta-verdict-actions { padding: 40px 24px; }
}
@media (max-width: 640px) {
  .cta-section { padding: 0 16px 60px; }
  .cta-verdict-output, .cta-verdict-actions { padding: 32px 16px; }
}

/* ── ROUND 2: CHANGE 5 — Pipeline step micro-diff on hover ── */
.pipeline-step::after {
  /* override the active arrow — only show on active */
  content: '';
}
.pipeline-step.active::after {
  content: '';
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--bg3);
}
.pipeline-step .step-diff {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--bg3);
  border: 1px solid var(--border-bright);
  padding: 4px 8px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 10;
  line-height: 1.4;
}
.pipeline-step:hover .step-diff { display: block; }

/* ── AUTH MODAL ── */
.auth-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.auth-modal-box {
  width: 380px; padding: 32px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
}
.auth-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 20px; line-height: 1;
}
.auth-modal-close:hover { color: #fff; }
.auth-modal-brand { font-size: 11px; color: #fff; letter-spacing: 0.08em; margin-bottom: 4px; }
.auth-modal-sub { font-size: 10px; color: rgba(255,255,255,0.4); margin-bottom: 24px; }
.auth-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 14px; margin-bottom: 10px;
  border-radius: 6px; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: opacity 0.15s;
}
.auth-oauth-btn:hover { opacity: 0.85; }
.auth-google { background: #fff; color: #1a1a1a; }
.auth-github { background: #24292e; color: #fff; }
.auth-email  { background: #2a2a2a; color: rgba(255,255,255,0.8); }
.auth-divider {
  display: flex; align-items: center; gap: 10px; margin: 16px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.auth-divider span { font-size: 10px; color: rgba(255,255,255,0.3); }
.auth-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 9px 12px; margin-bottom: 10px;
  background: #111; border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; border-radius: 4px; outline: none;
}
.auth-input:focus { border-color: rgba(255,255,255,0.3); }
.auth-submit {
  width: 100%; padding: 9px;
  background: #e8c49a; color: #111;
  border: none; border-radius: 6px;
  cursor: pointer; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; margin-top: 4px;
}
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-form-footer {
  display: flex; justify-content: space-between; margin-top: 12px;
}
.auth-link {
  background: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.4); padding: 0;
}
.auth-link-accent { color: #e8c49a; }
.auth-error {
  background: rgba(216,27,96,0.12); border: 1px solid rgba(216,27,96,0.4);
  color: #f48fb1; font-size: 11px; padding: 10px 14px;
  border-radius: 4px; margin-bottom: 14px;
}
