/* ============================================================
   BlueLine — shared system
   Performance training environment. Athletic, direct, premium.
   ============================================================ */

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

:root{
  /* Surfaces — deep athletic blue, training facility at night */
  --surface:    #0A1628;
  --surface-2:  #0C1E35;   /* raised cards */
  --surface-3:  #102844;   /* hover / inset */
  --line:       rgba(180, 206, 235, 0.12);
  --line-soft:  rgba(180, 206, 235, 0.06);

  /* Text */
  --text:    #EAF1F8;   /* default white-on-blue */
  --text-2:  #C8D8E8;   /* secondary / labels */
  --text-3:  #6A8FAF;   /* tertiary / notation */

  /* Accent — the blue line (sky blue, matched to BlueMinute app/landing) */
  --blue:        #4FA3EA;   /* ticks, accent text, wordmark */
  --blue-bright: #78BAF2;
  --blue-btn:    #2F7BD6;   /* primary action fill */
  --blue-btn-hi: #3E8AE2;
  --blue-deep:   #1A5FA8;
  --blue-stroke: #5BA0E0;
  --teal:        #2FD1A5;
  --teal-deep:   #0D6E52;
  --teal-stroke: #3BC4A0;

  --ink: #08121F;  /* text on light fills */

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  /* motion — clean exponential deceleration, no bounce */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection{ background: rgba(79,163,234,0.32); color: #F4F8FC; }

a{ color: inherit; text-decoration: none; }

/* ---------- layout primitives ---------- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section{ padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight{ padding-block: clamp(56px, 8vw, 110px); }

/* ---------- the blue line motif ---------- */
.blueline{
  display: inline-block;
  width: 56px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(79,163,234,0.6);
}
.blueline--tall{ width: 3px; height: 1.1em; vertical-align: -0.15em; }

/* eyebrow: blue line + mono micro-label */
.eyebrow{
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 26px;
}
.eyebrow .blueline{ flex: none; }

/* eyebrow that spans a row with a counter on the right (app-style) */
.label-row{
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin: 0 0 26px;
}
.label-row .eyebrow{ margin: 0; }
.counter{
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.counter b{ color: var(--blue-bright); font-weight: 700; }

/* ---------- type ---------- */
.display{
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}
h1.display{ font-size: clamp(2.7rem, 8.5vw, 6.6rem); }
h2.display{ font-size: clamp(1.95rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; }
h3.display{ font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }

.lede{ font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--text-2); line-height: 1.55; max-width: 38ch; }
.body-copy{ color: var(--text-2); max-width: 60ch; }
.body-copy + .body-copy{ margin-top: 1.1em; }

.accent-blue{ color: var(--blue-bright); }

/* ---------- buttons (slightly rounded, confident) ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease-out-expo), background .2s var(--ease-out-quart), border-color .2s var(--ease-out-quart), color .2s var(--ease-out-quart), box-shadow .2s var(--ease-out-quart);
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--blue-btn);
  color: #F4F8FC;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px rgba(47,123,214,0.28);
}
.btn--primary:hover{ background: var(--blue-btn-hi); box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 10px 30px rgba(47,123,214,0.4); }

.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(180,206,235,0.32);
}
.btn--ghost:hover{ border-color: var(--blue); color: var(--blue-bright); background: rgba(79,163,234,0.08); }

.btn-row{ display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-head{
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled{
  background: rgba(10,22,40,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.wordmark{
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: 0.04em;
}
.wordmark .mark{
  width: 22px; height: 3px; background: var(--blue);
  border-radius: 2px; box-shadow: 0 0 14px rgba(79,163,234,0.7);
}
.wordmark .lo{ color: var(--blue); }

/* official logo (blue line + wordmark), used in header on dark surface */
.site-logo{ height: 27px; width: auto; display: block; }
.logo-link{ display: inline-flex; align-items: center; }
@media (max-width: 480px){ .site-logo{ height: 22px; } }
.head-link{
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s ease;
}
.head-link:hover{ color: var(--blue-bright); }

/* ---------- footer ---------- */
.site-foot{
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px);
}
.foot-grid{ display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.foot-tag{ font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.05; max-width: 16ch; }
.foot-meta{ color: var(--text-3); font-size: 0.94rem; line-height: 1.85; }
.foot-meta a:hover{ color: var(--blue-bright); }
.foot-link{
  font-family: var(--display); font-weight: 600; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 3px; color: var(--text);
  transition: gap .2s ease, color .2s ease;
}
.foot-link:hover{ gap: 16px; color: var(--blue-bright); }
.disclaimer{
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  color: var(--text-3); font-size: 0.8rem; line-height: 1.6; max-width: 70ch;
}

@media (max-width: 720px){
  .foot-grid{ grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- shared faint grid / vignette helpers ---------- */
.grid-bg::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(180,206,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,206,235,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 35%, #05090f 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 35%, #05090f 35%, transparent 78%);
}
.section > .wrap{ position: relative; z-index: 1; }
