/*
Theme Name: InnerGenius
Theme URI: https://innergenius.de
Author: InnerGenius
Description: Custom premium landing page theme for InnerGenius.
Version: 1.0.0
License: Proprietary
Text Domain: innergenius
*/

/* ============ Design tokens ============ */
:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --accent: #6b7cff;
  --accent-2: #8d6bff;
  --accent-grad: linear-gradient(135deg, #6b7cff 0%, #8d6bff 100%);
  --text: #111111;
  --text-2: #666666;
  --success: #20c997;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 8px 30px rgba(17, 17, 17, 0.06);
  --shadow-lift: 0 18px 50px rgba(17, 17, 17, 0.12);
  --maxw: 1160px;
  --nav-h: 76px;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }

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

section { padding: 88px 0; }
@media (min-width: 768px) { section { padding: 120px 0; } }

.section-alt { background: var(--bg-2); }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
}
.section-lead {
  color: var(--text-2);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.1rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(107, 124, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(107, 124, 255, 0.45);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid #e4e6ec;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 20px 44px; font-size: 1.1rem; }

/* ============ Navigation ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(17, 17, 17, 0.06); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: none; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 24px; font-size: 0.92rem; }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid rgba(17,17,17,0.06);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 8px;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
}
.mobile-menu a:active { background: var(--bg-2); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

@media (min-width: 1000px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger, .mobile-menu { display: none !important; }
}

/* ============ Hero ============ */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(141, 107, 255, 0.10) 0%, transparent 70%),
    radial-gradient(50% 45% at 10% 85%, rgba(107, 124, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-2);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.hero-phone {
  position: relative;
  width: min(320px, 78vw);
  padding: 12px;
  background: #16161d;
  border-radius: 52px;
  border: 1.5px solid #33333e;
  box-shadow:
    0 40px 90px rgba(74, 68, 156, 0.30),
    0 12px 30px rgba(17, 17, 17, 0.14),
    inset 0 0 0 2px #0a0a0f;
  transform: rotate(3deg);
  transition: transform 0.4s ease;
  will-change: transform;
}
.hero-phone::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0a0a0f;
  border-radius: 999px;
  z-index: 2;
}
.hero-phone:hover { transform: rotate(0deg) scale(1.02); }
.hero-phone img { width: 100%; border-radius: 40px; }

@media (min-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 90px) 0 110px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ============ Cards / grids ============ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 820px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.step-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}

/* Step cards: playful jump on hover */
@keyframes step-jump {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-14px) rotate(-0.6deg); }
  60%  { transform: translateY(-6px) rotate(0.4deg); }
  80%  { transform: translateY(-11px); }
  100% { transform: translateY(-9px); }
}
.steps-grid .card:hover {
  animation: step-jump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: var(--shadow-lift);
}
.steps-grid .card:hover .step-num {
  transform: scale(1.15) rotate(-6deg);
}

/* Step cards: stronger staggered scroll-in */
.steps-grid .anim {
  opacity: 0;
  transform: translateY(56px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.steps-grid .anim.in { opacity: 1; transform: translateY(0) scale(1); }
.steps-grid .anim-d1 { transition-delay: 0.18s; }
.steps-grid .anim-d2 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .steps-grid .card:hover { animation: none; }
  .steps-grid .anim { opacity: 1; transform: none; transition: none; }
}
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--text-2); margin-bottom: 0; }
.card p + p { margin-top: 12px; }

.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.topic-tags span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(107, 124, 255, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.ai-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ai-mascot {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(141, 107, 255, 0.16) 0%, rgba(107, 124, 255, 0.07) 70%);
  padding: 6px;
  margin-top: -32px;
  margin-right: -24px;
  transition: transform 0.3s ease;
}
.steps-grid .card:hover .ai-mascot { transform: scale(1.1) rotate(4deg); }

.ai-list { list-style: none; padding: 0; margin: 18px 0 0; }
.ai-list li {
  padding: 7px 0 7px 30px;
  position: relative;
  color: var(--text-2);
}
.ai-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(32, 201, 151, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2320c997' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ============ Video + socials ============ */
.video-section { padding-top: 0; }
.video-card {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: #000;
}
.video-card video { display: block; width: 100%; height: auto; }
.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social-btn {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-2);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover {
  transform: translateY(-3px);
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(107, 124, 255, 0.35);
}

/* ============ Choose your path ============ */
.path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 880px) { .path-grid { grid-template-columns: 1fr 1fr; } }

.path-card {
  position: relative;
  border-radius: 26px;
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.path-footer { position: relative; }
.path-footer .btn { width: 100%; }
.path-mascot {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 118px;
  height: 118px;
  object-fit: contain;
  object-position: bottom;
  transition: transform 0.3s ease;
  transform-origin: bottom center;
}
.path-card:hover .path-mascot { transform: scale(1.08); }
@media (max-width: 600px) {
  .path-mascot { width: 92px; height: 92px; }
}
.path-members {
  background: #fff;
  border: 1.5px solid #ecedf2;
  box-shadow: var(--shadow-soft);
}
.path-coaches {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    var(--accent-grad);
  color: #fff;
}
.path-card h3 { font-size: 1.7rem; }
.path-card .path-tagline { font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.path-card p { margin-bottom: 8px; }
.path-members p { color: var(--text-2); }
.path-coaches p { color: rgba(255, 255, 255, 0.85); }

.feature-list { list-style: none; padding: 0; margin: 22px 0 34px; flex-grow: 1; }
.feature-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-weight: 500;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 20px; height: 20px;
  border-radius: 50%;
}
.path-members .feature-list li::before {
  background: rgba(32, 201, 151, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2320c997' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.path-coaches .feature-list li::before {
  background: rgba(255, 255, 255, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.path-coaches .btn-secondary { border: none; }

/* ============ Coaches stats section ============ */
.coaches-section {
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(107, 124, 255, 0.07) 0%, transparent 60%),
    #f2f3f7;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 72px;
}
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

.stat-card .stat-figure {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.stat-card .stat-note { font-weight: 600; color: var(--text); margin-top: 14px; }

.big-quote {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.big-quote .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.transform-head {
  text-align: center;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin-bottom: 48px;
}
.transform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
@media (min-width: 820px) { .transform-grid { grid-template-columns: repeat(3, 1fr); } }
.transform-card { text-align: center; padding: 44px 28px; }
.transform-card .from { color: var(--text-2); font-weight: 500; font-size: 1.05rem; }
.transform-card .arrow {
  margin: 10px auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(107, 124, 255, 0.1);
  color: var(--accent);
  font-size: 1.1rem;
}
.transform-card .to { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.center-cta { text-align: center; }

/* ============ Final CTA ============ */
.final-cta {
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #5a6cf5 0%, #7d5bf0 55%, #8d6bff 100%);
  color: #fff;
  text-align: center;
  border-radius: 32px;
  margin: 0 24px;
}
.final-cta-inner { max-width: 680px; margin: 0 auto; padding: 72px 24px; }
@media (min-width: 768px) { .final-cta-inner { padding: 96px 24px; } }
.final-cta h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.final-cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.12rem; margin-bottom: 36px; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .btn-secondary { border: none; }
@media (min-width: 900px) {
  .final-cta { margin: 0 auto; max-width: calc(var(--maxw) - 48px); }
}

/* Final CTA with mascot on the left */
.final-cta-split {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta-mascot {
  width: min(220px, 50vw);
  margin-top: 48px;
  margin-bottom: -24px;
}
.final-cta-mascot img { width: 100%; }
@media (min-width: 900px) {
  .final-cta-split {
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
    gap: 8px;
  }
  .final-cta-split .final-cta-inner { margin: 0; }
  .final-cta-split .hero-actions { justify-content: flex-start; }
  .final-cta-mascot {
    flex-shrink: 0;
    width: 280px;
    margin: 0 0 0 40px;
    align-self: flex-end;
  }
}

/* ============ Footer ============ */
.site-footer {
  padding: 56px 0 40px;
  text-align: center;
}
.footer-logo { font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; }
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: #9aa0ab; font-size: 0.85rem; margin: 0; }

/* ============ Become Coach page ============ */
.coach-hero {
  padding: calc(var(--nav-h) + 80px) 0 100px;
  text-align: center;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(141, 107, 255, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.coach-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 800px;
  margin: 0 auto 20px;
}
.coach-hero .hero-sub { margin: 0 auto 40px; }

.coach-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.coach-hero-grid .coach-banner { max-width: 420px; margin: 0 auto; }
@media (min-width: 900px) {
  .coach-hero { text-align: left; }
  .coach-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .coach-hero-grid h1, .coach-hero-grid .hero-sub { margin-left: 0; margin-right: 0; }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(6, 1fr); }
  .benefits-grid .card:nth-child(-n+3) { grid-column: span 2; }
  .benefits-grid .card:nth-child(n+4) { grid-column: span 3; }
}
.benefit-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(107, 124, 255, 0.1);
  margin-bottom: 22px;
  font-size: 1.5rem;
}

/* ============ Coach mascot banner ============ */
.coach-banner {
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: transform 0.3s ease;
}
.coach-banner:hover { transform: translateY(-6px); }
.coach-banner img { width: 100%; }
.coach-banner { position: relative; }
.coach-banner-name {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ============ Generic page (Impressum) ============ */
.generic-page { padding: calc(var(--nav-h) + 60px) 0 80px; }
.generic-page .container { max-width: 780px; }
.generic-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 40px; }
.generic-page h2 { font-size: 1.5rem; margin-top: 2em; }
.generic-page a { color: var(--accent); }

/* ============ Scroll animations ============ */
.anim {
  opacity: 0;
  transform: translateY(52px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim.in { opacity: 1; transform: translateY(0) scale(1); }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1; transform: none; transition: none; }
}
