/* ============================================
   FISCHERLABS — styles.css
   Dark premium aesthetic. Linear/Levels inspired.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b0f;
  --bg-2: #0d1117;
  --bg-3: #111720;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0f4f8;
  --text-2: #8b96a7;
  --text-3: #5a6472;
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --green-glow: rgba(34,197,94,0.25);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245,158,11,0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --purple: #8b5cf6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
p { color: var(--text-2); line-height: 1.75; }

.gradient-text {
  background: linear-gradient(135deg, #22c55e 0%, #86efac 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,11,15,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-text { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none; font-family: inherit;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary {
  background: var(--green); color: #000;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-primary:hover {
  background: #16a34a;
  box-shadow: 0 0 32px rgba(34,197,94,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-2); background: transparent;
}
.btn-ghost:hover { color: var(--text); }
.btn-sm.btn { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }
.btn-sm.btn:hover { background: rgba(255,255,255,0.14); }

/* ---- BADGE ---- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-dim); border: 1px solid rgba(34,197,94,0.2);
  color: var(--green); font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ---- SECTION LABELS ---- */
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.section-label.light { color: rgba(34,197,94,0.7); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 48px;
  color: var(--text);
}
.section-title em {
  font-style: italic; font-family: 'DM Serif Display', serif;
  color: var(--green);
}

/* ---- HERO ---- */
.hero {
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center top, rgba(34,197,94,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.4;
}
.hero-headline { margin-bottom: 24px; }
.hero-sub {
  font-size: 1.15rem; max-width: 600px; margin: 0 auto 36px;
  color: var(--text-2);
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.hero-social-proof {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-3); font-size: 0.85rem;
}
.proof-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.proof-tags span {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; color: var(--text-2);
}

/* ---- MOCKUP ---- */
.hero-mockup {
  margin-top: 72px;
  position: relative;
}
.hero-mockup::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 1;
}
.mockup-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 820px; margin: 0 auto;
}
.mockup-header {
  background: var(--bg-3); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c941; }
.mockup-title { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }
.mockup-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.client-row {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.2s;
}
.client-row.active { border-color: rgba(34,197,94,0.25); }
.client-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: white; flex-shrink: 0;
}
.client-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.client-info { flex: 1; min-width: 0; text-align: left; }
.client-name { font-size: 0.88rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.client-sub { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.client-tag {
  font-size: 0.65rem; background: var(--green-dim); color: var(--green);
  padding: 2px 7px; border-radius: 100px; font-weight: 600;
}
.client-tag.athlete { background: rgba(139,92,246,0.15); color: var(--purple); }
.client-metrics { display: flex; gap: 20px; }
.metric { text-align: center; }
.metric-val { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.metric-val.green { color: var(--green); }
.metric-val.yellow { color: var(--yellow); }
.metric-label { font-size: 0.65rem; color: var(--text-3); margin-top: 2px; }
.action-btn {
  font-size: 0.75rem; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer; font-family: inherit; font-weight: 500;
  white-space: nowrap;
}
.action-btn.approved { border-color: rgba(34,197,94,0.3); color: var(--green); background: var(--green-dim); }

.insight-bar {
  background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  text-align: left;
}
.insight-icon { font-size: 1rem; flex-shrink: 0; }
.insight-text { font-size: 0.78rem; color: var(--text-2); flex: 1; }
.insight-send {
  font-size: 0.75rem; color: var(--green); background: transparent;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  white-space: nowrap;
}

/* ---- LOGO STACK ---- */
.logo-stack { display: flex; flex-direction: column; line-height: 1; }
.logo-by { font-size: 0.62rem; color: var(--text-3); font-weight: 500; letter-spacing: 0.02em; }

/* ---- HERO COMPARE ---- */
.hero-compare {
  display: flex; align-items: stretch; gap: 0;
  max-width: 700px; margin: 0 auto 56px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.compare-item { flex: 1; padding: 24px; }
.compare-item.before { background: rgba(239,68,68,0.05); border-right: 1px solid var(--border); }
.compare-item.after { background: rgba(34,197,94,0.05); }
.compare-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.compare-item.before .compare-label { color: var(--red); }
.compare-item.after .compare-label { color: var(--green); }
.compare-steps { display: flex; flex-direction: column; gap: 8px; }
.compare-step {
  font-size: 0.82rem; padding: 7px 10px; border-radius: 8px;
  font-weight: 500;
}
.compare-step.bad { background: rgba(239,68,68,0.08); color: var(--text-2); }
.compare-step.good { background: rgba(34,197,94,0.08); color: var(--text-2); }
.compare-arrow {
  display: flex; align-items: center; padding: 0 16px;
  color: var(--text-3); font-size: 1.2rem;
  background: rgba(255,255,255,0.02);
}

/* ---- VS SECTION ---- */
.vs-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vs-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: start; max-width: 900px; margin: 0 auto;
}
.vs-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.vs-card.provision {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
}
.vs-icon { font-size: 1.8rem; margin-bottom: 12px; }
.vs-name {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin-bottom: 20px; line-height: 1.3;
}
.vs-name span { font-size: 0.8rem; color: var(--text-3); font-weight: 400; }
.vs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vs-list li { font-size: 0.88rem; color: var(--text-2); display: flex; align-items: flex-start; gap: 8px; }
.vs-list.bad li::before { content: '✗'; color: var(--red); flex-shrink: 0; font-weight: 700; }
.vs-list.good li::before { content: '✓'; color: var(--green); flex-shrink: 0; font-weight: 700; }
.vs-list li em { color: var(--text); font-style: normal; font-weight: 500; }
.vs-middle { display: flex; align-items: center; justify-content: center; padding-top: 80px; }
.vs-versus {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-3);
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 12px;
}

/* ---- INTEGRATIONS NOTE ---- */
.integrations-note {
  text-align: center; font-size: 0.8rem; color: var(--text-3);
  margin-top: 20px; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 0 60px;
}
.problem .section-title { margin-bottom: 24px; }
.problem-intro {
  font-size: 1.05rem; color: var(--text-2); max-width: 640px;
  line-height: 1.8;
}

/* ---- HOW ---- */
.how { padding: 120px 0; }
.steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px;
  align-items: start; margin-top: 0;
}
.step {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative;
}
.step-number {
  font-size: 0.75rem; font-weight: 800; color: var(--green);
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step h3 { color: var(--text); margin-bottom: 12px; }
.step-arrow {
  color: var(--text-3); font-size: 1.5rem; align-self: center;
  padding-top: 32px;
}

/* ---- FEATURES ---- */
.features { padding: 120px 0; background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-card.large { grid-column: span 2; }
.feature-icon { font-size: 1.6rem; margin-bottom: 16px; }
.feature-icon-large { font-size: 2.2rem; margin-bottom: 20px; }
.feature-card h3 { color: var(--text); margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; }

.macro-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  font-size: 0.8rem;
}
.macro-label { color: var(--text-2); width: 56px; flex-shrink: 0; }
.macro-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 100px; overflow: hidden;
}
.macro-fill {
  height: 100%; border-radius: 100px;
  transition: width 1.5s ease;
}
.macro-fill.green { background: var(--green); }
.macro-fill.blue { background: var(--blue); }
.macro-fill.yellow { background: var(--yellow); }
.macro-pct { color: var(--text-3); width: 80px; flex-shrink: 0; text-align: right; }

.protocol-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ptag {
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
  border-radius: 100px; border: 1px solid;
}
.ptag.green { background: var(--green-dim); border-color: rgba(34,197,94,0.25); color: var(--green); }
.ptag.red { background: var(--red-dim); border-color: rgba(239,68,68,0.25); color: var(--red); }
.ptag.yellow { background: var(--yellow-dim); border-color: rgba(245,158,11,0.25); color: var(--yellow); }

/* ---- FOR COACHES ---- */
.for-coaches { padding: 120px 0; }
.coaches-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.section-title-left {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 24px; color: var(--text);
  letter-spacing: -0.04em; font-weight: 800; line-height: 1.1;
}
.coaches-left > p { margin-bottom: 36px; }
.coach-benefits { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.coach-benefits li { display: flex; gap: 16px; align-items: flex-start; }
.cb-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.coach-benefits strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.coach-benefits span { font-size: 0.88rem; color: var(--text-2); }

.quote-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
  position: relative;
}
.quote-mark {
  font-size: 4rem; line-height: 1; color: var(--green); opacity: 0.4;
  font-family: 'DM Serif Display', serif; position: absolute; top: 16px; left: 24px;
}
.quote-text {
  font-size: 1rem; color: var(--text); line-height: 1.7;
  margin-bottom: 24px; padding-top: 20px;
}
.quote-author { display: flex; align-items: center; gap: 12px; }
.qa-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: white; flex-shrink: 0;
}
.qa-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.qa-title { font-size: 0.78rem; color: var(--text-3); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 16px; text-align: center;
}
.stat-val { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.stat-label { font-size: 0.75rem; color: var(--text-3); line-height: 1.4; }

/* ---- INTEGRATIONS ---- */
.integrations { padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.integrations-sub { text-align: center; margin-bottom: 32px; font-size: 0.9rem; }
.integration-logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.integration-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: 100px;
  font-size: 0.88rem; color: var(--text-2); font-weight: 500;
  transition: border-color 0.2s;
}
.integration-pill:hover { border-color: var(--border-hover); }
.integration-pill.coming { opacity: 0.5; }
.integration-pill.coming span { font-size: 1rem; }

/* ---- WAITLIST ---- */
.waitlist {
  padding: 140px 0;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.08) 0%, transparent 65%), var(--bg);
}
.waitlist-inner {
  max-width: 580px; margin: 0 auto; text-align: center;
}
.waitlist-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.waitlist-sub { margin-bottom: 40px; font-size: 1rem; }
.waitlist-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.waitlist-form input {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
  width: 100%;
}
.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form input:focus { border-color: rgba(34,197,94,0.4); }
.waitlist-note { font-size: 0.8rem; color: var(--text-3); margin-top: 14px; }

/* ---- FOOTER ---- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 0.82rem; color: var(--text-3); }

/* ---- ANIMATIONS ---- */
.animate-fade-up {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.animate-slide-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-slide-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-compare { flex-direction: column; }
  .compare-arrow { display: none; }
  .vs-inner { grid-template-columns: 1fr; }
  .vs-middle { padding-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.large { grid-column: span 2; }
  .coaches-inner { grid-template-columns: 1fr; gap: 48px; }
  .stat-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .client-metrics { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.large { grid-column: span 1; }
  h1 { font-size: 2.4rem; }
}
