/* ==========================================================================
   LOADOUT — design tokens
   Palette:  --bg #08090c   --surface #10131a   --surface-2 #161a24
             --blue #00e5ff (highlighter accent)   --blue-dim #0a4d5c
             --ink #e9eef5   --ink-dim #8a94a6   --line #232838
   Type:     Display  "Space Grotesk"   Body "Inter"   Data "JetBrains Mono"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #08090c;
  --surface: #10131a;
  --surface-2: #161a24;
  --blue: #00e5ff;
  --blue-soft: #5be3f5;
  --blue-dim: #0a4d5c;
  --ink: #e9eef5;
  --ink-dim: #8a94a6;
  --line: #232838;
  --danger: #ff5470;
  --good: #29e0a0;
  --radius: 2px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-data: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,229,255,0.09), transparent),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue); color: #00131a; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- bracket / HUD signature element ---------- */
.bracket {
  position: relative;
  padding: 28px;
}
.bracket::before, .bracket::after,
.bracket .b-tl, .bracket .b-br { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--blue); opacity: 0.85; }
.bracket::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.bracket::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(8,9,12,0.86);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { width: 8px; height: 8px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .15s;
}
nav.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #00131a;
  font-weight: 600;
}
.btn-primary:hover {
  color: #00131a;
  background: var(--blue-soft);
  box-shadow: 0 0 24px rgba(0,229,255,0.35);
}
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { border-color: transparent; color: var(--ink-dim); }
.btn-ghost:hover { color: var(--blue); border-color: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.hero h1 span { color: var(--blue); }
.hero p { color: var(--ink-dim); font-size: 17px; max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; }

.readout {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--blue-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}
.readout .row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px dashed var(--line); }
.readout .row:last-child { border-bottom: none; }
.readout .row span:first-child { color: var(--ink-dim); }

/* ---------- category strip ---------- */
.categories { padding: 48px 0 8px; }
.cat-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 14px;
  text-align: center;
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  transition: all .15s;
  cursor: pointer;
}
.cat-chip:hover, .cat-chip.active { border-color: var(--blue); color: var(--blue); }

/* ---------- product grid ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--blue-dim); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
  color: var(--blue);
  position: relative;
}
.card-media .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--blue);
  padding: 3px 7px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-family: var(--font-data); font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { font-size: 16.5px; font-weight: 600; }
.card-specs { font-family: var(--font-data); font-size: 12px; color: var(--ink-dim); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-data); font-size: 18px; color: var(--blue); font-weight: 600; }
.price .was { color: var(--ink-dim); font-size: 12.5px; text-decoration: line-through; margin-left: 6px; }
.get-deal { font-size: 12px; padding: 9px 14px; }

/* ---------- disclosure / trust ---------- */
.disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--surface);
}
.disclosure p { color: var(--ink-dim); font-size: 13px; max-width: 74ch; margin: 0; }
.disclosure strong { color: var(--ink); }

/* ---------- footer ---------- */
footer { padding: 48px 0 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.foot-links { display: flex; gap: 28px; }
.foot-links a { font-size: 13px; color: var(--ink-dim); }
.foot-links a:hover { color: var(--blue); }
.fine { color: var(--ink-dim); font-size: 12px; margin-top: 24px; }

/* ---------- auth pages ---------- */
.auth-shell {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
}
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color .15s;
}
.field input:focus { border-color: var(--blue); }
.field .hint { font-size: 11.5px; color: var(--ink-dim); margin-top: 6px; }
.form-msg {
  font-family: var(--font-data);
  font-size: 12.5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { border-color: var(--danger); color: var(--danger); }
.form-msg.success { border-color: var(--good); color: var(--good); }
.auth-switch { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--ink-dim); }
.auth-switch a { color: var(--blue); }

/* ---------- account page ---------- */
.account-shell { padding: 56px 0; min-height: calc(100vh - 73px); }
.account-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.account-id { font-family: var(--font-data); color: var(--blue-soft); font-size: 14px; margin-bottom: 40px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.stat .n { font-family: var(--font-data); font-size: 26px; color: var(--blue); }
.stat .l { font-size: 12.5px; color: var(--ink-dim); margin-top: 4px; }

/* ---------- utility ---------- */
.center-note { text-align: center; padding: 60px 20px; color: var(--ink-dim); font-family: var(--font-data); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  nav.main-nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
