:root {
  --orange:      #E5681A;
  --orange-dark: #C4560F;
  --orange-glow: rgba(229,104,26,.18);
  --bg:          #0D0D0D;
  --surface:     #161616;
  --surface2:    #1E1E1E;
  --surface3:    #272727;
  --text:        #F2F2F2;
  --text-muted:  #888888;
  --border:      #2A2A2A;
  --protein:     #22c55e;
  --carbs:       #f59e0b;
  --fat:         #ef4444;
  --radius:      14px;
  --radius-sm:   8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Header ── */
header.site-header {
  background: #111;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo img { height: 46px; width: auto; object-fit: contain; }
.logo-label { display: flex; flex-direction: column; line-height: 1; }
.logo-label .main {
  font-size: 1.05rem; font-weight: 900; letter-spacing: -.5px;
  color: var(--text); text-transform: uppercase;
}
.logo-label .sub {
  font-size: .65rem; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 1px;
}
.header-divider { width: 1px; height: 32px; background: var(--border); }
.spacer { flex: 1; }

nav.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; color: var(--text-muted);
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .88rem; font-weight: 600;
  transition: all .15s; letter-spacing: .2px;
  text-decoration: none;
}
.tab-btn:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.tab-btn.active { background: var(--orange); color: #fff; }

.user-pill {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem .75rem .3rem .35rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
}
.user-pill img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--orange);
}
.logout-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: .85rem; cursor: pointer; margin-left: .5rem;
}
.logout-btn:hover { color: var(--orange); }

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 2.25rem 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 2.25rem 1.5rem; }

/* ── Hero ── */
.section-hero { text-align: center; margin-bottom: 2.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--orange-glow); border: 1px solid var(--orange);
  color: var(--orange); font-size: .7rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 100px; margin-bottom: .85rem;
}
h1 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; margin-bottom: .5rem; }
h1 span.accent { color: var(--orange); }
.section-hero p.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .92rem; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); text-decoration: none; }
.btn-ghost { background: var(--surface2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface3); text-decoration: none; }
.btn-full { width: 100%; }

/* ── Inputs ── */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: .7rem .9rem;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* ── Tag / chip ── */
.chip {
  display: inline-block; padding: .2rem .65rem;
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 100px; font-size: .72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
}
.chip.orange { background: var(--orange-glow); border-color: var(--orange); color: var(--orange); }

/* ── Login page ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(229,104,26,.12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(229,104,26,.08), transparent 50%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
}
.login-card img.brand { height: 64px; margin: 0 auto 1rem; }
.login-card h1 { font-size: 1.5rem; }
.login-card p.sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.error-msg {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4);
  color: #ef4444; padding: .6rem .9rem; border-radius: var(--radius-sm);
  font-size: .85rem; margin-bottom: 1rem; text-align: left;
}
.login-hint {
  margin-top: 1.25rem; padding: .85rem; background: var(--surface2);
  border-radius: var(--radius-sm); font-size: .78rem;
  color: var(--text-muted); text-align: left;
}
.login-hint strong { color: var(--orange); }

/* ── Dashboard tiles ── */
.tile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.tile-grid .tile {
  flex: 0 0 calc((100% - 2.5rem) / 3);
}
@media (max-width: 860px) {
  .tile-grid .tile { flex: 0 0 calc((100% - 1.25rem) / 2); }
}
@media (max-width: 560px) {
  .tile-grid .tile { flex: 0 0 100%; }
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column; gap: .4rem;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.tile:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  text-decoration: none;
}
.tile .icon {
  font-size: 1.6rem;
  margin-bottom: .25rem;
}
.tile-img {
  margin: -1.25rem -1.25rem .75rem;
  height: 115px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
  position: relative;
}
.tile-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,13,13,.55) 0%,
    rgba(229,104,26,.12) 100%
  );
  pointer-events: none;
}
.tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.75) saturate(.7);
  transition: transform .45s ease, filter .45s ease;
}
.tile:hover .tile-img img {
  transform: scale(1.06);
  filter: brightness(.85) saturate(.85);
}
.tile h3 { font-size: 1rem; font-weight: 800; }
.tile p { color: var(--text-muted); font-size: .82rem; line-height: 1.55; }
.tile .arrow {
  position: absolute; right: 1rem; top: 1rem;
  color: var(--text-muted); transition: color .15s;
}
.tile:hover .arrow { color: var(--orange); }

/* ── Mifflin result ── */
.macro-result {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 1.5rem;
}
.macro-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; text-align: center;
}
.macro-box .val { font-size: 1.6rem; font-weight: 900; }
.macro-box .lbl { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: .2rem; }
.macro-box.protein .val { color: var(--protein); }
.macro-box.carbs .val { color: var(--carbs); }
.macro-box.fat .val { color: var(--fat); }
.kcal-display {
  text-align: center; margin-top: 1.5rem;
  padding: 1rem; background: var(--orange-glow);
  border: 1px solid var(--orange); border-radius: var(--radius);
}
.kcal-display .num { font-size: 2.4rem; font-weight: 900; color: var(--orange); }
.kcal-display .lbl { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── Recipe cards ── */
.recipe-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.recipe-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.recipe-card .img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--surface2); }
.recipe-card img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card .body { padding: 1rem 1.1rem 1.2rem; }
.recipe-card h3 { font-size: 1rem; }
.recipe-card .meta { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }

/* ── Modal ── */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
}
.modal .img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.modal .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal .body { padding: 1.5rem; }
.modal h2 { margin-bottom: .5rem; }
.modal .close {
  float: right; background: var(--surface2); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%; color: var(--text);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.modal h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--orange); margin-top: 1.25rem; margin-bottom: .5rem; }
.modal ul, .modal ol { padding-left: 1.25rem; margin-top: .25rem; }
.modal li { margin-bottom: .25rem; font-size: .95rem; }

/* ── Calendar / schedule ── */
.tabs {
  display: flex; gap: .25rem; margin-bottom: 1.5rem;
  background: var(--surface); padding: .35rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.tabs .tab {
  flex: 1; padding: .65rem 1rem; border: none; background: none;
  color: var(--text-muted); font-weight: 700; font-size: .9rem;
  border-radius: 6px; cursor: pointer; transition: all .15s;
}
.tabs .tab.active { background: var(--orange); color: #fff; }
.tabs .tab:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.day-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.day-row:last-child { border-bottom: none; }
.day-label {
  font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--orange); font-size: .85rem;
}
.class-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .65rem .85rem;
  margin-bottom: .5rem; display: flex; justify-content: space-between; align-items: center;
}
.class-item:last-child { margin-bottom: 0; }
.class-item .name { font-weight: 700; }
.class-item .time { color: var(--text-muted); font-size: .85rem; }

/* ── Training log ── */
.log-list { list-style: none; padding: 0; }
.log-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: .85rem 1rem; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}
.log-item .when { font-size: .8rem; color: var(--text-muted); }
.log-item .what { font-weight: 700; }
.log-item .duration { color: var(--orange); font-weight: 700; font-size: .9rem; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; text-align: center;
}
.stat-box .num { font-size: 1.8rem; font-weight: 900; color: var(--orange); }
.stat-box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-top: .25rem; }

/* ── Chat ── */
.chat-wrap {
  display: grid; grid-template-rows: 1fr auto;
  height: calc(100vh - 68px - 4.5rem);
  min-height: 500px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.chat-messages {
  overflow-y: auto; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.chat-msg { display: flex; gap: .75rem; }
.chat-msg .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--orange);
  flex-shrink: 0;
}
.chat-msg .bubble {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem; max-width: 75%;
}
.chat-msg .meta {
  display: flex; gap: .5rem; align-items: baseline;
  margin-bottom: .25rem; font-size: .8rem;
}
.chat-msg .name { font-weight: 800; color: var(--text); }
.chat-msg .age { color: var(--text-muted); font-size: .72rem; }
.chat-msg .time { color: var(--text-muted); font-size: .72rem; margin-left: auto; }
.chat-msg.own .bubble { background: var(--orange-glow); border-color: var(--orange); }
.chat-msg.own { flex-direction: row-reverse; }
.chat-msg.own .meta { flex-direction: row-reverse; }
.chat-msg.own .time { margin-left: 0; margin-right: auto; }

.chat-input {
  display: flex; gap: .5rem; padding: .85rem;
  border-top: 1px solid var(--border); background: var(--surface2);
}
.chat-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: .7rem .9rem; font-size: .95rem; font-family: inherit;
}
.chat-input input:focus { outline: none; border-color: var(--orange); }

/* ── Brand block ── */
.brand-block {
  text-align: center;
  margin: 4rem auto 1rem;
  opacity: .9;
}
.brand-block img {
  height: 140px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 32px rgba(229,104,26,.35));
}
.brand-block p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Row of 3 logos */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.brand-row .brand-main {
  height: 140px;
  filter: drop-shadow(0 0 32px rgba(229,104,26,.35));
}
.brand-row .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 110px;
  opacity: .75;
  transition: opacity .2s;
}
.brand-row .brand-logo:hover { opacity: 1; text-decoration: none; }
.brand-row .brand-logo img {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
  margin: 0;
}
.logo-fallback {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
  padding: .65rem 1.1rem;
  border: 2px solid var(--text-muted);
  border-radius: 8px;
}
@media (max-width: 600px) {
  .brand-row { gap: 1.5rem; }
  .brand-row .brand-main { height: 100px; }
  .brand-row .brand-logo img { height: 50px; }
  .logo-fallback { font-size: 1.1rem; padding: .45rem .8rem; }
}

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: 3rem;
}

/* ── Misc ── */
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }

/* ── User pill as link ── */
a.user-pill { text-decoration: none; cursor: pointer; }
a.user-pill:hover { border-color: var(--orange); text-decoration: none; }

/* ── Profile page ── */
.profile-hero {
  display: flex; align-items: center; gap: 2rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.profile-avatar-wrap {
  position: relative; flex-shrink: 0;
}
.profile-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  display: block;
}
.avatar-edit-btn {
  position: absolute; bottom: 2px; right: 2px;
  background: var(--orange); border: 2px solid var(--bg);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
  transition: background .15s;
}
.avatar-edit-btn:hover { background: var(--orange-dark); }
#avatarInput { display: none; }
.profile-hero-text h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: .2rem; }
.profile-hero-text .role-badge {
  display: inline-block; background: var(--orange-glow);
  border: 1px solid var(--orange); color: var(--orange);
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; padding: .2rem .65rem; border-radius: 100px;
}
.profile-section { margin-bottom: 2rem; }
.profile-section h3 {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--orange);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.save-bar {
  position: sticky; bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 1.5rem 0 1rem;
  display: flex; gap: 1rem; align-items: center;
  margin-top: 2rem;
}
.save-toast {
  display: none; align-items: center; gap: .5rem;
  color: #22c55e; font-size: .88rem; font-weight: 700;
}
.save-toast.show { display: flex; }

/* ══════════════════════════════════════════════
   TRAINING PAGES (Hyrox / CrossFit / Styrke)
══════════════════════════════════════════════ */

/* Hero with image bg */
.training-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.training-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.45);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.training-hero:hover .training-hero-bg { transform: scale(1); }
.training-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,13,.92) 0%,
    rgba(13,13,13,.55) 60%,
    rgba(13,13,13,.75) 100%
  );
  z-index: 1;
}
.training-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}
.training-hero-content .badge { margin-bottom: 1.25rem; font-size: .75rem; }
.training-hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.training-hero-content .lead {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(242,242,242,.8);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(229,104,26,.3);
}
.hero-stat .num {
  font-size: 2.6rem; font-weight: 900; color: var(--orange); line-height: 1;
}
.hero-stat .lbl {
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(242,242,242,.55);
  margin-top: .3rem;
}

/* Sections */
.t-section { padding: 5rem 0; }
.t-section-dark { background: var(--surface); }
.t-section-alt  { background: #111; }
.section-title  { text-align: center; margin-bottom: 3rem; }
.section-title .badge { margin-bottom: .75rem; }
.section-title h2 {
  font-size: 2.1rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: .5rem;
}
.section-title p {
  color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: 1rem; line-height: 1.65;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .25s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.feature-card .f-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .5rem; }
.feature-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* Pillar layout */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
}
.pillar-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.pillar-img { height: 200px; overflow: hidden; background: var(--surface2); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pillar-card:hover .pillar-img img { transform: scale(1.05); }
.pillar-body { padding: 1.5rem; }
.pillar-body .pillar-label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--orange); margin-bottom: .5rem;
}
.pillar-body h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: .6rem; }
.pillar-body p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .85rem; }
.pillar-body ul { list-style: none; padding: 0; }
.pillar-body ul li {
  padding: .25rem 0; font-size: .85rem; color: var(--text-muted);
  display: flex; gap: .5rem;
}
.pillar-body ul li::before { content: "→"; color: var(--orange); flex-shrink: 0; }

/* HYROX stations */
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
}
.station-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem 1.2rem;
  text-align: center;
  position: relative;
  transition: all .2s;
}
.station-card:hover { border-color: var(--orange); }
.station-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.station-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.station-name { font-weight: 800; font-size: .95rem; }
.station-detail { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }

/* Race format illustration */
.race-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  justify-content: center; padding: 2rem 0;
}
.race-step {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.race-step .rs-icon { font-size: 1.5rem; }
.race-step .rs-label { font-size: .7rem; font-weight: 700; color: var(--text-muted); }
.race-arrow { color: var(--orange); font-size: 1.2rem; padding-bottom: 1rem; }

/* Split section */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 {
  font-size: 2rem; font-weight: 900; letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.split-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex; gap: .75rem; padding: .4rem 0;
  font-size: .92rem; align-items: baseline;
}
.check-list li::before { content: "✓"; color: var(--orange); font-weight: 900; flex-shrink: 0; }

/* Equipment grid */
.eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.eq-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  transition: border-color .15s;
}
.eq-card:hover { border-color: var(--orange); }
.eq-icon { font-size: 1.8rem; flex-shrink: 0; }
.eq-name { font-weight: 700; font-size: .95rem; }
.eq-sub  { font-size: .78rem; color: var(--text-muted); }

/* Video embed */
.video-embed-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.video-embed-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(229,104,26,.15) 0%, rgba(229,104,26,.04) 100%);
  border: 1px solid rgba(229,104,26,.25);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-band h2 { font-size: 2rem; font-weight: 900; margin-bottom: .75rem; }
.cta-band p  { color: var(--text-muted); max-width: 460px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.65; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Timeline */
.timeline { position: relative; max-width: 640px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute;
  left: 20px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}
.timeline-item { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.timeline-dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .88rem; color: var(--orange);
  flex-shrink: 0; margin-top: .05rem;
}
.timeline-content h4 { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; }
.timeline-content p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* Numbers band */
.numbers-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.number-item {
  padding: 2rem; text-align: center;
  border-right: 1px solid var(--border);
}
.number-item:last-child { border-right: none; }
.number-item .big { font-size: 2.8rem; font-weight: 900; color: var(--orange); line-height: 1; }
.number-item .small { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: .4rem; }

/* Responsive */
@media (max-width: 768px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .numbers-band { grid-template-columns: 1fr 1fr; }
  .numbers-band .number-item:nth-child(2n) { border-right: none; }
  .numbers-band .number-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .t-section { padding: 3rem 0; }
  .hero-stats { gap: 1.5rem; }
}
