  :root {
    /* Bactory palette — near-black, off-white, Base electric blue, neutral gray */
    --bg: #EEF0F3;          /* off-white */
    --surface: #F8F9FB;
    --ink: #0A0B0D;         /* near-black */
    --muted: #5B6271;
    --line: #D2D6DE;
    --accent: #4A86D0;      /* mid tone of the teal → blue → violet gradient */
    --accent-ink: #FFFFFF;
    --grad: linear-gradient(100deg, #35B0B6 0%, #4A90D2 40%, #7C6FCD 75%, #8A66CA 100%);
    --grad-mesh: radial-gradient(120% 160% at 0% 100%, #36B1B6 0, transparent 55%), radial-gradient(80% 140% at 80% 75%, #8567CB 0, transparent 60%), linear-gradient(100deg, #3FA3C4, #4C8FD1 50%, #6A7DD0);
    --green: #12A06B;
    --blue: #0052FF;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0A0B0D; --surface: #13151A; --ink: #EEF0F3; --muted: #8A92A3;
      --line: #252932; --accent: #6FA0E6; --accent-ink: #FFFFFF;
      --green: #3FD196; --blue: #3C7BFF;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0A0B0D; --surface: #13151A; --ink: #EEF0F3; --muted: #8A92A3;
    --line: #252932; --accent: #6FA0E6; --accent-ink: #FFFFFF;
    --green: #3FD196; --blue: #3C7BFF;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--bg); color: var(--ink); }
  body { font-family: "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }

  .bar {
    background: var(--accent); color: var(--accent-ink);
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 36px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  }
  .bar .dot::before { content: "●"; margin-right: 8px; font-size: 8px; vertical-align: 1px; }

  nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 26px 36px; transition: color .2s; }
  nav.on-light { --ink: #0A0B0D; --muted: #3A4252; --bg: #EEF0F3; color: var(--ink); }
  nav.on-dark { --ink: #EEF0F3; --muted: #9AA1B0; --bg: #0A0B0D; color: var(--ink); }
  .logo { font-weight: 900; font-size: 26px; letter-spacing: -.06em; }
  .logo span { color: var(--accent); }
  .links { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .links a:hover { color: var(--ink); }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--ink); border-radius: 999px; padding: 12px 18px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
    transition: background .15s, color .15s;
  }
  .btn:hover { background: var(--ink); color: var(--bg); }
  .btn.solid { background: var(--ink); color: var(--bg); }
  .btn.solid:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

  h1 {
    font-weight: 900; text-transform: uppercase; text-align: center;
    font-size: clamp(56px, 12.6vw, 230px); line-height: .84; letter-spacing: -.045em;
    padding: 20px 24px 0;
  }
  h1 em { font-style: normal; color: var(--accent); }

  .below { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px; align-items: end; padding: 28px 36px; }
  .lede { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; max-width: 540px; }
  .chart { color: var(--ink); }
  .chart svg { width: 100%; height: auto; display: block; }
  .legend { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .legend i { display: inline-block; width: 22px; vertical-align: middle; margin-right: 10px; border-top: 2px solid var(--accent); }
  .legend i.d { border-top: 1px dashed var(--muted); }

  footer { display: flex; justify-content: space-between; gap: 16px; margin: 0 36px; padding: 18px 0 22px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  footer .tags b { color: var(--green); font-weight: 600; }
  footer .tags b + b { color: var(--blue); }

  .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .num { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
  :root:not([data-theme="dark"]) .num { color: #0046DB; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .num { color: var(--accent); } }

  .start { display: grid; grid-template-columns: 180px repeat(4, 1fr); gap: 24px; margin: 0 36px; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .start .eyebrow { padding-top: 4px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline; }
  .step h3 { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
  .step h3 span { font-size: 12px; margin-left: 6px; color: var(--muted); transition: color .15s, transform .15s; display: inline-block; }
  .step p { grid-column: 2; font-size: 13px; color: var(--muted); }
  .step:hover h3 span { color: var(--accent); transform: translate(2px, -2px); }

  .idea { position: relative; overflow: hidden; margin-top: 140px; }
  .idea::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 70% 55%, color-mix(in srgb, var(--surface) 90%, transparent) 0, transparent 45%),
      repeating-radial-gradient(circle at 70% 55%, transparent 0 90px, color-mix(in srgb, var(--line) 55%, transparent) 90px 91px);
    mask-image: radial-gradient(circle at 70% 55%, #000 30%, transparent 75%);
  }
  .sec-head, .idea-head { position: relative; display: flex; align-items: baseline; gap: 48px; margin: 0 36px; padding-top: 18px; border-top: 1px solid var(--muted); }
  .sec-head .tag { margin-left: auto; }
  .idea-text { position: relative; padding: 100px 36px 160px 17%; max-width: 1300px; }
  .idea-text p { font-weight: 800; font-size: clamp(36px, 5.2vw, 84px); line-height: .9; letter-spacing: -.055em; margin-bottom: .35em; }
  .w { color: color-mix(in srgb, var(--ink) 28%, var(--bg)); transition: color .35s ease; }
  .w.on { color: var(--ink); }
  .w.on.hl { color: var(--accent); }

  .dark {
    --r-bg: var(--ink); --r-fg: var(--bg); --r-muted: color-mix(in srgb, var(--bg) 62%, var(--ink)); --r-line: color-mix(in srgb, var(--bg) 14%, var(--ink));
    background: var(--r-bg); color: var(--r-fg); padding: 0 36px 110px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .dark { --r-bg: var(--surface); --r-fg: var(--ink); --r-muted: var(--muted); --r-line: var(--line); }
  }
  :root[data-theme="dark"] .dark { --r-bg: var(--surface); --r-fg: var(--ink); --r-muted: var(--muted); --r-line: var(--line); }
  .rules h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 10.5vw, 190px); line-height: .8; letter-spacing: -.06em; padding: 80px 0 70px; }
  .rules h2 em { font-style: normal; color: var(--accent); }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--r-line); }
  .stat { padding: 28px 36px 8px; border-left: 1px solid var(--r-line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat .eyebrow { color: var(--r-muted); }
  .stat .big { font-weight: 800; font-size: clamp(72px, 8vw, 132px); line-height: 1; letter-spacing: -.05em; margin: 44px 0 6px; font-variant-numeric: tabular-nums; }
  .stat .big small { display: block; font-size: .32em; letter-spacing: -.03em; color: var(--r-muted); margin-top: 8px; }
  .stat .big .x { color: var(--accent); }
  .stat p { font-size: 17px; line-height: 1.5; color: var(--r-muted); max-width: 440px; margin-top: 26px; }

  :root .dark .num { color: var(--accent); }

  /* How it works */
  .how { padding: 0 0 60px; }
  .how h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 9vw, 160px); line-height: .82; letter-spacing: -.055em; padding: 70px 36px 76px; }
  .how h2 em { font-style: normal; color: var(--accent); }
  .steps { list-style: none; margin: 0 36px; }
  .steps li { display: grid; grid-template-columns: 1fr minmax(0, 560px); grid-template-areas: "n t" "w d"; column-gap: 40px; align-items: center; padding: 18px 0 60px; border-top: 1px solid var(--line); }
  .steps .num { grid-area: n; }
  .steps .eyebrow { grid-area: t; justify-self: end; }
  .steps h3 { grid-area: w; font-weight: 800; font-size: clamp(64px, 8vw, 140px); line-height: 1; letter-spacing: -.06em; padding-top: 18px; transition: color .25s; }
  .steps p { grid-area: d; font-size: 21px; line-height: 1.42; letter-spacing: -.01em; color: var(--muted); padding-top: 18px; }
  .steps li:hover h3 { color: var(--accent); }

  /* Agents & mandates */
  .agents { padding: 70px 36px 110px; }
  .agents .sec-head { margin: 0; border-top-color: var(--r-line); }
  .agents .sec-head .eyebrow { color: var(--r-fg); }
  .agents .sec-head .tag { color: var(--r-fg); }
  .agents-intro { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 40px; align-items: end; padding: 70px 0 80px; }
  .agents h2 { font-weight: 800; font-size: clamp(56px, 7.6vw, 132px); line-height: .82; letter-spacing: -.06em; }
  .agents h2 em { font-style: normal; color: var(--accent); }
  .agents-intro p { font-size: 21px; line-height: 1.42; color: var(--r-muted); }
  .cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .case .sec-head { padding-bottom: 14px; gap: 24px; }
  .case .tag { color: var(--r-muted) !important; }
  .scene {
    position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 11;
    display: grid; place-items: center; padding: 24px;
  }
  .scene.ok { background: radial-gradient(120% 90% at 20% 10%, #DCE6FF 0, #8FB0FF 45%, #3D6FE8 100%); }
  .scene.no { background: radial-gradient(120% 90% at 20% 10%, #F3DCD3 0, #E2AE9C 50%, #C9806B 100%); }
  .scene .ghost { position: absolute; right: -2%; bottom: -22%; font-weight: 900; font-size: clamp(160px, 22vw, 340px); letter-spacing: -.06em; line-height: 1; color: rgba(14, 22, 21, .12); pointer-events: none; }
  .term { position: relative; width: min(100%, 560px); background: #0D0F13; color: #EEF0F3; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); font: 13.5px/1.75 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
  .term header { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid #20242C; font-family: "Inter Tight", sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: #9AA1B0; }
  .term header i { width: 6px; height: 6px; border-radius: 50%; background: #3A404C; margin-right: 6px; }
  .term header span { flex: 1; text-align: center; margin-right: 30px; }
  .term pre { padding: 16px 18px 20px; white-space: pre-wrap; font: inherit; }
  .term .dim { color: #8A92A3; } .term .g { color: #4FD8A0; } .term .r { color: #FF7A68; }
  .term .line { display: block; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
  .term.play .line { opacity: 1; transform: none; }

  /* 05 Safety */
  .safety { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 120px 36px 130px; }
  .safety > .sec-head { margin: 0; align-self: start; position: sticky; top: 100px; }
  .safety h2 { font-weight: 800; font-size: clamp(48px, 5.4vw, 96px); line-height: .95; letter-spacing: -.055em; }
  .safety h2 em { font-style: normal; color: var(--accent); }
  .safety .intro { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 540px; margin: 22px 0 80px; }
  .block { border-top: 1px solid var(--muted); padding-top: 14px; margin-bottom: 70px; }
  .block > .eyebrow { display: block; margin-bottom: 26px; }
  .checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
  .checks div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
  .checks h4 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
  .checks p { font-size: 14px; color: var(--muted); line-height: 1.45; }
  .checks code, .inv code { font: 500 .92em "JetBrains Mono", ui-monospace, monospace; color: var(--ink); }
  .inv { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
  .inv div { padding: 28px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
  .inv div:nth-child(2n) { border-right: 0; }
  .inv div:nth-last-child(-n+2) { border-bottom: 0; }
  .inv div:hover { background: var(--surface); }
  .inv h4 { font-size: 26px; font-weight: 700; letter-spacing: -.045em; margin: 14px 0 10px; }
  .inv p { font-size: 15px; color: var(--muted); line-height: 1.5; }
  .status p { font-weight: 800; font-size: clamp(34px, 3.8vw, 64px); line-height: .98; letter-spacing: -.05em; padding: 14px 0 0 12%; }
  .status p em { font-style: normal; color: var(--accent); }

  /* 06 Live */
  .live { padding: 70px 36px 110px; }
  .live .sec-head, .built .sec-head { margin: 0; border-top-color: var(--r-line); }
  .live .sec-head .eyebrow, .built .sec-head .eyebrow { color: var(--r-fg); }
  .live h2 { font-weight: 800; font-size: clamp(52px, 6.2vw, 108px); line-height: .88; letter-spacing: -.06em; }
  .live h2 em, .built h3 em { font-style: normal; color: var(--accent); }
  .feed-meta { display: flex; align-items: center; gap: 10px; color: var(--r-muted); padding-bottom: 14px; border-bottom: 1px solid var(--r-line); }
  .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
  .feed { list-style: none; }
  .feed li { display: grid; grid-template-columns: 130px 110px auto 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--r-line); font-size: 15px; }
  .feed li:hover { background: color-mix(in srgb, var(--r-fg) 4%, transparent); }
  .feed time, .feed .tx { font: 12px "JetBrains Mono", ui-monospace, monospace; color: var(--r-muted); }
  .feed time { text-decoration: underline dotted; text-underline-offset: 4px; }
  .feed .tx { color: var(--r-fg); text-decoration: underline; text-underline-offset: 4px; }
  .feed .tx:hover { color: var(--accent); }
  .feed b { font-weight: 600; }
  .badge { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; color: var(--r-muted); }
  .badge { justify-self: start; }
  .badge.good { color: #4FD8A0; } .badge.bad { color: #FF7A68; }
  .text-links { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 40px; }
  .ulink { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: color .15s; }
  .ulink:hover { color: var(--accent); }

  /* 07 Try */
  .try { padding: 110px 36px 120px; }
  .try .sec-head { margin: 0; }
  .try h2 { font-weight: 800; font-size: clamp(52px, 6.2vw, 108px); line-height: .9; letter-spacing: -.06em; padding: 60px 0 54px; }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 22px 20px 26px; border: 1px solid color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 12px; transition: background .2s, border-color .2s; }
  .card .arrow { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 14px; transition: background .2s, color .2s, transform .2s; }
  .card h3 { margin-top: auto; font-weight: 800; font-size: clamp(42px, 4.2vw, 68px); letter-spacing: -.06em; line-height: 1.05; }
  .card p { font-size: 15px; color: var(--muted); line-height: 1.45; margin-top: 18px; max-width: 300px; }
  .card:hover { background: var(--surface); border-color: var(--ink); }
  .card:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }

  /* 08 Built on */
  .built { padding: 70px 36px 110px; }
  .built-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--r-line); margin-top: 64px; }
  .built-grid div { padding: 24px 28px 8px; border-left: 1px solid var(--r-line); }
  .built-grid div:first-child { padding-left: 0; border-left: 0; }
  .built-grid .eyebrow { color: var(--r-muted); font-size: 10px; }
  .built h3 { font-weight: 800; font-size: clamp(40px, 4.2vw, 72px); letter-spacing: -.06em; line-height: 1; margin: 44px 0 14px; }
  .built p { font-size: 15px; line-height: 1.5; color: var(--r-muted); max-width: 400px; }

  /* Sell the week */
  .banner { background: radial-gradient(60% 70% at 45% 55%, #0B1A3D 0, #07090F 65%, #050608 100%); color: #EEF0F3; padding: 150px 36px 160px; overflow: hidden; }
  .banner p { font-weight: 900; text-transform: uppercase; font-size: clamp(72px, 11.5vw, 210px); line-height: .84; letter-spacing: -.06em; }
  .banner .outline { display: block; padding-left: 25%; color: transparent; -webkit-text-stroke: 1px rgba(238, 242, 240, .8); transition: color .6s, -webkit-text-stroke-color .6s; }
  .banner .outline span { -webkit-text-stroke-color: var(--accent); color: var(--accent); }
  .banner:hover .outline { -webkit-text-stroke-color: var(--accent); }

  /* 09 Start */
  .start-cta { position: relative; overflow: hidden; color: var(--accent-ink); background: radial-gradient(70% 90% at 85% 0%, #7FA8FF 0, transparent 55%), linear-gradient(160deg, #1F66FF, #0052FF 70%, #0042CC); padding: 40px 36px 34px; }
  .start-cta .sec-head { margin: 0; border-top-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); }
  .start-cta .num { color: var(--accent-ink) !important; }
  .start-cta .ghost { position: absolute; right: 24px; top: -70px; font-weight: 900; font-size: 160px; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent-ink) 35%, transparent); pointer-events: none; }
  .start-grid { display: grid; grid-template-columns: 240px 1fr; padding: 50px 0 50px; }
  .start-grid .eyebrow { padding-top: 10px; }
  .start-cta h2 { font-weight: 800; font-size: clamp(52px, 6.4vw, 112px); line-height: .86; letter-spacing: -.065em; }
  .start-cta h2 span { color: transparent; -webkit-text-stroke: 1.2px var(--accent-ink); font-weight: 500; }
  .big-cta { position: relative; display: flex; align-items: center; height: 118px; border: 1px solid var(--accent-ink); border-radius: 999px; overflow: hidden; }
  .big-cta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 25%; min-width: 300px; background: #050608; transition: width .6s cubic-bezier(.2,.7,.2,1); }
  .big-cta:hover::before { width: 100%; }
  .big-cta .label { position: relative; padding-left: 28px; color: #EEF0F3; }
  .big-cta .label small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A92A3; margin-bottom: 4px; }
  .big-cta .label strong { font-weight: 800; font-size: clamp(32px, 3.4vw, 54px); letter-spacing: -.06em; line-height: 1; }
  .big-cta .circle { position: relative; margin-left: auto; margin-right: 16px; width: 82px; height: 82px; border-radius: 50%; border: 1px solid var(--accent-ink); display: grid; place-items: center; font-size: 26px; transition: transform .3s, color .3s, border-color .3s, background .3s; }
  .big-cta:hover .circle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; font-size: 16px; padding: 46px 0 110px; }
  .site-foot { border-top: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); padding-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .site-foot .row { display: flex; justify-content: space-between; gap: 16px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0; }
  .foot-links .sep { width: 1px; align-self: stretch; background: color-mix(in srgb, var(--accent-ink) 30%, transparent); }
  .foot-links a:hover { text-decoration: underline; }
  .site-foot small { display: block; max-width: 620px; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.45; opacity: .8; }

  @media (max-width: 1100px) {
    .start { grid-template-columns: repeat(2, 1fr); }
    .start .eyebrow { grid-column: 1 / -1; }
  }
  @media (max-width: 900px) {
    .links a:not(.btn) { display: none; }
    .stats { grid-template-columns: 1fr; }
    .stat, .stat:first-child { padding: 28px 0 24px; border-left: 0; border-bottom: 1px solid var(--r-line); }
    .stat .big { margin-top: 24px; }
    .safety { grid-template-columns: 1fr; padding-top: 80px; }
    .safety > .sec-head { position: static; }
    .checks, .inv, .cards, .built-grid { grid-template-columns: 1fr; }
    .inv div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
    .inv div:last-child { border-bottom: 0 !important; }
    .feed li { grid-template-columns: 1fr auto; row-gap: 8px; }
    .feed li > span:not(.badge) { grid-column: 1 / -1; }
    .built-grid div, .built-grid div:first-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--r-line); }
    .start-grid { grid-template-columns: 1fr; gap: 20px; }
    .status p { padding-left: 0; }
    .steps li { grid-template-columns: auto 1fr; grid-template-areas: "n t" "w w" "d d"; }
    .agents-intro { grid-template-columns: 1fr; padding: 48px 0 56px; }
    .cases { grid-template-columns: 1fr; }
    .scene { aspect-ratio: auto; padding: 48px 14px; }
    .term { font-size: 12px; }
    .below { grid-template-columns: 1fr; gap: 24px; }
    .lede { font-size: 18px; }
  }
  @media (max-width: 560px) {
    .bar { padding: 8px 16px; } .bar span:last-child { display: none; }
    nav, .below { padding-left: 16px; padding-right: 16px; }
    footer, .start, .idea-head { margin: 0 16px; }
    .start { grid-template-columns: 1fr; }
    .idea { margin-top: 80px; }
    .idea-text { padding: 60px 16px 100px; }
    .rules { padding: 0 16px 72px; }
    .rules h2 { padding: 56px 0 44px; }
    .sec-head { margin: 0 16px; gap: 24px; }
    .how h2 { padding: 48px 16px 52px; }
    .steps { margin: 0 16px; }
    .steps li { padding-bottom: 40px; }
    .agents { padding: 48px 16px 72px; }
    .safety, .live, .try, .built, .start-cta { padding-left: 16px; padding-right: 16px; }
    .banner { padding: 100px 16px; }
    .banner .outline { padding-left: 8%; }
    .big-cta { height: 96px; }
    .big-cta::before { min-width: 0; width: calc(100% - 84px); }
    .big-cta .label small { font-size: 9px; }
    .big-cta .circle { width: 60px; height: 60px; margin-right: 12px; }
  }

/* App navigation (shared by all app pages) */
.appnav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 40px; padding: 18px 36px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.appnav .logo { padding-bottom: 16px; }
.appnav .tabs { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.appnav .tabs::-webkit-scrollbar { display: none; }
.appnav .tabs a { position: relative; padding: 4px 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .15s; }
.appnav .tabs a:hover { color: var(--ink); }
.appnav .tabs a.on { color: var(--ink); }
.appnav .tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.appnav .back { margin-left: auto; padding-bottom: 16px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.appnav .back:hover { color: var(--accent); }
@media (max-width: 700px) {
  .appnav { flex-wrap: wrap; gap: 0 16px; padding: 14px 16px 0; }
  .appnav .logo { padding-bottom: 10px; }
  .appnav .tabs { order: 3; width: 100%; gap: 22px; }
}

/* Simple app page scaffolding */
.app-page { padding: 40px 36px 100px; }
.app-page > .sec-head { margin: 0; }
.app-hero { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 40px; align-items: end; padding: 60px 0 56px; }
.app-hero h1 { text-align: left; padding: 0; font-size: clamp(56px, 7.4vw, 130px); letter-spacing: -.06em; }
.app-hero h1 em { font-style: normal; color: var(--accent); }
.app-hero p { font-size: 17px; line-height: 1.5; color: var(--muted); }
.soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 12px; border: 1px solid var(--muted); border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tile { display: block; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
a.tile:hover { border-color: var(--ink); background: var(--surface); }
.tile .eyebrow { color: var(--muted); font-size: 10px; }
.tile h3 { font-size: 26px; font-weight: 800; letter-spacing: -.05em; margin: 10px 0 14px; }
.tile dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.tile dt { color: var(--muted); }
.tile dd { text-align: right; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; }
.tile p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.rows { list-style: none; border-top: 1px solid var(--muted); }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows h4 { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.rows p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.rows .ok { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1F9E6A; }
.rows .warn { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D2513F; }
.block-title { display: block; margin: 56px 0 16px; }
@media (max-width: 900px) { .app-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .app-page { padding: 28px 16px 72px; } }

/* Dark stats band (app pages) */
.band { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 !important; }
.band div { padding: 30px 30px 36px; border-left: 1px solid var(--r-line); }
.band div:first-child { border-left: 0; }
.band .eyebrow { color: var(--r-muted); font-size: 10px; }
.band strong { display: block; font-weight: 800; font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -.05em; margin: 22px 0 8px; }
.band small { font-size: 12.5px; color: var(--r-muted); }
.band .open { color: #4FD8A0; }
@media (max-width: 1100px) { .band { grid-template-columns: 1fr 1fr; } .band div:nth-child(n+3) { border-top: 1px solid var(--r-line); } .band div:nth-child(3) { border-left: 0; } }
@media (max-width: 640px) { .band { grid-template-columns: 1fr; } .band div { border-left: 0; border-top: 1px solid var(--r-line); padding: 22px 16px; } }

/* Glossary terms */
abbr.gl { text-decoration: underline dotted color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: 5px; cursor: help; color: var(--ink); }

/* Light app footer */
.app-foot { margin: 0 36px; padding: 22px 0 30px; border-top: 1px solid var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.app-foot .row { display: flex; justify-content: space-between; gap: 16px; }
.app-foot .foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0; }
.app-foot .foot-links .sep { width: 1px; align-self: stretch; background: var(--line); }
.app-foot a:hover { color: var(--accent); }
.app-foot small { display: block; max-width: 620px; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) { .app-foot { margin: 0 16px; } }

/* Shared app-page pieces: "Next" link block, side-label sections */
.next { display: block; margin: 110px 36px 90px; padding: 20px 0 26px; border-top: 1px solid var(--muted); border-bottom: 1px solid var(--line); }
.next .eyebrow { color: var(--muted); font-size: 10px; }
.next h2 { display: flex; align-items: center; gap: 18px; font-weight: 800; font-size: clamp(36px, 3.6vw, 56px); letter-spacing: -.055em; margin: 8px 0 10px; }
.next h2 span { font-weight: 400; font-size: .6em; transition: transform .25s, color .25s; }
.next:hover h2 span { transform: translateX(8px); color: var(--accent); }
.next p { font-size: 16px; color: var(--muted); }
.part { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 32px; padding: 90px 36px 0; }
.part > .side { align-self: start; position: sticky; top: 90px; border-top: 1px solid var(--muted); padding-top: 14px; }
.part > .side .sec-head { margin: 0; border: 0; padding: 0; }
.part > .side p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 14px; max-width: 280px; }
.part > .side p strong { color: var(--ink); }
.page-hero { padding: 40px 36px 0; }
.page-hero .sec-head { margin: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 40px; align-items: center; padding: 70px 0 70px; }
.page-hero h1 { text-align: left; padding: 0; font-size: clamp(64px, 8.6vw, 150px); letter-spacing: -.06em; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.page-hero .body { font-size: 18px; line-height: 1.45; color: var(--muted); margin-top: 14px; }
@media (max-width: 1000px) { .part, .page-hero-grid { grid-template-columns: 1fr; } .part > .side { position: static; } .part { padding-top: 64px; } }
@media (max-width: 640px) { .part, .page-hero { padding-left: 16px; padding-right: 16px; } .next { margin: 70px 16px 60px; } }

/* Network switcher */
.chainsw { position: relative; }
.chainsw-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--muted); background: none; color: var(--ink); cursor: pointer; }
.chainsw-btn:hover { border-color: var(--ink); }
.chainsw-btn b { font-weight: 400; font-size: 12px; transform: translateY(-2px); }
.chainsw i { width: 8px; height: 8px; border-radius: 50%; background: #0052FF; flex: none; }
.chainsw i.testnet { background: none; border: 1.5px solid #0052FF; }
.chainsw-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; list-style: none; padding: 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); text-transform: none; letter-spacing: 0; }
.chainsw-menu li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.chainsw-menu li small { grid-column: 2; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.chainsw-menu li:hover { background: var(--surface); }
.chainsw-menu li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.appnav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; padding-bottom: 12px; }
.appnav .nav-right .back { margin-left: 0; padding-bottom: 0; }

/* Live price */
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--accent) 45%, transparent); } 100% { background: transparent; } }
.up { color: #1F9E6A; } .down { color: #D2513F; }
.tick-logo { width: 1em; height: 1em; border-radius: 22%; vertical-align: -.12em; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1F9E6A; box-shadow: 0 0 0 0 #1F9E6A; animation: livepulse 2s infinite; }
.err .live-dot, .live-dot.err { background: #D2513F; animation: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 700px) { .appnav .nav-right { order: 2; padding-bottom: 10px; } .chainsw-btn { padding: 7px 10px; } }
.ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; font-size: 15px; }
.ticker .tick-logo { width: 22px; height: 22px; border-radius: 6px; }
.ticker strong { font: 500 19px "JetBrains Mono", ui-monospace, monospace; padding: 0 3px; border-radius: 4px; }
.ticker [data-price-chg] { font: 500 13px "JetBrains Mono", monospace; }
.ticker small { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.links [data-chain-switch] { display: flex; }

/* Wallet button */
.wbtn2 { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; white-space: nowrap; }
.wbtn2:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wbtn2.on { background: none; color: var(--ink); font-family: "JetBrains Mono", monospace; letter-spacing: 0; text-transform: none; font-weight: 500; }
.wbtn2.on i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.wbtn2.wrong { border-color: #D2513F; color: #D2513F; font-family: inherit; }

/* ===== Bactory landing ===== */
.hero-eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px 24px 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
h1.h-bactory { font-size: clamp(44px, 9.2vw, 172px); line-height: .86; padding-top: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.flow { font: 500 12px/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--ink); }
.flow ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: stretch; }
.flow li { position: relative; padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; letter-spacing: .04em; }
.flow li small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translate(50%, -50%); color: var(--accent); font-weight: 700; z-index: 1; }
.flow li:last-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flow li:last-child small { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mods span { padding: 4px 10px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 999px; font: 500 11px "JetBrains Mono", monospace; color: var(--muted); }
.mods span::before { content: "+ "; color: var(--accent); }
.demo { display: inline-block; padding: 2px 7px; border-radius: 4px; border: 1px solid currentColor; font: 700 9.5px "Inter Tight", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #C47A1C; vertical-align: middle; }
.dark .demo { color: #F0B35C; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: "JetBrains Mono", ui-monospace, monospace; }
.how .steps li ul { grid-area: d; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.how .steps li ul li { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.how .steps p { grid-area: d; }
.how .steps .stepbody { grid-area: d; }
.modules { padding: 110px 36px 40px; }
.modules .sec-head { margin: 0; }
.modules h2 { font-weight: 800; font-size: clamp(48px, 6vw, 104px); line-height: .9; letter-spacing: -.06em; padding: 56px 0 46px; }
.modules h2 em, .yieldsec h2 em, .factory h2 em, .builders h2 em { font-style: normal; color: var(--accent); }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mcard { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 20px 20px 22px; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 12px; transition: border-color .2s, background .2s, transform .2s; }
.mcard:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.mcard h3 { font-weight: 800; font-size: 30px; letter-spacing: -.05em; margin: 34px 0 8px; }
.mcard p { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.mcard ul { list-style: none; margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 5px; }
.mcard ul li { font: 11.5px "JetBrains Mono", monospace; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--line) 50%, transparent); }
.mcard .ic { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: 700 13px "JetBrains Mono", monospace; }
.mcard.later { opacity: .55; border-style: dashed; }
.yieldsec { padding: 110px 36px 40px; }
.yieldsec .sec-head { margin: 0; }
.yieldsec .intro2 { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: end; padding: 56px 0 46px; }
.yieldsec h2, .factory h2, .builders h2 { font-weight: 800; font-size: clamp(44px, 5.6vw, 96px); line-height: .9; letter-spacing: -.06em; }
.yieldsec .intro2 p, .factory .intro2 p, .builders .intro2 p { font-size: 18px; line-height: 1.45; color: var(--muted); }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vcard { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.vcard .vtop { padding: 22px 22px 26px; color: #fff; background: radial-gradient(120% 120% at 15% 0%, #4C86FF 0, #0052FF 45%, #0038B8 100%); }
.vcard.t2 .vtop { background: radial-gradient(120% 120% at 15% 0%, #3A404C 0, #16181E 60%, #0A0B0D 100%); }
.vcard.t3 .vtop { background: radial-gradient(120% 120% at 15% 0%, #8FB0FF 0, #3D6FE8 50%, #1B3FA6 100%); }
.vcard .vtop .eyebrow { opacity: .8; font-size: 10px; }
.vcard .vtop h3 { font-weight: 800; font-size: 28px; letter-spacing: -.05em; margin: 8px 0 18px; }
.vcard .vtop strong { display: block; font-weight: 800; font-size: 44px; letter-spacing: -.05em; line-height: 1; }
.vcard .vtop small { display: block; font-size: 12px; opacity: .8; margin-top: 6px; }
.vcard .vtop .demo { color: #fff; border-color: rgba(255,255,255,.6); }
.vcard dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; padding: 18px 22px 22px; font-size: 13.5px; }
.vcard dt { color: var(--muted); }
.vcard dd { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.factory, .builders { padding: 110px 36px 40px; }
.factory .sec-head, .builders .sec-head { margin: 0; }
.factory .intro2, .builders .intro2 { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: end; padding: 56px 0 40px; }
.tree { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; }
.codebox { position: relative; border-radius: 14px; background: #0D0F13; color: #EEF0F3; font: 13.5px/1.75 "JetBrains Mono", ui-monospace, monospace; overflow: hidden; }
.codebox header { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #20242C; font: 600 10.5px "Inter Tight", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #9AA1B0; }
.codebox header i { width: 6px; height: 6px; border-radius: 50%; background: #3A404C; }
.codebox header span { margin-left: 8px; }
.codebox pre { padding: 18px 20px 22px; white-space: pre; overflow-x: auto; font: inherit; }
.codebox .k { color: #7FA8FF; } .codebox .s { color: #8FE3B5; } .codebox .c { color: #6B7280; } .codebox .f { color: #FFD27A; } .codebox .a { color: #3C7BFF; font-weight: 600; }
.tree-side { display: grid; gap: 10px; align-content: start; }
.tree-side div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.tree-side b { display: block; font-size: 16px; letter-spacing: -.02em; }
.tree-side p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.nova-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--r-line); margin-top: 8px; }
.nova-band div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--r-line); }
.nova-band .eyebrow { color: var(--r-muted); font-size: 10px; }
.nova-band strong { display: block; font: 500 24px "JetBrains Mono", monospace; margin-top: 8px; }
.nova-band strong.act { font: 800 24px "Inter Tight", sans-serif; letter-spacing: -.03em; color: #3FD196; }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sgrid div { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 12px; }
.sgrid h4 { font-size: 22px; font-weight: 800; letter-spacing: -.04em; margin: 12px 0 8px; }
.sgrid p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.statusbox { margin-top: 22px; border-radius: 14px; background: #0D0F13; color: #EEF0F3; padding: 22px 24px; font-family: "JetBrains Mono", monospace; }
.statusbox .eyebrow { font-family: "Inter Tight", sans-serif; color: #9AA1B0; font-size: 10.5px; }
.statusbox dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.statusbox dt { font-size: 11px; color: #9AA1B0; }
.statusbox dd { font-size: 16px; margin-top: 4px; }
.statusbox dd.warn { color: #F0B35C; }
.statusbox .livebn { margin-top: 18px; padding-top: 14px; border-top: 1px solid #20242C; font-size: 12px; color: #9AA1B0; }
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--r-line); margin-top: 56px; }
.stack div { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--r-line); }
.stack .eyebrow { color: var(--r-muted); font-size: 10px; }
.stack h3 { font-weight: 800; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.055em; margin: 18px 0 6px; }
.stack h3 em { font-style: normal; color: var(--accent); }
.stack p { font-size: 14px; color: var(--r-muted); }
.builders ul.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.builders ul.tools li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.cta2 { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.cta2:hover { background: var(--accent-ink); color: var(--accent); }
.foot-brand { font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.foot-links .later-link { opacity: .8; cursor: default; border-bottom: 1px dashed currentColor; }
@media (max-width: 1100px) {
  .mgrid { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .tree, .yieldsec .intro2, .factory .intro2, .builders .intro2 { grid-template-columns: 1fr; }
  .stack, .nova-band { grid-template-columns: 1fr 1fr; }
  .statusbox dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .flow ol { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -13px; transform: translateX(50%); }
  .mgrid, .sgrid { grid-template-columns: 1fr; }
  .modules, .yieldsec, .factory, .builders { padding-left: 16px; padding-right: 16px; }
  .stack, .nova-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .diagram { overflow-x: auto; padding-left: 16px !important; padding-right: 16px !important; }
  .diagram svg { min-width: 620px; }
  .diagram p { margin-left: 0 !important; }
}

/* ===== Bactory v2: market infrastructure ===== */
.arch svg { width: 100%; height: auto; display: block; overflow: visible; }
.arch text { font-family: "JetBrains Mono", ui-monospace, monospace; }
.flowline { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 3 7; animation: flowdash 1.4s linear infinite; }
.flowline.slow { animation-duration: 2.4s; opacity: .7; }
@keyframes flowdash { to { stroke-dashoffset: -20; } }
.pulse-node { animation: nodepulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodepulse { 50% { opacity: .78; } }
@media (prefers-reduced-motion: reduce) { .flowline, .pulse-node { animation: none; } }
.hero-line { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.below.v2 { grid-template-columns: 1fr 1.25fr; align-items: center; }
.status-tag { display: inline-block; padding: 3px 8px; border-radius: 5px; font: 700 9.5px "Inter Tight", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.status-tag.st-core { background: var(--accent); color: var(--accent-ink); }
.status-tag.st-beta { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border: 1px solid var(--accent); }
.status-tag.st-planned { border: 1px dashed var(--muted); color: var(--muted); }
.mcard .status-tag { position: absolute; top: 18px; right: 18px; }
.mgrid.six { grid-template-columns: repeat(3, 1fr); }
.livecard { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px; font-size: 13px; }
.livecard .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.livecard .hd img, .tlogo { width: 26px; height: 26px; border-radius: 50%; }
.livecard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.livecard dt { color: var(--muted); } .livecard dd { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.stepbody .btn { margin-top: 16px; }
.core { padding: 70px 36px 110px; }
.core .sec-head { margin: 0; border-top-color: var(--r-line); }
.core .sec-head .eyebrow { color: var(--r-fg); }
.core .intro2 { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: end; padding: 56px 0 40px; }
.core h2 { font-weight: 800; font-size: clamp(44px, 5.6vw, 96px); line-height: .9; letter-spacing: -.06em; }
.core h2 em { font-style: normal; color: var(--accent); }
.core .intro2 p { font-size: 18px; line-height: 1.45; color: var(--r-muted); }
.core .codebox { border: 1px solid var(--r-line); }
.core .tree-side div { border-color: var(--r-line); }
.core .tree-side p { color: var(--r-muted); }
.dash { padding: 110px 36px 40px; }
.dash .sec-head { margin: 0; }
.dash .intro2 { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 40px; align-items: end; padding: 56px 0 36px; }
.dash h2 { font-weight: 800; font-size: clamp(44px, 5.6vw, 96px); line-height: .9; letter-spacing: -.06em; }
.dash h2 em { font-style: normal; color: var(--accent); }
.dash .intro2 p { font-size: 17px; line-height: 1.5; color: var(--muted); }
.dboard { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.dboard .top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.dboard .top h3 { font-size: 28px; font-weight: 800; letter-spacing: -.05em; display: flex; align-items: center; gap: 10px; }
.dboard .top .px { margin-left: auto; font: 500 26px "JetBrains Mono", monospace; }
.chip-net { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip-net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0052FF; }
.chip-act { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #12A06B 14%, transparent); color: #12A06B; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dmetrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.dmetrics div { padding: 16px 22px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.dmetrics div:nth-child(4n) { border-right: 0; }
.dmetrics .eyebrow { color: var(--muted); font-size: 10px; }
.dmetrics strong { display: block; font: 500 20px "JetBrains Mono", monospace; margin-top: 6px; }
.dmetrics small { font-size: 11px; color: var(--muted); }
.dtabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 22px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.dtabs button { position: relative; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 14px 0; cursor: pointer; white-space: nowrap; }
.dtabs button[aria-selected="true"] { color: var(--ink); }
.dtabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.dpanel { padding: 18px 22px 22px; min-height: 260px; }
.txl { list-style: none; }
.txl li { display: grid; grid-template-columns: 110px 70px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.txl time { font: 12px "JetBrains Mono", monospace; color: var(--muted); }
.txl .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; justify-self: start; }
.txl .k.buy { color: #12A06B; } .txl .k.sell { color: #D2513F; } .txl .k.bx { color: var(--accent); }
.txl a { font: 12px "JetBrains Mono", monospace; border-bottom: 1px solid currentColor; }
.txl a:hover { color: var(--accent); }
.build5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.build5 > div { border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 20px; background: var(--surface); }
.build5 h4 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 12px; }
.build5 ul { list-style: none; font: 12px/1.9 "JetBrains Mono", monospace; color: var(--muted); }
.build5 ul li::before { content: "› "; color: var(--accent); }
.build5 .ok { color: #12A06B; }
.build5 > div:last-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.build5 > div:last-child ul { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.lede-strong { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-top: 22px; }
@media (max-width: 1100px) { .mgrid.six { grid-template-columns: 1fr 1fr; } .dmetrics { grid-template-columns: 1fr 1fr; } .dmetrics div:nth-child(2n) { border-right: 0; } .build5 { grid-template-columns: 1fr 1fr; } .below.v2, .core .intro2, .dash .intro2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mgrid.six, .build5 { grid-template-columns: 1fr; } .core, .dash { padding-left: 16px; padding-right: 16px; } .txl li { grid-template-columns: 1fr auto; } .txl li > span:nth-child(3) { grid-column: 1 / -1; } .dboard .top .px { margin-left: 0; } }
/* Asset search */
.asearch { position: relative; }
.asearch input { width: 100%; font: 400 clamp(18px, 1.8vw, 24px) "Inter Tight", sans-serif; letter-spacing: -.01em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; outline: 0; }
.asearch input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.ares { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); max-height: 380px; overflow: auto; }
.ares li.muted { padding: 12px; color: var(--muted); font-size: 14px; }
.ares button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ares button:hover { background: var(--surface); }
.ares small { color: var(--muted); font-size: 12px; }
.apop { margin-top: 18px; }
.apop .eyebrow { color: var(--muted); font-size: 10px; }
.apop-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.apill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.apill:hover { border-color: var(--accent); }
.apill .apl { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; }
.apill small { font: 12px "JetBrains Mono", monospace; color: var(--muted); }

@media (max-width: 900px) { .links .btn:not(.solid) { display: none; } .links .btn.solid { padding: 10px 14px; font-size: 11px; } }
@media (max-width: 640px) { .how h2 { font-size: 11vw; } .links [data-chain-switch] { display: none; } }


/* ===== Gradient theme: teal → blue → violet ===== */
.bar { background: var(--grad-mesh); color: #fff; }
h1 em, h2 em, h3 em, .logo span, .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
}
.rules .stat .big .x, .banner .outline span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; }
.btn.solid:hover, .wbtn2:hover, .chip:hover, .chip.solid, .card:hover .arrow, .vrow:hover .go, a.mrow:hover .go2, .big-cta:hover .circle { background: var(--grad); border-color: transparent; color: #fff; }
.status-tag.st-core { background: var(--grad); color: #fff; }
.start-cta { background: var(--grad-mesh); }
.vcard .vtop, .vc .top { background: var(--grad-mesh); }
.vcard.t2 .vtop, .vc.t2 .top { background: radial-gradient(120% 120% at 15% 0%, #3A404C 0, #16181E 60%, #0A0B0D 100%); }
.vcard.t3 .vtop, .vc.t3 .top { background: radial-gradient(120% 160% at 100% 100%, #35B0B6 0, transparent 55%), linear-gradient(110deg, #7C6FCD, #4A90D2); }
.scene.ok { background: radial-gradient(120% 90% at 20% 10%, #D9F1F2 0, #8FCBD8 45%, #6E86D2 100%); }
.appnav .tabs a.on::after, .tabs2 button[aria-selected="true"]::after, .dtabs button[aria-selected="true"]::after { background: var(--grad); }
.hero-eyebrow::before, .pulse { background: var(--grad); }
.stepper li.on .num, .num { color: var(--accent); }
.chainsw-menu li[aria-selected="true"] { background: color-mix(in srgb, #4A90D2 16%, transparent); }
.flow li:last-child { background: var(--grad); }
.mcard:hover { border-color: #7C6FCD; }

.arch .flowline { stroke: url(#lgrad); }

/* Logo mark */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.appnav .logo img { width: 28px; height: 28px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 6px; }

/* ===== Polish pass ===== */
/* landing mobile menu */
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; order: 3; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  nav > .logo { order: 1; margin-right: auto; }
  nav > .links { order: 2; margin-right: 10px; }
  nav.open { background: var(--bg); flex-wrap: wrap; }
  nav.open > .links { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 14px 0 0; }
  nav.open .links a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  nav.open .links .btn:not(.solid), nav.open .links [data-chain-switch] { display: flex; margin-top: 12px; justify-content: center; }
  nav.open .links .btn.solid { justify-content: center; margin-top: 10px; padding: 14px; }
}
/* hero diagram readable on phones */
@media (max-width: 640px) { .arch { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; } .arch svg { min-width: 600px; } }
/* scroll hints on cut-off tab rows */
.appnav .tabs, .tabs2, .dtabs, .stepper { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (min-width: 1001px) { .stepper { -webkit-mask-image: none; mask-image: none; } }
@media (min-width: 1200px) { .appnav .tabs { -webkit-mask-image: none; mask-image: none; } }
/* footer identity */
.foot-id { display: flex; flex-direction: column; gap: 6px; }
.foot-id small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-foot .row { align-items: flex-start; }
/* comfortable tap targets for standalone links */
.text-links a, .ulink, .infra .a a, .txl a, .crumb a, .sec-head .eyebrow a, .docs p > a.ulink2:only-child, .all-rec { display: inline-block; padding: 6px 0; }
@media (max-width: 640px) { .ulink2 { padding-block: 3px; } .sec-head .eyebrow a { padding: 8px 0; } }
.app-foot .row > a, .site-foot .row > a { white-space: nowrap; }
