:root {
    --bg:     #191919;
    --navy2:  #1e1e1e;
    --card:   #242424;
    --orange: #FF4C0B;
    --peach:  #FFC79A;
    --white:  #F6F1E7;
    --muted:  #9C8880;
    --green:  #7dd4a8;
    --amber:  #f5c842;
    --blue:   #a8c4e0;
    --border: rgba(255,76,11,0.15);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 4rem;
    background: rgba(25,25,25,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,76,11,0.08);
  }
  .nav-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
  .logo-name-row { display: flex; align-items: center; gap: 0; }
  .logo-trio { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
  .logo-click { font-size: 1.15rem; font-weight: 800; color: var(--orange); letter-spacing: -0.02em; }
  .logo-ai {
    font-size: 0.55rem; font-weight: 800; color: var(--peach);
    background: rgba(255,76,11,0.1); border: 1px solid rgba(255,76,11,0.3);
    padding: 0.1rem 0.35rem; border-radius: 3px; margin-left: 4px; letter-spacing: 0.05em;
  }
  .logo-descriptor { font-size: 0.52rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .nav-links { display: flex; gap: 2.5rem; align-items: center; }
  .nav-links a { color: rgba(246,241,231,0.6); font-weight: 500; font-size: 0.88rem; text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--white); }
  .nav-links a.active { color: var(--orange); }
  .nav-back { display: flex; align-items: center; gap: 0.5rem; color: rgba(246,241,231,0.6); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
  .nav-back:hover { color: var(--peach); }
  .btn-nav {
    background: var(--orange); color: #fff; font-weight: 700; font-size: 0.82rem;
    padding: 0.6rem 1.4rem; border-radius: 3px; text-decoration: none;
    transition: background 0.2s; letter-spacing: 0.04em;
  }
  .btn-nav:hover { background: #e04500; }

  /* ── SHARED ── */
  section { padding: 7rem 4rem; }
  .section-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--orange); margin-bottom: 0.9rem;
    display: block;
  }
  .section-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.2rem;
  }
  .section-sub {
    font-size: 1rem; color: rgba(246,241,231,0.7);
    max-width: 600px; line-height: 1.75; font-weight: 400;
  }
  .inner { max-width: 1200px; margin: 0 auto; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .tag-cde {
    display: inline-flex; align-items: center;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem; border-radius: 3px;
    background: rgba(255,76,11,0.1); border: 1px solid rgba(255,76,11,0.35);
    color: var(--orange); margin-right: 0.6rem;
  }

  /* ── HERO ── */
  .mod-hero {
    min-height: 88vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 9rem 4rem 5rem;
    gap: 4rem;
    position: relative;
    overflow: hidden;
  }
  .mod-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,76,11,0.07) 0%, transparent 65%);
    pointer-events: none;
  }
  .hero-eyebrow {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.4rem;
    opacity: 0; animation: fadeUp 0.7s ease forwards 0.2s;
  }
  .hero-module-badge {
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
    padding: 0.3rem 0.75rem; border-radius: 3px;
    background: rgba(255,76,11,0.1); border: 1px solid rgba(255,76,11,0.4);
    color: var(--orange); text-transform: uppercase;
  }
  .hero-eyebrow-text { font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; }
  .mod-hero h1 {
    font-size: clamp(3rem, 5.5vw, 5.5rem); font-weight: 800;
    line-height: 0.95; letter-spacing: -0.03em;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.35s;
  }
  .mod-hero h1 .accent { color: var(--orange); }
  .mod-hero h1 .dim { color: rgba(246,241,231,0.35); }
  .hero-sub {
    margin-top: 1.8rem; font-size: 1.05rem;
    color: rgba(246,241,231,0.72); line-height: 1.75;
    max-width: 480px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s;
  }
  .hero-for {
    margin-top: 1.6rem; display: flex; gap: 0.5rem; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.65s;
  }
  .for-pill {
    font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.8rem;
    border-radius: 20px; border: 1px solid rgba(255,199,154,0.25);
    color: var(--peach); background: rgba(255,199,154,0.06);
  }
  .hero-actions {
    margin-top: 2.2rem; display: flex; gap: 1rem; align-items: center;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s;
  }
  .btn-primary {
    background: var(--orange); color: #fff; font-weight: 700;
    padding: 0.85rem 2rem; border-radius: 3px; text-decoration: none;
    font-size: 0.9rem; transition: background 0.2s;
  }
  .btn-primary:hover { background: #e04500; }
  .btn-ghost {
    color: rgba(246,241,231,0.6); font-weight: 500; font-size: 0.88rem;
    text-decoration: none; transition: color 0.2s;
  }
  .btn-ghost:hover { color: var(--white); }

  /* Hero visual — relational diagram */
  .hero-visual {
    opacity: 1;
    display: flex; align-items: center; justify-content: center;
  }
  .rel-diagram {
    width: 100%; max-width: 520px;
    background: #111;
    border: 1px solid rgba(255,76,11,0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  }
  .rd-bar {
    display: flex; align-items: center; padding: 8px 14px 6px;
    background: #0e0e0e; border-bottom: 1px solid rgba(255,76,11,0.1);
    gap: 6px;
  }
  .rd-dots { display: flex; gap: 5px; }
  .rd-dots span { width: 8px; height: 8px; border-radius: 50%; display: block; }
  .rd-dots span:nth-child(1){background:#ff5f57;}
  .rd-dots span:nth-child(2){background:#febc2e;}
  .rd-dots span:nth-child(3){background:#28c840;}
  .rd-title { flex: 1; text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }

  /* Centre doc node */
  .rd-body { padding: 1.5rem; position: relative; }
  .rd-center {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 1rem;
  }
  .rd-doc-node {
    background: rgba(255,76,11,0.08); border: 1px solid rgba(255,76,11,0.4);
    border-radius: 6px; padding: 0.7rem 1.2rem; text-align: center;
    min-width: 180px;
  }
  .rd-doc-num { font-size: 0.62rem; font-weight: 800; color: var(--orange); font-family: monospace; letter-spacing: 0.05em; }
  .rd-doc-name { font-size: 0.75rem; font-weight: 700; color: var(--white); margin-top: 2px; }
  .rd-doc-rev { font-size: 0.55rem; font-weight: 700; color: var(--green); background: rgba(125,212,168,0.1); border: 1px solid rgba(125,212,168,0.25); padding: 1px 6px; border-radius: 2px; display: inline-block; margin-top: 4px; }

  /* Relation nodes grid */
  .rd-relations {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; margin-top: 1rem;
  }
  .rd-rel {
    background: var(--card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px; padding: 0.5rem 0.6rem; text-align: center;
    position: relative;
  }
  .rd-rel-label { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .rd-rel-value { font-size: 0.68rem; font-weight: 600; color: var(--white); }
  .rd-rel-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }

  /* connector line from doc to grid */
  .rd-connector {
    width: 1px; height: 20px;
    background: linear-gradient(to bottom, rgba(255,76,11,0.5), rgba(255,76,11,0.1));
    margin: 0 auto;
  }
  .rd-footer {
    display: flex; justify-content: space-between;
    padding: 6px 10px;
    border-top: 1px solid rgba(255,76,11,0.07);
    background: rgba(255,76,11,0.03);
  }
  .rd-footer-item { font-size: 0.52rem; color: var(--muted); }
  .rd-footer-item strong { color: var(--orange); }

  /* ── PRINCIPLES ── */
  .principles-section { background: var(--navy2); border-top: 1px solid rgba(255,76,11,0.08); border-bottom: 1px solid rgba(255,76,11,0.08); }
  .principles-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.2rem; margin-top: 3.5rem;
  }
  .principle-card {
    padding: 2rem 1.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
  }
  .principle-card:last-child { border-right: none; }
  .principle-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent);
  }
  .principle-num {
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em;
    color: rgba(255,76,11,0.4); margin-bottom: 0.8rem; display: block;
  }
  .principle-title { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 0.7rem; line-height: 1.25; }
  .principle-desc { font-size: 0.82rem; color: rgba(246,241,231,0.68); line-height: 1.65; font-weight: 400; }

  /* ── PRINCIPLE DIAGRAM STYLES ── */
  .principle-diagram {
    margin: 1.2rem 0 1.4rem;
    background: rgba(255,76,11,0.03);
    border: 1px solid rgba(255,76,11,0.1);
    border-radius: 5px;
    padding: 1.4rem 1rem;
    display: flex; align-items: center; justify-content: center;
  }
  /* relationship graph */
  .rel-graph { position: relative; width: 100%; height: 200px; }
  .rg-node {
    position: absolute;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 2px;
    border: 1.5px solid;
    font-size: 0.6rem; font-weight: 700; text-align: center;
    line-height: 1.2;
  }
  .rg-node-center {
    width: 72px; height: 72px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255,76,11,0.1); border-color: var(--orange);
    color: var(--orange); font-size: 0.52rem;
  }
  .rg-node-outer {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.15);
    color: rgba(246,241,231,0.65);
  }
  .rg-num { font-size: 0.44rem; color: var(--orange); font-family: monospace; margin-bottom: 1px; }
  /* SVG connector lines sit behind nodes */
  .rg-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  /* min-max flow diagram */
  .mm-diagram {
    display: flex; align-items: center; gap: 0;
    width: 100%;
  }
  .mm-input {
    display: flex; flex-direction: column; gap: 8px;
    align-items: center; flex-shrink: 0;
  }
  .mm-input-label { font-size: 0.55rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
  .mm-file-icon {
    width: 38px; height: 46px; position: relative;
    background: var(--card); border: 1.5px solid rgba(255,76,11,0.3);
    border-radius: 3px 8px 3px 3px;
    display: flex; align-items: center; justify-content: center;
  }
  .mm-file-icon::before {
    content: ''; position: absolute; top: -1px; right: -1px;
    width: 10px; height: 10px;
    border-left: 1.5px solid rgba(255,76,11,0.3);
    border-bottom: 1.5px solid rgba(255,76,11,0.3);
    background: var(--bg); border-radius: 0 0 0 3px;
  }
  .mm-file-icon svg { width: 16px; height: 16px; opacity: 0.5; }
  .mm-reg-icon {
    width: 38px; height: 42px;
    background: var(--card); border: 1.5px solid rgba(255,76,11,0.2);
    border-radius: 3px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 4px 6px; gap: 3px;
  }
  .mm-reg-line { height: 2px; border-radius: 1px; background: rgba(255,76,11,0.3); }
  .mm-reg-line:nth-child(2) { width: 70%; }
  .mm-reg-line:nth-child(3) { width: 55%; }
  .mm-input-sublabel { font-size: 0.5rem; color: var(--muted); text-align: center; line-height: 1.3; }

  .mm-arrow {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; color: rgba(255,76,11,0.5); font-size: 1rem; font-weight: 700;
    letter-spacing: -2px;
  }
  .mm-gear {
    width: 52px; height: 52px; flex-shrink: 0;
    background: rgba(255,76,11,0.08); border: 1.5px solid rgba(255,76,11,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: spin 6s linear infinite;
  }
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .mm-gear svg { width: 26px; height: 26px; color: var(--orange); }

  .mm-outputs {
    flex-shrink: 0;
    border: 1.5px dashed rgba(168,196,224,0.35);
    border-radius: 5px; padding: 8px 10px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .mm-out-label { font-size: 0.52rem; color: var(--blue); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
  .mm-out-item {
    font-size: 0.64rem; color: rgba(246,241,231,0.7); font-weight: 500;
    display: flex; align-items: center; gap: 5px;
  }
  .mm-out-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

  /* ── HOW IT WORKS — WORKFLOW ── */
  .workflow-section {}
  .workflow-header {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; margin-bottom: 4rem; align-items: end;
  }
  .workflow-steps {
    display: flex; flex-direction: column; gap: 0;
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  }
  .wf-step {
    display: grid; grid-template-columns: 56px 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
  }
  .wf-step:last-child { border-bottom: none; }
  .wf-step:hover { background: rgba(255,76,11,0.03); }
  .wf-num {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,76,11,0.05);
    border-right: 1px solid rgba(255,76,11,0.1);
    font-size: 1rem; font-weight: 800; color: rgba(255,76,11,0.4);
    flex-shrink: 0;
  }
  .wf-content { padding: 1.2rem 1.5rem; }
  .wf-title { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
  .wf-desc { font-size: 0.8rem; color: rgba(246,241,231,0.65); line-height: 1.6; }
  .wf-tag {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem; border-radius: 2px;
    background: rgba(125,212,168,0.08); border: 1px solid rgba(125,212,168,0.2);
    color: var(--green);
  }
  .wf-tag.warn {
    background: rgba(245,200,66,0.08); border-color: rgba(245,200,66,0.2); color: var(--amber);
  }

  /* Submission mockup */
  .submission-mock {
    background: #111; border: 1px solid rgba(255,76,11,0.2);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.4);
  }
  .sm-bar {
    display: flex; align-items: center; padding: 8px 14px;
    background: #0e0e0e; border-bottom: 1px solid rgba(255,76,11,0.1); gap: 6px;
  }
  .sm-dots { display: flex; gap: 5px; }
  .sm-dots span { width: 7px; height: 7px; border-radius: 50%; display: block; }
  .sm-dots span:nth-child(1){background:#ff5f57;}
  .sm-dots span:nth-child(2){background:#febc2e;}
  .sm-dots span:nth-child(3){background:#28c840;}
  .sm-title { flex: 1; text-align: center; font-size: 0.65rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }

  /* Progress bar */
  .sm-progress {
    display: flex; padding: 10px 16px; gap: 0;
    background: #0f0f0f; border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .sm-step {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    position: relative;
  }
  .sm-step::after {
    content: ''; position: absolute; top: 7px; left: 50%; right: -50%;
    height: 1px; background: rgba(255,255,255,0.08);
  }
  .sm-step:last-child::after { display: none; }
  .sm-step-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--card); z-index: 1; display: flex; align-items: center; justify-content: center;
    font-size: 0.45rem; font-weight: 800;
  }
  .sm-step-dot.done { background: var(--green); border-color: var(--green); color: #0a1a12; }
  .sm-step-dot.active { background: var(--orange); border-color: var(--orange); color: #fff; }
  .sm-step-label { font-size: 0.48rem; font-weight: 600; color: var(--muted); text-align: center; }
  .sm-step.active-step .sm-step-label { color: var(--orange); }

  .sm-body { padding: 1rem 1.2rem; }
  .sm-section-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }

  /* Validation rows */
  .sm-file-row {
    display: grid; grid-template-columns: 1fr 55px 70px;
    padding: 5px 8px; border-radius: 3px; margin-bottom: 3px;
    align-items: center; gap: 6px;
  }
  .sm-file-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
  .sm-fname { font-size: 0.58rem; color: rgba(246,241,231,0.7); font-family: monospace; }
  .sm-rev-badge {
    font-size: 0.5rem; font-weight: 800; text-align: center;
    padding: 1px 5px; border-radius: 2px;
  }
  .sm-rev-c { background: rgba(255,76,11,0.12); color: var(--peach); }
  .sm-rev-b { background: rgba(129,111,102,0.12); color: var(--muted); }
  .sm-status {
    font-size: 0.5rem; font-weight: 700; text-align: center;
    padding: 2px 5px; border-radius: 2px;
  }
  .sm-ok   { background: rgba(125,212,168,0.1); color: var(--green); }
  .sm-warn { background: rgba(245,200,66,0.1);  color: var(--amber); }
  .sm-new  { background: rgba(168,196,224,0.1); color: var(--blue); }

  .sm-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-top: 1px solid rgba(255,76,11,0.07);
    background: rgba(255,76,11,0.02);
  }
  .sm-footer-info { font-size: 0.56rem; color: var(--muted); }
  .sm-btn {
    font-size: 0.6rem; font-weight: 700; padding: 4px 12px;
    border-radius: 2px; border: none; cursor: pointer;
  }
  .sm-btn-primary { background: var(--orange); color: #fff; }
  .sm-btn-ghost   { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--muted); }

  /* ── SCOPE OF DOCUMENTS ── */
  .scope-section { background: var(--navy2); border-top: 1px solid rgba(255,76,11,0.08); }
  .scope-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem; margin-top: 3.5rem;
  }
  .scope-card {
    background: var(--card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px; padding: 1.6rem 1.4rem;
    transition: border-color 0.25s, transform 0.2s;
    position: relative; overflow: hidden;
  }
  .scope-card:hover { border-color: rgba(255,76,11,0.35); transform: translateY(-3px); }
  .scope-card-letter {
    font-size: 2rem; font-weight: 800; color: rgba(255,76,11,0.15);
    position: absolute; top: 0.8rem; right: 1rem;
    letter-spacing: -0.05em;
  }
  .scope-icon { width: 32px; height: 32px; margin-bottom: 0.9rem; display: block; }
  .scope-title { font-size: 0.92rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
  .scope-desc { font-size: 0.8rem; color: rgba(246,241,231,0.65); line-height: 1.6; }
  .scope-note {
    margin-top: 2rem; padding: 1rem 1.4rem;
    background: rgba(245,200,66,0.05); border: 1px solid rgba(245,200,66,0.2);
    border-radius: 4px; font-size: 0.82rem; color: rgba(246,241,231,0.7);
    display: flex; gap: 0.8rem; align-items: flex-start;
  }
  .scope-note-icon { color: var(--amber); flex-shrink: 0; margin-top: 1px; }

  /* ── CDE INTEGRATION ── */
  .integration-section { background: var(--navy2); border-top: 1px solid rgba(255,76,11,0.08); }
  .integration-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: start; margin-top: 4rem;
  }
  .integration-principles {
    display: flex; flex-direction: column; gap: 1rem;
  }
  .int-principle {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 1.3rem;
    background: var(--card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px; transition: border-color 0.2s;
  }
  .int-principle:hover { border-color: rgba(255,76,11,0.3); }
  .int-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; display: block; }
  .int-title { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
  .int-desc { font-size: 0.8rem; color: rgba(246,241,231,0.65); line-height: 1.6; }

  /* CDE cards */
  .cde-cards { display: flex; flex-direction: column; gap: 1rem; }
  .cde-card {
    background: var(--card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px; overflow: hidden;
    transition: border-color 0.2s;
  }
  .cde-card:hover { border-color: rgba(255,76,11,0.25); }
  .cde-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .cde-name { font-size: 0.88rem; font-weight: 700; color: var(--white); }
  .cde-badge {
    font-size: 0.55rem; font-weight: 700; padding: 0.15rem 0.55rem;
    border-radius: 2px; letter-spacing: 0.08em;
  }
  .cde-badge-aconex { background: rgba(168,196,224,0.1); border: 1px solid rgba(168,196,224,0.25); color: var(--blue); }
  .cde-badge-acc    { background: rgba(125,212,168,0.1); border: 1px solid rgba(125,212,168,0.25); color: var(--green); }
  .cde-badge-sp     { background: rgba(245,200,66,0.1);  border: 1px solid rgba(245,200,66,0.2);  color: var(--amber); }
  .cde-actions { display: flex; flex-direction: column; gap: 3px; padding: 0.8rem 1.2rem; }
  .cde-action {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.76rem; color: rgba(246,241,231,0.65);
  }
  .cde-action-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

  /* ── SINGLE SOURCE ── */
  .truth-section {}
  .truth-layout {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 5rem; align-items: center; margin-top: 4rem;
  }
  .truth-visual {
    background: #111; border: 1px solid rgba(255,76,11,0.2);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.4);
  }
  .tv-header {
    padding: 10px 16px; background: #0e0e0e;
    border-bottom: 1px solid rgba(255,76,11,0.1);
    font-size: 0.62rem; font-weight: 700; color: var(--muted);
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .tv-body { padding: 1.2rem; }
  .tv-row {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.8rem; margin-bottom: 0.5rem;
    border-radius: 4px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
  }
  .tv-platform { font-size: 0.6rem; font-weight: 700; width: 70px; flex-shrink: 0; margin-top: 2px; }
  .tv-platform.trio  { color: var(--orange); }
  .tv-platform.other { color: var(--muted); }
  .tv-content { flex: 1; }
  .tv-doc-num { font-size: 0.6rem; font-family: monospace; color: rgba(246,241,231,0.5); margin-bottom: 2px; }
  .tv-action { font-size: 0.72rem; font-weight: 600; }
  .tv-action.override { color: var(--green); }
  .tv-action.ignored  { color: rgba(129,111,102,0.5); text-decoration: line-through; }
  .tv-action.synced   { color: var(--blue); }
  .tv-badge { font-size: 0.48rem; font-weight: 700; padding: 1px 5px; border-radius: 2px; margin-top: 2px; display: inline-block; }
  .tv-badge-sync    { background: rgba(125,212,168,0.1); color: var(--green); }
  .tv-badge-ignore  { background: rgba(129,111,102,0.08); color: var(--muted); }

  .truth-points { display: flex; flex-direction: column; gap: 1.2rem; }
  .truth-point {
    padding: 1.2rem 1.4rem;
    background: var(--card); border: 1px solid rgba(255,255,255,0.05);
    border-left: 2px solid var(--orange); border-radius: 0 5px 5px 0;
  }
  .truth-point-title { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
  .truth-point-desc  { font-size: 0.82rem; color: rgba(246,241,231,0.65); line-height: 1.6; }

  /* ── MIN INPUT MAX OUTPUT ── */
  .minmax-section { background: var(--navy2); border-top: 1px solid rgba(255,76,11,0.08); }
  .minmax-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center; margin-top: 4rem;
  }
  .minmax-flow {
    display: flex; flex-direction: column; gap: 0;
  }
  .mf-step {
    display: flex; gap: 1.2rem; align-items: flex-start;
    padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .mf-step:last-child { border-bottom: none; }
  .mf-icon-wrap {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,76,11,0.08); border: 1px solid rgba(255,76,11,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
  }
  .mf-title { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
  .mf-desc  { font-size: 0.8rem; color: rgba(246,241,231,0.65); line-height: 1.55; }
  .mf-auto-badge {
    display: inline-block; margin-top: 0.4rem;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem; border-radius: 2px;
    background: rgba(255,76,11,0.08); border: 1px solid rgba(255,76,11,0.2);
    color: var(--peach);
  }
  .minmax-outputs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .output-card {
    background: var(--card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px; padding: 1.1rem;
    transition: border-color 0.2s;
  }
  .output-card:hover { border-color: rgba(125,212,168,0.3); }
  .output-icon { font-size: 1.2rem; margin-bottom: 0.5rem; }
  .output-title { font-size: 0.82rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
  .output-desc  { font-size: 0.74rem; color: rgba(246,241,231,0.6); line-height: 1.55; }

  /* ── FAQ ── */
  .faq-section {}
  .faq-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-top: 3.5rem;
  }
  .faq-item {
    background: var(--card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px; padding: 1.4rem 1.5rem;
    transition: border-color 0.2s;
  }
  .faq-item:hover { border-color: rgba(255,76,11,0.25); }
  .faq-q { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; line-height: 1.4; }
  .faq-a { font-size: 0.82rem; color: rgba(246,241,231,0.65); line-height: 1.65; }

  /* ── CTA ── */
  .cta-section {
    text-align: center; background: var(--navy2);
    border-top: 1px solid rgba(255,76,11,0.1);
  }
  .cta-section .section-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
  .cta-section .section-sub { margin: 0 auto 2.5rem; text-align: center; }
  .cta-form { display: flex; gap: 0.8rem; max-width: 440px; margin: 0 auto; }
  .cta-input {
    flex: 1; background: #242424; border: 1px solid rgba(255,76,11,0.2);
    color: var(--white); padding: 0.75rem 1.2rem; border-radius: 3px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; outline: none;
    transition: border-color 0.2s;
  }
  .cta-input::placeholder { color: var(--muted); }
  .cta-input:focus { border-color: var(--peach); }
  .cta-note { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); }

  /* ── FOOTER ── */
  footer {
    padding: 2rem 4rem; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,76,11,0.08);
  }
  .footer-copy { font-size: 0.78rem; color: rgba(246,241,231,0.5); }
  .footer-links { display: flex; gap: 2rem; }
  .footer-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--white); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 5rem 1.5rem; }
    .mod-hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 2.5rem; }
    .principles-grid { grid-template-columns: 1fr 1fr; }
    .workflow-header, .recall-layout, .integration-layout, .truth-layout, .minmax-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .scope-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; }
    footer { flex-direction: column; gap: 1rem; }
  }



  /* ── HOW TO — TABS ── */
  .ht-tabs {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    border-bottom: 1px solid rgba(255,76,11,0.12);
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .ht-tab {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.07);
    border-bottom: none;
    color: rgba(246,241,231,0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem; font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    position: relative; bottom: -1px;
  }
  .ht-tab:hover { color: var(--white); border-color: rgba(255,76,11,0.2); }
  .ht-tab.ht-active {
    background: var(--card);
    border-color: rgba(255,76,11,0.3);
    border-bottom: 1px solid var(--card);
    color: var(--orange);
  }
  .ht-panels {
    background: var(--card);
    border: 1px solid rgba(255,76,11,0.15);
    border-top: none;
    border-radius: 0 6px 6px 6px;
    padding: 2rem 2rem 2.5rem;
  }
  .ht-panel { display: none; }
  .ht-panel-active { display: block; animation: fadeUp 0.35s ease; }
  .ht-panel-intro { margin-bottom: 2rem; }
  .ht-intro-text {
    font-size: 0.92rem; color: rgba(246,241,231,0.7);
    line-height: 1.75; max-width: 680px;
  }
  .ht-sub-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--orange);
    margin-bottom: 1rem;
  }
  .ht-two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: start;
  }
  /* Steps */
  .ht-steps { display: flex; flex-direction: column; gap: 0; }
  .ht-step {
    display: grid; grid-template-columns: 40px 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 0.9rem 0;
  }
  .ht-step:last-child { border-bottom: none; }
  .ht-step-num {
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 2px;
    font-size: 0.78rem; font-weight: 800;
    color: rgba(255,76,11,0.45);
  }
  .ht-step-body { padding-right: 0.5rem; }
  .ht-step-title { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
  .ht-step-desc  { font-size: 0.8rem; color: rgba(246,241,231,0.62); line-height: 1.65; }
  .ht-tag {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem; border-radius: 2px;
    background: rgba(125,212,168,0.08); border: 1px solid rgba(125,212,168,0.2);
    color: var(--green);
  }
  .ht-tag.ht-tag-warn {
    background: rgba(245,200,66,0.08); border-color: rgba(245,200,66,0.2); color: var(--amber);
  }
  /* Output grid */
  .ht-output-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .ht-output-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px; padding: 0.9rem 1rem;
    transition: border-color 0.2s;
  }
  .ht-output-card:hover { border-color: rgba(125,212,168,0.2); }
  .ht-output-icon { width: 18px; height: 18px; margin-bottom: 0.5rem; display: block; }
  .ht-output-title { font-size: 0.8rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
  .ht-output-desc  { font-size: 0.74rem; color: rgba(246,241,231,0.58); line-height: 1.55; }
  /* Truth tab */
  .ht-truth-visual {
    background: #111; border: 1px solid rgba(255,76,11,0.2);
    border-radius: 6px; overflow: hidden;
  }
  .ht-truth-points { display: flex; flex-direction: column; gap: 0.9rem; }
  .ht-truth-point {
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.02);
    border-left: 2px solid var(--orange);
    border-radius: 0 4px 4px 0;
  }
  /* Integration tab */
  .ht-int-principles { display: flex; flex-direction: column; gap: 0.9rem; }

  @media (max-width: 900px) {
    .ht-two-col { grid-template-columns: 1fr; gap: 2rem; }
    .ht-tabs { gap: 0.3rem; }
    .ht-tab { font-size: 0.72rem; padding: 0.5rem 0.8rem; }
    .ht-panels { padding: 1.5rem 1rem; }
  }

/* inline-block extracted from body */
.pc3-dot { width:10px;height:10px;border-radius:50%;border:2px solid var(--border);background:transparent;transition:background 0.3s,border-color 0.3s,box-shadow 0.3s; }
          .pc3-dot.on { background:var(--orange);border-color:var(--orange);box-shadow:0 0 8px rgba(255,76,11,0.5); }
          .pc3-step { display:none;flex-direction:column;gap:0.4rem;animation:fadeUp 0.35s ease; }
          .pc3-step.pc3-active { display:flex; }
          .pc3-opt { padding:0.4rem 0.8rem;border:1px solid var(--border);border-radius:3px;font-size:0.78rem;color:var(--muted);cursor:pointer;transition:all 0.2s;background:transparent;font-family:inherit;display:flex;align-items:center;gap:0.35rem; }
          .pc3-opt:hover { border-color:var(--orange);color:var(--white);background:rgba(255,76,11,0.06); }
          .pc3-opt.pc3-sel { border-color:var(--orange);color:var(--orange);background:rgba(255,76,11,0.1); }
          .pc3-tag { font-size:0.48rem;font-weight:800;letter-spacing:0.08em;padding:0.1rem 0.35rem;border-radius:2px;border:1px solid;line-height:1.6; }
          .pc3-row { display:grid;grid-template-columns:2fr 1fr 0.6fr;gap:0.3rem;padding:0.45rem 0.9rem;border-bottom:1px solid rgba(255,76,11,0.06);align-items:center; }
          .pc3-row:last-child { border-bottom:none; }
          .pc3-rtitle { font-size:0.72rem;color:rgba(246,241,231,0.8); }
          .pc3-rcode  { font-size:0.65rem;color:var(--muted);font-family:monospace; }
          .pc3-rrev   { font-size:0.58rem;font-weight:700;padding:0.1rem 0.35rem;border-radius:2px;text-align:center; }
          .pc3-rev-c { background:rgba(255,76,11,0.15);color:var(--peach); }
          .pc3-rev-b { background:rgba(245,166,35,0.15);color:var(--amber); }
          .pc3-rev-p { background:rgba(122,144,168,0.15);color:var(--muted); }
