/* =========================================================
   TRAIN WITH KD — clean & modern
   ========================================================= */

:root {
  --bg: #0b0b0e;
  --surface: #131318;
  --surface-2: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #a0a0aa;
  --muted-2: #7a7a84;
  --accent: #ffc400;
  --accent-soft: rgba(255, 196, 0, 0.12);
  --wa: #25d366;
  --container: 1160px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #15130a; }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.accent { color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient background effect ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-blob { position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform; }
.fx-1 { width: 52vw; height: 52vw; max-width: 640px; max-height: 640px; top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.11), transparent 70%); animation: drift1 26s ease-in-out infinite; }
.fx-2 { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; bottom: -14%; right: -8%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.07), transparent 70%); animation: drift2 32s ease-in-out infinite; }
.fx-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, 60px) scale(1.08); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, -40px) scale(1.12); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.97rem; cursor: pointer;
  border: 1px solid transparent; border-radius: 100px; padding: 13px 24px; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn svg { flex-shrink: 0; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #15130a; box-shadow: 0 8px 24px -10px rgba(255, 196, 0, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 196, 0, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--text); background: rgba(255, 255, 255, 0.07); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(11, 11, 14, 0.8); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 40px; width: auto; border-radius: 9px; background: rgba(255, 255, 255, 0.95); padding: 4px 8px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; }
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 900px; height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255, 196, 0, 0.10), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 100px; padding: 7px 15px; background: rgba(255, 255, 255, 0.02); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 8px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); margin: 22px 0 0; }
.hero-lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); margin-top: 22px; max-width: 540px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-badge { position: absolute; left: -22px; bottom: 30px; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); }
.hero-badge-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-badge-label { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }

/* ---------- Stats ---------- */
.stats { padding: 16px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 24px; background: var(--surface); }
.stat { text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--text); display: block; letter-spacing: -0.02em; }
.stat-label { font-size: 0.86rem; color: var(--muted); margin-top: 4px; display: block; }

/* ---------- Section base ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012), transparent); }
.section-head { max-width: 640px; margin: 0 auto clamp(44px, 6vw, 64px); text-align: center; }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-sub { color: var(--muted); margin-top: 16px; font-size: clamp(1rem, 2vw, 1.1rem); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.feature-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(255, 196, 0, 0.2); margin-bottom: 20px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  cursor: pointer; padding: 0; aspect-ratio: 1/1; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.shot::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); border-radius: var(--radius); transition: background 0.3s; }
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { background: rgba(255, 196, 0, 0.06); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  position: relative; transition: transform 0.3s var(--ease), border-color 0.3s; }
.step:hover { transform: translateY(-4px); border-color: var(--border-2); }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--accent);
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 18px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 26px; position: relative; transition: transform 0.3s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-5px); border-color: var(--border-2); }
.plan-featured { border-color: rgba(255, 196, 0, 0.45); background: linear-gradient(180deg, rgba(255,196,0,0.06), var(--surface));
  box-shadow: 0 30px 60px -30px rgba(255, 196, 0, 0.35); }
.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent); color: #15130a; padding: 6px 14px; border-radius: 100px; white-space: nowrap; }
.plan-dur { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.plan-name { font-size: 1.5rem; margin-top: 6px; }
.plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.3rem; font-weight: 700; margin: 16px 0 4px; letter-spacing: -0.02em; }
.plan-price .cur { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.plan-desc { color: var(--muted); font-size: 0.92rem; min-height: 42px; }
.plan-list { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex-grow: 1; }
.plan-list li { position: relative; padding-left: 26px; font-size: 0.93rem; color: #d8d8dd; }
.plan-list li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.includes { margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px;
  background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.includes-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; }
.includes-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.includes-list span { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.includes-list svg { color: var(--accent); flex-shrink: 0; }

/* ---------- TikTok rail ---------- */
.tiktok-rail-wrap { margin-top: 8px; }
.tiktok-rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tiktok-handle { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.tiktok-handle:hover { color: var(--accent); }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text); transition: all 0.2s var(--ease); }
.rail-btn:hover { background: var(--accent); color: #15130a; border-color: var(--accent); }
.rail-btn:disabled { opacity: 0.3; cursor: default; background: var(--surface); color: var(--text); border-color: var(--border-2); }
.tiktok-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 10px; }
.tiktok-rail::-webkit-scrollbar { display: none; }
.tt-card { flex: 0 0 auto; width: 325px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); }
.tt-card .tiktok-embed { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; }
.tt-card iframe { border-radius: var(--radius) !important; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.quote .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 1.05rem; line-height: 1.6; }
.quote cite { display: block; margin-top: 18px; color: var(--muted); font-style: normal; font-weight: 600; font-size: 0.92rem; }

/* ---------- Footer (with CTA) ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); margin-top: clamp(20px, 4vw, 40px);
  padding: clamp(56px, 8vw, 96px) 0 calc(110px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 196, 0, 0.06), transparent 60%); }

.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-cta-text { max-width: 600px; }
.footer-cta-text h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 12px 0 14px; }
.footer-cta-text p { color: var(--muted); font-size: 1.02rem; }
.footer-cta-btn { flex-shrink: 0; }

.footer-divider { height: 1px; background: var(--border); margin: clamp(40px, 6vw, 64px) 0; }

.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-brand .footer-logo { height: 46px; width: auto; border-radius: 10px; background: rgba(255, 255, 255, 0.95); padding: 5px 10px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--border-2); transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.footer-col { display: flex; flex-direction: column; }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; padding: 7px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--border); }
.footer-copy { color: var(--muted-2); font-size: 0.85rem; }
.footer-tag { font-family: 'Space Grotesk', sans-serif; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.footer-credit { text-align: center; color: var(--muted-2); font-size: 0.83rem; margin-top: 22px; }
.footer-credit a { color: var(--muted); font-weight: 600; transition: color 0.2s; border-bottom: 1px solid transparent; }
.footer-credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-credit .heart { color: #ff4d4d; display: inline-block; animation: heartbeat 1.8s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }

/* ---------- Mobile bottom nav ---------- */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; display: none; align-items: center; justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(13, 13, 17, 0.85); backdrop-filter: blur(20px) saturate(160%); border-top: 1px solid var(--border); }
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.66rem; font-weight: 600; color: var(--muted); padding: 6px 10px; flex: 1; transition: color 0.2s; }
.bn-item.active { color: var(--accent); }
.bn-cta { color: var(--text); }
.bn-ring { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #15130a;
  background: var(--accent); box-shadow: 0 8px 22px -6px rgba(255, 196, 0, 0.7); border: 4px solid var(--bg); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 6, 8, 0.92); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(92vw, 720px); max-height: 86vh; border-radius: var(--radius); border: 1px solid var(--border-2); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 440px; margin: 0 auto; width: 100%; }
  .feature-grid, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .bottomnav { display: flex; }
  .header-inner { height: 64px; }
  .hero { padding-top: 120px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 560px) {
  .feature-grid, .steps, .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .includes-list { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
  .nav-cta { display: none; }
}
@media (min-width: 721px) { .nav-cta { display: inline-flex; } }

@media (max-width: 860px) {
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
