/* Angry LED — site styles.
   One stylesheet for both pages. The palette and type come straight from the
   design canvas; everything else is the work of turning three fixed-width
   artboards into a page that survives a phone. */

:root {
  --ink: #0B0B0F;
  --panel: #12121A;
  --panel-2: #16161F;
  --tile: #101018;
  --line: #23232F;
  --line-2: #3A3A48;
  --text: #F2F2F4;
  --dim: #B8B8C4;
  --dim-2: #A0A0AE;
  --mute: #8A8A98;
  --mute-2: #7A7A88;
  --accent: #D7261A;
  --accent-bright: #E8352A;
  --link: #4CC9E0;
  --link-hover: #8FE0EF;

  /* The board renders sit on a flat field of this colour, so the tiles behind
     them take the same one and the image edges disappear. */
  --img-bg: #BBBBBB;

  --warn-bg: #16101280;
  --warn-line: #3A1D1A;
  --warn-text: #E8A399;

  --display: "Archivo Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: 24px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

img { max-width: 100%; }

/* A visible focus ring everywhere, since half the controls here are links
   styled as buttons and would otherwise lose the browser default. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding-bottom: 72px; }

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .section { padding-bottom: 96px; }
}
@media (min-width: 1360px) {
  :root { --gutter: 80px; }
}

/* ---------------------------------------------------------------- type --- */

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }

.h-hero  { font-size: clamp(36px, 7.2vw, 76px); line-height: 1.0; }
.h-major { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; }
.h-mid   { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.12; }
.h-card  { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.15; letter-spacing: -0.01em; }

/* Numbered steps and section headings use the body face at semibold — the
   display face is too heavy below about 20px. */
h3.plain, .plain { font-family: var(--body); font-weight: 600; letter-spacing: 0; }

.lede { font-size: clamp(16px, 2vw, 20px); line-height: 1.55; color: var(--dim); margin: 0; max-width: 60ch; }
.body { font-size: 16px; line-height: 1.6; color: var(--dim); margin: 0; }
.small { font-size: 15px; line-height: 1.6; color: #A8A8B6; margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--mute-2); letter-spacing: 0.04em; margin: 0; }

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

.nav {
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
@media (min-width: 900px) { .nav-inner { min-height: 88px; gap: 32px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; display: block; }
.brand span {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 17px; }
}

.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: #C8C8D2; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  width: 44px; height: 44px;
  background: none; border: none; padding: 0;
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* The phone menu. Hidden until the toggle sets the attribute, so it costs
   nothing to anyone on a wide screen. */
.nav-drawer { display: none; }
.nav-drawer[data-open="true"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px 0;
  border-top: 1px solid var(--line);
}
.nav-drawer a {
  padding: 14px 0;
  font-size: 17px;
  color: #C8C8D2;
  text-decoration: none;
}
@media (min-width: 900px) { .nav-drawer { display: none !important; } }

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

.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--body);
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-bright); color: #FFFFFF; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: none; }
.btn-ghost:hover { border-color: var(--mute); color: var(--text); }
.btn-sm { padding: 11px 20px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row .btn { flex-grow: 1; }
@media (min-width: 560px) { .btn-row .btn { flex-grow: 0; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 7px 14px;
  border: 1px solid #33333F;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim-2);
  letter-spacing: 0.04em;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; flex-shrink: 0; }

.pill-warn {
  border-color: #5A2A24;
  color: var(--warn-text);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 13px;
}

/* --------------------------------------------------------------- panels --- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
@media (min-width: 900px) { .panel { padding: 40px; } }

.panel-lg { border-radius: 20px; padding: 32px 26px; }
@media (min-width: 900px) { .panel-lg { padding: 56px 60px; } }

.panel-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 24px;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------------------------------------------------------- grids --- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.cols { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 900px) { .cols { flex-direction: row; gap: 48px; } .cols > * { flex: 1 1 0; } }

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

.hero { display: flex; flex-direction: column; gap: 40px; padding: 48px 0 72px 0; }
@media (min-width: 1100px) {
  .hero { flex-direction: row; align-items: center; gap: 72px; padding: 96px 0; }
  .hero-copy { width: 54%; flex-shrink: 0; }
  .hero-demo { flex-grow: 1; min-width: 0; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy .btn-row { width: 100%; }

.demo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) { .demo { padding: 32px; gap: 30px; } }
.demo-label { font-family: var(--mono); font-size: 11px; color: var(--mute-2); letter-spacing: 0.1em; }
.demo svg { display: block; width: 100%; height: auto; }

.stats { display: flex; gap: 12px; }
.stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat-k { font-family: var(--mono); font-size: 10px; color: var(--mute-2); letter-spacing: 0.08em; }
.stat-v { font-size: 20px; font-weight: 600; margin-top: 6px; }
.stat-v span { font-size: 13px; color: var(--mute); font-weight: 400; }

/* The bar of light runs the board's Trace effect, so the page shows the thing
   it is describing rather than a screenshot of it. */
.px { animation: trace 2.6s linear infinite; }
@keyframes trace {
  0%, 62% { fill: #20202C; }
  12%     { fill: var(--accent-bright); }
  30%     { fill: #6E1E17; }
}
@media (prefers-reduced-motion: reduce) {
  .px { animation: none; }
}

/* ------------------------------------------------------------ icon tile --- */

.icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #1C1C28;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.card-stack { display: flex; flex-direction: column; gap: 18px; }

/* --------------------------------------------------------------- effect --- */

.fx { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.fx-name { font-family: var(--display); font-size: 18px; color: var(--accent-bright); letter-spacing: 0.02em; }
.fx p { margin: 10px 0 0 0; font-size: 15px; line-height: 1.55; color: var(--dim); }

/* ---------------------------------------------------------------- steps --- */

.step { display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--display); font-size: 48px; color: #2E2E3C; line-height: 1; }

/* -------------------------------------------------------------- gallery --- */

.shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--img-bg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery { display: grid; gap: 16px; }
.gallery-big { grid-template-columns: 1fr; }
.gallery-small { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .gallery { gap: 20px; }
  .gallery-big { grid-template-columns: repeat(2, 1fr); }
  .gallery-small { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- specs --- */

.specs { display: grid; grid-template-columns: 1fr; gap: 0 56px; }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-k { font-size: 15px; color: var(--dim); }
.spec-v { font-family: var(--mono); font-size: 14px; color: var(--text); text-align: right; }

/* ----------------------------------------------------------------- form --- */

.signup { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) {
  .signup { flex-direction: row; align-items: flex-end; }
  .signup .field { flex-grow: 1; }
  .signup .btn { flex-shrink: 0; }
}
.field label { display: block; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.field input {
  width: 100%;
  padding: 15px 14px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
}
.field input::placeholder { color: var(--mute-2); }

.form-note { font-size: 13px; color: var(--mute); margin: 12px 0 0 0; }

/* ------------------------------------------------------------- download --- */

.dl {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 18px;
}
.dl:hover { border-color: var(--line-2); color: var(--text); }
.dl svg { flex-shrink: 0; }
.dl-name { display: block; font-size: 18px; font-weight: 600; }
.dl-kind { display: block; font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 4px; }

/* ---------------------------------------------------------------- misc --- */

.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check svg { margin-top: 3px; flex-shrink: 0; }
.check span { font-size: 16px; color: #C4C4CE; }

.facts { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.facts > div { flex: 1 1 160px; }
.fact-k { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.fact-v { font-size: 15px; color: var(--dim-2); }
/* These two are standalone links rather than part of a sentence, so they get
   enough vertical padding to be a real tap target on a phone. */
.fact-v a { display: inline-block; padding: 8px 0; }

.future { display: flex; flex-direction: column; gap: 8px; }
.future-row {
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.future-row b { font-family: var(--display); font-size: 13px; color: #C8C8D2; font-weight: 400; width: 96px; flex-shrink: 0; }
.future-row span { font-size: 13px; color: var(--mute); }
@media (min-width: 900px) {
  .future { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .future-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 12px; }
  .future-row b { font-size: 15px; width: auto; }
}

.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-v { font-family: var(--display); font-size: clamp(34px, 6vw, 44px); line-height: 1; }
.price-note { font-size: 15px; color: var(--dim-2); }

/* -------------------------------------------------------------- product --- */

.product { display: flex; flex-direction: column; gap: 40px; padding: 40px 0 64px 0; }
@media (min-width: 1000px) {
  .product { flex-direction: row; gap: 72px; padding: 64px 0; }
  .product-media { width: 52%; flex-shrink: 0; }
  .product-buy { flex-grow: 1; min-width: 0; }
}
.product-media { display: flex; flex-direction: column; gap: 16px; }
.product-buy { display: flex; flex-direction: column; gap: 24px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: 0.1em; }

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

.foot { border-top: 1px solid var(--line); margin-top: auto; padding: 36px 0; }
.foot-inner { display: flex; flex-direction: column; gap: 18px; }
.foot img { width: 30px; height: 30px; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { font-size: 14px; color: var(--dim-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-copy { font-size: 13px; color: var(--mute); }
@media (min-width: 900px) {
  .foot { padding: 44px 0; }
  .foot-inner { flex-direction: row; align-items: center; gap: 32px; }
  .foot-links { margin-left: auto; }
}

.page { display: flex; flex-direction: column; min-height: 100vh; }

.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;
}
