/* Quokkago Landing Page v5 - Modern Design */

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
  /* Brand Colors */
  --sun: #FFC857;
  --lime: #8EE000;
  --ocean: #0077C8;
  --graphite: #1D1D1F;
  --cloud: #F6F7FB;
  --slate: #2B2F36;
  --steel: #4B5563;
  --mist: #E5E7EB;
  
  /* Extended Palette */
  --white: #FFFFFF;
  --black: #000000;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Typography */
  --font-display: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
}

/* ==================== RESET & BASE ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mist);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--graphite);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--ocean), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--steel);
  transition: all var(--transition-fast);
  position: relative;
  padding: var(--space-sm) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--graphite);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-secondary {
  font-weight: 500;
  color: var(--steel);
  transition: all var(--transition-fast);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.nav-link-secondary:hover {
  color: var(--graphite);
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  background: var(--lime);
  color: var(--graphite);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--ocean);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--graphite);
  transition: all var(--transition-fast);
}

/* Mobile Menu Animations */
.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    width: 100%;
    padding: var(--space-md) 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--mist);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta,
  .nav-link-secondary {
    width: 100%;
    text-align: center;
    margin-top: var(--space-sm);
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--cloud) 0%, rgba(255, 200, 87, 0.1) 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.8);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--steel);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
}

.badge-icon {
  font-size: 1.2rem;
}

/* Rocket container */
.badge-icon.rocket-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Rocket wiggle animation - like burning fuel */
.rocket-wiggle {
  display: inline-block;
  animation: rocketWiggle 1.5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes rocketWiggle {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  33% {
    transform: translateX(0.5px) translateY(-0.3px) rotate(0.5deg);
  }
  66% {
    transform: translateX(-0.5px) translateY(-0.3px) rotate(-0.5deg);
  }
}

/* Rocket sparks from exhaust */
.rocket-sparks {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFA500, #FF4500);
  opacity: 0;
  animation: sparkFade 1.4s ease-out infinite;
}

.spark:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.spark:nth-child(2) {
  top: 2px;
  left: 2px;
  animation-delay: 0.5s;
}

.spark:nth-child(3) {
  top: -1px;
  left: 3px;
  animation-delay: 1s;
}

@keyframes sparkFade {
  0% {
    opacity: 0.95;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-8px, 18px) scale(0.15);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.title-main {
  display: block;
  color: var(--graphite);
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, var(--sun), var(--lime));
  border-radius: var(--radius-sm);
  opacity: 0.3;
  animation: underlineGrow 1s ease-out 0.5s both;
}

@keyframes underlineGrow {
  from { width: 0; }
  to { width: 100%; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--steel);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--graphite);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--ocean);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--steel);
  padding: var(--space-lg) var(--space-xl);
  border: 2px solid var(--mist);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--graphite);
  color: var(--white);
  border-color: var(--graphite);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
  line-height: 1;
}

.stat-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--graphite);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.stat-description {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 0.8s ease-out;
}

.hero-illustration {
  position: relative;
  z-index: 2;
}

.app-mockup {
  width: 320px;
  height: 600px;
  background: var(--graphite);
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cloud), var(--white));
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  color: var(--white);
}

.mockup-logo {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.mockup-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.mockup-content {
  padding: var(--space-lg);
  position: relative;
}

.progress-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
  margin-bottom: var(--space-xl);
}

.sport-switcher {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm);
}

.sport-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.sport-dot.active {
  background: var(--ocean);
  transform: scale(1.2);
}

.sport-dot:hover:not(.active) {
  background: var(--steel);
  transform: scale(1.1);
}

.sport-page {
  display: none;
  animation: pageSlideIn 0.4s ease-out;
}

.sport-page.active {
  display: block;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.sport-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sport-icon {
  font-size: 1.3rem;
}

.sport-name {
  font-weight: 600;
  color: var(--graphite);
  font-size: 0.95rem;
}

.level-badge {
  background: var(--lime);
  color: var(--graphite);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  animation: levelPulse 2s ease-in-out infinite;
  min-width: 32px;
  text-align: center;
}

@keyframes levelPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.progress-bar {
  height: 8px;
  background: var(--mist);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--ocean));
  border-radius: var(--radius-sm);
  width: 0%;
  transition: width 1s ease-out;
}

.progress-fill[data-progress="78"] {
  animation: progressGrow78 2s ease-out 0.5s both;
}

.progress-fill[data-progress="62"] {
  animation: progressGrow62 2s ease-out 0.5s both;
}

.progress-fill[data-progress="45"] {
  animation: progressGrow45 2s ease-out 0.5s both;
}

@keyframes progressGrow78 {
  0% { width: 0%; }
  100% { width: 78%; }
}

@keyframes progressGrow62 {
  0% { width: 0%; }
  100% { width: 62%; }
}

@keyframes progressGrow45 {
  0% { width: 0%; }
  100% { width: 45%; }
}

/* Ensure progress bars keep their final state */
.progress-fill[data-progress="78"] {
  animation-fill-mode: forwards;
  width: 78%;
}

.progress-fill[data-progress="62"] {
  animation-fill-mode: forwards;
  width: 62%;
}

.progress-fill[data-progress="45"] {
  animation-fill-mode: forwards;
  width: 45%;
}

.recent-badge {
  background: linear-gradient(135deg, var(--sun), var(--lime));
  color: var(--graphite);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  animation: badgeAppear 1s ease-out 1.5s both;
  margin-top: var(--space-sm);
}

@keyframes badgeAppear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-item {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ocean);
  display: block;
  animation: countUp 1.5s ease-out 1s both;
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--steel);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  border-radius: 50%;
  opacity: 0.3;
}

.dot-1 {
  top: 15%;
  left: -5%;
  animation: floatSlow 6s ease-in-out infinite;
}

.dot-2 {
  top: 60%;
  right: -8%;
  animation: floatSlow 8s ease-in-out infinite 2s;
}

.dot-3 {
  bottom: 20%;
  left: -3%;
  animation: floatSlow 7s ease-in-out infinite 4s;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
  66% {
    transform: translateY(-10px) translateX(-15px);
    opacity: 0.4;
  }
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: slideInUp 0.8s ease-out 2s both;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--steel);
  border-radius: var(--radius-lg);
  position: relative;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.scroll-indicator:hover {
  border-color: var(--lime);
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--steel);
  border-radius: var(--radius-sm);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-dot {
  background: var(--lime);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(16px); }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==================== ENHANCED ANIMATIONS V2 ==================== */

/* Feature 5: Smooth Card Transitions */
.sport-page {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  transform: translateZ(0); /* Hardware acceleration */
}

.slide-out-left {
  animation: slideOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out-right {
  animation: slideOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
  animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
  animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Feature 3: Progress Bar Animations */
.progress-fill {
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother: increased from 1.2s to 1.8s */
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(142, 224, 0, 0.5);
  animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Feature 4: Checkmark & Badge Animations */
.recent-badge {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.sport-icon {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Feature 6: Micro-interactions */
.stat-item {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.stat-item:hover {
  transform: scale(1.05);
}

.level-badge {
  transition: all 0.3s ease;
}

.level-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(142, 224, 0, 0.4);
}

/* Feature 7: Typing Indicator */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(142, 224, 0, 0.1);
  border-radius: 16px;
  margin-left: 12px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Feature 8: Notification Pulse */
.notification-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #EF4444;
  border: 2px solid white;
  border-radius: 50%;
  animation: notificationPulse 2s ease-in-out 3;
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Feature 1: Autoplay Progress Indicator */
.sport-switcher {
  position: relative;
}

.sport-dot {
  position: relative;
  overflow: visible;
}

.sport-dot.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--lime);
  animation: autoplayProgress 7s linear; /* Increased from 4s to 7s */
}

@keyframes autoplayProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Live Indicator Badge */
.live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #EF4444;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== SECTIONS ==================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--steel);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== FEATURES SECTION ==================== */
.features {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--cloud);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--ocean));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--mist);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--steel);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Unique Feature Badge */
.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--lime) 0%, var(--ocean) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(142, 224, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(142, 224, 0, 0.5);
  }
}

.unique-feature {
  border: 2px solid var(--lime);
  background: linear-gradient(135deg, rgba(142, 224, 0, 0.05) 0%, rgba(0, 119, 200, 0.05) 100%);
}

.unique-feature::before {
  background: linear-gradient(90deg, var(--lime), var(--ocean));
  transform: scaleX(1);
}

.unique-feature:hover {
  border-color: var(--lime);
  box-shadow: 0 12px 24px rgba(142, 224, 0, 0.2), var(--shadow-xl);
}

/* ==================== ONE PROFILE SECTION ==================== */
.one-profile {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--cloud) 100%);
  position: relative;
  overflow: hidden;
}

.one-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mist), transparent);
}

.one-profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Timeline Visual */
.one-profile-visual {
  position: relative;
  padding: var(--space-md) 0;
}

.timeline-container {
  position: relative;
  padding-left: 56px;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mist);
  border-radius: var(--radius-full);
}

.timeline-progress {
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--lime), var(--ocean));
  border-radius: var(--radius-full);
  transition: height 1.5s ease-out;
}

.timeline-container.animated .timeline-progress {
  height: 85%;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.5s ease-out;
}

/* Animation states - start hidden, then reveal */
.timeline-container:not(.animated) .timeline-item {
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-container.animated .timeline-item {
  opacity: 1;
  transform: translateX(0);
}

.timeline-container.animated .timeline-item:nth-child(3) {
  transition-delay: 0.2s;
}

.timeline-container.animated .timeline-item:nth-child(4) {
  transition-delay: 0.4s;
}

.timeline-container.animated .timeline-item:nth-child(5) {
  transition-delay: 0.6s;
}

.timeline-container.animated .timeline-item:nth-child(6) {
  transition-delay: 0.8s;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 3px solid var(--mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  z-index: 2;
}

.timeline-dot .dot-icon {
  font-size: 1.25rem;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--lime);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(142, 224, 0, 0.3);
}

.timeline-dot.active {
  border-color: var(--ocean);
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  animation: activeDotPulse 2s ease-in-out infinite;
}

.timeline-dot.active .dot-icon {
  filter: brightness(0) invert(1);
}

@keyframes activeDotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 119, 200, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 119, 200, 0);
  }
}

.timeline-card {
  background: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--mist);
  transition: all var(--transition-normal);
  max-width: 260px;
}

.timeline-item:hover .timeline-card {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lime);
}

.card-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ocean);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-sport {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 2px;
}

.card-detail {
  font-size: 0.85rem;
  color: var(--steel);
}

/* Timeline Future */
.timeline-future {
  position: relative;
  margin-top: var(--space-md);
  padding-left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-out 1s;
}

.timeline-container.animated .timeline-future {
  opacity: 1;
}

.future-dot {
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 2px dashed var(--mist);
  border-radius: 50%;
  background: transparent;
}

.future-label {
  font-size: 0.9rem;
  color: var(--steel);
  font-style: italic;
  padding: var(--space-sm) 0;
}

/* Text Content */
.one-profile-text {
  padding-right: var(--space-xl);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(142, 224, 0, 0.1), rgba(0, 119, 200, 0.1));
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(0, 119, 200, 0.2);
}

.profile-badge .badge-icon {
  font-size: 1.1rem;
}

.one-profile-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.one-profile-title .title-line {
  display: block;
  color: var(--graphite);
}

.one-profile-title .title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.one-profile-subtitle {
  font-size: 1.1rem;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.profile-benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.profile-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--mist);
  transition: all var(--transition-normal);
}

.profile-benefits li:hover {
  border-color: var(--lime);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-content strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--graphite);
  font-size: 0.95rem;
}

.benefit-content span {
  font-size: 0.85rem;
  color: var(--steel);
}

.profile-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.profile-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 8px 24px rgba(0, 119, 200, 0.3);
}

.profile-cta svg {
  transition: transform var(--transition-fast);
}

.profile-cta:hover svg {
  transform: translateX(4px);
}

/* Responsive - One Profile */
@media (max-width: 1024px) {
  .one-profile-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .one-profile-visual {
    order: 2;
  }

  .one-profile-text {
    order: 1;
    padding-right: 0;
    text-align: center;
  }

  .profile-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .one-profile-title {
    font-size: 2.2rem;
  }

  .one-profile-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .profile-benefits {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-benefits li {
    text-align: left;
  }

  .profile-cta {
    margin: 0 auto;
  }

  .timeline-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .one-profile {
    padding: var(--space-3xl) 0;
  }

  .one-profile-title {
    font-size: 1.8rem;
  }

  .one-profile-subtitle {
    font-size: 1rem;
  }

  .timeline-container {
    padding-left: 50px;
  }

  .timeline-line,
  .timeline-progress {
    left: 18px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
    left: -40px;
  }

  .timeline-dot .dot-icon {
    font-size: 1.2rem;
  }

  .future-dot {
    left: -40px;
    width: 28px;
    height: 28px;
  }

  .timeline-card {
    padding: var(--space-sm) var(--space-md);
  }

  .card-sport {
    font-size: 1rem;
  }

  .profile-benefits li {
    padding: var(--space-sm) var(--space-md);
  }

  .benefit-icon {
    font-size: 1.3rem;
  }
}

/* ==================== ROLES SECTION ==================== */
.roles {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--cloud) 0%, rgba(255, 200, 87, 0.05) 100%);
}

.roles-header {
  margin-bottom: var(--space-lg);
}

.roles-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  background: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.role-tab {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--steel);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.role-tab.active {
  background: var(--lime);
  color: var(--graphite);
  box-shadow: var(--shadow-sm);
}

.role-tab:not(.active):hover {
  background: var(--mist);
  color: var(--graphite);
}

.tab-icon {
  font-size: 1.2rem;
}

.roles-content {
  position: relative;
}

.role-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.role-panel.active {
  display: grid;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.role-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 50px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 2px #3a3a3a,
    0 0 0 4px #1a1a1a,
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Side buttons */
.phone-mockup::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 120px;
  width: 3px;
  height: 35px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a, #3a3a3a);
  border-radius: 0 2px 2px 0;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 100px;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a, #3a3a3a);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 45px 0 0 linear-gradient(180deg, #3a3a3a, #2a2a2a);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cloud), var(--white));
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island / Notch */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 100;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Status bar area */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: transparent;
  z-index: 50;
}

.app-interface {
  padding: var(--space-xl);
  padding-top: 50px; /* Space for dynamic island */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Training Feedback Card */
.training-feedback-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: cardFadeIn 0.8s ease-out;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--mist);
}

.session-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--steel);
}

.session-rating {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lime);
  animation: ratingPulse 2s ease-in-out infinite;
}

@keyframes ratingPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Skills Progress */
.skills-progress {
  margin-bottom: var(--space-md);
}

.skill-item {
  margin-bottom: var(--space-sm);
}

.skill-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 4px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--mist);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ocean), var(--lime));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(142, 224, 0, 0.6);
  animation: progressGlow 1.5s ease-in-out infinite;
}

/* Skill Badges */
.skill-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  animation: badgesSlideIn 1s ease-out 0.5s both;
}

@keyframes badgesSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.improvement-badge {
  display: inline-block;
  background: rgba(142, 224, 0, 0.15);
  color: var(--lime);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(142, 224, 0, 0.3);
}

/* Coach Comment */
.coach-comment {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(0, 119, 200, 0.05);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--ocean);
  animation: commentSlideUp 1s ease-out 0.8s both;
}

@keyframes commentSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-icon {
  font-size: 1.2rem;
  animation: iconBounce 2s ease-in-out 1.5s infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.coach-comment span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--graphite);
}

.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--mist);
}

.dashboard-header {
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.progress-chart {
  height: 120px;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.progress-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3));
  animation: chartGrow 2s ease-out infinite alternate;
}

@keyframes chartGrow {
  0% { height: 30%; }
  100% { height: 70%; }
}

.insights {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.insight-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--steel);
}

.insight-icon {
  width: 24px;
  height: 24px;
  background: var(--cloud);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Notification Feed for Parents */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--mist);
  margin-bottom: var(--space-lg);
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--graphite);
}

.notification-bell {
  position: relative;
  display: inline-block;
  animation: bellShake 3s ease-in-out infinite;
}

@keyframes bellShake {
  0%, 90%, 100% {
    transform: rotate(0deg);
  }
  92%, 96% {
    transform: rotate(-15deg);
  }
  94%, 98% {
    transform: rotate(15deg);
  }
}

.bell-icon {
  font-size: 1.5rem;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  animation: badgePulseRed 2s ease-in-out infinite;
}

@keyframes badgePulseRed {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

/* Notifications Feed */
.notifications-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.notification-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--mist);
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(-20px);
}

.notification-card.completed {
  border-left-color: var(--lime);
  animation: slideDownFade 0.6s ease-out 0.3s forwards;
}

.notification-card.scheduled {
  border-left-color: var(--ocean);
  animation: slideDownFade 0.6s ease-out 0.6s forwards;
}

.notification-card.invite {
  border-left-color: var(--sunshine);
  animation: slideDownFade 0.6s ease-out 0.9s forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.notification-icon {
  flex-shrink: 0;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.icon-circle.success {
  background: rgba(142, 224, 0, 0.15);
  color: var(--lime);
  border: 2px solid rgba(142, 224, 0, 0.3);
}

.icon-circle.info {
  background: rgba(0, 119, 200, 0.15);
  color: var(--ocean);
  border: 2px solid rgba(0, 119, 200, 0.3);
}

.icon-circle.primary {
  background: rgba(255, 200, 87, 0.15);
  color: var(--sunshine);
  border: 2px solid rgba(255, 200, 87, 0.3);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 4px;
}

.notification-details {
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 4px;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--steel);
  opacity: 0.7;
}

.coach-dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.metric-card {
  background: var(--cloud);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--graphite);
  display: block;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: var(--space-xs);
}

.quick-actions {
  display: flex;
  gap: var(--space-md);
}

.action-btn {
  flex: 1;
  background: var(--lime);
  color: var(--graphite);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

/* Coach Dashboard Split-Screen */
.coach-dashboard-split {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.split-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.section-header-small {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--mist);
}

.section-icon {
  font-size: 1.2rem;
}

.section-title-small {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--graphite);
}

/* Planning Section - Calendar */
.week-calendar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calendar-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: var(--space-sm);
  align-items: center;
  opacity: 0;
  transform: translateX(-20px);
}

.planning-section .calendar-row:nth-child(1) {
  animation: slideInLeft 0.5s ease-out 0.3s forwards;
}

.planning-section .calendar-row:nth-child(2) {
  animation: slideInLeft 0.5s ease-out 0.5s forwards;
}

.planning-section .calendar-row:nth-child(3) {
  animation: slideInLeft 0.5s ease-out 0.7s forwards;
}

.planning-section .calendar-row:nth-child(4) {
  animation: slideInLeft 0.5s ease-out 0.9s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.day-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  text-align: center;
}

.time-slot {
  position: relative;
  min-height: 40px;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.time-slot.occupied {
  background: var(--cloud);
  border: 1px solid var(--mist);
}

.time-slot.free {
  background: rgba(142, 224, 0, 0.1);
  border: 1px dashed var(--lime);
}

.time-slot.conflict {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.session-block {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.session-block.my-session {
  background: rgba(0, 119, 200, 0.2);
  color: var(--ocean);
}

.session-block.other-coach {
  background: rgba(142, 224, 0, 0.2);
  color: var(--lime);
}

.session-block.other-coach-2 {
  background: rgba(255, 200, 87, 0.2);
  color: var(--sunshine);
}

.conflict-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1rem;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.available-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime);
  animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.1s backwards;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Analytics Section */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.mini-metric {
  background: var(--cloud);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.analytics-section .mini-metric:nth-child(1) {
  animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

.analytics-section .mini-metric:nth-child(2) {
  animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.analytics-section .mini-metric:nth-child(3) {
  animation: fadeInUp 0.5s ease-out 0.9s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-metric-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--graphite);
}

.mini-metric-label {
  font-size: 0.65rem;
  color: var(--steel);
  margin-top: 2px;
}

.trend-chart {
  position: relative;
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  height: 100px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.1s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.chart-svg {
  width: 100%;
  height: 60px;
}

.chart-line {
  fill: none;
  stroke: var(--ocean);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-out 1.3s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--steel);
  margin-top: var(--space-xs);
}

/* Responsive */
@media (max-width: 768px) {
  .coach-dashboard-split {
    grid-template-columns: 1fr;
  }
}

.action-btn:hover {
  background: var(--ocean);
  color: var(--white);
}

.role-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.role-content p {
  font-size: 1.1rem;
  color: var(--steel);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.role-benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.role-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  color: var(--steel);
}

.role-benefits li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: var(--space-xs);
}

.role-benefits li strong {
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 4rem;
  width: 2px;
  height: calc(100% + var(--space-2xl));
  background: linear-gradient(180deg, var(--lime), var(--ocean));
  z-index: 1;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: var(--space-sm);
}

.step-content p {
  color: var(--steel);
  line-height: 1.6;
}

.step-visual {
  width: 80px;
  height: 80px;
  background: var(--cloud);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.visual-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-icon img {
  height: 60px;
  width: auto;
  display: block;
}

/* ==================== PAIN POINTS (MORPH CARDS) ==================== */
.pain-points {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--cloud) 0%, rgba(255, 200, 87, 0.05) 100%);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

/* Morph Card */
.morph-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--mist);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.morph-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--lime) 0%, var(--ocean) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.morph-card:hover {
  border-color: var(--lime);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.morph-card:hover::before {
  opacity: 1;
}

/* Morph Icon */
.morph-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--cloud), var(--mist));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-card:hover .morph-icon {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.morph-icon img {
  height: 65px;
  width: auto;
  display: block;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-card:hover .morph-icon img {
  opacity: 0;
  transform: scale(0.5);
}

.morph-icon-check {
  position: absolute;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-card:hover .morph-icon-check {
  opacity: 1;
  transform: scale(1);
}

/* Morph Title */
.morph-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  height: 1.8em;
}

.morph-title span {
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 0;
  right: 0;
}

.title-problem {
  opacity: 1;
  transform: translateY(0);
}

.title-solution {
  opacity: 0;
  transform: translateY(20px);
  color: var(--white);
}

.morph-card:hover .title-problem {
  opacity: 0;
  transform: translateY(-20px);
}

.morph-card:hover .title-solution {
  opacity: 1;
  transform: translateY(0);
}

/* Morph Text */
.morph-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0;
  position: relative;
  z-index: 1;
  min-height: 4.8em;
}

.morph-text span {
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 0;
  right: 0;
}

.text-problem {
  opacity: 1;
  transform: translateY(0);
}

.text-solution {
  opacity: 0;
  transform: translateY(20px);
  color: var(--white);
}

.morph-card:hover .text-problem {
  opacity: 0;
  transform: translateY(-20px);
}

.morph-card:hover .text-solution,
.morph-card.active .text-solution {
  opacity: 1;
  transform: translateY(0);
}

/* Active state for mobile tap */
.morph-card.active {
  border-color: var(--lime);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.morph-card.active::before {
  opacity: 1;
}

.morph-card.active .morph-icon {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.morph-card.active .morph-icon img {
  opacity: 0;
  transform: scale(0.5);
}

.morph-card.active .morph-icon-check {
  opacity: 1;
  transform: scale(1);
}

.morph-card.active .title-problem {
  opacity: 0;
  transform: translateY(-20px);
}

.morph-card.active .title-solution {
  opacity: 1;
  transform: translateY(0);
}

.morph-card.active .text-problem {
  opacity: 0;
  transform: translateY(-20px);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--graphite) 0%, var(--slate) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.cta-section .btn-primary,
.cta-section .btn-secondary {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.95rem;
}

.cta-section .btn-primary {
  background: var(--lime);
  color: var(--graphite);
}

.cta-section .btn-primary:hover {
  background: var(--white);
  color: var(--graphite);
}

.cta-section .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
  background: var(--white);
  color: var(--graphite);
  border-color: var(--white);
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cta-mascot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-large {
  font-size: 8rem;
  animation: float 3s ease-in-out infinite;
}

.mascot-sparkles {
  position: absolute;
  inset: 0;
}

.sparkle {
  position: absolute;
  font-size: 1.5rem;
  animation: twinkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.7s;
}

.sparkle:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: 1.4s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--graphite);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--lime);
  color: var(--graphite);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.link-group h4 {
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.link-group a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
}

.link-group a:hover {
  color: var(--lime);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  /* Make hero-content children direct children of hero-container for ordering */
  .hero-content {
    display: contents;
  }

  /* Reorder elements: badge → title → phone → subtitle → buttons → stats */
  .hero-badge {
    order: 1;
  }

  .hero-title {
    order: 2;
  }

  .hero-visual {
    order: 3;
  }

  .hero-subtitle {
    order: 4;
  }

  .hero-cta {
    order: 5;
  }

  .hero-stats {
    order: 6;
  }

  .app-mockup {
    width: 280px;
    height: 520px;
  }

  .role-panel {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .cta-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Better spacing for tablets */
  .features,
  .roles,
  .how-it-works,
  .pain-points {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  /* Hero Section Mobile Optimization */
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: var(--space-2xl);
  }

  .hero-container {
    gap: var(--space-md);
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 6px var(--space-md);
    margin-bottom: 0;
  }

  .hero-visual {
    margin: var(--space-sm) 0;
  }

  .section-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    margin-bottom: 0;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
  }

  /* Compact Stats for Mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 100%;
  }

  .stat {
    min-width: auto;
    padding: var(--space-sm);
  }

  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .stat-icon img {
    height: 1.5em !important;
  }

  .stat-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .stat-description {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  /* Mockup Optimization */
  .app-mockup {
    width: 180px;
    height: 360px;
  }

  .hero-scroll {
    display: none;
  }
  
  /* Features Section */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-md);
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .feature-icon img {
    height: 48px !important;
  }

  /* Roles Section */
  .roles-tabs {
    flex-direction: row;
    max-width: 100%;
    gap: 4px;
    padding: 4px;
  }

  .role-tab {
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    gap: 4px;
  }

  .role-tab .tab-icon img {
    height: 2em !important;
    transform: scale(1) !important;
  }

  .role-panel {
    gap: var(--space-xl);
  }

  /* Phone and Dashboard Mockups */
  .phone-mockup {
    width: 240px;
    height: 500px;
    padding: 10px;
    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .phone-screen::before {
    width: 70px;
    height: 22px;
    top: 8px;
  }

  .app-header-bar {
    padding-top: 42px;
  }

  .dashboard-mockup,
  .coach-dashboard-split {
    padding: var(--space-md);
    font-size: 0.9rem;
  }

  /* Role content adjustments */
  .role-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
  }

  .role-content p {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
  }

  .role-benefits li {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
  }

  /* How it Works */
  .step {
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
  }

  .step-visual {
    display: none;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .step-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
  }

  .step-content p {
    font-size: 0.9rem;
  }

  /* Pain Points - Morph Cards */
  .pain-points-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .morph-card {
    padding: var(--space-lg);
  }

  .morph-title {
    font-size: 1.2rem;
  }

  .morph-text {
    font-size: 0.9rem;
    min-height: 5.5em;
  }

  .morph-icon {
    width: 80px;
    height: 80px;
  }

  .morph-icon img {
    height: 55px;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
  }

  .mascot-large {
    font-size: 4rem;
  }

  /* Better spacing for mobile */
  .features,
  .roles,
  .how-it-works,
  .pain-points {
    padding: var(--space-3xl) 0;
  }

  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Better button sizes */
  .btn-primary,
  .btn-secondary {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Extra small screens optimization */
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 95%;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 4px var(--space-sm);
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }

  .feature-card,
  .pain-point {
    padding: var(--space-md);
  }

  /* Smaller mockups for tiny screens */
  .phone-mockup {
    width: 200px;
    height: 420px;
    padding: 8px;
    border-radius: 35px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .phone-screen::before {
    width: 60px;
    height: 18px;
    top: 6px;
    border-radius: 12px;
  }

  .app-header-bar {
    padding-top: 36px;
    padding-bottom: var(--space-sm);
  }

  .app-mockup {
    width: 160px;
    height: 320px;
  }

  /* Compact stats grid */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: var(--space-sm);
  }

  .stat-icon {
    order: 2;
  }

  .stat-title,
  .stat-description {
    text-align: left;
  }

  /* Compact roles tabs */
  .role-tab {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .role-tab .tab-icon img {
    height: 1.5em !important;
  }

  /* Reduce spacing */
  .features,
  .roles,
  .how-it-works,
  .pain-points {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .floating-elements {
    display: none;
  }

  /* Footer compact */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg) 0;
  }

  .footer-brand p {
    font-size: 1rem;
  }
}

/* ==================== UNIFIED PHONE MOCKUP STYLES ==================== */

/* Common App Header Bar */
.app-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  padding-top: 50px; /* Space for dynamic island */
  background: linear-gradient(135deg, var(--lime), var(--ocean));
  color: var(--white);
  border-radius: 0;
}

.app-header-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.app-header-icon {
  font-size: 1.2rem;
}


/* ==================== PARENTS PHONE MOCKUP ==================== */
.app-interface-parents {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  padding-top: 50px; /* Space for dynamic island */
}

.notifications-feed-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  padding-top: var(--space-sm);
  overflow: hidden;
}

.notification-card-phone {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--mist);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-15px);
  transition: all var(--transition-normal);
}

.notification-card-phone.completed {
  border-left-color: var(--lime);
  animation: notifSlideIn 0.5s ease-out 0.2s forwards;
}

.notification-card-phone.scheduled {
  border-left-color: var(--ocean);
  animation: notifSlideIn 0.5s ease-out 0.4s forwards;
}

.notification-card-phone.invite {
  border-left-color: var(--sun);
  animation: notifSlideIn 0.5s ease-out 0.6s forwards;
}

@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-icon-phone {
  flex-shrink: 0;
}

.notification-icon-phone .icon-circle {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.notification-content-phone {
  flex: 1;
  min-width: 0;
}

.notification-title-phone {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 2px;
}

.notification-details-phone {
  font-size: 0.7rem;
  color: var(--steel);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time-phone {
  font-size: 0.65rem;
  color: var(--steel);
  opacity: 0.7;
}

/* ==================== COACHES PHONE MOCKUP ==================== */
.app-interface-coaches {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  padding-top: 50px; /* Space for dynamic island */
}

.coach-metrics-phone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md);
  padding-top: var(--space-sm);
  background: var(--white);
}

.metric-item-phone {
  background: var(--cloud);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
}

.metric-item-phone:nth-child(1) {
  animation: metricFadeIn 0.4s ease-out 0.3s forwards;
}

.metric-item-phone:nth-child(2) {
  animation: metricFadeIn 0.4s ease-out 0.5s forwards;
}

.metric-item-phone:nth-child(3) {
  animation: metricFadeIn 0.4s ease-out 0.7s forwards;
}

@keyframes metricFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-number-phone {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ocean);
}

.metric-label-phone {
  font-size: 0.65rem;
  color: var(--steel);
  margin-top: 2px;
}

.coach-calendar-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
}

.calendar-header-phone {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--graphite);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--mist);
  margin-bottom: var(--space-xs);
  opacity: 0;
  transform: translateX(-10px);
  animation: calendarSlideIn 0.4s ease-out 0.3s forwards;
}

.calendar-day-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--cloud);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateX(-10px);
}

.calendar-day-phone:nth-child(2) {
  animation: calendarSlideIn 0.4s ease-out 0.4s forwards;
}

.calendar-day-phone:nth-child(3) {
  animation: calendarSlideIn 0.4s ease-out 0.55s forwards;
}

.calendar-day-phone:nth-child(4) {
  animation: calendarSlideIn 0.4s ease-out 0.7s forwards;
}

.calendar-day-phone:nth-child(5) {
  animation: calendarSlideIn 0.4s ease-out 0.85s forwards;
}

@keyframes calendarSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.calendar-day-phone.conflict {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.calendar-day-phone.available {
  background: rgba(142, 224, 0, 0.1);
  border: 1px dashed var(--lime);
}

.day-name-phone {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--steel);
  width: 30px;
  flex-shrink: 0;
}

.day-session-phone {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  flex: 1;
}

.day-session-phone.my-session {
  background: rgba(0, 119, 200, 0.2);
  color: var(--ocean);
}

.day-session-phone.other-coach {
  background: rgba(142, 224, 0, 0.2);
  color: #5a9e00;
}

.day-session-phone.other-coach-2 {
  background: rgba(255, 200, 87, 0.2);
  color: #b38600;
}

.day-available-phone {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--lime);
}

.conflict-indicator {
  font-size: 0.8rem;
  animation: conflictPulse 2s ease-in-out infinite;
}

@keyframes conflictPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ==================== RESPONSIVE FOR UNIFIED MOCKUPS ==================== */
@media (max-width: 768px) {
  .app-header-bar {
    padding: var(--space-sm) var(--space-md);
  }

  .app-header-title {
    font-size: 0.9rem;
  }

  .notification-card-phone {
    padding: var(--space-xs) var(--space-sm);
  }

  .notification-icon-phone .icon-circle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .notification-title-phone {
    font-size: 0.75rem;
  }

  .notification-details-phone {
    font-size: 0.65rem;
  }

  .metric-number-phone {
    font-size: 1.1rem;
  }

  .metric-label-phone {
    font-size: 0.6rem;
  }

  .calendar-day-phone {
    padding: var(--space-xs);
  }

  .day-name-phone,
  .day-session-phone,
  .day-available-phone {
    font-size: 0.65rem;
  }
}
