/* ============================================================
   BOOST — design tokens & base
   Five colours, one family (Archivo) + the wordmark face (Michroma).
   Sampled from the storefront sign. No second accent. Ever.
   ============================================================ */

:root {
  /* Colour */
  --ink:      #0A0C12;   /* page */
  --ink-2:    #0F121A;   /* slightly lifted page areas */
  --rack:     #151A27;   /* cards, panels */
  --rack-2:   #1B2130;   /* hover / inputs */
  --line:     #242B3B;   /* hairlines */
  --line-2:   #303849;   /* stronger lines, focus rings base */
  --voltage:  #1F6FE5;   /* the only accent: actions, links, price */
  --voltage-2:#3B84F0;   /* hover */
  --glow:     #0B33FF;   /* the LED strip — used as light, never as a fill */
  --chrome:   #D7DAE0;   /* metal: headings, secondary buttons */
  --steel:    #8F97A8;   /* muted text */
  --steel-2:  #5C6579;   /* placeholder / disabled */
  --bone:     #F4F6FA;   /* body text on ink */

  /* Chrome metal gradient — reserved for the wordmark and hero headings */
  --metal: linear-gradient(180deg,#FFFFFF 0%,#D7DAE0 38%,#8F97A8 50%,#E8EAEF 62%,#B8BEC9 100%);

  /* Type */
  --font-ui:   "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Michroma", "Archivo", sans-serif;

  /* Scale (Elements of Typographic Style, 1.25 ratio from 16px) */
  --t-xs: 0.75rem;  --t-sm: 0.875rem; --t-base: 1rem;   --t-md: 1.125rem;
  --t-lg: 1.5rem;   --t-xl: 2rem;     --t-2xl: 2.75rem; --t-3xl: 3.75rem; --t-4xl: 5.25rem;

  /* Space (8px grid) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem;   --s-7: 3rem;  --s-8: 4rem;   --s-9: 6rem; --s-10: 8rem;

  /* Shape — square-shouldered, like the lettering */
  --r-sm: 3px; --r-md: 5px; --r-lg: 8px;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Motion */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: 160ms; --dur: 260ms; --dur-slow: 600ms;

  color-scheme: dark;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--voltage); text-decoration: none; }
a:hover { color: var(--voltage-2); }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--voltage); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--voltage); color: #fff; }

/* ---- Typography roles ----------------------------------------------------- */
.wordmark {
  font-family: var(--font-mark);
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  line-height: 1;
}
.metal {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.h-display { /* Archivo 900, extended — echoes the sign */
  font-weight: 900; font-stretch: 118%;
  letter-spacing: -.01em; line-height: 1.02;
  font-size: clamp(var(--t-2xl), 6vw, var(--t-4xl));
}
.h1 { font-weight: 900; font-stretch: 112%; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(var(--t-xl), 4vw, var(--t-3xl)); }
.h2 { font-weight: 800; font-stretch: 108%; line-height: 1.12; font-size: clamp(var(--t-lg), 3vw, var(--t-2xl)); }
.h3 { font-weight: 700; line-height: 1.2; font-size: var(--t-lg); }
.h4 { font-weight: 700; line-height: 1.3; font-size: var(--t-md); }
.lead { font-size: var(--t-md); color: var(--steel); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--steel); }
.small { font-size: var(--t-sm); }
.label { /* buttons & tags */
  font-weight: 700; font-size: var(--t-sm); letter-spacing: .12em; text-transform: uppercase;
}

/* ---- Layout --------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(var(--s-8), 9vw, var(--s-10)); }
.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6);
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: var(--t-sm); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--voltage); color: #fff; box-shadow: 0 0 0 0 rgba(11,51,255,0); }
.btn-primary:hover { background: var(--voltage-2); color: #fff; box-shadow: 0 8px 28px -8px rgba(11,51,255,.75); }
.btn-chrome { background: transparent; color: var(--chrome); border-color: var(--chrome); }
.btn-chrome:hover { background: var(--chrome); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--chrome); color: #fff; }
.btn-lg { min-height: 56px; padding-inline: var(--s-7); font-size: var(--t-base); }
.btn-sm { min-height: 38px; padding-inline: var(--s-4); font-size: var(--t-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---- Forms ---------------------------------------------------------------- */
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--chrome); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  background: var(--rack); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--bone); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--steel-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--voltage); box-shadow: 0 0 0 3px rgba(31,111,229,.22); }
.field .hint { font-size: var(--t-xs); color: var(--steel); }
.field.has-error .input { border-color: #E5533B; }
.field .error { font-size: var(--t-xs); color: #F0836F; }

/* ---- Surfaces ------------------------------------------------------------- */
.card { background: var(--rack); border: 1px solid var(--line); border-radius: var(--r-md); }
.card-pad { padding: var(--s-5); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: .3rem .7rem; border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(31,111,229,.14); color: var(--voltage-2); border: 1px solid rgba(31,111,229,.35);
}
.chip-chrome { background: rgba(215,218,224,.08); color: var(--chrome); border-color: rgba(215,218,224,.25); }

/* The LED underglow — a strip of light, applied under a section or element */
.underglow { position: relative; }
.underglow::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow) 20%, #7AA6FF 50%, var(--glow) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(11,51,255,.65), 0 0 60px 12px rgba(11,51,255,.28);
  pointer-events: none;
}

/* ---- Utilities ------------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.flex { display: flex; gap: var(--s-3); align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
