:root {
  --bg: #05121b;
  --bg-2: #081826;
  --surface: #0e2233;
  --surface-2: #143047;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --fg: #eef7fb;
  --muted: #9fb4c4;
  --primary: #14c3e6;
  --primary-600: #0ea3c4;
  --primary-glow: rgba(20, 195, 230, 0.4);
  --accent: #4ee0b5;
  --radius: 16px;
  --maxw: 1140px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #2f8dff); color: #04121a; box-shadow: 0 8px 24px var(--primary-glow); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 18, 27, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.logo .mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2f8dff);
  display: grid; place-items: center; box-shadow: 0 4px 14px var(--primary-glow);
}
.logo .mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 6px; }

/* Mobile dropdown menu */
.mobile-menu { display: none; flex-direction: column; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid var(--border); background: rgba(5, 18, 27, 0.98); backdrop-filter: blur(12px); }
.mobile-menu a:not(.btn) { padding: 11px 2px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:not(.btn):hover { color: var(--fg); }
.mobile-menu .btn { width: 100%; margin-top: 4px; }
.mobile-menu.open { display: flex; }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* Water wave divider */
.wave { display: block; width: 100%; height: 60px; }
.wave path { fill: var(--bg-2); }

/* Hero */
.hero { position: relative; padding: 80px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle, var(--primary-glow), transparent 60%); filter: blur(50px); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; bottom: -260px; left: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(78,224,181,.22), transparent 60%); filter: blur(50px); z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.hero h1 .accent { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { margin: 22px 0 30px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 26px; display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--muted); }

/* Hero visual — glass "workout of the day" mock over a pool gradient (pure CSS/SVG) */
.hero-card {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); min-height: 440px;
  display: flex; align-items: center; justify-content: center; padding: 26px;
  background: linear-gradient(160deg, #0b5e8a 0%, #0a7fae 40%, #0e9bc9 100%);
}
.hero-card .lanes { position: absolute; inset: 0; opacity: .38; }
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(180deg, transparent 45%, rgba(4,18,26,.55));
}
.hc-panel {
  position: relative; z-index: 2; width: 100%; max-width: 340px;
  background: rgba(6, 20, 32, 0.72); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hc-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.hc-pill { font-size: 11px; font-weight: 700; font-family: var(--font-head); background: var(--primary); color: #04121a; padding: 4px 11px; border-radius: 999px; }
.hc-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.hc-stats { display: flex; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.hc-stats > div { flex: 1; }
.hc-stats strong { display: block; font-family: var(--font-head); font-size: 21px; line-height: 1.1; }
.hc-stats strong small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.hc-stats span { font-size: 11px; color: var(--muted); }
.hc-sets { margin: 15px 0 4px; }
.hc-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.hc-row:last-child { border-bottom: 0; }
.hc-row span { color: var(--muted); }
.hc-row b { font-family: var(--font-head); font-weight: 700; }
.hc-cta { margin-top: 12px; text-align: center; background: linear-gradient(135deg, var(--primary), #2f8dff); color: #04121a; font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 12px; border-radius: 12px; box-shadow: 0 8px 20px var(--primary-glow); }

/* Sections */
section { padding: 70px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Stroke cards */
.strokes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stroke-card {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  min-height: 300px; display: flex; align-items: flex-end; text-align: left;
  transition: transform .2s, border-color .2s; color: #fff;
}
.stroke-card:hover { transform: translateY(-5px); border-color: var(--primary); }
/* SVG lane background — always fills its container as a true background. */
.sc-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.stroke-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(4,15,22,.92)); z-index: 1; }
.stroke-card .sc-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.stroke-card .sc-body h3 { font-size: 21px; margin-bottom: 6px; }
.stroke-card .sc-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stroke-card .sc-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13px; font-weight: 700; font-family: var(--font-head); }

/* Feature bullets */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature .fic { width: 46px; height: 46px; border-radius: 12px; background: rgba(20,195,230,.15); display: grid; place-items: center; margin-bottom: 16px; }
.feature .fic svg { width: 24px; height: 24px; color: var(--primary); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* Social proof band */
.band { background: linear-gradient(135deg, var(--primary), #1f6ff0); border-radius: 24px; padding: 50px 40px; text-align: center; color: #04121a; }
.band h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
.band p { font-size: 18px; opacity: .85; margin-top: 8px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font-family: var(--font-head); font-weight: 600; font-size: 16px; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform .2s; color: var(--primary); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; color: var(--muted); }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 50px; background: linear-gradient(160deg, #0b5e8a, #0a7fae 50%, #0e9bc9); }
.auth-visual .lanes { position: absolute; inset: 0; opacity: .45; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,18,27,.35), rgba(5,18,27,.92)); z-index: 1; }
.auth-visual .vcontent { position: relative; z-index: 2; }
.auth-visual h2 { font-size: 34px; font-weight: 800; max-width: 380px; }
.auth-visual p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 360px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { margin-bottom: 30px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 11px; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--fg); font-size: 15px; font-family: var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,195,230,.18); }
.auth-msg { font-size: 14px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.auth-msg.error { display: block; background: rgba(255,70,70,.12); color: #ff8d8d; border: 1px solid rgba(255,70,70,.3); }
.auth-msg.success { display: block; background: rgba(20,195,230,.12); color: #7fe3f6; border: 1px solid rgba(20,195,230,.3); }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.tabs { display: flex; background: var(--surface); border-radius: 12px; padding: 5px; margin-bottom: 26px; border: 1px solid var(--border); }
.tabs button { flex: 1; padding: 10px; border: 0; background: none; color: var(--muted); font-family: var(--font-head); font-weight: 600; border-radius: 8px; cursor: pointer; transition: all .15s; }
.tabs button.active { background: var(--primary); color: #04121a; }

/* Responsive */
@media (max-width: 1000px) {
  section { padding: 56px 0; }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { min-height: 0; padding: 22px 18px; }
  .strokes { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .section-head { margin-bottom: 34px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  .hero p.lead { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .features { grid-template-columns: 1fr; }
  .strokes { grid-template-columns: 1fr; }
  .stroke-card { min-height: 220px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stats .stat strong { font-size: 22px; }
  .band { padding: 32px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-bottom { justify-content: center; text-align: center; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}
@media (max-width: 380px) {
  .logo { font-size: 17px; }
  .hero-stats { gap: 16px; }
}
