/* ==========================================================================
   IRONVAULT — design system
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #121216;
  --surface-2: #18181d;
  --surface-3: #202027;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f4;
  --muted: #a1a1aa;
  --faint: #6b6b74;
  --accent: #d7ff3a;
  --accent-2: #b8e600;
  --accent-ink: #0b0b0b;
  --accent-glow: rgba(215, 255, 58, 0.35);
  --ok: #3ddc97;
  --warn: #ffb547;
  --danger: #ff5d5d;

  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film-grain overlay for a tactile, premium feel */
.grain::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(40px, 6vw, 84px); }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 560px; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px var(--accent-glow); }
.btn-primary:hover { background: #e4ff6e; box-shadow: 0 14px 50px -8px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; letter-spacing: 0.12em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-auth { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Avatar + profile dropdown */
.profile { position: relative; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), #8fd400);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(215, 255, 58, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.avatar:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 260px; padding: 8px;
  background: rgba(20, 20, 24, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.profile.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head strong { display: block; font-size: 15px; }
.dropdown-head span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: 10px; font-size: 14px; text-align: left;
  color: var(--muted); transition: background 0.2s, color 0.2s;
}
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); color: var(--text); }
.dropdown svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .photo { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.5; filter: grayscale(0.35) contrast(1.08); }
.hero-bg .photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 10, 0.88) 38%, rgba(8, 8, 10, 0.45) 72%, rgba(8, 8, 10, 0.7) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.auth-art .hero-bg .photo { opacity: 0.55; filter: grayscale(1) contrast(1.1); }
.auth-art .hero-bg .photo::after { background: linear-gradient(0deg, var(--bg-2) 5%, rgba(13, 13, 16, 0.55) 55%, rgba(13, 13, 16, 0.8) 100%); }
.hero-bg .glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: float 14s ease-in-out infinite;
}
.hero-bg .glow-1 { width: 620px; height: 620px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(215, 255, 58, 0.28), transparent 65%); }
.hero-bg .glow-2 { width: 520px; height: 520px; left: -200px; bottom: -200px; background: radial-gradient(circle, rgba(120, 90, 255, 0.18), transparent 65%); animation-delay: -6s; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.6;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }

.hero-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(64px, 11.5vw, 176px); margin: 22px 0 28px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-stats { display: flex; gap: clamp(24px, 5vw, 56px); margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 400; line-height: 1; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* Rotating badge visual */
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; }
.hero-visual .ring-text { position: absolute; inset: 0; animation: rotate 28s linear infinite; }
.hero-visual .ring-text text { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.38em; fill: var(--text); text-transform: uppercase; }
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-visual .core {
  position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a2a31, #0e0e11 70%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 30px rgba(255, 255, 255, 0.05), 0 40px 100px -20px rgba(215, 255, 58, 0.25);
}
.hero-visual .core::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(215, 255, 58, 0.35); animation: rotate 40s linear infinite reverse; }
.hero-visual .core-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: grayscale(0.2) contrast(1.1); }
.hero-visual .core-photo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, transparent 45%, rgba(8, 8, 10, 0.55)); box-shadow: inset 0 0 0 1px rgba(215, 255, 58, 0.25); }
.hero-visual .core svg { width: 46%; color: var(--accent); filter: drop-shadow(0 0 30px var(--accent-glow)); }
.hero-visual .pulse { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 3.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(22, 22, 27, 0.94); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 13px; animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 15px; }
.float-card small { color: var(--muted); }
.float-card .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(215, 255, 58, 0.12); color: var(--accent); }
.float-card .dot svg { width: 18px; height: 18px; }
.float-card.fc-1 { left: -6%; bottom: 14%; }
.float-card.fc-2 { right: -4%; top: 10%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.25em; color: var(--faint); text-transform: uppercase; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee-clip { overflow: hidden; padding: 24px 0; margin: -24px 0; position: relative; z-index: 2; }
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: 0 -20px; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: '✦'; font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(44px, 6vw, 72px); flex-wrap: wrap; }
.section-head .display { margin-top: 18px; }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.program {
  position: relative; overflow: hidden;
  min-height: 340px; padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.5s var(--ease), border-color 0.4s;
  isolation: isolate;
}
.program:nth-child(1) { grid-column: span 7; }
.program:nth-child(2) { grid-column: span 5; }
.program:nth-child(3) { grid-column: span 4; }
.program:nth-child(4) { grid-column: span 4; }
.program:nth-child(5) { grid-column: span 4; }
.program-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: 0.7; filter: grayscale(0.35); transition: transform 0.9s var(--ease), opacity 0.5s, filter 0.5s; }
.program:hover .program-img { transform: scale(1.06); opacity: 0.9; filter: grayscale(0); }
.program::after { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(14, 14, 17, 0.2) 0%, rgba(14, 14, 17, 0.55) 45%, rgba(14, 14, 17, 0.95) 85%); }
.program::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 0%), rgba(215, 255, 58, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.program:hover { transform: translateY(-6px); border-color: rgba(215, 255, 58, 0.35); }
.program:hover::before { opacity: 1; }
.program .num { font-family: var(--font-display); font-size: 15px; color: var(--faint); letter-spacing: 0.1em; }
.program .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(32, 32, 39, 0.8); backdrop-filter: blur(8px); color: var(--accent); margin-bottom: auto; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.program:hover .icon { background: var(--accent); color: var(--accent-ink); transform: rotate(-8deg); }
.program .icon svg { width: 26px; height: 26px; }
.program-top { display: flex; justify-content: space-between; align-items: start; }
.program h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; margin: 26px 0 10px; line-height: 1; }
.program p { color: var(--muted); margin: 0; font-size: 15px; max-width: 420px; }
.program .tag { display: inline-block; margin-top: 18px; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.program .tag.pt { border-color: rgba(215, 255, 58, 0.4); color: var(--accent); }
.program .bg-word { position: absolute; right: -10px; bottom: -30px; font-family: var(--font-display); font-size: 150px; line-height: 1; color: rgba(255, 255, 255, 0.025); z-index: -1; pointer-events: none; }

/* Why / features strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 44px 30px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature strong { display: block; font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px); font-weight: 400; line-height: 1; color: var(--accent); }
.feature span { color: var(--muted); font-size: 14px; }

/* Facility gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, 0.55), transparent 45%); pointer-events: none; }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(8, 8, 10, 0.65); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.price-card {
  position: relative; padding: 34px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.price-card.featured { background: linear-gradient(180deg, rgba(215, 255, 58, 0.1), var(--surface) 55%); border-color: rgba(215, 255, 58, 0.45); }
.price-card .badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card .kind { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.price-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; text-transform: uppercase; margin: 8px 0 18px; line-height: 1; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.price strong { font-family: var(--font-display); font-size: 52px; font-weight: 400; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.price-card li { display: flex; gap: 10px; align-items: start; }
.price-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.pricing-note { margin-top: 22px; font-size: 13px; color: var(--faint); text-align: center; }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coach { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--line); isolation: isolate; }
.coach .portrait { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; transition: transform 0.7s var(--ease); }
.coach:hover .portrait { transform: scale(1.06); }
.coach .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.coach:hover .portrait img { filter: grayscale(0); }
.coach .portrait span { font-family: var(--font-display); font-size: 140px; color: rgba(255, 255, 255, 0.07); line-height: 1; }
.coach:nth-child(1) .portrait { background: radial-gradient(circle at 30% 20%, #3a4a12, #121216 70%); }
.coach:nth-child(2) .portrait { background: radial-gradient(circle at 70% 20%, #3b2350, #121216 70%); }
.coach:nth-child(3) .portrait { background: radial-gradient(circle at 30% 30%, #4a2a12, #121216 70%); }
.coach:nth-child(4) .portrait { background: radial-gradient(circle at 70% 30%, #123a40, #121216 70%); }
.coach .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.coach h4 { font-family: var(--font-display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 0; line-height: 1.05; }
.coach p { margin: 4px 0 0; font-size: 13px; color: var(--accent); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.quote .stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.quote figcaption .mini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 700; font-size: 13px; }
.quote figcaption small { display: block; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px); background: var(--accent); color: var(--accent-ink); isolation: isolate; }
.cta-band::before { content: 'IRONVAULT'; position: absolute; right: -2%; bottom: -12%; font-family: var(--font-display); font-size: clamp(120px, 22vw, 300px); line-height: 1; color: rgba(0, 0, 0, 0.07); z-index: -1; }
.cta-band h2 { font-size: clamp(44px, 7vw, 100px); max-width: 900px; }
.cta-band p { max-width: 520px; font-size: 17px; margin: 22px 0 34px; opacity: 0.75; }
.cta-band .btn-dark { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-dark:hover { background: #222; }

/* Footer */
.site-footer { padding: 80px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(90px, 12vw, 160px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { margin: 0 0 16px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 54px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--bg-2); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(215, 255, 58, 0.12); background: var(--surface); }
.input-wrap .toggle-pw { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px; border-radius: 10px; font-size: 12px; color: var(--muted); }
.input-wrap .toggle-pw:hover { color: var(--text); background: var(--surface-3); }
.form-error { min-height: 22px; font-size: 14px; color: var(--danger); margin: 4px 0 12px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background 0.3s; }

/* ---------- Auth page ---------- */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2); border-right: 1px solid var(--line); isolation: isolate; }
.auth-art .hero-bg { z-index: -1; }
.auth-art h2 { font-size: clamp(56px, 7vw, 110px); }
.auth-art p { color: var(--muted); max-width: 400px; }
.auth-panel { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 46px; text-transform: uppercase; line-height: 1; margin: 0 0 10px; }
.auth-card .sub { color: var(--muted); margin: 0 0 32px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 32px; position: relative; }
.tabs button { position: relative; z-index: 1; height: 42px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.tabs button.active { color: var(--accent-ink); }
.tabs .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--accent); transition: transform 0.45s var(--ease); }
.tabs[data-active='signup'] .pill { transform: translateX(100%); }
.auth-step { animation: fadeUp 0.6s var(--ease); }
.auth-step[hidden] { display: none; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot button { color: var(--accent); font-weight: 600; }

.otp-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 8px 0 6px; }
.otp-inputs input {
  width: 100%; aspect-ratio: 1 / 1.15; text-align: center;
  font-family: var(--font-display); font-size: 30px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-2); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.otp-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(215, 255, 58, 0.12); transform: translateY(-2px); }
.otp-inputs.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.otp-email { color: var(--text); font-weight: 600; word-break: break-all; }
.demo-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; background: rgba(255, 181, 71, 0.08); border: 1px dashed rgba(255, 181, 71, 0.45); color: var(--warn); }
.demo-note strong { color: var(--text); }
.demo-note code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: 0.25em; color: var(--text); }
.otp-hint { margin: 16px 0 0; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: rgba(24, 24, 29, 0.96); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 14px; backdrop-filter: blur(12px); animation: toastIn 0.45s var(--ease); }
.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
.toast i { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--accent); }
.toast.error i { background: var(--danger); }
.toast.success i { background: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: translateY(20px) scale(0.97); transition: transform 0.4s var(--ease); }
.modal.wide { max-width: 680px; }
.modal-backdrop.open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 22px; }
.modal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; text-transform: uppercase; margin: 0; line-height: 1.05; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); flex: none; }
.modal-close:hover { background: var(--surface-3); }
.modal-close svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pricing { grid-template-columns: 1fr 1fr; }
  .coaches { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px;
    background: rgba(8, 8, 10, 0.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  .nav-links a::after { display: none; }
  .site-header.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .site-header.menu-open { background: rgba(8, 8, 10, 0.97); }
  .nav-toggle { display: grid; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 340px; margin-top: 20px; }
  .programs { grid-template-columns: 1fr; }
  .program:nth-child(n) { grid-column: auto; min-height: 280px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .quotes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery figure:first-child { grid-row: span 1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 600px) {
  .nav-auth .btn-ghost { display: none; }
  .pricing, .coaches { grid-template-columns: 1fr; }
  .coach { aspect-ratio: 4 / 3; }
  .hero-stats { gap: 22px; }
  .float-card.fc-1 { left: -2%; }
  .float-card.fc-2 { right: -2%; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature { padding: 30px 18px; }
  .otp-inputs { gap: 7px; }
  .otp-inputs input { font-size: 24px; }
}
