/* ============================================================
   GEAR GUY — gearguyapp.com
   Brand system: charcoal / gunmetal / bone / amber
   Type: Big Shoulders (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --charcoal: #101214;
  --gunmetal: #1a1e22;
  --gunmetal-2: #22272d;
  --steel: #2a3038;
  --bone: #e8e2d4;
  --bone-dim: #b7b2a4;
  --amber: #d9a13b;
  --amber-bright: #e9b654;
  --chip-green: #3f9d5a;
  --chip-green-bg: rgba(63, 157, 90, 0.14);
  --chip-red: #c2504a;
  --chip-red-bg: rgba(194, 80, 74, 0.14);
  --chip-amber-bg: rgba(217, 161, 59, 0.14);

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-bright); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Stamp / eyebrow ---------- */
.stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.stamp::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 18, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1;
  display: flex; flex-direction: column;
}
.wordmark small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--bone-dim);
  margin-top: 3px;
}
.wordmark span { color: var(--amber); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.nav-links a:hover { color: var(--bone); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal) !important;
  background: var(--amber);
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--amber-bright); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--steel);
}
.hero::before {
  /* ambient inspection light */
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(217, 161, 59, 0.09), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: 0;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero p.lede {
  font-size: 18.5px;
  color: var(--bone-dim);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
}
.btn-amber { background: var(--amber); color: var(--charcoal); font-weight: 600; }
.btn-amber:hover { background: var(--amber-bright); color: var(--charcoal); }
.btn-ghost { border-color: var(--steel); color: var(--bone); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero-specs {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero-specs b { color: var(--bone); font-weight: 600; display: block; font-size: 15px; letter-spacing: 0.04em; }

/* ---------- Device frame ---------- */
.device {
  position: relative;
  width: min(340px, 78vw);
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #30363e, #14171a 60%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(232, 226, 212, 0.08);
}
.device img { border-radius: 34px; }
.device::after {
  /* slow amber glint */
  content: "";
  position: absolute; inset: 0;
  border-radius: 44px;
  background: linear-gradient(115deg, transparent 30%, rgba(233, 182, 84, 0.10) 46%, transparent 60%);
  background-size: 260% 100%;
  animation: glint 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glint {
  0%, 55% { background-position: 130% 0; }
  85%, 100% { background-position: -130% 0; }
}

.device.small { width: min(240px, 66vw); }

/* App-window card: hero + build-page media. Holds a video (with the crop as
   poster) or a plain cropped image. No fake bezel, no aspect trickery. */
.app-window {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--steel);
  background: #0b0d0f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.app-window video,
.app-window img { width: 100%; height: auto; display: block; }
/* No glint sheen on the media cards — the moving amber sweep was too distracting over playing
   video (Chan). The .device screenshot frames keep their subtle glint (still images). */
.media-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 12px;
  text-align: center;
}
.hero-media { align-self: center; }

/* The full-demo (#demo) + compliance-reel (#compliance) videos sit full-width in .wrap, so a
   portrait phone recording renders huge. Cap them at the hero's phone-ish width (~the 0.9fr hero
   column) and center — the hero itself is untouched (its grid column already sizes it right). */
#demo .app-window,
#compliance .app-window {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Sections ---------- */
section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
section + section { border-top: 1px solid var(--steel); }

.section-head { max-width: 46em; margin-bottom: clamp(36px, 5vw, 64px); }
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 14px 0 16px;
}
.section-head p { color: var(--bone-dim); font-size: 18px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 18px 0 10px;
}
.feature p { color: var(--bone-dim); font-size: 16px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split.flip > .split-media { order: 2; }
@media (max-width: 860px) { .split.flip > .split-media { order: 0; } }

/* ---------- Data plate (signature element) ---------- */
.plate {
  background: var(--gunmetal);
  border: 1px solid var(--steel);
  border-radius: 6px;
  overflow: hidden;
}
.plate-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--gunmetal-2);
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.plate-head b { color: var(--amber); font-weight: 600; }
.plate table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; }
.plate th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 12px 20px;
  border-bottom: 1px solid var(--steel);
}
.plate td {
  padding: 13px 20px;
  border-bottom: 1px solid rgba(42, 48, 56, 0.55);
  vertical-align: middle;
}
.plate tr:last-child td { border-bottom: none; }
.plate td.price { text-align: right; white-space: nowrap; color: var(--bone); }
.plate td.price.tbd { color: var(--bone-dim); }
.part-name { color: var(--bone); font-weight: 500; }
.part-brand { color: var(--bone-dim); font-size: 12.5px; display: block; margin-top: 2px; }

.plate-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--steel);
  background: var(--gunmetal-2);
  font-family: var(--font-mono);
  font-size: 13px;
}
.plate-foot .total { color: var(--amber); font-weight: 600; }

/* ---------- Compliance chips ---------- */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  margin-top: 6px;
}
.chip-green { color: var(--chip-green); background: var(--chip-green-bg); }
.chip-red { color: var(--chip-red); background: var(--chip-red-bg); }
.chip-amber { color: var(--amber); background: var(--chip-amber-bg); }

/* ---------- FTC line ---------- */
.ftc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--bone-dim);
  background: var(--gunmetal);
  border: 1px solid var(--steel);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 22px 0;
}

/* ---------- Build cards ---------- */
.build-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.build-card {
  background: var(--gunmetal);
  border: 1px solid var(--steel);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  color: var(--bone);
  display: block;
}
.build-card:hover { transform: translateY(-4px); border-color: var(--amber); color: var(--bone); }
.build-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0d0f;
  display: flex; align-items: center; justify-content: center;
}
.build-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.build-card .meta { padding: 18px 20px 20px; }
.build-card .meta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.build-card .meta p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 6px;
}
.build-card.soon { opacity: 0.55; pointer-events: none; }

/* ---------- Intel / guides (text cards) ---------- */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.intel-card {
  background: var(--gunmetal);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 22px 24px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intel-card:hover { transform: translateY(-4px); border-color: var(--amber); color: var(--bone); }
.intel-card .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.intel-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.intel-card p { font-size: 14px; color: var(--bone-dim); line-height: 1.5; }
.intel-card .more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
@media (prefers-reduced-motion: reduce) { .intel-card { transition: none; } }

/* ---------- Privacy plate ---------- */
.privacy-plate {
  background: var(--gunmetal);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.privacy-item b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 8px;
}
.privacy-item p { color: var(--bone-dim); font-size: 15px; }
.privacy-item .stamp::before { display: none; }

/* ---------- Callout (NFA education) ---------- */
.callout {
  background: var(--gunmetal);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 26px 0;
}
.callout h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.callout p { color: var(--bone-dim); font-size: 15px; }
.callout p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--steel);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--bone-dim);
}
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.foot-legal { margin-top: 26px; font-size: 12.5px; max-width: 62em; }

/* ---------- Build page specifics ---------- */
.build-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; border-bottom: none; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 20px;
}
.build-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.96;
  text-transform: uppercase;
  margin: 10px 0 14px;
}
.spec-row {
  display: flex; gap: 30px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 22px 0 8px;
}
.spec-row b { display: block; color: var(--bone); font-size: 16px; letter-spacing: 0.02em; }

.hero-grid > div:first-child { padding-bottom: clamp(44px, 6vw, 84px); }
@media (max-width: 900px) { .hero-grid > div:first-child { padding-bottom: 0; } }

.build-shot {
  margin: 36px auto 0;
  max-width: 760px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .device::after { animation: none; }
  .build-card { transition: none; }
}
