/* ---------- base reset (was injected by the artifact host before) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, video { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }

  :root {
    --bg: #FFFFFF;
    --bg-soft: #F3F7FD;
    --surface: #FFFFFF;
    --surface-2: #EFF4FB;
    --ink: #0D162F;
    --muted: #5A6478;
    --line: #DCE5F2;
    --line-strong: #C8D5EA;
    --accent: #1A66FF;
    --accent-ink: #1557E6;
    --accent-deep: #0B4BDB;
    --accent-soft: #E3EDFF;
    --accent-row: rgba(26, 102, 255, 0.07);
    --grad-card: linear-gradient(140deg, #9FBFF6 0%, #C2D7FA 45%, #EAF2FD 100%);
    --good: #0E9384;
    --good-bg: #E4F4F2;
    --av1: #E8674A; --av2: #E0A62E; --av3: #4E9BD1;
    --av4: #56B37F; --av5: #8A6FD1; --av6: #D16FA4;
    --shadow: 0 1px 2px rgba(13,22,47,.05), 0 10px 30px rgba(13,22,47,.07);
    --pillsh: 0 1px 2px rgba(13,22,47,.08), 0 4px 10px rgba(13,22,47,.08);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #FFFFFF; --bg-soft: #F3F7FD; --surface: #FFFFFF; --surface-2: #EFF4FB;
      --ink: #0D162F; --muted: #5A6478; --line: #DCE5F2; --line-strong: #C8D5EA;
      --accent: #1A66FF; --accent-ink: #1557E6; --accent-deep: #0B4BDB;
      --accent-soft: #E3EDFF; --accent-row: rgba(26, 102, 255, 0.07);
      --grad-card: linear-gradient(140deg, #9FBFF6 0%, #C2D7FA 45%, #EAF2FD 100%);
      --good: #0E9384; --good-bg: #E4F4F2;
      --shadow: 0 1px 2px rgba(13,22,47,.05), 0 10px 30px rgba(13,22,47,.07);
      --pillsh: 0 1px 2px rgba(13,22,47,.08), 0 4px 10px rgba(13,22,47,.08);
    }
  }
  :root[data-theme="dark"] {
    --bg: #FFFFFF; --bg-soft: #F3F7FD; --surface: #FFFFFF; --surface-2: #EFF4FB;
      --ink: #0D162F; --muted: #5A6478; --line: #DCE5F2; --line-strong: #C8D5EA;
      --accent: #1A66FF; --accent-ink: #1557E6; --accent-deep: #0B4BDB;
      --accent-soft: #E3EDFF; --accent-row: rgba(26, 102, 255, 0.07);
      --grad-card: linear-gradient(140deg, #9FBFF6 0%, #C2D7FA 45%, #EAF2FD 100%);
      --good: #0E9384; --good-bg: #E4F4F2;
      --shadow: 0 1px 2px rgba(13,22,47,.05), 0 10px 30px rgba(13,22,47,.07);
      --pillsh: 0 1px 2px rgba(13,22,47,.08), 0 4px 10px rgba(13,22,47,.08);
  }
  :root[data-theme="light"] {
    --bg: #FFFFFF; --bg-soft: #F3F7FD; --surface: #FFFFFF; --surface-2: #EFF4FB;
    --ink: #0D162F; --muted: #5A6478; --line: #DCE5F2; --line-strong: #C8D5EA;
    --accent: #1A66FF; --accent-ink: #1557E6; --accent-deep: #0B4BDB;
    --accent-soft: #E3EDFF; --accent-row: rgba(26, 102, 255, 0.07);
    --grad-card: linear-gradient(140deg, #9FBFF6 0%, #C2D7FA 45%, #EAF2FD 100%);
    --good: #0E9384; --good-bg: #E4F4F2;
    --shadow: 0 1px 2px rgba(13,22,47,.05), 0 10px 30px rgba(13,22,47,.07);
    --pillsh: 0 1px 2px rgba(13,22,47,.08), 0 4px 10px rgba(13,22,47,.08);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  section { padding: 92px 0; }
  section + section { border-top: 1px solid var(--line); }

  .eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
    margin-bottom: 14px;
  }
  h1, h2, h3 { font-family: "Sora", "Inter", -apple-system, sans-serif; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
  h1 { font-size: clamp(36px, 4.6vw, 48px); font-weight: 600; letter-spacing: -0.15rem; }
  h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; margin-bottom: 14px; }
  h3 { font-size: 19px; font-weight: 600; }
  .sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 16px 0 0; line-height: 1.6; }
  .center { text-align: center; }
  .center .sub { margin-left: auto; margin-right: auto; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: 14px;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    white-space: nowrap; /* a pill button must never wrap into two lines */
    transition: box-shadow .2s ease, background-color .2s ease;
  }
  .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .btn-primary {
    background: radial-gradient(circle, var(--accent), var(--accent-deep));
    color: #fff;
    border-top: 1px solid color-mix(in srgb, var(--accent) 60%, #fff);
    border-bottom: 1px solid color-mix(in srgb, var(--accent-deep) 75%, #000);
    box-shadow: 0 2px 6px rgba(26, 102, 255, .35);
  }
  .btn-primary:hover { box-shadow: 0 4px 12px rgba(26, 102, 255, .45); }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
  .btn-ghost:hover { background: var(--accent-soft); }

  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }

  /* ---------- header ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; gap: 28px; height: 64px; }
  .logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; text-decoration: none; }
  .logo-mark {
    width: 26px; height: 26px; border-radius: 8px; background: var(--accent);
    display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  }
  .nav-links { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--ink); }
  .nav-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
  .nav-right .signin { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--muted); }
  .nav .btn { padding: 9px 18px; font-size: 14px; }
  @media (max-width: 860px) { .nav-links { display: none; } }
  /* small phones: shrink logo + button so the header fits on one line */
  @media (max-width: 400px) {
    .nav { gap: 12px; }
    .nav .logo-full { height: 21px; }
    .nav .btn { padding: 8px 13px; font-size: 13px; }
  }

  /* ---------- hero ---------- */
  .hero { padding: 64px 0 0; border-top: none; }
  .hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 40px; align-items: center; padding-bottom: 56px; }
  @media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero-grid .sub { font-size: 16px; margin: 0; max-width: 36rem; }
  .hero-cta { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

  .role-tabs {
    display: inline-flex; max-width: 100%; overflow-x: auto; margin: 0 0 24px; padding: 4px;
    background: var(--surface); border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(13,22,47,0.06), inset 0 2px 4px rgba(13,22,47,0.05);
  }
  
  .role-tab {
    white-space: nowrap; padding: 8px 16px; border-radius: 6px; border: 1px solid transparent;
    background: transparent; color: var(--ink); font-weight: 400; font-size: 14px; cursor: pointer;
    font-family: inherit;
  }
  .role-tab:hover { background: var(--bg-soft); }
  .role-tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-strong); font-weight: 500; }
  .role-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .role-tab sup { font-size: 9px; color: var(--muted); margin-left: 1px; }
  .tab-note { align-self: center; font-size: 11.5px; color: var(--muted); padding: 0 10px; white-space: nowrap; }

  .dash {
    border-radius: 12px 12px 0 0; border-bottom: none; overflow: hidden;
    box-shadow: 0 -6px 16px -8px rgba(13,22,47,.10), 0 -1px 3px -1px rgba(13,22,47,.06), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .dash-body {
    height: 560px;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .stat { padding: 16px; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
  .stat:last-child { border-right: none; }
  .stat .lbl { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
  .stat .val { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .stat .delta { font-size: 11.5px; font-weight: 500; margin-top: 4px; }
  .stat .delta.up, .stat .delta.plain { color: var(--accent-ink); }
  .stat .delta.down { color: var(--good); }
  .stat svg { display: block; width: 132px; max-width: 100%; height: 40px; margin-top: 12px; overflow: visible; }
  @media (max-width: 860px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  }

  .table-scroll { overflow-x: auto; padding: 12px 16px 16px; }
  table.tasks { width: 100%; min-width: 860px; border-collapse: collapse; }
  table.tasks th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 400; padding: 6px 12px 10px; }
  table.tasks td {
    padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    vertical-align: middle; white-space: nowrap; font-size: 12.5px;
  }
  table.tasks tr:last-child td { border-bottom: none; }
  table.tasks tr.running { background: linear-gradient(90deg, transparent 0%, var(--accent-row) 8%, var(--accent-row) 92%, transparent 100%); }
  .t-task { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
  .appchips { display: inline-flex; }
  .appchip {
    width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
    border: 1px solid var(--line); display: grid; place-items: center;
    font-size: 7px; font-weight: 700; color: var(--muted); overflow: hidden;
  }
  .appchip img { width: 11px; height: 11px; object-fit: contain; display: block; }
  .appchip b { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 7px; border-radius: 50%; }
  .appchip + .appchip { margin-left: -5px; }
  .mlogo { width: 13px; height: 13px; object-fit: contain; flex: none; }
  .mtile {
    width: 13px; height: 13px; border-radius: 4px; flex: none;
    display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 700;
  }
  .runby { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
  .avatar {
    width: 20px; height: 20px; border-radius: 6px; flex: none;
    display: grid; place-items: center; color: #fff; font-size: 8.5px; font-weight: 700;
  }
  .avatar svg { width: 100%; height: 100%; display: block; }
  .bot-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
  .bot-row .avatar { width: 46px; height: 46px; }
  .bot-row .avatar svg { filter: drop-shadow(0 8px 14px rgba(13,22,47,.18)); }
  @media (prefers-reduced-motion: no-preference) {
    .bot-row .avatar { animation: bob 3.4s ease-in-out infinite; }
    .bot-row .avatar:nth-child(2n) { animation-delay: -1.2s; }
    .bot-row .avatar:nth-child(3n) { animation-delay: -2.3s; }
  }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .modelcell { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
  .mdot { width: 9px; height: 9px; border-radius: 3px; flex: none; transform: rotate(45deg); }
  .evalcell { font-size: 12px; color: var(--good); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
  .evalcell.running { color: var(--accent-ink); }
  .spin {
    width: 13px; height: 13px; border-radius: 50%; flex: none;
    border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .costcell { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }

  /* ---------- logo bar ---------- */
  .logo-row { display: flex; flex-wrap: wrap; gap: 18px 48px; justify-content: center; margin-top: 28px; color: var(--muted); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

  /* ---------- use-case gallery ---------- */
  .uc-tabbar { display: flex; align-items: center; margin-top: 36px; position: relative; }
  /* the tab strip must not clip the dropdown — no scroll container here */
  .uc-tabbar .role-tabs { overflow: visible; flex-wrap: wrap; }
  /* 5px hover halo around "+3 more" plus a bridge over the gap, so the
     pointer never leaves the hover zone on its way down to the menu */
  .uc-more { position: relative; padding: 5px; margin: -5px; }
  .uc-more::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
  .uc-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 190px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow); padding: 6px; display: none;
  }
  .uc-menu.open { display: block; }
  .uc-menu button {
    display: block; width: 100%; text-align: left; padding: 9px 14px; border: none; background: none;
    font-size: 14.5px; color: var(--ink); border-radius: 6px; cursor: pointer; font-family: inherit;
  }
  .uc-menu button:hover { background: var(--bg-soft); }

  .uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; margin-top: 36px; }
  @media (max-width: 1024px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .uc-grid { grid-template-columns: 1fr; } }
  .uc-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 10px 10px 16px; box-shadow: 0 1px 2px rgba(13,22,47,.04);
    transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .25s ease, border-color .25s ease;
  }
  .uc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  }
  .uc-card .uc-name, .uc-card .uc-desc { padding: 0 8px; }
  .uc-art {
    border-radius: 8px; min-height: 300px; padding: 26px 22px;
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    background: var(--uc-grad); position: relative; overflow: hidden;
  }
  .uc-name { font-size: 18px; margin-top: 18px; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: -.01em; }
  .uc-desc { color: var(--muted); font-size: 15px; margin: 6px 0 0; line-height: 1.5; }

  /* diagram atoms — dark ink regardless of theme (they sit on light gradient tiles) */
  .a-pill {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    background: rgba(255,255,255,.92); color: #21283C; border-radius: 999px;
    padding: 8px 15px; font-size: 13.5px; font-weight: 600; box-shadow: var(--pillsh);
    white-space: nowrap; max-width: 100%;
  }
  .a-pill.acc { background: var(--uc-acc); color: #fff; }
  .a-pill.line { background: rgba(255,255,255,.55); box-shadow: none; border: 1px solid rgba(255,255,255,.9); }
  .a-pill.ghost { background: rgba(255,255,255,.55); box-shadow: none; color: #8A90A5; text-decoration: line-through; }
  .a-pill .ic {
    width: 18px; height: 18px; border-radius: 5px; background: var(--uc-acc); color: #fff; flex: none;
    display: grid; place-items: center; font-size: 9px; font-weight: 800;
  }
  .a-pill .ck {
    width: 17px; height: 17px; border-radius: 50%; background: var(--uc-acc); color: #fff; flex: none;
    display: grid; place-items: center; font-size: 9.5px; font-weight: 800;
  }
  /* real brand logos inside pills/chips (assets/icons/) */
  .clogo { width: 14px; height: 14px; object-fit: contain; flex: none; vertical-align: -2px; }
  .a-pill .ic .clogo, .a-pill .ck .clogo { width: 12px; height: 12px; }
  .a-pill .ic:has(.clogo) { background: #fff; box-shadow: inset 0 0 0 1px rgba(33,40,60,.12); }
  .a-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #21283C; }
  .a-row.dim { color: rgba(33,40,60,.45); font-weight: 500; }
  .a-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--uc-acc); flex: none; }
  .a-row.dim .dot { background: rgba(33,40,60,.3); }
  .a-row .num {
    width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.9); flex: none;
    display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--uc-acc);
    box-shadow: var(--pillsh);
  }
  .a-indent { margin-left: 26px; }
  .a-chat-q { align-self: flex-start; background: rgba(255,255,255,.92); color: #21283C; border-radius: 14px 14px 14px 4px; padding: 10px 15px; font-size: 13.5px; font-weight: 500; box-shadow: var(--pillsh); max-width: 85%; }
  .a-chat-a { align-self: flex-start; margin-left: 20px; background: var(--uc-acc); color: #fff; border-radius: 14px 14px 14px 14px; padding: 10px 15px; font-size: 13.5px; font-weight: 600; box-shadow: var(--pillsh); max-width: 85%; }
  .a-bars { display: flex; align-items: flex-end; gap: 18px; justify-content: center; margin: 4px 0 8px; }
  .a-bcol { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; }
  .a-bcol .v { font-weight: 600; color: rgba(33,40,60,.55); }
  .a-bcol.hot .v { color: #21283C; font-weight: 700; }
  .a-bcol .b { width: 44px; border-radius: 4px; background: rgba(33,40,60,.14); }
  .a-bcol.hot .b { background: var(--uc-acc); }
  .a-bcol .l { color: rgba(33,40,60,.55); font-weight: 500; }
  .a-bcol.hot .l { color: #21283C; font-weight: 700; }
  .a-center { align-self: center; }
  .a-fan { position: relative; min-height: 230px; }
  .a-fan-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .a-fan .c1 { position: absolute; top: 8px; left: 0; }
  .a-fan .c2 { position: absolute; top: 8px; right: 0; }
  .a-fan .c3 { position: absolute; bottom: 8px; left: 0; }
  .a-fan .c4 { position: absolute; bottom: 8px; right: 0; }
  .a-fan .mid { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .a-fan .fp { background: rgba(255,255,255,.75); box-shadow: none; font-weight: 500; font-size: 12.5px; padding: 6px 12px; }
  .a-report {
    align-self: center; background: rgba(255,255,255,.94); border-radius: 12px; padding: 18px 20px 14px;
    box-shadow: var(--pillsh); width: 170px; position: relative;
  }
  .a-report::before, .a-report::after {
    content: ""; position: absolute; inset: 0; border-radius: 12px;
    background: rgba(255,255,255,.5); z-index: -1;
  }
  .a-report::before { transform: translate(8px, -8px); }
  .a-report::after { transform: translate(16px, -16px); opacity: .5; }
  .a-report .t { font-size: 13px; font-weight: 700; color: #21283C; margin-bottom: 10px; }
  .a-report .rb { display: flex; align-items: flex-end; gap: 7px; height: 52px; }
  .a-report .rb span { flex: 1; border-radius: 3px 3px 0 0; background: var(--uc-acc); }
  .a-report .dots { display: flex; gap: 4px; margin-top: 10px; }
  .a-report .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(33,40,60,.2); }
  .a-report .dots i:first-child { background: var(--uc-acc); }
  .a-cal {
    align-self: center; background: rgba(255,255,255,.94); border-radius: 12px; padding: 14px 16px;
    box-shadow: var(--pillsh); font-size: 12px; color: #21283C;
  }
  .a-cal .m { font-weight: 700; margin-bottom: 8px; font-size: 13px; }
  .a-cal table { border-collapse: separate; border-spacing: 4px; }
  .a-cal td { width: 24px; height: 22px; text-align: center; border-radius: 5px; color: rgba(33,40,60,.6); }
  .a-cal td.on { background: var(--uc-acc); color: #fff; font-weight: 700; }
  .a-cal th { color: rgba(33,40,60,.4); font-weight: 600; font-size: 10.5px; }
  .a-vline { width: 30px; height: 16px; margin-left: 12px; overflow: visible; background: none; }

  /* per-tab themes */
  .th-sales   { --uc-grad: linear-gradient(150deg, #B9D2F7 0%, #D3E2FA 55%, #EAF2FD 100%); --uc-acc: #1A66FF; }
  .th-cs      { --uc-grad: linear-gradient(150deg, #F6C4DA 0%, #F3D9E8 50%, #E4DDF4 100%); --uc-acc: #DE1B76; }
  .th-mkt     { --uc-grad: linear-gradient(150deg, #C9E3EC 0%, #D6E4F6 50%, #DDF0E4 100%); --uc-acc: #0B7DC2; }
  .th-hr      { --uc-grad: linear-gradient(150deg, #BFE2D3 0%, #DDEEE2 55%, #F2E7C9 100%); --uc-acc: #0E8A6D; }
  .th-support { --uc-grad: linear-gradient(150deg, #F6D9BC 0%, #F4E4CE 55%, #EFE9DA 100%); --uc-acc: #C2620B; }
  .th-ops     { --uc-grad: linear-gradient(150deg, #C1E5CE 0%, #D8EBDD 50%, #CFE0F2 100%); --uc-acc: #0E8A5F; }
  .th-research{ --uc-grad: linear-gradient(150deg, #C2E7EF 0%, #D8EFF3 50%, #E8F7F2 100%); --uc-acc: #0E8FA8; }

  /* ---------- six-week timeline (hover expand) ---------- */
  .scale-row { display: flex; gap: 20px; margin-top: 48px; }
  /* phones + tablets: no hover, so every card shows fully open, stacked */
  @media (max-width: 1024px) {
    .scale-row { flex-direction: column; }
    .scale-row .scale-card { flex: none !important; background: var(--sc-grad); border-color: transparent; }
    .scale-row .scale-card .sc-art { opacity: 1; }
    .scale-row .scale-card .wk { color: rgba(20,25,45,.55); }
    .scale-row .scale-card h3 { color: #141931; }
    .scale-row .scale-card .sc-desc { display: block; }
  }
  .scale-card {
    flex: 1; min-width: 0; min-height: 480px; border-radius: 4px; overflow: hidden;
    background: var(--bg-soft); border: 1px solid var(--line);
    display: flex; flex-direction: column; cursor: pointer; position: relative;
    transition: flex .45s cubic-bezier(.4, 0, .2, 1);
  }
  .scale-card.open { flex: 2.4; background: var(--sc-grad); border-color: transparent; }
  .scale-card .sc-art { flex: 1; padding: 28px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .35s ease .1s; min-height: 0; overflow: hidden; }
  .scale-card.open .sc-art { opacity: 1; }
  .scale-card .sc-foot { padding: 0 28px 28px; }
  .scale-card .wk { font-size: 14px; color: var(--muted); }
  .scale-card.open .wk { color: rgba(20,25,45,.55); }
  .scale-card h3 { font-size: 22px; margin-top: 6px; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: -.02em; }
  .scale-card.open h3 { color: #141931; }
  .scale-card .sc-desc { display: none; color: rgba(20,25,45,.65); font-size: 14.5px; margin: 10px 0 0; max-width: 400px; }
  .scale-card.open .sc-desc { display: block; }
  .sc-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
  .sc-pills .a-pill:nth-child(2) { margin-left: 26px; }
  .sc-net { display: flex; align-items: center; gap: 4px; margin: auto 0; }
  .sc-pav {
    width: 46px; height: 46px; flex: none; border-radius: 12px !important;
    background: rgba(255,255,255,.95) !important; box-shadow: var(--pillsh);
    padding: 4px; position: relative;
  }
  .sc-pav::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #21B573; border: 2px solid #fff; }
  .sc-arr { width: 44px; height: 88px; flex: none; overflow: visible; }
  .a-pill .avatar { width: 19px; height: 19px; }
  .sc-stack2 { display: flex; flex-direction: column; gap: 14px; }
  .sc-input {
    display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
    background: rgba(255,255,255,.95); border-radius: 999px; padding: 8px 8px 8px 16px;
    font-size: 13.5px; color: #21283C; box-shadow: var(--pillsh);
  }
  .sc-input .go {
    width: 26px; height: 26px; border-radius: 50%; background: var(--sc-acc); color: #fff;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
  }
  .sc1 { --sc-grad: linear-gradient(150deg, #AFCBF7 0%, #CFE0FA 55%, #EBF2FD 100%); --sc-acc: #1A66FF; --uc-acc: #1A66FF; }
  .sc2 { --sc-grad: linear-gradient(140deg, #F2C9D8 0%, #F6DEE6 55%, #F9ECEC 100%); --sc-acc: #D8547E; --uc-acc: #D8547E; }
  .sc3 { --sc-grad: linear-gradient(150deg, #BFD8F2 0%, #CBE7E4 55%, #C9EBD9 100%); --sc-acc: #4762E0; --uc-acc: #4762E0; }

  /* ---------- cowork / flow canvas ---------- */
  .flow-frame {
    margin-top: 48px; border-radius: 6px; padding: clamp(20px, 5vw, 72px);
    background: radial-gradient(120% 120% at 15% 10%, #9FBFF6 0%, #BFD5FA 40%, #E2EDFC 100%);
  }
  
  .flow-canvas {
    position: relative; background: var(--surface); min-height: 620px; padding: 48px 32px 90px;
    background-image: radial-gradient(color-mix(in srgb, var(--line-strong) 80%, transparent) 1.2px, transparent 1.2px);
    background-size: 24px 24px; overflow: hidden;
  }
  .flow-view[hidden] { display: none; }
  .flow-view { position: absolute; inset: 0; }
  .fabs { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
  #teamEdges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .fedge { fill: none; stroke: #A8B6D4; stroke-width: 1.6; }
  .fedge.acc { stroke: var(--accent); }
  .fedge.dashed { stroke-dasharray: 5; animation: edgeflow .5s linear infinite; animation-play-state: paused; }
  .flow-canvas.animated .fedge.dashed { animation-play-state: running; }
  @keyframes edgeflow { to { stroke-dashoffset: -10; } }
  .flow-info {
    position: absolute; left: 26px; bottom: 18px; z-index: 3; max-width: 300px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 18px; box-shadow: var(--shadow); font-size: 13.5px;
  }
  .flow-info .fi-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
  .flow-info .fi-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--muted); }
  .flow-info .fi-row b {
    width: 16px; height: 16px; flex: none; border-radius: 50%; font-size: 10px;
    display: grid; place-items: center; font-weight: 700;
  }
  .flow-info .fi-row.ok b { background: var(--good-bg); color: var(--good); }
  .flow-info .fi-row.bad b { background: #FBE9E7; color: #C0392B; }
  /* mobile / iPad comparison cards — hidden on desktop, replace the canvas on touch */
  .flow-compare { display: none; }
  .ftrig-wrap { display: flex; flex-direction: column; align-items: center; }
  .ftrig-tag {
    background: #FDF0D5; color: #B07A0C; font-size: 11px; font-weight: 700; border-radius: 999px;
    padding: 2px 10px; margin-bottom: -8px; z-index: 2; border: 1px solid #F3DFAE;
  }
  .ftrig {
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
    padding: 10px 18px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
  }
  .fnode {
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
    padding: 12px 16px; min-width: 168px; box-shadow: var(--shadow);
  }
  .fnode.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
  .fnode .nm { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .fnode .nm .avatar { width: 22px; height: 22px; }
  .fnode .md { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .fnode .md .pct { margin-left: auto; background: var(--good-bg); color: var(--good); font-weight: 600; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; }
  .fvline { width: 1.5px; height: 26px; background: var(--line-strong); }
  .fvline.dash { background: none; border-left: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
  .fsplit { display: flex; gap: 24px; align-items: flex-start; }
  .fsplit > div { display: flex; flex-direction: column; align-items: center; }
  .frouting {
    display: inline-flex; align-items: center; gap: 7px; border: 1.5px dashed var(--line-strong);
    border-radius: 10px; padding: 7px 14px; font-size: 13px; color: var(--muted); background: var(--surface);
  }
  .flow-toggle {
    position: absolute; right: 28px; bottom: 26px; display: inline-flex; gap: 4px; padding: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  }
  .flow-toggle button {
    padding: 8px 18px; border-radius: 7px; border: 1px solid transparent; background: none;
    font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; font-family: inherit;
  }
  .flow-toggle button[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

  /* codex view */
  .codex-stage { position: relative; height: 520px; }
  .cx-file {
    position: absolute; background: var(--surface); border: 1px solid var(--line);
    border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: var(--muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace; box-shadow: var(--shadow); white-space: nowrap;
  }
  .cx-file.dim { opacity: .45; }
  .cx-codex {
    position: absolute; display: inline-flex; align-items: center; gap: 9px;
    background: #16161F; color: #fff; border-radius: 999px; padding: 9px 18px 9px 12px;
    font-size: 14px; font-weight: 700; box-shadow: var(--shadow);
  }
  .cx-codex .gp { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #16161F; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
  .cx-codex span.sub2 { color: #9DA3B5; font-weight: 500; }
  .cx-meter {
    position: absolute; display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 10px;
    box-shadow: var(--shadow); font-size: 12.5px;
  }
  .cx-meter .ring {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    background: conic-gradient(var(--accent) 0 58%, var(--surface-2) 58% 100%);
    -webkit-mask: radial-gradient(circle at center, transparent 55%, #000 56%);
    mask: radial-gradient(circle at center, transparent 55%, #000 56%);
  }
  .cx-meter b { display: block; font-size: 12.5px; }
  .cx-meter i { font-style: normal; color: var(--muted); font-size: 11.5px; }
  .cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .cx-svg polyline { fill: none; stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 2; }

  /* ---------- stories ---------- */
  .cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
  @media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }
  .story { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
  .story .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
  .story .who { font-weight: 600; }
  .story blockquote { margin: 0; color: var(--muted); font-size: 15px; }
  .story a { font-weight: 600; font-size: 14px; color: var(--accent-ink); }

  /* ---------- stack section ---------- */
  .stack-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 48px; }
  @media (max-width: 960px) { .stack-grid { grid-template-columns: 1fr; } }
  .iso { height: 420px; display: grid; place-items: center; perspective: 1200px; }
  .iso-stage { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; }
  .iso-layer { position: absolute; inset: 0; border-radius: 14px; transform: rotateX(58deg) rotateZ(45deg) translateZ(var(--z, 0px)); transition: opacity .4s ease; }
  .iso-layer.top {
    --z: 110px;
    background: linear-gradient(135deg, #7A6DF3, #9C92F6);
    box-shadow: 0 30px 60px rgba(99, 86, 240, .35);
    animation: isoglow 3s ease-in-out infinite;
  }
  @keyframes isoglow {
    0%, 100% { box-shadow: 0 30px 60px rgba(99, 86, 240, .3); }
    50% { box-shadow: 0 30px 80px rgba(99, 86, 240, .55); }
  }
  .iso-layer.top::after {
    content: "⚡"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 44px; transform: rotate(-45deg); color: #fff; opacity: .9;
  }
  .iso-layer.base { --z: -14px; background: var(--bg-soft); border: 1px solid var(--line); }
  /* build-up layers: one per stack-list item, stacked as the list cycles */
  .iso-layer.lyr {
    transition: transform .45s cubic-bezier(.23,1,.32,1), opacity .45s ease;
  }
  .iso-layer.lyr.ghosty { background: var(--surface); border: 1px solid var(--line-strong); opacity: .55; }
  .iso-layer.lyr.cap {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #9DC2FF));
    box-shadow: 0 30px 60px rgba(26, 102, 255, .35);
  }
  .iso-layer.lyr.cap::after {
    content: attr(data-ico); position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 40px; transform: rotate(-45deg); color: #fff; opacity: .9;
  }
  .iso-layer.lyr.up {
    opacity: 0;
    transform: rotateX(58deg) rotateZ(45deg) translateZ(calc(var(--z, 0px) + 64px));
  }

  .stack-list { padding: 8px 0; }
  .stack-item {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 17px 22px; border-bottom: 1px solid var(--line);
    font-weight: 600; font-size: 15.5px; cursor: pointer; border-radius: 10px;
    transition: color .3s ease, background-color .3s ease;
  }
  .stack-item:last-child { border-bottom: none; }
  .stack-item .like { color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
  .stack-item[aria-selected="true"] {
    color: var(--accent-ink); background: var(--surface);
    box-shadow: var(--shadow); border-bottom-color: transparent; outline: 1px solid var(--line);
  }

  .pieces-head { font-size: clamp(22px, 3vw, 30px); font-weight: 600; font-family: "Sora", sans-serif; letter-spacing: -.02em; margin-top: 88px; }
  /* pieces auto-scroll: continuous right-to-left crawl, pauses on hover */
  .pieces-marquee {
    overflow: hidden; margin-top: 28px;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  }
  .pieces-row { display: flex; gap: 20px; width: max-content; padding-bottom: 8px; animation: stackPairMarquee 45s linear infinite; }
  .pieces-row:hover { animation-play-state: paused; }
  .pieces-row .piece { flex: 0 0 340px; }
  .piece { flex: 0 0 340px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
  .piece h3 { font-size: 17px; font-family: "Inter", sans-serif; }
  .piece .combo { color: var(--accent-ink); font-weight: 600; font-size: 14px; margin-top: 6px; }
  .piece .combo span { color: var(--muted); font-weight: 500; }
  .piece .art { margin-top: 18px; height: 150px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; padding: 10px 12px; }
  .piece .art svg { width: 100%; height: 100%; overflow: visible; }
  .art-rows { display: flex; flex-direction: column; gap: 9px; width: 100%; }
  .art-row { display: flex; align-items: center; gap: 10px; }
  .art-bar { height: 12px; border-radius: 6px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); flex: 1; }
  .art-bar.ghosted { opacity: .45; border-style: dashed; background: transparent; }
  .art-ok { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
  .art-x { border-color: var(--line-strong); color: var(--muted); }

  /* ---------- model best-fit ---------- */
  .fit-frame {
    margin-top: 48px; border-radius: 6px; padding: clamp(20px, 5vw, 72px);
    background: radial-gradient(120% 130% at 80% 15%, #A79BF5 0%, #C6BEF8 45%, #E7E3FC 100%);
  }

  .fit-card { background: var(--surface); box-shadow: var(--shadow); }
  .fit-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15.5px; }
  .fit-scroll { overflow-x: auto; }
  table.fit { width: 100%; min-width: 480px; border-collapse: collapse; }
  table.fit th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 12px 24px; border-bottom: 1px solid var(--line); }
  table.fit th.r, table.fit td.r { text-align: right; }
  table.fit td { padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; white-space: nowrap; }
  table.fit tr:last-child td { border-bottom: none; }
  table.fit tr.sel { background: var(--accent-soft); }
  table.fit tr.dim td { color: var(--muted); }
  .fm { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
  table.fit tr.dim .fm { font-weight: 500; }
  .fm .mdot { width: 11px; height: 11px; }
  .fm .selck {
    width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff;
    display: grid; place-items: center; font-size: 9.5px; font-weight: 800;
  }
  .fit-note { padding: 14px 24px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }

  /* eval-score column: teal bar + threshold tick at 85%, like the live site */
  table.fit th.ev { width: 200px; }
  .evwrap { display: inline-flex; align-items: center; gap: 12px; width: 176px; }
  .evbar { position: relative; flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
  .evbar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--good); }
  .evbar u { position: absolute; left: 85%; top: 50%; width: 1px; height: 9px; transform: translateY(-50%); background: color-mix(in srgb, var(--ink) 22%, transparent); }
  .evwrap b { font-weight: 600; font-size: 13.5px; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
  table.fit tr.dim .evbar i { background: var(--muted); opacity: .55; }
  /* phones only: eval score hidden — desktop and iPad keep it */
  @media (max-width: 640px) {
    table.fit th.ev, table.fit td.ev { display: none; }
  }

  /* ---------- evals mini ---------- */
  .plat-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 20px; }
  @media (max-width: 860px) { .plat-grid { grid-template-columns: 1fr; } }

  /* ---------- quotes ---------- */
  .quote-box { max-width: 780px; margin: 40px auto 0; padding: 40px; text-align: center; }
  .quote-box blockquote { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; }
  .quote-box .attr { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
  .dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
  .dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line-strong); cursor: pointer; padding: 0; }
  .dots button[aria-selected="true"] { background: var(--accent); }

  /* ---------- enterprise ---------- */
  .ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 52px; }
  @media (max-width: 860px) { .ent-grid { grid-template-columns: 1fr; } }
  .ent-col .eh { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; font-weight: 500; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .ent-col ul { list-style: none; margin: 0; padding: 0; }
  .ent-col li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 16px; font-weight: 500; }
  .ent-ck {
    width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; flex: none;
    display: grid; place-items: center; font-size: 11px; font-weight: 800;
  }

  /* ---------- integrations ---------- */
  .int-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 44px; }
  @media (max-width: 860px) { .int-grid { grid-template-columns: repeat(4, 1fr); } }
  .int {
    aspect-ratio: 1; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  }
  .int img { width: 30px; height: 30px; object-fit: contain; }
  .int .mono {
    width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line);
    display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--muted);
  }
  .int span { font-size: 11.5px; color: var(--muted); font-weight: 500; }

  /* ---------- context layer ---------- */
  .ctx-band { background: var(--bg-soft); border-radius: 6px; padding: clamp(32px, 5vw, 72px); margin-top: 12px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
  .ctx-band > * { min-width: 0; } /* let both columns shrink — without this the diagram's natural width overflows phones */
  @media (max-width: 900px) { .ctx-band { grid-template-columns: 1fr; } }
  .ctx-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .ctx-srcs { display: flex; gap: 22px; }
  .ctx-chip {
    display: inline-flex; align-items: center; gap: 9px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px; font-weight: 600; font-size: 15px;
    box-shadow: var(--shadow);
  }
  .ctx-chip .ci { color: var(--accent-ink); font-size: 15px; }
  .ctx-curves { width: 340px; max-width: 100%; height: 46px; margin: 2px 0; overflow: visible; }
  .ctx-core {
    width: 100%; max-width: 440px; text-align: center; padding: 15px; border-radius: 14px;
    background: var(--surface); border: 1.5px solid var(--accent); color: var(--ink);
    font-weight: 600; font-size: 15.5px; box-shadow: var(--shadow);
  }
  .ctx-core .ci { color: var(--accent-ink); margin-right: 7px; }
  .ctx-out { display: flex; gap: 64px; margin: 2px 0; }
  .ctx-agents { display: flex; gap: 40px; }
  .ctx-agents .avatar { width: 36px; height: 36px; }
  .ctx-agents .avatar svg { filter: drop-shadow(0 6px 12px rgba(13,22,47,.14)); }
  /* phones: tighter diagram so chips, arrows, and agents all fit on screen */
  @media (max-width: 640px) {
    .ctx-band { padding: 28px 18px; gap: 32px; }
    .ctx-srcs { gap: 10px; }
    .ctx-chip { padding: 9px 12px; font-size: 13px; }
    .ctx-agents { gap: 26px; }
  }

  /* ---------- ROI framework ---------- */
  .roi-tabs {
    display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px;
    background: var(--surface); border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(13,22,47,0.06), inset 0 2px 4px rgba(13,22,47,0.05);
    flex-wrap: wrap;
  }
  :root[data-theme="dark"] .roi-tabs { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 2px 4px rgba(0,0,0,0.3); }
  .roi-tab {
    padding: 8px 16px; border-radius: 6px; border: 1px solid transparent; background: transparent;
    color: var(--ink); font-weight: 400; font-size: 14.5px; cursor: pointer; font-family: inherit;
  }
  .roi-tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-strong); font-weight: 500; }

  .roi-scroll { overflow-x: auto; margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .roi-grid { display: grid; grid-template-columns: repeat(4, 1fr); min-width: 1000px; }
  .roi-col { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
  .roi-col:last-child { border-right: none; }
  .roi-col-head { padding: 22px 26px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -.015em; font-family: "Inter", sans-serif; }
  .roi-col-head .lno { color: var(--muted); font-weight: 600; margin-right: 4px; }
  .roi-col.hot .roi-col-head, .roi-col.hot .roi-col-head .lno { color: var(--accent-ink); }
  .roi-diagram { flex: 1; padding: 34px 26px; display: flex; flex-direction: column; align-items: flex-start; min-height: 360px; }
  .roi-cap { padding: 20px 26px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }

  .fchip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 7px 14px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  }
  .fchip .fdot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
  .fchip .fdot.solid { background: var(--muted); border-color: var(--muted); }
  .fchip.hot { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-ink); background: var(--accent-soft); }
  .fchip.hot .fdot { border-color: var(--accent-ink); }
  .fchip .fcheck { color: var(--good); font-weight: 800; font-size: 12px; }
  .findent { margin-left: 34px; }
  .fline { width: 20px; height: 24px; margin: 2px 0 2px 18px; overflow: visible; }
  .logo-img { height: 22px; width: auto; display: block; }
  .logo-full { height: 26px; width: auto; display: block; }
  footer .logo-full { height: 30px; }
  .logo-word { font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .04em; color: #131628; }
  .logo-word i { font-style: normal; font-weight: 400; color: var(--muted); }
  .foot-simple .logo { display: inline-flex; }
  /* industries — plain grey text on a continuous right-to-left crawl */
  .ind-marquee {
    overflow: hidden; margin-top: 26px;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .ind-row {
    display: flex; flex-wrap: nowrap; width: max-content;
    animation: stackPairMarquee 40s linear infinite;
  }
  .ind-row:hover { animation-play-state: paused; }
  /* trailing margin instead of flex gap so the -50% loop point is seamless */
  .ind-item { color: var(--muted); font-size: 16.5px; font-weight: 500; white-space: nowrap; margin-right: 56px; }
  .foot-bottom a { text-decoration: none; }
  .foot-bottom a:hover { color: var(--ink); }
  .foot-simple { text-align: center; padding: 8px 0 34px; }
  .foot-simple .logo { justify-content: center; }
  .foot-line { color: var(--muted); font-size: 15.5px; margin: 14px auto 0; max-width: 420px; }
  .fline.fl-r { width: 44px; margin-left: 10px; }
  .fline.fl-l { width: 44px; margin-left: 10px; }
  .fbranch { width: 200px; max-width: 100%; height: 28px; margin: 2px 0; overflow: visible; }
  .fl4 { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
  .fl4 .fret { position: absolute; right: -8px; top: 46px; width: 36px; height: 110px; overflow: visible; }
  .fgroup {
    border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px 16px;
    display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; font-weight: 500;
  }
  .fgroup.hot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); }
  .fgrow { display: flex; align-items: center; gap: 9px; }
  .fgrow .mini-av { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; color: #fff; font-size: 8.5px; font-weight: 800; }
  .fgrow .spark { color: #E8674A; font-size: 13px; }
  .fresult { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
  .fresult .fcheckring { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--accent-ink); display: grid; place-items: center; font-size: 10px; flex: none; }
  .fbars { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 4px 26px; align-items: flex-start; }
  .fbars .b { height: 7px; border-radius: 4px; background: var(--line-strong); opacity: .7; }
  .fbars .note { font-size: 12px; color: var(--muted); margin-left: 6px; }
  .ffan { display: flex; gap: 8px; flex-wrap: wrap; }

  /* ---------- press / footer ---------- */
  .press-row { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; margin-top: 36px; color: var(--muted); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
  footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
  @media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
  .foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
  .foot-grid ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
  .foot-grid li { margin: 8px 0; }
  .foot-grid a { text-decoration: none; color: var(--muted); }
  .foot-grid a:hover { color: var(--ink); }
  .foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13.5px; }

  @media (prefers-reduced-motion: reduce) {
    .fvline, .fvline.dash, .logo-marquee .logo-row, .tasks tbody tr, .dash.redraw .spark-line,
    .caret, .wobble, .flow-canvas.animated .cx-svg polyline { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .spin, .iso-layer.top { animation: none; }
    .scale-card, .sc-art, .stack-item, .iso-layer { transition: none; }
  }

  /* ============ MOTION SYSTEM (behavior captured from the live site via browser automation) ============ */

  /* Flowchart edges — marching-ants dash flow (dasharray 5, offset 10 -> 0, .5s linear infinite).
     Paused until the canvas scrolls into view, then .animated starts every edge. */
  @keyframes dashdraw { to { background-position: 0 10px; } }
  .fvline {
    width: 2px;
    background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--accent) 50%, var(--line-strong)) 0 5px, transparent 5px 10px);
    animation: dashdraw .5s linear infinite paused;
  }
  .fvline.dash {
    border-left: none;
    background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 10px);
    animation: dashdraw .5s linear infinite paused;
  }
  .flow-canvas.animated .fvline, .flow-canvas.animated .fvline.dash { animation-play-state: running; }

  /* Codex file-map connectors get the same flowing dash (SVG strokes) */
  @keyframes dashmove { to { stroke-dashoffset: -10; } }
  .flow-canvas.animated .cx-svg polyline { stroke-dasharray: 5; animation: dashmove .5s linear infinite; }

  /* One-shot wobble when a stack element enters the viewport (0.4s, ±1.5deg) */
  @keyframes stcWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1.5deg); }
    75% { transform: rotate(1.5deg); }
  }
  .wobble { animation: stcWobble .4s ease-in-out; }

  /* Logo strip marquee — linear crawl to -50%, pauses on hover */
  @keyframes stackPairMarquee { to { transform: translateX(-50%); } }
  .logo-marquee {
    overflow: hidden; margin-top: 28px;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  }
  .logo-marquee .logo-row {
    flex-wrap: nowrap; width: max-content; margin-top: 0;
    animation: stackPairMarquee 40s linear infinite;
  }
  .logo-marquee .logo-row:hover { animation-play-state: paused; }

  /* Scroll reveal — 500ms cubic-bezier(0.23,1,0.32,1), staggered per sibling via --rd */
  .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.23,1,.32,1) var(--rd, 0ms), transform .5s cubic-bezier(.23,1,.32,1) var(--rd, 0ms);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* Dashboard rows enter one by one on each tab switch (400ms ease) */
  @keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
  .tasks tbody tr { animation: rowIn .4s ease backwards; }

  /* Sparklines redraw left-to-right on tab switch */
  @keyframes drawline { to { stroke-dashoffset: 0; } }
  .dash.redraw .spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline .9s cubic-bezier(.23,1,.32,1) forwards; }

  /* Blinking caret in the typed input pill */
  @keyframes inventCaret { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
  .caret {
    display: inline-block; width: 2px; height: 1em; background: var(--accent);
    margin-left: 2px; vertical-align: text-bottom; animation: inventCaret 1.1s ease-in-out infinite;
  }

  /* ============ MOBILE / IPAD (touch or ≤1024px) ============
     No scroll-driven animation, no horizontal swiping, everything stacks. */
  @media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    /* hard stop on sideways swiping anywhere on the page */
    html, body { overflow-x: clip; }

    /* scroll reveals off — content is simply visible */
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .wobble { animation: none !important; }

    /* tab strips wrap instead of side-scrolling */
    .role-tabs { flex-wrap: wrap; overflow-x: visible; }

    /* hero task table: drop Run-by + Model columns so it fits without swiping */
    .table-scroll { overflow-x: hidden; }
    table.tasks { min-width: 0; }
    table.tasks th:nth-child(2), table.tasks td:nth-child(2),
    table.tasks th:nth-child(3), table.tasks td:nth-child(3) { display: none; }
    table.tasks td { white-space: normal; }

    /* Cowork section: workflow canvas gone, plain comparison cards instead */
    .flow-canvas { display: none; }
    .flow-compare { display: grid; gap: 14px; }
    .flow-compare .flow-info { position: static; max-width: none; margin: 0; }

    /* best-fit model table: no side-scroll; iPad keeps the eval column,
       phones drop it (see the 640px rule by the .ev styles) */
    .fit-scroll { overflow-x: hidden; }
    table.fit { min-width: 0; }
    table.fit th, table.fit td { padding: 12px 16px; }
    table.fit th.ev { width: auto; }
    .evwrap { width: 132px; gap: 9px; }

    /* path to autonomy: L1–L4 stacked below each other, no side-scroll */
    .roi-scroll { overflow-x: visible; }
    .roi-grid { grid-template-columns: 1fr; min-width: 0; }
    .roi-col { border-right: none; border-bottom: 1px solid var(--line); }
    .roi-col:last-child { border-bottom: none; }
    .roi-diagram { min-height: 0; }
  }

  /* phones: tighter fit-table cells so all three columns fit un-clipped
     (must sit after the ≤1024px block to win the cascade) */
  @media (max-width: 640px) {
    table.fit th, table.fit td { padding: 12px 10px; }
  }

