/* TurboFiles landing page - self-contained, no build step.
   Swiss / International Typographic Style: a ruled grid, large grotesk display
   type, numbered sections, generous whitespace, one blue accent, monospace
   metadata. Light by default (black on paper), dark via OS preference. Colors
   keep the app's accent blue (#1456cc / #388aff). Drop this whole `website/`
   folder on any static host. */

:root {
  --paper: #f6f6f4;
  --paper-2: #ffffff;
  --ink: #0a0a0b;
  --ink-soft: #3b3d44;
  --muted: #6c6f77;
  --line: #d8d8d2;
  --line-strong: #bcbcb4;
  --accent: #1456cc;
  --accent-fg: #ffffff;
  --ok: #15834a;

  --maxw: 1200px;
  --pad: 40px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0c;
    --paper-2: #121214;
    --ink: #f1f0ec;
    --ink-soft: #b7b8bc;
    --muted: #82858b;
    --line: #232327;
    --line-strong: #34343a;
    --accent: #6a9bff;
    --accent-fg: #07111f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); }

/* the ruled frame: content sits inside vertical hairlines, sections divided
   by horizontal hairlines (classic Swiss grid). */
.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pad { padding-left: var(--pad); padding-right: var(--pad); }

/* section scaffolding ----------------------------------------------------- */
.sec { border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; }
.shead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.shead .lbl { color: var(--ink); font-weight: 600; }
.scontent { padding: 56px var(--pad) 72px; }

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 18ch;
}
.lead-lg { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 56ch; line-height: 1.55; }
.accent { color: var(--accent); }

/* nav --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; color: var(--muted); }
.nav__links a:not(.cta) { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; transition: color 0.15s; }
.nav__links a:not(.cta):hover { color: var(--ink); }
.cta {
  font-family: var(--font); font-weight: 600; font-size: 13.5px;
  background: var(--ink); color: var(--paper);
  padding: 9px 16px; border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.cta:hover { background: var(--accent); color: var(--accent-fg); }

/* buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 13px 22px; border-radius: 2px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.txtlink {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.txtlink:hover { color: var(--accent); border-color: var(--accent); }
.txtlink .ar { transition: transform 0.15s; }
.txtlink:hover .ar { transform: translateX(3px); }

/* hero -------------------------------------------------------------------- */
.hero { padding: clamp(28px, 3.4vw, 48px) var(--pad) 0; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px 6px 12px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__head { text-align: center; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(33px, 4.4vw, 56px);
  line-height: 1.02; letter-spacing: -0.04em; margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: clamp(28px, 4vw, 52px); }
.hero__sub { margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 50ch; line-height: 1.6; }
.hero__sub b { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }

/* metadata column (mono dl) */
.meta { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.meta__row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; }
.meta__k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; padding-top: 1px; }
.meta__v { color: var(--ink); }
.meta__v a { border-bottom: 1px solid var(--line-strong); }
.meta__v a:hover { color: var(--accent); border-color: var(--accent); }

/* flat product window (monochrome, hairline) */
.win { margin: clamp(48px, 7vw, 88px) 0 0; border: 1px solid var(--ink); background: var(--paper-2); }
.win__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; }
.win__bar span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__bar .dots { display: flex; gap: 6px; }
.win__bar .dots span { width: 9px; height: 9px; border: 1px solid var(--line-strong); border-radius: 50%; }
.win__panes { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
.win__pane { padding: 16px 18px; min-width: 0; }
.win__pane + .win__pane { border-left: 1px solid var(--line); }
.win__ph { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.win__row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.win__row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__row .sz { color: var(--muted); font-size: 11.5px; }
.win__row.dir .nm { color: var(--ink); }
.win__row .mk { width: 14px; text-align: center; color: var(--accent); }
.win__mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--muted); font-family: var(--mono); }
.win__mid span { border: 1px solid var(--line-strong); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.win__mid span.hot { color: var(--accent); border-color: var(--accent); }
.win__q { border-top: 1px solid var(--ink); padding: 12px 18px; display: grid; gap: 9px; }
.win__qh { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.win__qr { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.win__qr .nm { width: 130px; }
.win__bar2 { flex: 1; height: 3px; background: var(--line); position: relative; }
.win__bar2 i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.win__qr .pc { width: 38px; text-align: right; color: var(--muted); }

/* capabilities index ------------------------------------------------------ */
.index { display: grid; }
.index__row {
  display: grid; grid-template-columns: 64px 1fr 1.3fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.index__row:first-child { border-top: 1px solid var(--ink); }
.index__no { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.index__t { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -0.02em; }
.index__d { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; max-width: 52ch; }
.index__d b { color: var(--ink); font-weight: 600; }

/* assistant --------------------------------------------------------------- */
.asst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.asst__copy h3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; }
.asst__copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 16px; max-width: 50ch; }
.asst__copy p b { color: var(--ink); }
.transcript { border: 1px solid var(--ink); background: var(--paper-2); padding: 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.85; }
.transcript .u { color: var(--ink); font-weight: 600; }
.transcript .u::before { content: "> "; color: var(--accent); }
.transcript .s { color: var(--muted); }
.transcript .s::before { content: ". "; color: var(--accent); }
.transcript .r { color: var(--ink-soft); margin-top: 10px; }
.transcript .r b { color: var(--ink); }
.transcript .done { color: var(--ok); font-weight: 600; margin-top: 12px; }
.transcript .done::before { content: "[ok] "; }

/* compare table ----------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
table.cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.cmp th, table.cmp td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
table.cmp thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
table.cmp thead th.us { color: var(--accent); }
table.cmp tbody th { font-weight: 500; color: var(--ink-soft); }
table.cmp td.us { color: var(--ink); font-weight: 600; }
table.cmp td { color: var(--muted); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--muted); }
.cmp-note { margin: 22px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); max-width: 70ch; line-height: 1.6; }

/* download ---------------------------------------------------------------- */
.os-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.os-card { padding: 28px 22px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.os-card + .os-card { border-left: 1px solid var(--line); }
.os-card.is-current { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.os-card.is-current::before { content: "Detected"; position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.os-card svg { width: 30px; height: 30px; color: var(--ink); }
.os-name { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.os-file { font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 1.3em; }
.os-card .btn { width: 100%; justify-content: center; margin-top: 4px; padding: 11px 16px; font-size: 14px; }
.os-altlinks { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.os-altlinks a { border-bottom: 1px solid var(--line-strong); }
.os-altlinks a:hover { color: var(--accent); border-color: var(--accent); }
.os-altlinks .sep { border: 0; opacity: 0.5; }
.dl-hint { margin: 22px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.dl-hint a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.dl-hint a:hover { color: var(--accent); border-color: var(--accent); }

/* first launch ------------------------------------------------------------ */
.fl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.fl__col { padding: 26px 22px; }
.fl__col + .fl__col { border-left: 1px solid var(--line); }
.fl__h { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.fl__h svg { width: 20px; height: 20px; color: var(--ink); }
.fl__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 13px; }
.fl__steps li { position: relative; counter-increment: s; padding-left: 30px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.fl__steps li b { color: var(--ink); font-weight: 600; }
.fl__steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.fl__alt { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.fl code { font-family: var(--mono); font-size: 0.88em; background: color-mix(in srgb, var(--accent) 9%, transparent); padding: 1px 5px; }
.fl__cmds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fl__cmd .lab { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.fl__cmd .lab b { color: var(--ink); }
.fl__cmd .ext { color: var(--accent); }
.fl__row { display: flex; border: 1px solid var(--line); }
.fl__row code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.5px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; background: transparent; }
.fl-copy { flex: none; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 0 12px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.fl-copy:hover { background: var(--accent); color: var(--accent-fg); }
.fl-copy.is-copied { color: var(--ok); }
.fl__foot { margin: 26px 0 0; font-size: 13.5px; color: var(--muted); max-width: 70ch; line-height: 1.6; }
.fl__foot a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.fl__foot a:hover { color: var(--accent); border-color: var(--accent); }

/* faq --------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.9vw, 21px); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 22px; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .a { padding: 0 0 24px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-width: 72ch; }
.faq .a a { color: var(--accent); border-bottom: 1px solid currentColor; }
.faq .a code { font-family: var(--mono); font-size: 0.9em; }

/* footer ------------------------------------------------------------------ */
footer { border-top: 1px solid var(--ink); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 56px var(--pad) 40px; }
.foot__brand .brand { font-size: 19px; margin-bottom: 14px; }
.foot__brand p { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 34ch; margin: 0; }
.foot__col h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.foot__col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-soft); transition: color 0.15s; }
.foot__col a:hover { color: var(--accent); }
.foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px var(--pad); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot__bar a { border-bottom: 1px solid var(--line-strong); }
.foot__bar a:hover { color: var(--accent); border-color: var(--accent); }

/* responsive -------------------------------------------------------------- */
@media (max-width: 920px) {
  :root { --pad: 24px; }
  .hero__head { text-align: left; }
  .hero h1 .hb { display: none; }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .asst { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .index__row { grid-template-columns: 44px minmax(0, 1fr); }
  .index__d { grid-column: 2; max-width: none; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .nav__links a:not(.cta) { display: none; }
  .win__bar span:last-child { display: none; }
  .win__panes { grid-template-columns: 1fr; }
  .win__pane + .win__pane { border-left: 0; border-top: 1px solid var(--line); }
  .win__mid { flex-direction: row; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px; }
  .os-cards, .fl { grid-template-columns: minmax(0, 1fr); }
  .os-card + .os-card, .fl__col + .fl__col { border-left: 0; border-top: 1px solid var(--line); }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
