/* The Blur — black ground, white type, and as little else as the page can get away with. */

:root {
  --bg:      #000000;
  --fg:      #FFFFFF;
  --muted:   #8A8A8A;
  --faint:   #5A5A5A;
  --line:    #1E1E1E;
  --surface: #0A0A0A;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.03; font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.12; }
p { margin: 0; }

a { color: var(--fg); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: 1000px; margin-inline: auto; padding-inline: 22px; }

.label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

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

.nav { border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; height: 60px; gap: 16px; }
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.02em;
  font-variation-settings: "wdth" 118;
  color: var(--fg); text-decoration: none;
}
.wordmark img { width: 26px; height: 26px; border-radius: 6px; display: block; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px;
  font-family: var(--display); font-size: 0.93rem; font-weight: 600;
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg);
  text-decoration: none; cursor: pointer;
  transition: opacity 130ms ease, background-color 130ms ease, color 130ms ease;
}
.btn:hover { opacity: 0.82; }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--line:hover { border-color: var(--fg); opacity: 1; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn__price { font-family: var(--mono); font-weight: 400; opacity: 0.62; }

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

.hero { padding-block: 56px 32px; display: grid; gap: 16px; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* --- the laptop ------------------------------------------------------------ */

.rig { display: grid; justify-items: center; padding-bottom: 8px; }
.laptop { width: 100%; }

.laptop__lid {
  border: 1px solid #242424;
  border-radius: 15px 15px 4px 4px;
  background: #111111;
  padding: 10px 10px 15px;
}
.laptop__screen {
  position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 16 / 10; background: #000;
}
.laptop__screen canvas {
  display: block; width: 100%; height: 100%; cursor: grab; touch-action: none;
}
.laptop__screen canvas.is-dragging { cursor: grabbing; }
.laptop__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 14px; background: #111111;
  border-radius: 0 0 7px 7px; z-index: 2; pointer-events: none;
}
.laptop__base {
  height: 12px; margin-inline: -2.4%;
  border-radius: 0 0 11px 11px;
  background: #1A1A1A; border: 1px solid #242424; border-top: none;
  position: relative;
}
.laptop__base::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14%; height: 4px; border-radius: 0 0 4px 4px; background: #000;
}

/* --- controls --------------------------------------------------------------- */

.controls { width: 100%; display: grid; gap: 18px; margin-top: 26px; }

.gauge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
/* The readout stacks under its label; inline they collide into "LID ANGLE 67°". */
.gauge .label { display: block; }
.gauge__value {
  font-family: var(--mono); font-size: 1.75rem; font-weight: 300;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  min-width: 4.2ch;
}
.gauge__track { display: grid; gap: 6px; }
.gauge__ticks {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.64rem; color: var(--faint);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 20px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2E2E2E 0%, var(--fg) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px; margin-top: -6.5px; border-radius: 50%;
  background: var(--fg); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px #333;
}
input[type="range"]::-moz-range-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2E2E2E 0%, var(--fg) 100%);
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--fg); border: 3px solid var(--bg);
}

.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all 120ms ease;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.bar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mini {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  background: none; border: 0; border-bottom: 1px dashed #2E2E2E; padding: 0 0 2px;
}
.mini:hover { color: var(--fg); border-color: var(--fg); }
.mini input[type="file"] { display: none; }
.mini--switch { display: inline-flex; align-items: center; gap: 7px; border-bottom: 0; }
.mini--switch input { accent-color: var(--fg); width: 14px; height: 14px; }

.sliders {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 24px;
}
.slider { display: grid; gap: 1px; }
.slider__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.8rem; color: var(--muted);
}
.slider__row [data-readout] {
  font-family: var(--mono); color: var(--fg);
  font-variant-numeric: tabular-nums; font-size: 0.76rem;
}

/* --- facts strip ------------------------------------------------------------- */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: 64px;
}
.fact { background: var(--bg); padding: 20px 4px 20px 0; display: grid; gap: 4px; }
.fact strong { font-size: 0.95rem; font-weight: 600; }
.fact span { color: var(--muted); font-size: 0.85rem; }

/* --- buy ---------------------------------------------------------------------- */

.buy { padding-block: 72px; display: grid; gap: 20px; justify-items: start; }
.price {
  font-size: clamp(2.8rem, 7vw, 4.2rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1;
  font-variation-settings: "wdth" 116;
}
.price small {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-left: 10px;
}
.buy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.buy li {
  display: grid; grid-template-columns: 14px 1fr; gap: 10px;
  color: var(--muted); font-size: 0.92rem;
}
.buy li::before { content: "\2713"; color: var(--fg); font-size: 0.8rem; }
.buy .note { color: var(--faint); font-size: 0.82rem; max-width: 46ch; }

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

footer { border-top: 1px solid var(--line); padding-block: 26px 40px; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--faint); font-size: 0.78rem;
}

.notice {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-size: 0.86rem;
}

@media (max-width: 680px) {
  .hero { padding-block: 40px 24px; }
  .gauge { grid-template-columns: 1fr; gap: 10px; }
  .gauge__value { font-size: 1.5rem; }
  .buy { padding-block: 52px; }
  .facts { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
