

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
  body {
    font-family: var(--sans); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background-image:
      radial-gradient(1200px 600px at 50% -200px, rgba(77,142,255,0.06), transparent 60%),
      linear-gradient(180deg, #090b10, #0a0c10);
    background-attachment: fixed;
  }
  a { color: var(--fg); text-decoration: none; }
  ::selection { background: var(--accent); color: #fff; }
  .container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 720px) { .container { padding: 0 18px; } }

  .section-tag {
    display: inline-flex; align-items: center; gap: 10px; font-size: 11px;
    color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
    padding: 6px 10px; border: 1px solid var(--border-2); background: var(--surface);
  }
  .section-tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  h2.section-title { font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; margin: 18px 0 8px; max-width: 24ch; }
  .section-sub { color: var(--fg-2); max-width: 64ch; margin: 0 0 36px; font-size: 15px; }
  .accent { color: var(--accent); } .muted { color: var(--muted); } .up { color: var(--up); } .amber { color: var(--amber); }

  .btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
    font-family: var(--sans); font-size: 14px; font-weight: 500;
    border: 1px solid var(--border-3); background: var(--surface); color: var(--fg);
    cursor: pointer; transition: all 120ms ease; letter-spacing: 0; border-radius: 7px;
  }
  .btn:hover { border-color: var(--accent); color: var(--accent); }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: #050810; font-weight: 600; }
  .btn-primary:hover { background: #6ba0ff; border-color: #6ba0ff; color: #050810; }

  .ascii-divider {
    color: var(--dim); font-size: 11px; padding: 14px 0; overflow: hidden; white-space: nowrap;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
  }
  .ascii-divider .row { display: flex; gap: 32px; padding: 0 32px; justify-content: space-between; }

  /* ticker */
  .ticker { border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; height: 32px; position: relative; }
  .ticker .track { display: flex; white-space: nowrap; align-items: center; height: 100%; animation: tick 60s linear infinite; }
  .ticker .item { display: inline-flex; align-items: center; gap: 10px; padding: 0 24px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
  .ticker .item b { color: var(--fg); font-weight: 500; }
  @keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

  /* nav */
  nav.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: all 180ms ease; }
  nav.top.scrolled { background: rgba(10,12,16,0.85); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--border); }
  nav.top .inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
  nav.top .links { display: flex; gap: 24px; align-items: center; }
  nav.top .links a { font-size: 12px; color: var(--fg-2); letter-spacing: 0.04em; }
  nav.top .links a:hover { color: var(--accent); }
  .brand { display: inline-flex; align-items: center; gap: 10px; }
  .brand .name { font-weight: 700; letter-spacing: 0.02em; font-size: 15px; }
  /* Sign out: a form button (allauth signs out on POST) that reads as the nav's muted text. */
  .nav-signout { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .nav-signout:hover { color: var(--accent); }
  /* A long signed-in address gives way (ends in "...", whole in its tooltip), not the buttons beside it. */
  .nav-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tag-beta { font-size: 10px; color: var(--muted); border: 1px solid var(--border-2); padding: 1px 6px; margin-left: 4px; letter-spacing: 0.08em; }
  @media (max-width: 860px) { nav.top .links { display: none; } }

  /* grids reused */
  .grid-line { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
  .cell { background: var(--surface); padding: 20px 22px; }

  .hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: end; margin-bottom: 44px; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; } }
  h1.hero { font-weight: 600; font-size: clamp(44px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 20px; max-width: 18ch; }

  .pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 32px; }
  @media (max-width: 860px) { .pipeline { grid-template-columns: 1fr 1fr; } }
  .how-cards, .cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 860px) { .how-cards, .cols-3 { grid-template-columns: 1fr; } }
  .card { border: 1px solid var(--border-2); background: var(--surface); padding: 22px; display: flex; flex-direction: column; }

  .ai-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
  @media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }

  table.compat { width: 100%; border-collapse: collapse; }
  .compat .group { padding: 14px 22px; background: var(--bg-2); border-bottom: 1px solid var(--border-2); display: flex; justify-content: space-between; align-items: baseline; }
  .compat .group span:first-child { font-size: 11px; color: var(--accent); letter-spacing: 0.16em; }
  .compat .row { display: grid; grid-template-columns: 1fr auto; padding: 12px 22px; border-top: 1px dashed var(--border); align-items: center; gap: 18px; }
  .compat .row .label { font-size: 13px; color: var(--fg-2); }
  .compat .row .state { font-size: 11px; letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 8px; min-width: 96px; justify-content: flex-end; }

  .video-frame { position: relative; padding-bottom: 56.25%; border: 1px solid var(--border-2); background: var(--surface); }
  .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  footer { border-top: 1px solid var(--border); padding: 40px 0 48px; background: var(--bg-2); }
  .ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
  @media (max-width: 820px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
  footer .col h4 { font-size: 10px; color: var(--muted); letter-spacing: 0.16em; margin: 0 0 12px; }
  footer .col a { display: block; color: var(--fg-2); font-size: 13px; padding: 4px 0; }
  footer .col a:hover { color: var(--accent); }
  .ft-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--dim); }

/* Studio composition: text for reading, monospace for measurements. */
body { background-image: radial-gradient(ellipse at 75% 0%, #17332f80, transparent 48%); }
.container { max-width: 1220px; }
section.container { padding-left: 32px !important; padding-right: 32px !important; scroll-margin-top: 90px; }
nav.top { background: var(--bg); border-bottom: 1px solid var(--border); }
nav.top.scrolled { background: var(--bg); }
nav.top .inner { min-height: 76px; height: auto; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
nav.top .links { gap: 18px; }
.brand .name { letter-spacing: -.04em; font-size: 22px; text-transform: lowercase; }
.ticker, .ascii-divider { display: none; }
.hero-grid { align-items: center; padding-top: 30px; margin-bottom: 56px; }
h1.hero { font-weight: 550; line-height: 1.05; max-width: 16ch; }
.section-tag { background: transparent; border: 0; padding: 0; font-family: var(--mono); color: var(--accent); }
.section-tag::before { box-shadow: none; }
h2.section-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; max-width: 26ch; margin-bottom: 22px; }
.section-sub { font-size: 17px; line-height: 1.75; }
.grid-line, .pipeline { border-radius: 12px; overflow: hidden; }
.cell { padding: 26px 22px; }
.cell > div:nth-child(2) { font-variant-numeric: tabular-nums; }
.card { border-radius: 12px; padding: 28px; background: var(--surface); }
.card > div:last-child { font-size: 15px !important; line-height: 1.75 !important; }
.card > div:first-child { color: var(--accent); }
.btn { min-height: 44px; justify-content: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #09251e; }
.btn-primary:hover { background: #b5f0d5; border-color: #b5f0d5; color: #09251e; }
.product-shot { margin: 0 0 32px; border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.product-shot img { display: block; width: 100%; height: auto; }
.product-shot figcaption { padding: 14px 20px; font-size: 13px; color: var(--muted); }
.video-frame { display: grid; place-items: center; padding: 28px; min-height: 150px; border-radius: 12px; }
.video-frame a { text-align: center; }
.video-player { border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; background: #000; }
#walkthrough { margin-bottom: 28px; }
#replay, #repaint { margin-top: 28px; }
.video-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mobile-nav { display: none; }
@media (max-width: 1050px) { nav.top .links { display: none; } .mobile-nav { display: block; } }
.mobile-nav { padding: 12px 24px; border-bottom: 1px solid var(--border); }
.mobile-nav summary { cursor: pointer; color: var(--fg-2); padding: 8px 0; }
.mobile-nav div { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 0; }
@media (max-width: 720px) {
  section.container { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-grid { padding-top: 0; }
  .grid-line[style*="repeat(4"] { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .ft-grid { grid-template-columns: 1fr; }
  .brand .tag-beta { display: none; }
  nav.top .inner { flex-wrap: wrap; }
  #download > div > div { grid-template-columns: 1fr !important; }
  .compat .row { padding: 12px; gap: 8px; }
}

/* Web & desktop section */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
.card .btn { display: flex; width: fit-content; }
.where .row .state { min-width: 190px; gap: 22px; }
.where .row .state > span { min-width: 84px; text-align: right; }
.where .dim { color: var(--dim); }
@media (max-width: 720px) {
  .where .row { grid-template-columns: 1fr; }
  .where .row .state { min-width: 0; justify-content: flex-start; }
  .where .row .state > span { min-width: 0; text-align: left; }
}
