:root {
  --navy: #071433;
  --navy-2: #0e1f47;
  --navy-3: #18305f;
  --blue: #1d4ed8;
  --blue-bright: #2563eb;
  --electric: #7dd3fc;
  --ink: #0b1220;
  --muted: #475569;
  --muted-2: #334155;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --white: #ffffff;
  --success: #047857;
  --warn: #b45309;
  --on-dark: #e6edf8;
  --on-dark-muted: #b8c4d9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 26, 59, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 26, 59, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; color: var(--navy);
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue-bright));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); text-decoration: none; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(56,189,248,0.18), transparent),
    radial-gradient(900px 500px at -10% 110%, rgba(37,99,235,0.18), transparent),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(125,211,252,0.18);
  border: 1px solid rgba(125,211,252,0.5);
  color: #bae6fd; font-size: 13px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 18px;
  font-weight: 800;
}
.hero h1 .accent {
  color: #7dd3fc;
}
.hero p.lede { font-size: 18px; color: var(--on-dark); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-metrics {
  display: flex; gap: 28px; margin-top: 40px; color: var(--on-dark-muted);
}
.hero-metric strong { display: block; color: #fff; font-size: 22px; font-weight: 800; }
.hero-metric span { font-size: 13px; }

/* Hero card */
.hero-card {
  background: #fff; color: var(--ink);
  border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.5deg);
}
.hero-card h4 { margin: 0 0 4px; font-size: 16px; }
.hero-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.hero-slot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; font-size: 14px;
}
.hero-slot.taken { background: #f1f5f9; color: var(--muted); text-decoration: line-through; }
.hero-slot.open { background: #eff6ff; border-color: #bfdbfe; color: var(--navy); font-weight: 600; }
.hero-slot.picked { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--blue); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px); margin: 10px 0 12px;
  letter-spacing: -0.02em; color: var(--navy);
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .15s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--blue);
  font-size: 20px; margin-bottom: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.tier.featured {
  border-color: var(--blue); box-shadow: 0 20px 50px rgba(37,99,235,0.15);
  transform: translateY(-6px);
}
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em;
}
.tier h3 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.tier .price { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.tier .price small { color: var(--muted); font-size: 14px; font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.tier li { padding: 7px 0; color: var(--ink); font-size: 14.5px; display: flex; gap: 10px; }
.tier li::before { content: "✓"; color: var(--success); font-weight: 800; }
.tier .btn { width: 100%; justify-content: center; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.step .num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* ---------- Founding CTA ---------- */
.founding {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; border-radius: 20px; padding: 52px; text-align: center;
  position: relative; overflow: hidden;
}
.founding::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 80% 0, rgba(56,189,248,0.2), transparent);
  pointer-events: none;
}
.founding h2 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.02em; }
.founding p { color: var(--on-dark-muted); max-width: 620px; margin: 0 auto 24px; font-size: 17px; }
.waitlist {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  position: relative; z-index: 1;
}
.waitlist input {
  flex: 1; padding: 13px 16px; border-radius: 10px; border: 0;
  font-size: 15px; background: rgba(255,255,255,0.95);
}
.waitlist input:focus { outline: 2px solid var(--electric); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy); color: var(--on-dark-muted); padding: 48px 0 32px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-grid a { color: var(--on-dark-muted); display: block; padding: 4px 0; font-size: 14px; }
.foot-grid a:hover { color: #fff; text-decoration: none; }
.foot-bar {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; font-size: 13px; color: #94a3b8;
}

/* ---------- Browse / Search ---------- */
.page { padding: 40px 0 80px; }
.page-head h1 { font-size: 32px; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin: 0 0 28px; }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px;
  margin-bottom: 28px; box-shadow: var(--shadow);
}
.filters input, .filters select {
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 14px; background: #fff;
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.grid-trainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card-trainer {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease; cursor: pointer;
  display: flex; flex-direction: column;
}
.card-trainer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-trainer .cover {
  height: 140px; background: linear-gradient(135deg, var(--navy-2), var(--blue));
  position: relative;
}
.card-trainer .avatar {
  position: absolute; bottom: -28px; left: 20px;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 4px solid #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--navy);
  box-shadow: var(--shadow);
}
.card-trainer .body { padding: 36px 20px 20px; }
.card-trainer h3 { margin: 0 0 2px; color: var(--navy); font-size: 17px; }
.card-trainer .spec { color: var(--blue); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.card-trainer .meta { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.card-trainer .rate { font-weight: 700; color: var(--navy); }
.badge-elite, .badge-pro, .badge-founding {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-elite { background: #fde68a; color: #78350f; }
.badge-pro { background: rgba(56,189,248,0.25); color: #e0f2fe; border: 1px solid rgba(56,189,248,0.6); }
.badge-founding { background: #fff; color: var(--navy); }

/* ---------- Trainer profile ---------- */
.profile-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; padding: 60px 0 80px; position: relative;
}
.profile-top { display: flex; gap: 28px; align-items: center; }
.profile-top .avatar-lg {
  width: 110px; height: 110px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 36px; color: var(--navy);
  flex-shrink: 0;
}
.profile-top h1 { margin: 0 0 4px; font-size: 32px; letter-spacing: -0.01em; }
.profile-top .spec { color: var(--electric); font-weight: 600; }
.profile-top .row { display: flex; gap: 18px; margin-top: 10px; color: var(--on-dark-muted); font-size: 14px; flex-wrap: wrap; }

.profile-body {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px;
  margin-top: -40px; padding-bottom: 80px;
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 10px; font-size: 20px; color: var(--navy); }
.panel h3 { color: var(--navy); font-size: 16px; margin: 20px 0 8px; }
.panel p { color: #334155; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
  background: #eff6ff; color: var(--blue); font-size: 13px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
}

.book-box .rate-big {
  font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em;
}
.book-box .rate-big small { color: var(--muted); font-size: 14px; font-weight: 500; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.slot {
  padding: 10px 8px; text-align: center; font-size: 13px; border-radius: 8px;
  border: 1px solid var(--line); cursor: pointer; background: #fff;
  transition: all .1s ease;
}
.slot:hover:not(.disabled) { border-color: var(--blue); color: var(--blue); }
.slot.disabled { color: var(--muted); background: #f1f5f9; cursor: not-allowed; text-decoration: line-through; }
.slot.selected { background: var(--navy); color: #fff; border-color: var(--navy); }

.day-tabs { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.day-tab {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px;
  cursor: pointer; background: #fff; font-weight: 600; color: var(--muted);
}
.day-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.review {
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; }
.review .who { font-weight: 700; color: var(--navy); }
.review .stars { color: var(--warn); font-size: 14px; margin-bottom: 4px; }
.review p { margin: 0; color: #334155; font-size: 14px; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.sidebar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; height: fit-content; position: sticky; top: 88px;
}
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500;
}
.sidebar a:hover { background: var(--bg); text-decoration: none; }
.sidebar a.active { background: var(--navy); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.stat .label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.stat .val { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.stat .delta { color: var(--success); font-size: 13px; font-weight: 600; }
.stat .delta.neg { color: #ef4444; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.bookings-table { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bookings-table .th, .bookings-table .tr {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 10px;
  padding: 14px 18px; align-items: center; font-size: 14px;
}
.bookings-table .th {
  background: #f8fafc; font-weight: 700; font-size: 12px; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.05em;
}
.bookings-table .tr { border-top: 1px solid var(--line); }
.bookings-table .tr .client { font-weight: 700; color: var(--navy); }
.status { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.status.confirmed { background: #dcfce7; color: #166534; }
.status.pending { background: #fef3c7; color: #854d0e; }
.status.completed { background: #e0e7ff; color: #3730a3; }

.upgrade-card {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-radius: 14px; padding: 24px;
}
.upgrade-card h3 { margin: 0 0 6px; }
.upgrade-card p { color: var(--on-dark-muted); font-size: 14px; margin: 0 0 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 20px;
  border-radius: 10px; box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .features, .tiers, .steps, .grid-trainers, .profile-body, .foot-grid, .dash-layout, .dash-grid, .stats {
    grid-template-columns: 1fr !important;
  }
  .filters { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.cta-only { display: flex; }
  section, .hero { padding: 48px 0; }
  .founding { padding: 32px 20px; }
  .sidebar { position: static; }
}
