/* ---------- TWEAKABLE DEFAULTS ---------- */
/* These get written back to disk by the host when Tweaks changes them. */

  /* ====================== MOTION / REVEAL LAYER ====================== */
  .rv{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16,.84,.34,1),
                transform .6s cubic-bezier(.2,.7,.3,1),
                box-shadow .45s, border-color .3s, background .3s, color .3s;
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
  }
  .rv.in{ opacity: 1; transform: none; }
  /* hover lifts (after reveal rules so they win at equal specificity) */
  .feature:hover{ transform: translateY(-5px); box-shadow: 0 26px 50px -32px rgba(0,0,0,.85); z-index: 2; }
  .feature .ico{ transition: transform .45s cubic-bezier(.2,.7,.3,1), color .3s, border-color .3s, background .3s; }
  .feature:hover .ico{ transform: translateY(-2px) scale(1.1) rotate(-6deg); color: var(--accent); border-color: var(--accent); background: color-mix(in oklch, var(--accent) 14%, transparent); }
  .tier:hover{ transform: translateY(-7px); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85); z-index: 2; }
  .lic-card:hover{ transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 22px 44px -28px color-mix(in oklch, var(--accent) 70%, black); }
  .lic-card .lic-storage{ transition: transform .4s cubic-bezier(.2,.7,.3,1); display: inline-block; }
  .lic-card:hover .lic-storage{ transform: scale(1.14); }
  .tier.featured{ animation: featuredPulse 3.8s ease-in-out infinite; }
  .tier.featured:hover{ animation: none; }
  @keyframes featuredPulse{ 0%,100%{ box-shadow: 0 0 0 0 transparent; } 50%{ box-shadow: 0 0 36px -10px color-mix(in oklch, var(--orange) 45%, transparent); } }


  /* ====================== FUTURISTIC FX ====================== */
  .feature, .lic-card, .tier { overflow: hidden; }
  .fx-glow{
    position:absolute; width:300px; height:300px; left:0; top:0;
    margin:-150px 0 0 -150px; border-radius:50%;
    pointer-events:none; opacity:0; z-index:0;
    background: radial-gradient(circle, color-mix(in oklch, var(--accent) 26%, transparent), transparent 66%);
    transition: opacity .35s ease;
    transform: translate(var(--gx,0px), var(--gy,0px));
  }
  .feature:hover .fx-glow, .lic-card:hover .fx-glow, .tier:hover .fx-glow{ opacity:.5; }
  .feature > *:not(.fx-glow), .lic-card > *:not(.fx-glow), .tier > *:not(.fx-glow){ position:relative; z-index:1; }

  /* scanning beam over illustration panels */
  .fx-scan{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:3; border-radius:inherit; }
  .fx-scan::before{
    content:""; position:absolute; left:0; right:0; height:110px;
    background: linear-gradient(to top, color-mix(in oklch, var(--accent) 18%, transparent), transparent);
    animation: fxScanGlow 6.5s cubic-bezier(.45,0,.5,1) infinite;
  }
  .fx-scan::after{
    content:""; position:absolute; left:0; right:0; height:1.5px;
    background: color-mix(in oklch, var(--accent) 60%, transparent);
    box-shadow: 0 0 16px 2px color-mix(in oklch, var(--accent) 38%, transparent);
    animation: fxScanLine 6.5s cubic-bezier(.45,0,.5,1) infinite;
  }
  @keyframes fxScanLine{ 0%{ top:-3%; opacity:0; } 9%{ opacity:1; } 90%{ opacity:1; } 100%{ top:103%; opacity:0; } }
  @keyframes fxScanGlow{ 0%{ top:-114px; opacity:0; } 11%{ opacity:1; } 88%{ opacity:1; } 100%{ top:100%; opacity:0; } }

  /* running accent on the featured tier's top edge */
  .tier.featured::after{
    content:""; position:absolute; top:0; left:0; right:0; height:2px;
    background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
    background-size: 55% 100%; background-repeat:no-repeat;
    animation: fxBorderRun 3.4s linear infinite; pointer-events:none;
  }
  @keyframes fxBorderRun{ 0%{ background-position:-60% 0; } 100%{ background-position:160% 0; } }

  @media (prefers-reduced-motion: reduce){
    .fx-scan, .tier.featured::after{ animation:none; display:none; }
  }


  /* ---------- PRICING TIERS ---------- */
  .billing-toggle { display:inline-flex; align-items:center; gap:0; border:1px solid var(--hair); border-radius:999px; padding:4px; background:var(--panel); margin-top:20px; font-family:'JetBrains Mono',monospace; }
  .billing-toggle button { background:transparent; border:0; padding:8px 18px; font-family:inherit; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); cursor:pointer; border-radius:999px; transition:background .15s,color .15s; display:inline-flex; align-items:center; gap:8px; }
  .billing-toggle button.active { background:var(--ink); color:var(--bg); }
  .billing-toggle .save-tag { font-size:9px; background:color-mix(in oklch, var(--orange) 18%, transparent); color:var(--orange); padding:2px 6px; border-radius:999px; letter-spacing:0.06em; }
  .billing-toggle button.active .save-tag { background:color-mix(in oklch, var(--orange) 90%, var(--bg)); color:#fff; }
  .tiers { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--hair); background:var(--panel); border-radius:4px; overflow:hidden; }
  .tier { padding:36px 32px; border-right:1px solid var(--hair); display:flex; flex-direction:column; }
  .tier:last-child { border-right:0; }
  .tier.featured { background:color-mix(in oklch, var(--orange) 6%, var(--panel)); position:relative; }
  .tier.featured::before { content:"MOST POPULAR"; position:absolute; top:12px; right:16px; font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:0.1em; color:var(--orange); }
  .tier .tier-name { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
  .tier .tier-price { font-size:36px; letter-spacing:-0.03em; font-weight:500; margin:0 0 6px; }
  .tier .tier-price .u { font-size:14px; color:var(--muted); font-weight:400; margin-left:4px; }
  .tier .tier-note { font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:0.02em; color:var(--orange); margin:-2px 0 14px; display:none; }
  .tiers[data-billing="perpetual"] .tier-note { display:block; }
  .tier .tier-desc { color:var(--ink-2); font-size:14px; margin:0 0 24px; }
  .tier ul { list-style:none; padding:0; margin:0 0 28px; display:flex; flex-direction:column; gap:10px; flex:1; }
  .tier li { font-size:13px; color:var(--ink-2); padding-left:22px; position:relative; line-height:1.5; }
  .tier li b { color: var(--ink); font-weight:600; }
  .tier li::before { content:"\2713"; position:absolute; left:0; color:var(--orange); font-weight:500; }
  @media (max-width:900px){ .tiers { grid-template-columns:1fr; } .tier { border-right:0; border-bottom:1px solid var(--hair); } .tier:last-child { border-bottom:0; } }




  :root {
    /* dark (default) — brand: navy + orange + slate */
    --bg:        #0a0e1a;
    --bg-2:      #0e1424;
    --panel:     #131a2d;
    --panel-2:   #18203a;
    --hair:      #1f2840;
    --hair-2:    #2a3550;
    --ink:       #e8ecf2;
    --ink-2:     #c7cfdc;
    --muted:     #8a92a0;
    --muted-2:   #6a7280;
    --accent:    #8e95a4;
    --accent-2:  #aab1bf;
    --accent-ink:#0a0e1a;
    --orange:    #ee5e1e;
    --warn:      oklch(0.78 0.14 65);
    --ok:        oklch(0.78 0.14 155);
    --danger:    oklch(0.7  0.18 25);
    --grid-line: rgba(255,255,255,0.03);
  }
  html[data-theme="light"] {
    --bg:        #f5f4ef;
    --bg-2:      #eceae3;
    --panel:     #ffffff;
    --panel-2:   #f8f7f1;
    --hair:      #dcdbd2;
    --hair-2:    #c7c6bd;
    --ink:       #0c1a3a;
    --ink-2:     #1f2a4a;
    --muted:     #6a7280;
    --muted-2:   #8a92a0;
    --accent:    #5a6478;
    --accent-2:  #3f4858;
    --accent-ink:#ffffff;
    --orange:    #ee5e1e;
    --grid-line: rgba(0,0,0,0.04);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
  }

  /* ---------- AI · DICOM VISION BACKGROUND ---------- */
  .ai-bg {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .ai-bg svg { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
  .ai-bg .ai-video {
    position: absolute; top: 72px; left: 0; right: 0; bottom: 0;
    width: 100%; height: calc(100% - 72px);
    object-fit: cover;
    object-position: center top;
    opacity: 0.32;
    mix-blend-mode: luminosity;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 25%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 25%, transparent 90%);
    pointer-events: none;
  }
  html[data-theme="light"] .ai-bg .ai-video {
    opacity: 0.22;
    mix-blend-mode: multiply;
  }
  .ai-bg .ai-grid {
    position: absolute; inset: 0;
    /* Dot lattice + soft concentric rings */
    background-image:
      radial-gradient(circle at center, var(--hair) 1px, transparent 1.5px),
      radial-gradient(circle at 50% 50%, transparent 120px, color-mix(in oklch, var(--accent) 6%, transparent) 121px, transparent 122px),
      radial-gradient(circle at 50% 50%, transparent 220px, color-mix(in oklch, var(--accent) 5%, transparent) 221px, transparent 222px),
      radial-gradient(circle at 50% 50%, transparent 340px, color-mix(in oklch, var(--accent) 4%, transparent) 341px, transparent 342px),
      radial-gradient(circle at 50% 50%, transparent 480px, color-mix(in oklch, var(--accent) 3%, transparent) 481px, transparent 482px);
    background-size: 32px 32px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, center, center, center, center;
    opacity: 0.7;
    mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 30%, transparent 90%);
    animation: aiGridDrift 40s linear infinite;
  }
  @keyframes aiGridDrift {
    0%   { background-position: 0 0, center, center, center, center; }
    100% { background-position: 32px 32px, center, center, center, center; }
  }
  /* Fine scanline overlay */
  .ai-bg .ai-scanlines {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0 2px,
      color-mix(in oklch, var(--ink) 4%, transparent) 2px 3px
    );
    opacity: 0.35;
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .ai-bg .ai-vignette {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 18% 10%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 60%),
      radial-gradient(ellipse 70% 60% at 85% 90%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 60%);
  }
  html[data-theme="light"] .ai-bg .ai-grid { opacity: 0.6; }
  html[data-theme="light"] .ai-bg .ai-scanlines { opacity: 0.18; }
  html[data-theme="light"] .ai-bg .ai-vignette {
    background:
      radial-gradient(ellipse 60% 50% at 18% 10%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 60%),
      radial-gradient(ellipse 70% 60% at 85% 90%, color-mix(in oklch, var(--accent) 12%, transparent), transparent 60%);
  }

  /* ---------- PREMIUM GLASS PANEL TREATMENT ---------- */
  /* Keep ALL real content above the bg */
  .topbar, section, footer, .page { position: relative; z-index: 1; }

  @media (prefers-reduced-motion: reduce) {
    .ai-bg .ai-grid, .hud-box::before, .hud-box::after { animation: none; }
  }

  /* Premium holographic panel */
  .hud-box {
    position: relative;
    isolation: isolate;
  }
  /* Animated conic gradient border (mask trick) */
  .hud-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
      from 0deg,
      transparent 0deg,
      color-mix(in oklch, var(--accent) 90%, transparent) 30deg,
      transparent 60deg,
      transparent 180deg,
      color-mix(in oklch, var(--accent) 60%, transparent) 210deg,
      transparent 240deg,
      transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: hudBorderSpin 8s linear infinite;
    pointer-events: none;
    z-index: 3;
  }
  @keyframes hudBorderSpin {
    from { --a: 0deg; transform: rotate(0deg); }
    to   { --a: 360deg; transform: rotate(360deg); }
  }
  /* Since rotate on ::before would rotate children, we animate the gradient angle via background instead */
  .hud-box::before { animation: hudBorderShift 6s linear infinite; transform: none; }
  @keyframes hudBorderShift {
    0%   { filter: hue-rotate(0deg); background-position: 0% 0%; }
    100% { filter: hue-rotate(0deg); background-position: 300% 0%; }
  }
  /* Top highlight sheen */
  .hud-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      linear-gradient(180deg,
        color-mix(in oklch, var(--accent) 10%, transparent) 0%,
        transparent 20%,
        transparent 80%,
        color-mix(in oklch, var(--accent) 6%, transparent) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
  }

  /* Corner accents — slim diagonal pins rather than brackets */
  .hud-box > .hud-corners {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 4;
    border-radius: inherit;
    overflow: hidden;
  }
  .hud-box > .hud-corners b {
    position: absolute;
    width: 28px; height: 28px;
    background:
      linear-gradient(135deg,
        color-mix(in oklch, var(--accent) 85%, transparent) 0%,
        color-mix(in oklch, var(--accent) 40%, transparent) 50%,
        transparent 70%);
  }
  .hud-box > .hud-corners .c-tl {
    top: 0; left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .hud-box > .hud-corners .c-tr {
    top: 0; right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    background: linear-gradient(-135deg,
        color-mix(in oklch, var(--accent) 85%, transparent) 0%,
        color-mix(in oklch, var(--accent) 40%, transparent) 50%,
        transparent 70%);
  }
  .hud-box > .hud-corners .c-bl {
    bottom: 0; left: 0;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    background: linear-gradient(45deg,
        color-mix(in oklch, var(--accent) 85%, transparent) 0%,
        color-mix(in oklch, var(--accent) 40%, transparent) 50%,
        transparent 70%);
  }
  .hud-box > .hud-corners .c-br {
    bottom: 0; right: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    background: linear-gradient(-45deg,
        color-mix(in oklch, var(--accent) 85%, transparent) 0%,
        color-mix(in oklch, var(--accent) 40%, transparent) 50%,
        transparent 70%);
  }

  /* Panel base — deeper glass gradient + multi-layer glow */
  .viewer, .anatomy {
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%,
        color-mix(in oklch, var(--accent) 8%, transparent) 0%,
        transparent 70%),
      linear-gradient(165deg,
        color-mix(in oklch, var(--accent) 3%, var(--panel)) 0%,
        var(--panel) 40%,
        color-mix(in oklch, var(--bg) 50%, var(--panel)) 100%);
    box-shadow:
      0 50px 100px -30px rgba(0,0,0,0.7),
      0 0 60px -20px color-mix(in oklch, var(--accent) 50%, transparent),
      inset 0 1px 0 color-mix(in oklch, var(--accent) 25%, transparent),
      inset 0 -1px 0 color-mix(in oklch, var(--accent) 10%, transparent);
  }
  html[data-theme="light"] .viewer,
  html[data-theme="light"] .anatomy {
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%,
        color-mix(in oklch, var(--accent) 10%, transparent) 0%,
        transparent 70%),
      linear-gradient(165deg,
        color-mix(in oklch, var(--accent) 5%, var(--panel)) 0%,
        var(--panel) 40%,
        color-mix(in oklch, var(--bg) 40%, var(--panel)) 100%);
    box-shadow:
      0 30px 60px -25px rgba(0,0,0,0.18),
      0 0 40px -15px color-mix(in oklch, var(--accent) 30%, transparent),
      inset 0 1px 0 color-mix(in oklch, var(--accent) 20%, transparent);
  }

  /* Feature tiles — futuristic hover: accent scanline sweep */
  .feature { overflow: hidden; position: relative; }
  .feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, color-mix(in oklch, var(--accent) 14%, transparent) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .6s ease;
    pointer-events: none;
  }
  .feature:hover::before { transform: translateX(100%); }
  .feature::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
  }
  .feature:hover::after { transform: scaleY(1); }


  .mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-feature-settings: "calt" 0; }
  .serif { font-family: 'Instrument Serif', ui-serif, serif; font-style: italic; font-weight: 400; }

  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }

  /* ---------- LAYOUT ---------- */
  .page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- TOPBAR ---------- */
  .topbar {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in oklch, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hair);
  }
  .topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    letter-spacing: -0.01em;
  }
  .brand img.brand-logo {
    height: 26px; width: auto;
    display: block;
  }
  /* Logo is white-on-transparent (built for dark bg). In light mode, darken to monochrome. */
  html[data-theme="light"] .brand .brand-logo-wrap img {
    filter: brightness(0);
  }
  .brand .tag {
    margin-left: 8px;
    padding: 3px 8px;
    border: 1px solid var(--hair-2);
    border-radius: 2px;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .nav { display: flex; gap: 28px; }
  .nav a {
    font-size: 14px; color: var(--ink-2);
    transition: color .15s;
  }
  .nav a:hover { color: var(--accent); }

  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .btn {
    font-size: 13px;
    border: 1px solid var(--hair-2);
    background: transparent;
    color: var(--ink);
    padding: 9px 14px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s, color .28s, background .28s, box-shadow .28s;
    letter-spacing: -0.005em;
  }
  .btn > * { position: relative; z-index: 2; }
  .btn::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 75%; height: 100%;
    background: linear-gradient(100deg, transparent, color-mix(in oklch, var(--ink) 16%, transparent), transparent);
    transform: skewX(-20deg);
    transition: left .6s cubic-bezier(.2,.7,.3,1);
    z-index: 1;
    pointer-events: none;
  }
  .btn:hover::after { left: 135%; }
  .btn:hover {
    border-color: var(--ink-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px rgba(0,0,0,0.65);
  }
  .btn:active { transform: translateY(0); transition-duration: .05s; }
  .btn.primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    font-weight: 500;
  }
  .btn.primary::after {
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  }
  .btn.primary:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    box-shadow: 0 12px 28px -8px color-mix(in oklch, var(--accent) 60%, transparent);
  }
  .btn .chev { margin-left: 6px; opacity: 0.8; transition: transform .28s cubic-bezier(.2,.7,.3,1); }
  .btn:hover .chev { transform: translateX(3px); opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .btn, .btn::after, .btn .chev { transition: none; }
    .btn:hover { transform: none; }
  }

  /* ---------- PROTOCOL LAUNCH SECTION ---------- */
  .proto {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    margin-top: 48px;
    align-items: stretch;
  }
  .proto-flow {
    display: flex; flex-direction: column; gap: 0;
    position: relative;
  }
  .proto-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 20px 0;
    align-items: start;
    position: relative;
  }
  .proto-step + .proto-step { border-top: 1px dashed var(--hair); }
  .proto-step .ps-num {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--hair-2);
    background: var(--bg);
    color: var(--orange);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    position: relative;
  }
  .proto-step .ps-num::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px; height: calc(100% - 0px);
    background: var(--hair);
    transform: translateX(-50%);
  }
  .proto-step:last-child .ps-num::after { display: none; }
  .proto-step h4 {
    margin: 8px 0 4px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .proto-step p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
  }
  .proto-step code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--bg);
    padding: 2px 6px;
    border: 1px solid var(--hair);
    border-radius: 3px;
    color: var(--accent);
  }

  .proto-code {
    background: var(--bg-2);
    border: 1px solid var(--hair);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .proto-code .pc-tabs {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--hair);
    padding: 0 12px;
    gap: 0;
  }
  .proto-code .pc-tab {
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid var(--hair);
    background: var(--bg);
  }
  .proto-code .pc-tab.on {
    color: var(--accent);
    background: var(--bg-2);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -1px;
  }
  .proto-code .pc-body {
    padding: 20px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink-2);
    overflow-x: auto;
    white-space: pre;
    flex: 1;
    margin: 0;
  }
  .proto-code .pc-body .k { color: var(--accent); }
  .proto-code .pc-body .s { color: color-mix(in oklch, var(--accent) 70%, var(--ink)); }
  .proto-code .pc-body .c { color: var(--muted); font-style: italic; }
  .proto-code .pc-body .n { color: var(--ink); }

  .proto-cta {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 28px;
    align-items: center;
  }
  .proto-launch {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--accent);
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    transition: all .15s;
  }
  .proto-launch {
    position: relative;
    overflow: hidden;
    z-index: 0;
  }
  .proto-launch > * { position: relative; z-index: 2; }
  .proto-launch::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 70%; height: 100%;
    background: linear-gradient(100deg, transparent, color-mix(in oklch, var(--accent) 35%, transparent), transparent);
    transform: skewX(-20deg);
    transition: left .6s cubic-bezier(.2,.7,.3,1);
    z-index: 1;
    pointer-events: none;
  }
  .proto-launch:hover::after { left: 140%; }
  .proto-launch:hover {
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px color-mix(in oklch, var(--accent) 55%, transparent);
  }
  .proto-launch:active { transform: translateY(0); transition-duration: .05s; }

  @media (max-width: 1100px) {
    .proto { grid-template-columns: 1fr; gap: 32px; }
  }

  /* ---------- SECTION HELPERS ---------- */
  .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .section-label::before {
    content: ""; width: 16px; height: 1px; background: var(--muted);
  }
  .rule { height: 1px; background: var(--hair); width: 100%; }

  /* ---------- HERO ---------- */
  .hero {
    padding: 96px 0 48px;
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .hero h1 {
    font-size: clamp(44px, 5.2vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 500;
    margin: 24px 0 28px;
    color: var(--ink);
  }
  .hero h1 em { color: var(--orange); font-style: normal; }
  .hero h1 .s { font-style: italic; font-family: 'Instrument Serif', serif; font-weight: 400; }
  .hero-sub {
    color: var(--ink-2);
    font-size: 18px;
    max-width: 520px;
    line-height: 1.55;
  }
  .hero-cta {
    display: flex; gap: 12px; margin-top: 32px; align-items: center;
  }
  .hero-meta {
    margin-top: 36px;
    display: flex; gap: 32px;
    font-size: 12px; color: var(--muted);
  }
  .hero-meta b { color: var(--ink); font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: 13px; display: block; margin-bottom: 2px; }

  /* ---------- VIEWER MOCKUP (SVG-driven panel) ---------- */
  .viewer {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
  }
  .viewer-chrome {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--hair);
    background: var(--panel-2);
    font-size: 11px; color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
  }
  .viewer-chrome .dots { display: flex; gap: 5px; }
  .viewer-chrome .dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--hair-2);
  }
  .viewer-body {
    display: grid;
    grid-template-columns: 44px 1fr 1fr 200px;
    height: calc(100% - 34px);
  }
  .vtool {
    border-right: 1px solid var(--hair);
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 0; gap: 2px;
  }
  .vtool .ti {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px; color: var(--muted); font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
  }
  .vtool .ti.on { background: var(--accent); color: var(--accent-ink); }
  .vtool .ti:hover:not(.on) { background: var(--panel-2); color: var(--ink); }
  .vpane {
    border-right: 1px solid var(--hair);
    position: relative;
    background: radial-gradient(ellipse at center, #151a1e 0%, #0a0d10 100%);
    overflow: hidden;
  }
  html[data-theme="light"] .vpane {
    background: radial-gradient(ellipse at center, #e9e8e0 0%, #d8d7cf 100%);
  }
  .vpane .overlay {
    position: absolute; inset: 0;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    pointer-events: none;
  }
  .vpane .overlay > * { position: absolute; }
  .vpane .tl { top: 10px; left: 10px; }
  .vpane .tr { top: 10px; right: 10px; text-align: right; }
  .vpane .bl { bottom: 10px; left: 10px; }
  .vpane .br { bottom: 10px; right: 10px; text-align: right; }
  .vpane .axis-l, .vpane .axis-r, .vpane .axis-t, .vpane .axis-b {
    color: var(--accent);
    font-weight: 600;
  }
  .vpane .axis-l { left: 8px; top: 50%; transform: translateY(-50%); }
  .vpane .axis-r { right: 8px; top: 50%; transform: translateY(-50%); }
  .vpane .axis-t { top: 8px; left: 50%; transform: translateX(-50%); }
  .vpane .axis-b { bottom: 8px; left: 50%; transform: translateX(-50%); }

  .vscan {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .vscan svg { width: 100%; height: 100%; display: block; }

  .vpanel-right {
    background: var(--panel-2);
    padding: 12px;
    font-size: 11px;
    color: var(--ink-2);
    overflow: hidden;
  }
  .vph {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 8px 0 6px;
  }
  .vph:first-child { margin-top: 0; }
  .vrow {
    display: flex; justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed var(--hair);
    font-size: 11px;
  }
  .vrow b { font-weight: 500; color: var(--ink); font-family: 'JetBrains Mono', monospace; }
  .vseries {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--hair);
  }
  .vseries .thumb {
    width: 36px; height: 36px;
    background: var(--bg); border: 1px solid var(--hair);
    border-radius: 2px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
  }
  .vseries.active .thumb { border-color: var(--accent); }
  .vseries .meta { flex: 1; min-width: 0; overflow: hidden; }
  .vseries .meta .title { color: var(--ink); font-weight: 500; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .vseries .meta .sub { color: var(--muted); font-size: 10px; font-family: 'JetBrains Mono', monospace; }

  /* ---------- STAT STRIP ---------- */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    margin-top: 80px;
  }
  .stat {
    padding: 28px 24px;
    border-right: 1px solid var(--hair);
  }
  .stat:last-child { border-right: 0; }
  .stat .n {
    font-size: 40px; letter-spacing: -0.04em; font-weight: 500;
    color: var(--ink); line-height: 1;
  }
  .stat .n .u { font-size: 18px; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
  .stat .l {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--muted);
    margin-top: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  }

  /* ---------- SECTIONS ---------- */
  section.block { padding: 96px 0; }
  .block-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 56px;
  }
  .block-head h2 {
    font-size: clamp(32px, 3.2vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-weight: 500;
    margin: 16px 0 0;
    max-width: 10ch;
  }
  .block-head .sub {
    color: var(--ink-2);
    font-size: 18px;
    max-width: 56ch;
    line-height: 1.55;
  }

  /* ---------- FEATURES GRID ---------- */
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hair);
    border-left: 1px solid var(--hair);
  }
  .feature {
    padding: 32px;
    border-right: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    min-height: 240px;
    display: flex; flex-direction: column;
    gap: 16px;
    position: relative;
    transition: background .2s;
  }
  .feature:hover { background: var(--panel); }
  .feature .idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--orange);
    letter-spacing: 0.04em;
  }
  .feature h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.15;
  }
  .feature p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    max-width: 36ch;
  }
  .feature .ico {
    width: 42px; height: 42px;
    border: 1px solid var(--hair-2);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
  }

  /* ---------- MODALITIES ---------- */
  .modalities {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 32px;
  }
  .mod-chip {
    padding: 8px 14px;
    border: 1px solid var(--hair);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--panel);
  }

  /* ---------- COMPLIANCE ---------- */
  .compliance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--hair);
    background: var(--panel);
  }
  .comp-cell {
    padding: 28px 24px;
    border-right: 1px solid var(--hair);
    display: flex; flex-direction: column; gap: 6px;
  }
  .comp-cell:last-child { border-right: 0; }
  .comp-cell .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--muted);
    letter-spacing: 0.05em; text-transform: uppercase;
  }
  .comp-cell .name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .comp-cell .desc { color: var(--muted); font-size: 13px; }
  .comp-cell .badge-mark {
    width: 28px; height: 28px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    margin-top: auto;
    flex: none;
  }

  /* ---------- CTA ---------- */
  .cta-block {
    position: relative;
    padding: 96px 64px;
    border: 1px solid var(--hair);
    background: var(--panel);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
  }
  .cta-block::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at center, var(--grid-line) 1px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.8;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 35%, transparent 92%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 35%, transparent 92%);
    pointer-events: none;
  }
  .cta-block h2 {
    font-size: clamp(40px, 4vw, 64px);
    letter-spacing: -0.035em;
    line-height: 1;
    font-weight: 500;
    margin: 0;
    position: relative;
  }
  .cta-block h2 .s { font-style: italic; font-family: 'Instrument Serif', serif; font-weight: 400; color: var(--orange); }
  .cta-side { position: relative; }
  .cta-side p { color: var(--ink-2); max-width: 36ch; margin: 0 0 24px; }

  .dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .dl-btn {
    border: 1px solid var(--hair-2);
    padding: 12px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink);
    background: var(--bg);
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s, color .28s, box-shadow .28s;
  }
  .dl-btn > * { position: relative; z-index: 2; }
  .dl-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 70%; height: 100%;
    background: linear-gradient(100deg, transparent, color-mix(in oklch, var(--accent) 22%, transparent), transparent);
    transform: skewX(-20deg);
    transition: left .6s cubic-bezier(.2,.7,.3,1);
    z-index: 1;
    pointer-events: none;
  }
  .dl-btn:hover::after { left: 140%; }
  .dl-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -12px color-mix(in oklch, var(--accent) 50%, transparent);
  }
  .dl-btn:active { transform: translateY(0); transition-duration: .05s; }
  .dl-btn .os { opacity: 0.5; font-size: 10px; }

  /* ---------- FOOTER ---------- */
  footer {
    border-top: 1px solid var(--hair);
    padding: 48px 0 32px;
    margin-top: 0;
  }
  .foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .foot-grid h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin: 0 0 14px; font-weight: 500;
  }
  .foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
  .foot-grid a { font-size: 14px; color: var(--ink-2); }
  .foot-grid a:hover { color: var(--accent); }
  .foot-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--hair);
    color: var(--muted);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
  }

  /* ---------- VARIATION B ADJUSTMENTS ---------- */
  html[data-variation="B"] .hero { padding-top: 72px; }
  html[data-variation="B"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  html[data-variation="B"] .hero h1 {
    font-size: clamp(56px, 7.5vw, 120px);
    max-width: none;
    line-height: 0.92;
  }
  html[data-variation="B"] .hero-sub { max-width: 680px; font-size: 20px; }
  html[data-variation="B"] .viewer { aspect-ratio: 16/7; }
  html[data-variation="B"] .hero {
    background-image: none;
  }
  html[data-variation="B"] .hero-headline {
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding: 48px 0;
    margin: 32px 0;
  }

  /* ---------- VARIATION C ADJUSTMENTS (editorial) ---------- */
  html[data-variation="C"] .hero h1 { font-weight: 400; }
  html[data-variation="C"] .hero h1 .s,
  html[data-variation="C"] h2 .s {
    font-family: 'Instrument Serif', serif;
  }
  html[data-variation="C"] .feature h3 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
  }
  html[data-variation="C"] .hero {
    background-image: none;
  }
  html[data-variation="C"] .hero h1 em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: var(--orange);
  }

  /* ---------- PRODUCT DEMO ---------- */
  .demo {
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%,
        color-mix(in oklch, var(--accent) 8%, transparent) 0%,
        transparent 70%),
      linear-gradient(165deg,
        color-mix(in oklch, var(--accent) 3%, var(--panel)) 0%,
        var(--panel) 40%,
        color-mix(in oklch, var(--bg) 50%, var(--panel)) 100%);
    border: 1px solid var(--hair);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
      0 50px 100px -30px rgba(0,0,0,0.7),
      0 0 60px -20px color-mix(in oklch, var(--accent) 50%, transparent),
      inset 0 1px 0 color-mix(in oklch, var(--accent) 25%, transparent);
  }
  .demo-body {
    aspect-ratio: 16 / 10;
    width: 100%;
    display: block;
    position: relative;
  }
  .demo-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  html[data-theme="light"] .demo {
    box-shadow:
      0 30px 60px -25px rgba(0,0,0,0.18),
      0 0 40px -15px color-mix(in oklch, var(--accent) 30%, transparent),
      inset 0 1px 0 color-mix(in oklch, var(--accent) 20%, transparent);
  }


  /* ---------- TWEAKS PANEL ---------- */
/* ---------- TWEAKS PANEL ---------- */
  #tweaks-panel {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 260px;
    background: var(--panel);
    border: 1px solid var(--hair-2);
    border-radius: 6px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
    font-size: 13px;
    display: none;
  }
  #tweaks-panel.on { display: block; }
  #tweaks-panel h4 {
    margin: 0 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    display: flex; justify-content: space-between; align-items: center;
  }
  #tweaks-panel .group { margin-bottom: 16px; }
  #tweaks-panel .group:last-child { margin-bottom: 0; }
  #tweaks-panel .group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }
  #tweaks-panel .opt-row { display: flex; gap: 4px; }
  #tweaks-panel .opt {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--hair-2);
    background: var(--bg);
    color: var(--ink-2);
    cursor: pointer;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    border-radius: 2px;
  }
  #tweaks-panel .opt.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 1180px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .viewer { aspect-ratio: 16 / 9; }
  }
  @media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .block-head { grid-template-columns: 1fr; gap: 16px; }
    .features { grid-template-columns: 1fr; }
    .compliance { grid-template-columns: 1fr 1fr; }
    .comp-cell:nth-child(2n) { border-right: 0; }
    .comp-cell { border-bottom: 1px solid var(--hair); }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2n) { border-right: 0; }
    .stat { border-bottom: 1px solid var(--hair); }
    .cta-block { grid-template-columns: 1fr; padding: 48px 32px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .viewer-body { grid-template-columns: 40px 1fr; }
    .viewer-body > .vpane:nth-child(3), .viewer-body > .vpanel-right { display: none; }
  }

  /* ---------- MOBILE NAV + PHONE LAYOUT ---------- */
  .nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; margin-left: 4px;
    background: transparent; color: var(--ink);
    border: 1px solid var(--hair-2); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle .bars { position: relative; width: 18px; height: 12px; }
  .nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, opacity .2s; }
  .nav-toggle .bars span:nth-child(1) { top: 0; }
  .nav-toggle .bars span:nth-child(2) { top: 5px; }
  .nav-toggle .bars span:nth-child(3) { top: 10px; }
  .topbar.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .topbar.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
  .topbar.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  @media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav {
      display: none;
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; gap: 0;
      background: color-mix(in oklch, var(--bg) 97%, transparent);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--hair);
      padding: 6px 32px 18px;
    }
    .topbar.nav-open .nav { display: flex; }
    .nav a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--hair); }
    .nav a:last-child { border-bottom: 0; }
    .nav-actions .btn { white-space: nowrap; }
    .nav-actions .btn:not(.primary) { display: none; }
    .nav-actions .btn.primary { padding: 9px 13px; }
  }
  @media (max-width: 640px) {
    .page { padding: 0 20px; }
    .hero { padding: 52px 0 36px; }
    section.block { padding: 56px 0; }
    .hero-sub, .block-head .sub { font-size: 16px; }
    .hero-cta { flex-wrap: wrap; }
    .hero-meta { flex-wrap: wrap; gap: 16px 26px; }
    .workflow { grid-template-columns: 1fr; }
    .workflow .step { border-right: 0; border-bottom: 1px solid var(--hair); }
    .workflow .step:last-child { border-bottom: 0; }
  }
  @media (max-width: 560px) {
    /* single-column the dense grids so wide numbers/labels stop overflowing */
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--hair); padding: 22px 20px; }
    .stat:last-child { border-bottom: 0; }
    .compliance { grid-template-columns: 1fr; }
    .comp-cell { border-right: 0; border-bottom: 1px solid var(--hair); padding: 22px 20px; }
    .comp-cell:last-child { border-bottom: 0; }
    /* billing toggle must wrap instead of forcing horizontal scroll */
    .billing-toggle { display: flex; flex-wrap: wrap; max-width: 100%; }
    .billing-toggle button { flex: 1 1 auto; justify-content: center; }
  }
  @media (max-width: 480px) {
    .topbar-inner { height: 64px; }
    .brand .product-tag, .brand .tag { display: none; }
    .brand img.brand-logo { height: 24px !important; }
    .nav-actions { gap: 8px; }
    .nav-actions .btn.primary { padding: 8px 11px; font-size: 12px; }
    .foot-grid { grid-template-columns: 1fr; }
  }



  /* ============================================================
     FUTURISTIC LAYER — kinetic headline, ambient glow, live viz
     ============================================================ */

  /* ---- kinetic headline ---- */
  .hero h1 { position: relative; overflow: visible; isolation: isolate; }
  /* accent word — breathing glow + scanning underline */
  .hero h1 em {
    position: relative;
    animation: accentGlow 3.6s ease-in-out infinite;
  }
  @keyframes accentGlow {
    0%,100% { text-shadow: 0 0 0 transparent; }
    50%     { text-shadow: 0 0 26px color-mix(in oklch, var(--orange) 55%, transparent),
                           0 0 60px color-mix(in oklch, var(--orange) 28%, transparent); }
  }
  .hero h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.06em;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    background-size: 45% 100%;
    background-repeat: no-repeat;
    animation: accentScan 3.4s linear infinite;
    box-shadow: 0 0 12px color-mix(in oklch, var(--orange) 60%, transparent);
  }
  @keyframes accentScan {
    0%   { background-position: -50% 0; }
    100% { background-position: 150% 0; }
  }

  /* ---- live status chip on the section label ---- */
  .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
  .hero-eyebrow .section-label.nodash::before { display: none; }
  .hero-eyebrow .live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok, #3fbf78);
    display: inline-block; margin-right: 2px;
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok, #3fbf78) 80%, transparent);
    animation: livePulse 2.2s ease-out infinite;
  }
  @keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok,#3fbf78) 70%, transparent); }
    70%  { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero h1::after, .hero h1 em, .hero h1 em::after,
    .hero-eyebrow .live-dot { animation: none; }
  }

  /* feature index — blinking caret for a terminal-live feel */
  .feature .idx::after {
    content: "_";
    margin-left: 2px;
    animation: caretBlink 1.1s steps(1) infinite;
  }
  @media (prefers-reduced-motion: reduce) { .feature .idx::after { animation: none; opacity: 0; } }
  @keyframes caretBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }



#security .comp-cell :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,span,a,em,strong,small,td,th,caption) { font-size: 13px !important }
#security .comp-cell :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,span,a,em,strong,small,td,th,caption) { font-family: Geist !important }
#security .comp-cell :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,span,a,em,strong,small,td,th,caption) { color: rgb(102, 170, 119) !important }
#security .comp-cell :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,span,a,em,strong,small,td,th,caption) { text-align: left !important }
