@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/Rajdhani/Rajdhani-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/Rajdhani/Rajdhani-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/Rajdhani/Rajdhani-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/Rajdhani/Rajdhani-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #07080d;
  --surface: #0e3442;
  --surface-dark: #0a1b24;
  --surface-soft: rgba(14, 52, 66, 0.54);
  --cyan: #05ebeb;
  --cyan-soft: rgba(5, 235, 235, 0.13);
  --purple: #280387;
  --text: #f4f7fa;
  --muted: #789fbf;
  --line: rgba(120, 159, 191, 0.19);
  --line-strong: rgba(5, 235, 235, 0.4);
  --max-width: 1360px;
  --radius: 10px;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 82% 8%, rgba(40, 3, 135, 0.22), transparent 30rem), var(--background);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.carousel-open { overflow: hidden; }
body.carousel-open::after { position: fixed; inset: 0; z-index: 10; content: ""; background: rgba(0, 0, 0, 0.76); backdrop-filter: blur(8px); }
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(rgba(120, 159, 191, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 159, 191, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
::selection { color: var(--background); background: var(--cyan); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }

.ambient { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(140px); }
.ambient-blue { top: 80px; left: -260px; width: 560px; height: 560px; background: rgba(5, 235, 235, 0.08); }
.ambient-purple { top: 400px; right: -320px; width: 680px; height: 680px; background: rgba(40, 3, 135, 0.25); }

.site-header, main, footer { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
  border-bottom: 1px solid var(--line);
}
.site-header::after { position: absolute; bottom: -1px; left: 0; width: 76px; height: 1px; content: ""; background: var(--cyan); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.22em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; letter-spacing: 0; }
.brand-mark img { display: block; width: 34px; height: 34px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { position: relative; color: var(--muted); font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; transition: color 160ms ease; }
nav a:hover, nav .current { color: var(--text); }
nav .current::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 1px; content: ""; background: var(--cyan); }
.discord-link { color: var(--text); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 10px; }
.header-download { padding: 10px 13px; color: var(--background); border: 1px solid var(--cyan); border-radius: 4px; background: var(--cyan); font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 160ms ease, transform 160ms ease; }
.header-download:hover { background: #32ffff; transform: translateY(-1px); }
.language-switch { padding: 9px 11px; color: #496b85; border: 1px solid var(--line); border-radius: 4px; background: rgba(14, 52, 66, 0.3); cursor: pointer; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; }
.language-switch .active { color: var(--cyan); }

.hero { display: grid; grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr); align-items: center; gap: 44px; min-height: calc(100svh - 82px); padding: 86px 0 110px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--cyan); font: 700 0.69rem/1.4 Consolas, "SFMono-Regular", monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 1px; content: ""; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { max-width: 720px; margin-bottom: 28px; font-size: clamp(3.15rem, 5.15vw, 5.25rem); font-weight: 620; letter-spacing: -0.055em; line-height: 0.97; }
h1 span { display: block; }
.gradient-text { padding-bottom: 0.08em; color: var(--cyan); }
.hero-description { max-width: 540px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.download-button { position: relative; display: flex; align-items: center; gap: 17px; min-width: 315px; padding: 17px 22px; overflow: hidden; color: var(--background); border: 1px solid var(--cyan); border-radius: 5px; background: var(--cyan); box-shadow: 0 12px 42px rgba(5, 235, 235, 0.13); transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.download-button::after { position: absolute; top: 0; right: 0; width: 16px; height: 16px; content: ""; background: var(--surface); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.download-button:hover { transform: translateY(-2px); background: #32ffff; box-shadow: 0 16px 48px rgba(5, 235, 235, 0.2); }
.download-button:focus-visible, .language-switch:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.download-button svg { width: 27px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.download-button span { display: grid; gap: 4px; }
.download-button small { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; }
.download-button strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.download-meta { display: grid; gap: 9px; max-width: 300px; }
.download-note { color: var(--muted); font-size: 0.75rem; }
.riot-disclaimer { margin: 0; color: #5f819c; font-size: 0.76rem; line-height: 1.5; }
.footer-riot-disclaimer { grid-column: 1 / -1; max-width: 760px; padding: 0 0 22px; font-size: 0.65rem; letter-spacing: normal; }

.hero-visual { position: relative; }
.hero-visual::before { position: absolute; inset: 6% 4% 8% 7%; content: ""; border: 1px solid rgba(5, 235, 235, 0.12); background: linear-gradient(145deg, rgba(14, 52, 66, 0.46), rgba(40, 3, 135, 0.12)); transform: translate(24px, 24px); }
.hero-carousel { position: relative; display: block; width: min(790px, 100%); aspect-ratio: 16 / 10; padding: 0; overflow: hidden; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-dark); box-shadow: 0 32px 70px rgba(0, 0, 0, 0.46); cursor: pointer; }
.hero-carousel::before { position: absolute; top: 0; right: 0; left: 0; z-index: 3; height: 2px; content: ""; background: linear-gradient(90deg, var(--cyan), transparent 62%); }
.hero-carousel::after { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; height: 34%; pointer-events: none; content: ""; background: linear-gradient(transparent, rgba(7, 8, 13, 0.62)); }
.hero-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1); }
.hero-carousel img.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.carousel-progress { position: absolute; bottom: 0; left: 0; z-index: 3; width: 100%; height: 2px; background: var(--cyan); box-shadow: 0 0 12px rgba(5, 235, 235, 0.7); transform: scaleX(0); transform-origin: left; }
.carousel-progress.is-running { animation: carousel-progress 5s linear; }
.carousel-close { display: none; }
.carousel-navigation { position: absolute; inset: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 14px; pointer-events: none; }
.carousel-control { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 50%; background: rgba(7, 8, 13, 0.76); cursor: pointer; font-size: 1.35rem; line-height: 1; pointer-events: auto; transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.carousel-control:hover { color: var(--cyan); border-color: var(--line-strong); background: rgba(7, 8, 13, 0.92); }
.carousel-control:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hero-carousel:hover { border-color: var(--line-strong); }
.hero-carousel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.hero-carousel.is-expanded { position: fixed; top: 50%; left: 50%; z-index: 11; width: min(80vw, 142.22vh); height: 80vh; aspect-ratio: auto; border-color: var(--line-strong); background: var(--background); box-shadow: 0 36px 110px rgba(0, 0, 0, 0.65); transform: translate(-50%, -50%); }
.hero-carousel.is-expanded img { object-fit: contain; }
.hero-carousel.is-expanded .carousel-close { position: absolute; top: 16px; left: 16px; z-index: 4; display: grid; width: 34px; height: 34px; place-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 50%; background: rgba(7, 8, 13, 0.76); font: 300 1.8rem/1 var(--font-body); transition: border-color 160ms ease, color 160ms ease; }
.hero-carousel.is-expanded .carousel-close:hover { color: var(--cyan); border-color: var(--line-strong); }
.hero-visual.is-carousel-expanded .carousel-navigation { position: fixed; top: 50%; right: 10vw; left: 10vw; z-index: 12; height: 80vh; padding: 18px; transform: translateY(-50%); }
@keyframes carousel-progress { to { transform: scaleX(1); } }
.hero-shot { position: absolute; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-dark); box-shadow: 0 32px 70px rgba(0, 0, 0, 0.46); }
.hero-shot::before { position: absolute; top: 0; right: 0; left: 0; z-index: 1; height: 2px; content: ""; background: linear-gradient(90deg, var(--cyan), transparent 62%); }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shot-primary { top: 0; right: -70px; width: min(790px, 59vw); aspect-ratio: 16 / 10; }
.hero-shot-secondary { right: 55%; bottom: 0; width: min(430px, 32vw); aspect-ratio: 16 / 9; border-color: rgba(5, 235, 235, 0.34); }
.hero-shot-secondary img { object-position: center; }

.showcase, .faq-preview { padding: 112px 0; border-top: 1px solid var(--line); }
.section-heading, .faq-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-heading .eyebrow, .faq-heading .eyebrow { margin-bottom: 14px; }
h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4.6vw, 4.35rem); font-weight: 580; letter-spacing: -0.05em; line-height: 1.02; }
.section-note { max-width: 320px; margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.screens { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 18px; }
.screen-card { position: relative; overflow: hidden; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-block { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-dark); }
.product-block .screen-image { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.recorder-heading { margin-top: 88px; }
.screen-main { grid-row: span 2; min-height: 750px; background: var(--surface-dark); }
.screen-toolbar { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; color: var(--muted); border-bottom: 1px solid var(--line); background: #09141b; }
.screen-toolbar span { width: 6px; height: 6px; border-radius: 50%; background: #285063; }
.screen-toolbar span:first-child { background: var(--cyan); }
.screen-toolbar small { margin-left: auto; font: 0.61rem Consolas, "SFMono-Regular", monospace; letter-spacing: 0.14em; }
.screen-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen-main .screen-image { height: 640px; object-position: center; }
.screen-secondary .screen-image { height: 325px; }
.screen-overlay .screen-image { object-position: center; }
.screen-caption { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; min-height: 64px; padding: 20px 22px; color: var(--text); border-top: 1px solid var(--line); background: var(--surface); }
.screen-caption p { margin: 0; font-size: 0.88rem; line-height: 1.4; }
.caption-index { color: var(--cyan); font: 0.66rem Consolas, "SFMono-Regular", monospace; letter-spacing: 0.12em; }
.feature-summary { min-height: 0; }
.feature-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; border: 0; background: var(--line); overflow: hidden; }
.feature-rail article { padding: 22px; background: var(--surface-soft); }
.feature-rail span { display: block; margin-bottom: 20px; color: var(--cyan); font: 0.66rem Consolas, "SFMono-Regular", monospace; }
.feature-rail h3 { margin-bottom: 9px; font-size: 1rem; }
.feature-rail p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

.faq-heading > a { flex: none; padding-bottom: 7px; color: var(--cyan); border-bottom: 1px solid var(--line-strong); font-size: 0.75rem; letter-spacing: 0.06em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 27px 56px 27px 0; cursor: pointer; font-size: 1rem; line-height: 1.45; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 22px; right: 5px; display: grid; width: 30px; height: 30px; place-items: center; color: var(--cyan); border: 1px solid var(--line); border-radius: 3px; content: "+"; font-size: 1.1rem; font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; padding: 0 0 30px; color: var(--muted); line-height: 1.75; }
.faq-list .faq-article-link { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(5, 235, 235, 0.55); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-list .faq-article-link:hover { color: var(--text); text-decoration-color: var(--cyan); }

.journal, .content-page { max-width: 980px; }
.journal-header, .content-header { padding: 126px 0 98px; border-bottom: 1px solid var(--line); }
.journal-header h1, .content-header h1 { margin-bottom: 28px; }
.journal-header > p:last-child, .content-header > p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.journal-entry { display: grid; grid-template-columns: 165px 1fr; gap: 46px; padding: 76px 0; border-bottom: 1px solid var(--line); }
.journal-meta { display: flex; flex-direction: column; gap: 14px; color: var(--cyan); font: 0.67rem Consolas, "SFMono-Regular", monospace; letter-spacing: 0.12em; }
.journal-content h2 { margin-bottom: 22px; font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.journal-lead { max-width: 650px; margin-bottom: 24px; color: var(--text); font-size: 1.14rem; line-height: 1.6; }
.journal-preview { max-width: 650px; margin: 0 0 24px; color: var(--muted); line-height: 1.8; }
.journal-link { transition: padding 160ms ease, background 160ms ease; }
.journal-link:hover { padding-inline: 22px; background: rgba(14, 52, 66, 0.2); }
.read-link { color: var(--cyan); font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; }

.article-page { max-width: 980px; padding: 80px 0 130px; }
.back-link { display: inline-block; margin-bottom: 92px; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.07em; }
.back-link:hover { color: var(--cyan); }
.article-page article { max-width: 780px; margin-left: auto; padding-left: 44px; border-left: 1px solid var(--line); }
.article-page h1 { margin-bottom: 42px; }
.article-lead { margin-bottom: 40px; color: var(--text); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; }
.article-page article > p:not(.eyebrow):not(.article-lead) { max-width: 680px; margin-bottom: 26px; color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.article-page h2 { max-width: 680px; margin: 58px 0 18px; font-size: clamp(1.65rem, 3.4vw, 2.55rem); }
.article-page h3 { max-width: 680px; margin: 38px 0 14px; color: var(--text); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 600; letter-spacing: -0.025em; }
.article-page .performance-highlight { display: inline; padding: 2px 5px 3px; color: var(--cyan); border-bottom: 1px solid rgba(5, 235, 235, 0.72); background: rgba(5, 235, 235, 0.09); font-family: var(--font-display); font-size: 1.15em; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.article-page ul { max-width: 680px; margin: -6px 0 28px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.article-page li + li { margin-top: 8px; }
.approach { margin-top: 34px; }
.approach > h3 { margin-top: 0; }
.approach-tradeoffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 680px; margin: 28px 0 42px; }
.tradeoff { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(14, 52, 66, 0.22); }
.tradeoff h4 { margin: 0 0 14px; font: 700 0.7rem Consolas, "SFMono-Regular", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.tradeoff-pros h4 { color: var(--cyan); }
.tradeoff-cons h4 { color: #b5a4e9; }
.tradeoff ul { margin: 0; padding-left: 17px; font-size: 0.88rem; line-height: 1.65; }
.tradeoff li + li { margin-top: 10px; }
.approach-note { max-width: 680px; margin: -16px 0 42px; padding: 17px 19px; color: var(--muted); border-left: 2px solid var(--cyan); background: rgba(14, 52, 66, 0.24); font-size: 0.91rem; line-height: 1.7; }
.performance-title { margin-bottom: 16px !important; }
.article-page .performance-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 680px; margin: 0 0 26px; padding: 1px; overflow: hidden; list-style: none; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.performance-list li { min-height: 104px; padding: 19px; background: rgba(14, 52, 66, 0.3); }
.performance-list strong, .performance-list span { display: block; }
.performance-list strong { margin-bottom: 9px; color: var(--muted); font: 700 0.68rem Consolas, "SFMono-Regular", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.performance-list span { color: var(--text); font-size: 0.96rem; font-weight: 600; line-height: 1.45; }
.recorder-note { max-width: 680px; margin: 0 0 42px !important; padding: 16px 18px; color: var(--muted) !important; border-left: 2px solid #b5a4e9; background: rgba(40, 3, 135, 0.14); font-size: 0.91rem !important; line-height: 1.7 !important; }
.test-system-title, .performance-subtitle { margin: 0 0 16px; color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.article-page .test-system-list { display: grid; gap: 0; max-width: 680px; margin: 0 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.test-system-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.test-system-list strong { color: var(--cyan); font: 700 0.69rem Consolas, "SFMono-Regular", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.test-system-list span { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.faq-page, .content-page { padding-bottom: 120px; }
.content-sections > article, .legal-content article { border-bottom: 1px solid var(--line); }
.content-sections > article { display: grid; grid-template-columns: 120px 1fr; gap: 35px; padding: 66px 0; }
.content-sections > article > span { color: var(--cyan); font: 0.67rem Consolas, "SFMono-Regular", monospace; }
.content-sections h2, .legal-content h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 3.8vw, 2.8rem); }
.content-sections p, .legal-content p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.8; }
.legal-content { max-width: 760px; margin-left: auto; }
.legal-content article { padding: 58px 0; }

.stack-page { max-width: 980px; padding-bottom: 120px; }
.stack-header { padding: 126px 0 76px; border-bottom: 1px solid var(--line); }
.stack-header h1 { margin-bottom: 26px; }
.stack-header > p:last-child { max-width: 570px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 42px; }
.tech-card { display: grid; grid-template-columns: 116px 1fr; gap: 24px; align-items: center; min-height: 174px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(14, 52, 66, 0.55), rgba(10, 27, 36, 0.7)); transition: border-color 160ms ease, transform 160ms ease; }
.tech-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tech-card > img { width: 100%; height: 88px; padding: 10px; object-fit: contain; filter: grayscale(0.1); }
.tech-wordmark { display: grid; width: 100%; height: 88px; padding: 10px; place-items: center; color: var(--text); border: 1px solid var(--line); background: rgba(7, 8, 13, 0.36); font: 700 1rem var(--font-display); letter-spacing: 0.12em; }
.tech-card > div { display: grid; gap: 9px; }
.tech-card h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.tech-card-languages p { margin: 0; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; }
.tech-card-languages p a { color: var(--cyan); }
.tech-card-languages p a:hover { color: var(--text); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 118px; color: #52718a; border-top: 1px solid var(--line); font-size: 0.66rem; letter-spacing: 0.1em; }
footer p { margin: 0; }
footer p:last-child { justify-self: end; }
.footer-brand { color: var(--muted); }
.footer-links { justify-self: end; gap: 20px; }
.footer-links a { font-size: 0.64rem; letter-spacing: 0.07em; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  nav { justify-content: center; gap: 20px; }
  .hero-copy { max-width: 700px; }
  .screens { grid-template-columns: 1fr 1fr; }
  .screen-main { grid-column: 1 / -1; grid-row: auto; }
  .feature-summary { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 92px; }
  .hero-carousel { width: min(820px, 92vw); }
}

@media (max-width: 700px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header { grid-template-columns: auto 1fr auto; grid-template-rows: 70px 48px; height: 118px; }
  .site-header > .brand { grid-column: 1; grid-row: 1; }
  .site-header > .header-actions { grid-column: 3; grid-row: 1; }
  .brand > span:last-child { display: none; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; width: 100%; min-width: 0; gap: 18px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { display: inline-block; flex: none; }
  .hero { min-height: auto; padding: 72px 0 86px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.15rem); }
  .hero-description { max-width: 95%; }
  .download-button, .download-meta { width: 100%; max-width: none; min-width: auto; }
  .hero-carousel { width: 100%; }
  .hero-carousel.is-expanded { width: 92vw; height: 72vh; }
  .hero-visual.is-carousel-expanded .carousel-navigation { right: 4vw; left: 4vw; height: 72vh; }
  .showcase, .faq-preview { padding: 82px 0; }
  .section-heading, .faq-heading { display: block; }
  .section-note, .faq-heading > a { display: inline-block; margin-top: 26px; }
  .screens, .feature-rail { grid-template-columns: 1fr; }
  .screen-main { min-height: 0; }
  .screen-main .screen-image, .screen-secondary .screen-image { height: auto; aspect-ratio: 16 / 9; }
  .recorder-heading { margin-top: 62px; }
  .journal-header, .content-header { padding: 86px 0 68px; }
  .journal-entry { grid-template-columns: 1fr; gap: 30px; padding: 62px 0; }
  .journal-meta { flex-direction: row; justify-content: space-between; }
  .article-page { padding: 62px 0 96px; }
  .article-page article { padding-left: 0; border-left: 0; }
  .approach-tradeoffs { grid-template-columns: 1fr; }
  .article-page .performance-list { grid-template-columns: 1fr; }
  .test-system-list li { grid-template-columns: 1fr; gap: 7px; }
  .back-link { margin-bottom: 64px; }
  .content-sections > article { grid-template-columns: 48px 1fr; gap: 12px; padding: 50px 0; }
  .stack-header { padding: 86px 0 58px; }
  .tech-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr auto; }
  footer > p:nth-child(3) { display: none; }
  .footer-links { grid-column: 1 / -1; justify-self: end; padding-bottom: 26px; }
  .tech-card { grid-template-columns: 88px 1fr; min-height: 138px; padding: 20px; }
  .tech-card > img { height: 72px; }
  .tech-wordmark { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .carousel-progress.is-running { animation: none; }
}

/* Riot review page */
.riot-review { background: var(--background); }
.riot-review::before { opacity: 0.1; }
.riot-site-header { grid-template-columns: 1fr auto; }
.riot-review-label { color: var(--muted); font: 600 0.78rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.riot-page { max-width: 1120px; padding-bottom: 80px; }
.riot-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 80px; align-items: end; padding: 110px 0 90px; }
.riot-intro h1 { margin-bottom: 26px; }
.riot-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.riot-download { display: inline-block; margin-top: 24px; padding: 11px 15px; color: var(--background); border: 1px solid var(--cyan); border-radius: 4px; background: var(--cyan); font: 700 0.7rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease; }
.riot-download:hover { transform: translateY(-2px); background: #32ffff; }
.riot-identifiers { margin: 0; border-top: 1px solid var(--line); }
.riot-identifiers div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.riot-identifiers dt { color: var(--muted); font-size: 0.82rem; }
.riot-identifiers dd { margin: 0; color: var(--text); font: 600 0.88rem var(--font-display); }
.riot-section { padding: 86px 0; border-top: 1px solid var(--line); }
.riot-section-heading { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; margin-bottom: 36px; }
.riot-section-heading > span { padding-top: 7px; color: var(--cyan); font: 0.68rem Consolas, monospace; letter-spacing: 0.12em; }
.riot-section-heading .eyebrow { margin-bottom: 12px; }
.riot-section-heading h2 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
.riot-section-intro { max-width: 760px; margin: 0 0 38px 76px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.riot-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin-left: 76px; }
.riot-copy-grid p { margin: 0; color: var(--muted); line-height: 1.75; }
.riot-policy-note { margin: 34px 0 0 76px; padding: 18px 20px; color: var(--text); border-left: 2px solid var(--cyan); background: rgba(14, 52, 66, 0.38); font-size: 0.92rem; line-height: 1.65; }
.riot-widget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 18px 76px; }
.riot-widget-card, .riot-wide-shot { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-dark); }
.riot-widget-image { display: grid; min-height: 250px; padding: 30px; place-items: center; background: #09141b; }
.riot-widget-image img { display: block; max-height: 210px; width: auto; object-fit: contain; }
.riot-widget-card figcaption, .riot-wide-shot figcaption { border-top: 1px solid var(--line); background: rgba(14, 52, 66, 0.45); }
.riot-widget-card figcaption { display: grid; gap: 6px; padding: 18px; }
.riot-widget-card strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.riot-widget-card figcaption span, .riot-wide-shot figcaption { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.riot-wide-shot { margin: 34px 0 0 76px; }
.riot-wide-shot img { display: block; width: 100%; height: auto; }
.riot-wide-shot figcaption { padding: 14px 17px; }
.riot-shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-left: 76px; }
.riot-shot-grid .riot-wide-shot { margin: 0; }
.riot-tray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 680px; margin: 38px 0 0 76px; }
.riot-tray-grid .riot-widget-image { min-height: 210px; }
.riot-api-section { padding-bottom: 40px; }
.riot-footer { max-width: 1120px; }

@media (max-width: 800px) {
  .riot-intro { grid-template-columns: 1fr; gap: 48px; padding: 82px 0 70px; }
  .riot-copy-grid, .riot-widget-grid, .riot-shot-grid, .riot-tray-grid { grid-template-columns: 1fr; }
  .riot-section-intro, .riot-copy-grid, .riot-policy-note, .riot-widget-grid, .riot-wide-shot, .riot-shot-grid, .riot-tray-grid { margin-left: 0; }
}

@media (max-width: 520px) {
  .riot-review-label { font-size: 0.7rem; }
  .riot-section { padding: 66px 0; }
  .riot-section-heading { grid-template-columns: 38px 1fr; gap: 10px; }
  .riot-widget-image { min-height: 210px; }
  .riot-identifiers div { grid-template-columns: 1fr; gap: 5px; }
  .riot-footer { grid-template-columns: 1fr auto; }
  .riot-footer span:nth-child(2) { display: none; }
}
