/* ============================================================
   REMEDY COMBAT — DESIGN SYSTEM
   Performance Medicine + Regeneration
   Palette: Black / Charcoal / Gunmetal / Chrome / Electric Blue
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; margin: 0; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

:root {
  /* ---- Color ---- */
  --black: #050608;
  --charcoal: #0b0d11;
  --charcoal-2: #12151b;
  --gunmetal: #1a1e26;
  --gunmetal-2: #232833;
  --silver: #c8ccd4;
  --silver-2: #8b93a1;
  --silver-3: #5b6270;
  --white: #f2f4f8;
  --blue: #1e9dff;         /* Electric Remedy Blue */
  --blue-hi: #4fb8ff;
  --blue-dim: #0e6bb3;
  --blue-glow: rgba(30, 157, 255, 0.35);
  --danger: #e04a4a;

  /* ---- Type ---- */
  --font-display: "Oswald", "Bebas Neue", "Impact", system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.75rem, 6.4vw, 5.5rem);
  --fs-h1: clamp(2.1rem, 4.4vw, 3.6rem);
  --fs-h2: clamp(1.65rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.55rem);
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* ---- Space ---- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;

  --section-y: clamp(4rem, 8vw, 7rem);
  --container: 1240px;
  --container-narrow: 900px;

  /* ---- Borders / shadows ---- */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --border: 1px solid rgba(200, 204, 212, 0.10);
  --border-strong: 1px solid rgba(200, 204, 212, 0.22);
  --border-blue: 1px solid rgba(30, 157, 255, 0.35);

  --shadow-blue: 0 0 0 1px rgba(30,157,255,0.20), 0 12px 40px -8px rgba(30,157,255,0.28);
  --shadow-lift: 0 20px 60px -20px rgba(0,0,0,0.9);
}

/* ---- Body / typography base ---- */
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: 0.005em;
  min-height: 100dvh;
}

/* Global page atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(30,157,255,0.08), transparent 60%),
    radial-gradient(900px 700px at 90% 110%, rgba(30,157,255,0.06), transparent 60%),
    linear-gradient(180deg, #050608, #06070a);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
  color: var(--white);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: rgba(242,244,248,0.78); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-hi);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.uppercase { text-transform: uppercase; letter-spacing: 0.18em; }
.mute { color: var(--silver-2); }
.chrome-text {
  background: linear-gradient(180deg, #ffffff 0%, #c0c6d1 45%, #7d8697 55%, #e4e8ee 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #2ba9ff 0%, #1180d6 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(200,204,212,0.28);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-hi); }
.btn-sm { padding: 0.7rem 1.15rem; font-size: 0.8rem; }

/* ---- Cards ---- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(26,30,38,0.85), rgba(11,13,17,0.9));
  border: 1px solid rgba(200,204,212,0.10);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.9rem);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: rgba(30,157,255,0.45); box-shadow: var(--shadow-blue); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* Illuminated hairline border */
.card-lit::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(30,157,255,0.55), rgba(200,204,212,0.15) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5,6,8,0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(200,204,212,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-brand svg { width: 34px; height: 34px; }
.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
}
.nav-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--silver-2);
  letter-spacing: 0.3em;
  margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  padding: 0.5rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(242,244,248,0.78);
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-hi); background: rgba(30,157,255,0.08); }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.6rem; flex-shrink: 0; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--white); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5,6,8,0.96);
  backdrop-filter: blur(14px);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(200,204,212,0.08);
}
.mobile-menu .btn { margin-top: 1rem; width: 100%; }
.mobile-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--white); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(200,204,212,0.08);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { font-size: 0.9rem; color: rgba(242,244,248,0.7); }
.site-footer a:hover { color: var(--blue-hi); }
.footer-slogan {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.32em; color: var(--blue-hi);
  text-transform: uppercase; margin-top: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(200,204,212,0.08); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  color: var(--silver-3); font-size: 0.78rem;
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 800px);
  display: flex; align-items: center;
  padding: 6rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/hero-fighter.webp") center/cover no-repeat;
  filter: saturate(115%) contrast(105%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,8,0.94) 0%, rgba(5,6,8,0.6) 42%, rgba(5,6,8,0.15) 75%, rgba(5,6,8,0.05) 100%),
    linear-gradient(180deg, rgba(5,6,8,0.35) 0%, rgba(5,6,8,0.7) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-top: 1.5rem;
}
.hero h1 .accent { color: var(--blue-hi); }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(242,244,248,0.82);
  margin: 1.4rem 0 2.2rem;
  max-width: 620px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-slogan {
  position: absolute; z-index: 1;
  bottom: 2rem; right: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 0.4em;
  color: var(--silver-2);
  display: flex; gap: 1.5rem;
}
.hero-slogan span { color: var(--blue-hi); }
@media (max-width: 720px) { .hero-slogan { display: none; } }

/* ---- Section header ---- */
.section-head { max-width: 780px; margin-bottom: 3rem; }
.section-head h2 {
  text-transform: uppercase;
  margin-top: 1rem;
  line-height: 1.05;
}
.section-head p { font-size: 1.05rem; margin-top: 1rem; }

/* ---- Chrome divider ---- */
.chrome-divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(200,204,212,0.4), transparent);
  margin: 0;
}

/* ---- Stat / feature icon ---- */
.icon-box {
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  max-width: 44px; max-height: 44px;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30,157,255,0.15), rgba(30,157,255,0.02));
  border: 1px solid rgba(30,157,255,0.35);
  color: var(--blue-hi);
  margin-bottom: 1rem;
  overflow: hidden;
  align-self: start;
}
.icon-box svg {
  width: 22px !important; height: 22px !important;
  max-width: 22px; max-height: 22px;
  flex-shrink: 0; display: block;
}

/* ---- Forms ---- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field {
  display: grid; gap: 0.4rem;
}
.field label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--silver-2); font-weight: 600;
}
.field .req { color: var(--blue-hi); }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(11,13,17,0.85);
  border: 1px solid rgba(200,204,212,0.14);
  color: var(--white);
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,157,255,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-check {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--silver);
}
.field-check input { width: auto; margin-top: 4px; }
.form-note {
  font-size: 0.78rem; color: var(--silver-3);
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--blue-dim);
  background: rgba(30,157,255,0.04);
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
}
.form-success {
  display: none;
  padding: 1.4rem;
  border: 1px solid rgba(30,157,255,0.45);
  background: rgba(30,157,255,0.06);
  border-radius: var(--radius);
  color: var(--white);
}
.form-success.show { display: block; }
form.submitted .form-hide { display: none; }

/* ---- Utility / anims ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #000; padding: 0.5rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }
