/* ============================================================
   NEWMIND ATHLETICS — DESIGN TOKENS
   Palette: Royal blue + Ink black + White, race/breath motif
   Type: Archivo Black (display) / Manrope (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --royal: #2952E3;
  --royal-deep: #1B36A8;
  --royal-light: #6E8CFF;
  --ink: #0B0B0E;
  --white: #FFFFFF;
  --paper: #F5F6FA;
  --steel: #6B7280;
  --line: #E4E7F0;
  --line-dark: #23262F;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--royal);
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; }

p { color: var(--steel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--royal);
  color: var(--white);
}
.btn-primary:hover { background: var(--royal-deep); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--royal);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--royal); }
.nav-cta { display: flex; align-items: center; gap: 24px; }
.nav-toggle { display: none; }

/* ---------- Pulse / breath line (signature element) ---------- */
.pulse-line {
  width: 100%;
  display: block;
}
.pulse-line path {
  fill: none;
  stroke: var(--royal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pulse-divider {
  width: 100%;
  height: 60px;
  overflow: hidden;
  opacity: 0.55;
}

@keyframes breathe {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -40; }
}
.pulse-anim path {
  stroke-dasharray: 6 10;
  animation: breathe 4.6s ease-in-out infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-top: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 640px;
  padding: 40px 0 60px;
}
.hero h1 { color: var(--white); margin: 20px 0 24px; }
.hero h1 .accent { color: var(--royal-light); font-style: italic; }
.hero p.lede {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-bg-pulse {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  max-height: 620px;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
.hero-visual .ring {
  position: absolute;
  width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}

/* ---------- Section basics ---------- */
section { padding: 100px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; }
.section-tight { padding: 60px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.6); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }

/* ---------- Mission strip ---------- */
.mission-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-item {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.mission-item:last-child { border-right: none; }
.mission-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--royal);
  letter-spacing: 0.1em;
}
.mission-item h3 { margin: 14px 0 10px; }
.mission-item p { font-size: 14.5px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: block;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.product-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--royal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.product-info { padding: 20px; }
.product-info .p-name { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; margin-bottom: 6px;}
.product-info .p-sub { font-size: 13.5px; color: var(--steel); margin-bottom: 12px; }
.product-info .p-price { font-family: var(--font-mono); font-size: 14px; color: var(--royal); }

/* ---------- Quote / motto block ---------- */
.motto-block {
  text-align: center;
  padding: 120px 0;
  background: var(--royal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.motto-block h2 {
  color: var(--white);
  font-size: clamp(32px, 5.5vw, 64px);
  max-width: 900px;
  margin: 0 auto;
}
.motto-block .eyebrow { color: rgba(255,255,255,0.75); }
.motto-block .eyebrow::before { background: rgba(255,255,255,0.75); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { height: 26px; margin-bottom: 18px; }
.footer-brand p { max-width: 280px; font-size: 14px; color: rgba(255,255,255,0.5); }
footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer ul li a:hover { color: var(--royal-light); }
.footer-resource {
  border: 1px solid var(--line-dark);
  padding: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-resource strong { color: var(--white); display: block; margin-bottom: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 20px 0 50px; text-align: left; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 380px; }
  .mission-strip { grid-template-columns: 1fr; }
  .mission-item { border-right: none; border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .motto-block { padding: 80px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
