/* ============================================================
   Splayometer — Stylesheet
   Palette: deep navy, clinical teal, clean white, warm gray
   ============================================================ */

:root {
  --navy:       #1A3350;
  --navy-dark:  #0F1F33;
  --teal:       #2A7F8F;
  --teal-light: #3A9BAD;
  --teal-pale:  #EBF5F7;
  --white:      #FFFFFF;
  --gray-50:    #F7F8FA;
  --gray-100:   #EAECF0;
  --gray-300:   #C4CAD4;
  --gray-600:   #5A6478;
  --gray-800:   #2C3344;
  --text:       #1E2533;
  --text-muted: #5A6478;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;

  --max-width: 1080px;
  --section-pad: 5rem 1.5rem;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p  { color: var(--text-muted); max-width: 65ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-pad); }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--navy-dark); }
.section--teal { background: var(--teal-pale); }

.section-header {
  max-width: 600px;
  margin-bottom: 3rem;
}
.section-header p { font-size: 1.05rem; margin-top: 0.75rem; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 51, 80, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}
.nav__logo span { color: var(--teal-light); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); text-decoration: none; }

.nav__cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--teal-light);
  border-radius: 4px;
  color: var(--teal-light) !important;
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover {
  background: var(--teal-light);
  color: var(--white) !important;
  text-decoration: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #1F4A5E 100%);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  border: 1px solid rgba(58,155,173,0.4);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(42,127,143,0.35);
}
.btn--primary:hover {
  background: var(--teal-light);
  box-shadow: 0 4px 16px rgba(42,127,143,0.45);
}

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Problem / Opportunity ──────────────────────────────── */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.problem__text h2 { margin-bottom: 1rem; }
.problem__text p  { margin-bottom: 1rem; }

.callout {
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-top: 1.5rem;
}
.callout p {
  color: var(--navy);
  font-size: 0.95rem;
  font-style: italic;
  max-width: none;
}

.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.stat-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.stat-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.stat-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
}

/* ── Device overview ────────────────────────────────────── */
.device__figure {
  text-align: center;
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
}

.device__figure img {
  margin: 0 auto;
  max-height: 320px;
  width: auto;
}

.device__caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ── Models / Embodiments ───────────────────────────────── */
.models__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.model-card:hover {
  box-shadow: 0 8px 28px rgba(26,51,80,0.1);
  transform: translateY(-2px);
}

.model-card__img {
  background: var(--gray-50);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-bottom: 1px solid var(--gray-100);
}
.model-card__img img {
  max-height: 160px;
  width: auto;
  margin: 0 auto;
}

.model-card__body {
  padding: 1.5rem;
}
.model-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.model-card h3 { margin-bottom: 0.6rem; }
.model-card p  { font-size: 0.9rem; max-width: none; }

/* ── How it works ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1rem;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 2px solid var(--teal);
  flex-shrink: 0;
}

.step h3  { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step p   { font-size: 0.875rem; max-width: none; }

/* ── Attachments ────────────────────────────────────────── */
.attach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.attach__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.attach-item {
  display: flex;
  gap: 1rem;
}

.attach-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.attach-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attach-item h3  { font-size: 0.95rem; margin-bottom: 0.25rem; }
.attach-item p   { font-size: 0.875rem; max-width: none; }

/* ── Clinical use banner ────────────────────────────────── */
.clinical {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-pad);
}

.clinical__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.clinical h2 { color: var(--white); margin-bottom: 1rem; }
.clinical p  { color: rgba(255,255,255,0.7); }

.clinical__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.clinical__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: rgba(255,255,255,0.8);
}

.clinical__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A7F8F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

.clinical__img {
  display: flex;
  justify-content: center;
}
.clinical__img img {
  max-width: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Contact / CTA ──────────────────────────────────────── */
.cta {
  padding: var(--section-pad);
  text-align: center;
}

.cta__inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta h2  { margin-bottom: 1rem; }
.cta p   { font-size: 1rem; margin: 0 auto 2rem; }

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-dark); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.45);
  padding: 2.5rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.footer__logo span { color: var(--teal-light); }

.footer__note {
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 420px;
  text-align: right;
}

/* ── Page: Clinical Use ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
}
.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 55ch; }

.content-section {
  padding: 4rem 1.5rem;
}
.content-section .container > * + * { margin-top: 1.5rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner        { grid-template-columns: 1fr; }
  .hero__image        { display: none; }
  .problem__grid      { grid-template-columns: 1fr; }
  .models__grid       { grid-template-columns: 1fr; }
  .steps              { grid-template-columns: 1fr 1fr; }
  .attach__grid       { grid-template-columns: 1fr; }
  .clinical__inner    { grid-template-columns: 1fr; }
  .clinical__img      { display: none; }
  .footer__note       { text-align: left; }
}

@media (max-width: 560px) {
  .steps              { grid-template-columns: 1fr; }
  .nav__links         { display: none; }
}
