@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/fonts/red-hat-text.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/fonts/red-hat-mono.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0b0d12;
  --panel: #12151c;
  --panel-2: #171b24;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --text: #eceef3;
  --muted: #a3acbb;
  --brand: #f3772b;
  --brand-hi: #ff9455;
  --display: "Red Hat Display", system-ui, sans-serif;
  --body: "Red Hat Text", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The dot grid is the brand's dot, fading out under the hero glow. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(243 119 43 / 0.2), transparent 70%),
    radial-gradient(rgb(255 255 255 / 0.11) 1px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}

a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

.wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- nav ---- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand svg { width: 34px; height: 28px; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}
.nav nav a:not(.btn):hover { color: var(--text); }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  font: 600 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: rgb(255 255 255 / 0.09); border-color: rgb(255 255 255 / 0.28); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn small { color: var(--muted); font-size: 13px; font-weight: 500; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  border-color: transparent;
  background: var(--brand);
  color: #1a0c02;
  box-shadow: 0 8px 30px -8px rgb(243 119 43 / 0.7);
}
.btn-primary:hover { background: var(--brand-hi); border-color: transparent; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- headings ---- */

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 i, h2 i { color: var(--brand); font-style: normal; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; }
h3 { font: 700 20px/1.3 var(--display); letter-spacing: -0.01em; }

section { padding-block: clamp(64px, 9vw, 120px); }

/* ---- hero ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(40px, 6vw, 84px);
  text-align: center;
}
.eyebrow {
  display: flex;
  gap: 22px;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.eyebrow li + li { position: relative; }
.eyebrow li + li::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--brand);
}
h1 {
  margin-top: 28px;
  font-size: clamp(44px, 8.6vw, 104px);
  line-height: 0.98;
}
h1 span { white-space: nowrap; }
.lede {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  text-wrap: balance;
}
.lede span { display: block; }
.lede span:first-child { color: var(--text); }
.hero .cta { justify-content: center; margin-top: 36px; }

/* ---- window frame (video and screenshots) ---- */

.window {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.5),
    0 40px 120px -30px rgb(243 119 43 / 0.28),
    0 30px 60px -20px rgb(0 0 0 / 0.8);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}
.window-bar i:first-child { background: var(--brand); }
.window-bar span {
  margin-inline: auto;
  padding: 3px 44px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.05);
  color: var(--muted);
  font: 400 12px/1.5 var(--mono);
  transform: translateX(-24px);
}
.hero .window { margin-top: clamp(44px, 6vw, 72px); }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; }
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(rgb(11 13 18 / 0.1), rgb(11 13 18 / 0.45));
  cursor: pointer;
}
.play svg {
  width: 92px;
  height: 92px;
  padding: 30px 26px 30px 34px;
  border-radius: 50%;
  background: var(--brand);
  fill: #1a0c02;
  box-shadow: 0 0 0 0 rgb(243 119 43 / 0.55), 0 20px 50px rgb(0 0 0 / 0.5);
  animation: pulse 2.4s ease-out infinite;
  transition: transform 0.2s;
}
.play:hover svg { transform: scale(1.07); }
.playing .play { display: none; }
@keyframes pulse {
  70%, 100% { box-shadow: 0 0 0 26px rgb(243 119 43 / 0), 0 20px 50px rgb(0 0 0 / 0.5); }
}

.chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.chapters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font: 500 14px/1 var(--body);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chapters button:hover {
  border-color: rgb(243 119 43 / 0.6);
  background: rgb(243 119 43 / 0.1);
  color: var(--text);
}
.chapters time {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  color: var(--brand-hi);
  font: 500 12px/1 var(--mono);
}

/* ---- loop ---- */

.loop { text-align: center; }
.sub { margin-top: 16px; color: var(--muted); font-size: 19px; }
.loop ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
  counter-reset: step;
}
/* The rail joins the four dots; one bright dot travels it. */
.loop ol::before, .loop ol::after {
  content: "";
  position: absolute;
  top: 9px;
}
.loop ol::before {
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgb(243 119 43 / 0.25));
}
.loop ol::after {
  left: 12.5%;
  width: 10px;
  height: 10px;
  margin: -4px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgb(255 148 85 / 0.9);
  animation: travel 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes travel {
  0% { left: 12.5%; opacity: 0; }
  8% { opacity: 1; }
  80% { left: 87.5%; opacity: 1; }
  92%, 100% { left: 87.5%; opacity: 0; }
}
.loop li { position: relative; padding-top: 44px; counter-increment: step; }
.loop li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
  z-index: 1;
}
.loop h3::before {
  content: counter(step);
  margin-right: 10px;
  color: var(--brand);
  font: 500 14px/1 var(--mono);
  vertical-align: 2px;
}
.loop li p { max-width: 240px; margin: 10px auto 0; color: var(--muted); font-size: 16px; }

/* ---- tour ---- */

.tour { text-align: center; }
.tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin-top: 36px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs button {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 15px/1 var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--brand); color: #1a0c02; }
.caption {
  max-width: 640px;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: balance;
}
[role="tabpanel"]:not([hidden]) { animation: rise 0.35s ease-out; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---- principles ---- */

.principles h2 { text-align: center; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.cards li {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.cards h3::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgb(243 119 43 / 0.18);
}
.cards p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.chips li {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ---- install ---- */

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.steps { margin-top: 30px; counter-reset: n; }
.steps li {
  position: relative;
  padding-left: 46px;
  color: var(--muted);
  counter-increment: n;
}
.steps li + li { margin-top: 20px; }
.steps li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(243 119 43 / 0.55);
  border-radius: 50%;
  color: var(--brand-hi);
  font: 600 14px/1 var(--mono);
}
code { font-family: var(--mono); font-size: 0.92em; color: var(--text); }
.needs { margin-top: 24px; color: var(--muted); font-size: 15px; }
.install .cta { margin-top: 30px; }

.code {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 80px -30px rgb(243 119 43 / 0.25);
  overflow: hidden;
}
.code figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font: 400 13px/1 var(--mono);
}
.code button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: 500 12px/1 var(--body);
  cursor: pointer;
}
.code button:hover { color: var(--text); border-color: var(--line-strong); }
.code pre { margin: 0; padding: 22px 22px 24px; overflow-x: auto; }
.code code { font-size: 15px; line-height: 1.75; color: #d7dce6; }
.code b { color: var(--brand-hi); font-weight: 500; }
.code span { color: #6f7a8c; }

/* ---- footer ---- */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 36px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .brand { font-size: 18px; color: var(--text); }
footer .brand svg { width: 26px; height: 21px; }
footer p { flex: 1 1 320px; }
footer nav { display: flex; gap: 24px; }
footer a:not(.brand) { text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
footer a:not(.brand):hover { color: var(--text); }

/* ---- 404 ---- */

.lost {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  min-height: 100vh;
  text-align: center;
}
.lost h1 { margin: 0; }
.lost p { color: var(--muted); }

/* ---- small screens ---- */

@media (max-width: 860px) {
  .nav nav a:not(.btn) { display: none; }
  .loop ol { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; text-align: left; }
  .loop ol::before { top: 10px; bottom: 60px; left: 9px; right: auto; width: 2px; height: auto;
    background: linear-gradient(var(--brand), rgb(243 119 43 / 0.25)); }
  .loop ol::after { display: none; }
  .loop li { padding: 0 0 0 44px; }
  .loop li::before { left: 0; margin-left: 0; }
  .loop li p { max-width: none; margin-inline: 0; }
  .cards { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; }
  .window-bar span { display: none; }
  /* A full console shrunk to a phone is unreadable; let it pan instead. */
  .tour .window { overflow-x: auto; }
  .tour .window img { width: 780px; max-width: none; }
  .play svg { width: 64px; height: 64px; padding: 21px 18px 21px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
