@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #0f1115; --surface: #181b21; --surface2: #222630; --line: #2c313a;
  --text: #ecedf2; --muted: #9aa3b2; --accent: #6c96ff; --accent2: #9a7bff; --on-accent: #0a1022;
  --radius: 18px; --shadow: 0 30px 80px rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f7fa; --surface: #ffffff; --surface2: #eef0f5; --line: #dde1ea; --text: #151821; --muted: #566074;
          --accent: #3d6df2; --accent2: #7a55e8; --on-accent: #ffffff; --shadow: 0 30px 80px rgba(20,30,60,.16); color-scheme: light; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 12px max(20px, calc((100vw - 1120px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.top nav a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.top nav a.pill { background: var(--accent); color: var(--on-accent); font-weight: 600; margin-left: 6px; }
.top nav a.pill:hover { filter: brightness(1.08); background: var(--accent); }

/* Hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 20px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; margin-bottom: 20px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-weight: 600; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.small-btn { padding: 10px 16px; font-size: .95rem; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.hero-shots { position: relative; min-height: 520px; }
.hero-shots figure { margin: 0; position: absolute; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.hero-shots .desk { left: 0; top: 0; width: 56%; }
.hero-shots .p1 { right: 20%; top: 70px; width: 31%; border-radius: 26px; }
.hero-shots .p2 { right: 0; top: 150px; width: 31%; border-radius: 26px; }

.consoles ul { list-style: none; margin: 0 auto; padding: 14px 20px 6px; max-width: 1120px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.consoles li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; font-weight: 600; }

/* Sections */
.block { max-width: 1120px; margin: 0 auto; padding: 80px 20px; }
.block.alt { max-width: none; background: var(--surface); border-block: 1px solid var(--line); padding-inline: max(20px, calc((100vw - 1120px) / 2)); }
.block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two-col { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.block.alt .card { background: var(--bg); }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Install */
.tabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 26px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.panels { max-width: 960px; margin: 0 auto; }
.panel[hidden] { display: none; }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.panel h3 { font-size: 1.05rem; margin-top: 20px; }
.panel h3:first-child { margin-top: 0; }
.code { position: relative; background: #0b0d11; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 16px; }
@media (prefers-color-scheme: light) { .code { background: #11141b; } }
.code pre { margin: 0; padding: 16px 84px 16px 18px; overflow-x: auto; color: #e6e8ee; font-size: .88rem; line-height: 1.55; }
.copy { position: absolute; right: 10px; top: 10px; font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 9px; border: 1px solid #3a4150; background: #1c212b; color: #cdd3df; cursor: pointer; }
.copy:hover { border-color: var(--accent); color: #fff; }
.note { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.note h4 { font-size: 1rem; margin-bottom: 8px; }
.note p { color: var(--muted); font-size: .94rem; margin: 0; }
.steps { padding-left: 1.2em; color: var(--muted); }
.steps li { margin-bottom: .5em; }
.checks { text-align: center; margin: 34px 0 0; }

/* Compatibility */
.bars { max-width: 820px; margin: 0 auto 22px; display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 200px 1fr 110px 90px; align-items: center; gap: 14px; font-size: .96rem; }
.bar span { font-weight: 600; }
.bar b { text-align: right; }
.bar em { color: var(--muted); font-style: normal; font-size: .85rem; }
.track { height: 12px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
#compatibility > .small { max-width: 820px; margin-inline: auto; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 8px; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 36px max(20px, calc((100vw - 1120px) / 2)) 28px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.legal { margin: 26px 0 0; max-width: 60em; }

/* Small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-shots { min-height: 440px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top nav a:not(.pill) { display: none; }
  .grid, .grid.two-col { grid-template-columns: 1fr; }
  .block { padding: 56px 20px; }
  .hero-shots { min-height: 400px; }
  .hero-shots .desk { width: 62%; }
  .hero-shots .p1 { right: 24%; width: 36%; top: 60px; }
  .hero-shots .p2 { width: 36%; top: 130px; }
  .bar { grid-template-columns: 1fr auto; row-gap: 6px; }
  .bar .track { grid-column: 1 / -1; order: 3; }
  .bar em { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Test program pictures */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shots figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shots img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; image-rendering: pixelated; background: #000; }
.shots figcaption { padding: 10px 12px; font-size: .86rem; color: var(--muted); }
.center { text-align: center; max-width: 52em; margin: 22px auto 0; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* Highlight features and statistics */
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.feat { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feat h3 { font-size: 1.35rem; margin-bottom: .4em; }
.feat p { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(1.2rem, 2vw, 1.6rem); white-space: nowrap; letter-spacing: -.02em; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; font-weight: 600; margin: 6px 0 4px; }
.stat em { display: block; font-style: normal; color: var(--muted); font-size: .85rem; }
.small-shots { grid-template-columns: repeat(4, 1fr); }
.bar { grid-template-columns: 200px 1fr 110px; }
@media (max-width: 900px) { .hero-features, .stats { grid-template-columns: 1fr; } .small-shots { grid-template-columns: repeat(2, 1fr); } }

/* Narrow screens: nothing may push the page wider than the screen */
.two > *, .panels, .panel, .card, .feat, .stat { min-width: 0; }
.code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr !important; } }
@media (max-width: 700px) { .bar { grid-template-columns: 1fr auto; row-gap: 6px; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }
