/* Fonts are served from this site, so a visit makes no request to a font CDN.
   Chakra Petch, JetBrains Mono and Black Ops One are under the SIL Open Font License 1.1;
   the licence texts sit next to the files in ./fonts/. */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/chakra-petch-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/chakra-petch-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/chakra-petch-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/chakra-petch-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/chakra-petch-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/chakra-petch-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-subset.woff") format("woff");
}
@font-face {
  font-family: "Black Ops One";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./fonts/black-ops-one-wordmark.woff") format("woff");
}

/* dracxterm landing page. Night-plum base, neon magenta and arc cyan taken from the
   app's own prompt colours, hazard yellow for the one action that matters. */
:root {
  color-scheme: dark;
  --night: #120a26;
  --night-2: #1a0f36;
  --panel: #1f1340;
  --line: #3b2a6b;
  --magenta: #ff3d9a;
  --cyan: #3ee8ff;
  --hazard: #ffe14d;
  --neon: #39ff8c;
  --fog: #f1ecff;
  --smog: #b6abd9;
  --ink: #150b26;
  --max: 1200px;
  --chamfer: 14px;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* written by app.js from pointer and scroll; 0 when motion is reduced */
  --rx: 0;
  --ry: 0;
  --scroll: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 61, 154, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(62, 232, 255, 0.10), transparent 60%),
    var(--night);
  color: var(--fog);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9ff4ff; }

:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 3px;
}

code, pre, kbd { font-family: var(--mono); }
code {
  font-size: 0.9em;
  padding: 0.08em 0.35em;
  background: rgba(62, 232, 255, 0.08);
  border: 1px solid rgba(62, 232, 255, 0.22);
  border-radius: 4px;
  color: #c9f9ff;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--hazard);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Chamfered corner: the page's one shape, borrowed from the version tag. */
.cut {
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
                     100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 10, 38, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 61, 154, 0.25);
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  font-family: "Black Ops One", var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--fog);
  text-decoration: none;
  line-height: 1;
}
.brand span { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 61, 154, 0.7); }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}
.nav-links a { color: var(--smog); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fog); }
.nav-links .lang {
  color: var(--fog);
  border: 1px solid var(--line);
  padding: 5px 10px;
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--fog);
  background: transparent;
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--fog); background: rgba(62, 232, 255, 0.08); }
.btn-primary {
  background: var(--hazard);
  border-color: var(--hazard);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 225, 77, 0.5);
}
.btn-primary:hover { background: #fff07f; border-color: #fff07f; color: var(--ink); }
.btn small { font-weight: 600; opacity: 0.75; font-size: 0.82rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 24px;
  min-height: min(calc(100svh - 64px), 900px);
  padding-block: 48px 72px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero .lead {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--smog);
  font-size: 1.15rem;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--smog);
  font-size: 0.95rem;
}
.specs li { display: flex; gap: 8px; align-items: center; }
.specs li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: rotate(45deg);
}

/* ---------- the hacker scene: matrix rain behind a tilted phone ---------- */
.scene {
  position: relative;
  height: min(78svh, 720px);
  perspective: 1100px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(120% 85% at 50% 40%, rgba(57, 255, 140, 0.10), transparent 60%),
    #04080a;
}
/* Falling-code canvas, drawn by app.js. Faded at the edges so it never fights the copy. */
.matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(135% 115% at 50% 45%, #000 52%, transparent 100%);
          mask-image: radial-gradient(135% 115% at 50% 45%, #000 52%, transparent 100%);
}
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 4px);
  opacity: 0.5;
}
.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  transition: transform 0.25s ease-out;
}
.layer {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}
.glow {
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(57, 255, 140, 0.28), transparent 70%);
  filter: blur(26px);
  transform: translate3d(-50%, -50%, -200px);
}

.phone {
  left: 50%;
  top: 48%;
  width: min(300px, 58%);
  transform: translate3d(-50%, calc(-50% + var(--scroll) * -50px), 60px) rotateY(-14deg) rotateX(6deg) rotateZ(-1.5deg);
}
.phone-frame {
  position: relative;
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(160deg, #0d2a22, #05100b 60%);
  border: 2px solid var(--neon);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 42px rgba(57, 255, 140, 0.40),
    -26px 40px 80px rgba(0, 0, 0, 0.6);
}
.phone-frame img { border-radius: 20px; width: 100%; display: block; }
.phone-frame::after {
  /* glass sheen */
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%);
  pointer-events: none;
}

.chip {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.05vw, 0.85rem);
  white-space: nowrap;
  padding: 9px 13px;
  background: rgba(4, 12, 9, 0.9);
  border: 1px solid var(--neon);
  color: var(--fog);
  box-shadow: 0 0 22px rgba(57, 255, 140, 0.35);
}
.chip b { color: var(--neon); font-weight: 500; }
/* Chips float in the side gutters, clear of the phone screen. Z is kept small so the
   perspective does not push them off the edge, and each is inset from the border. */
.chip-a { left: 24px; top: 12%; transform: translate3d(0, calc(var(--scroll) * -110px), 40px) rotateY(7deg); }
.chip-b { right: 24px; top: 46%; transform: translate3d(0, calc(var(--scroll) * -70px), 50px) rotateY(-7deg); border-color: var(--cyan); box-shadow: 0 0 22px rgba(62, 232, 255, 0.35); }
.chip-b b { color: var(--cyan); }
.chip-c { left: 24px; bottom: 12%; transform: translate3d(0, calc(var(--scroll) * -150px), 60px) rotateY(7deg); border-color: var(--hazard); box-shadow: 0 0 22px rgba(255, 225, 77, 0.3); }
.chip-c b { color: var(--hazard); }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: 96px; position: relative; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-head p { color: var(--smog); margin: 16px 0 0; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--magenta) 20%, var(--cyan) 80%, transparent);
  opacity: 0.6;
}

/* claw section */
.claw {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.term {
  background: #0d0719;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(62, 232, 255, 0.08) inset;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--smog);
  font-size: 0.85rem;
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-bar i:nth-child(1) { background: var(--magenta); }
.term-bar i:nth-child(2) { background: var(--hazard); }
.term-bar i:nth-child(3) { background: var(--cyan); }
.term-bar span { margin-left: 6px; }
.term pre {
  margin: 0;
  padding: 18px 18px 22px;
  min-height: 21.5rem;
  font-size: clamp(0.74rem, 1.25vw, 0.86rem);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d9d2f2;
}
.term .p { color: var(--magenta); }
.term .c { color: var(--cyan); }
.term .y { color: var(--hazard); }
.term .g { color: #7ee2b8; }
.term .m { color: var(--smog); }
.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: #9b6bff;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-note { margin: 12px 0 0; font-size: 0.88rem; color: var(--smog); }

.points { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.points h3 { margin: 0 0 6px; font-size: 1.2rem; }
.points p { margin: 0; color: var(--smog); }
.points li { padding-left: 18px; border-left: 2px solid var(--magenta); }
.points li:nth-child(2) { border-left-color: var(--cyan); }
.points li:nth-child(3) { border-left-color: var(--hazard); }
.points li:nth-child(4) { border-left-color: var(--line); }

/* features */
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  position: relative;
  padding: 26px 24px;
  background: linear-gradient(160deg, rgba(31, 19, 64, 0.95), rgba(21, 12, 44, 0.95));
  border: 1px solid var(--line);
}
.panel h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; }
.panel p { margin: 0 0 12px; color: var(--smog); }
.panel p:last-child { margin-bottom: 0; }
.panel-wide { grid-column: span 4; }
.panel-tall { grid-column: span 2; grid-row: span 2; }
.panel-third { grid-column: span 2; }
.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
}

table.distros {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 0.95rem;
}
.distros th, .distros td {
  text-align: left;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid rgba(59, 42, 107, 0.7);
}
.distros th { color: var(--smog); font-weight: 600; font-size: 0.85rem; }
.distros td:not(:first-child), .distros th:not(:first-child) { text-align: right; white-space: nowrap; }
.distros .arch { color: var(--cyan); font-family: var(--mono); font-size: 0.78rem; }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.langs li { padding: 4px 10px; border: 1px solid var(--line); font-size: 0.9rem; }

/* screenshots: a strip that tilts with its own scroll position */
.shots {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 30px max(16px, calc((100vw - var(--max)) / 2)) 40px;
  perspective: 1200px;
  scrollbar-width: thin;
  scrollbar-color: var(--magenta) transparent;
}
.shot {
  flex: 0 0 auto;
  width: clamp(210px, 22vw, 270px);
  margin: 0;
  scroll-snap-align: center;
  transform: rotateY(calc(var(--tilt, 0) * 1deg)) translateZ(calc(var(--lift, 0) * 1px));
  transition: transform 0.2s ease-out;
}
.shot img {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d0719;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.shot figcaption { margin-top: 12px; color: var(--smog); font-size: 0.92rem; }

/* install */
.install {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.steps h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--smog); }
pre.cmd {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: #0d0719;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #d9d2f2;
}
pre.cmd .c { color: var(--smog); }
pre.cmd .p { color: var(--magenta); }

/* faq */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 1.12rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  font-size: 1.5rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--magenta); }
.faq details p { margin: 0 0 20px; color: var(--smog); max-width: 46rem; }

/* closing call */
.callout {
  padding: 56px 40px;
  text-align: left;
  background:
    linear-gradient(120deg, rgba(255, 61, 154, 0.18), rgba(62, 232, 255, 0.12)),
    var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.callout h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 26ch; }
.callout .actions { margin-top: 0; }

/* footer */
.site-footer {
  border-top: 1px solid rgba(255, 61, 154, 0.25);
  padding-block: 36px 48px;
  color: var(--smog);
  font-size: 0.95rem;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 36px; gap: 8px; }
  .scene { height: 520px; margin-inline: -16px; }
  .claw, .install { grid-template-columns: 1fr; gap: 32px; }
  .panel-wide, .panel-tall, .panel-third { grid-column: span 6; grid-row: auto; }
  .nav-links .optional { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .scene { height: 480px; }
  .phone {
    left: 50%;
    width: 60%;
    transform: translate3d(-50%, calc(-50% + var(--scroll) * -40px), 40px) rotateY(-10deg) rotateX(5deg);
  }
  .chip-a { left: 0; top: 7%; transform: translate3d(0, calc(var(--scroll) * -60px), 60px); }
  .chip-c { left: 0; bottom: 9%; transform: translate3d(0, calc(var(--scroll) * -80px), 90px); }
  .chip-b { display: none; }
  .section { padding-block: 72px; }
  .callout { padding: 36px 22px; }
  .btn { width: 100%; justify-content: center; }
  .term pre { min-height: 0; }
  .distros { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .stage, .shot { transition: none; }
  .matrix { opacity: 0.35; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Chamfers only on solid shapes. On outlined ones the cut would sever the border line,
   so outlined buttons and chips keep square corners, and cut panels drop the outline. */
.btn:not(.btn-primary).cut, .chip.cut { clip-path: none; }
.panel.cut, .term.cut, pre.cmd.cut, .callout.cut { border: 0; }
.term.cut { background: #0b0616; }
pre.cmd.cut { background: #0b0616; }
