/* ========================================
   Coach Kevin AI — Landing Page
   Modern Tech/Futuristic Theme
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-elevated: #1A1A2E;
  --accent-cyan: #00F0FF;
  --accent-green: #00FF88;
  --accent-blue: #4D7CFF;
  --text-primary: #E8E8F0;
  --text-secondary: #8888A0;
  --text-muted: #555570;
  --glow-cyan: rgba(0, 240, 255, 0.15);
  --glow-green: rgba(0, 255, 136, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Background Grid + Gradient Mesh --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 40%, rgba(0, 240, 255, 0.06), transparent 50%),
    radial-gradient(ellipse at 75% 20%, rgba(77, 124, 255, 0.04), transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0, 255, 136, 0.03), transparent 40%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%;
  z-index: -1;
  pointer-events: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* --- Shared Section Styles --- */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--text-primary);
}

/* ========================================
   NAVBAR
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  letter-spacing: 0.02em;
}

.nav__cta:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.text-glow {
  color: var(--accent-cyan);
  text-shadow:
    0 0 20px rgba(0, 240, 255, 0.5),
    0 0 40px rgba(0, 240, 255, 0.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__trust {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* --- Hero Visual (Orb) --- */
.hero__visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.hero__orb {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero__orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
}

.hero__orb-ring--1 {
  animation: slowRotate 20s linear infinite;
  border-style: dashed;
  border-color: rgba(0, 240, 255, 0.15);
}

.hero__orb-ring--2 {
  inset: 30px;
  animation: slowRotate 15s linear infinite reverse;
  border-color: rgba(77, 124, 255, 0.2);
}

.hero__orb-ring--3 {
  inset: 60px;
  animation: slowRotate 10s linear infinite;
  border-style: dotted;
  border-color: rgba(0, 255, 136, 0.15);
}

.hero__orb-core {
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 70%);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.15), 0 0 120px rgba(0, 240, 255, 0.05);
  animation: orbPulse 3s ease-in-out infinite alternate;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 48px;
}

.btn svg {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent-green);
  color: #0A0A0F;
  box-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(0, 255, 136, 0.08);
  animation: pulseGlow 2s ease-in-out infinite;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow-green), 0 0 60px rgba(0, 255, 136, 0.15);
}

.btn--large {
  font-size: 1.15rem;
  padding: 1.15rem 2.5rem;
}

/* ========================================
   WHY SECTION
   ======================================== */
.why {
  padding: 6rem 0;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }

  .why__card:nth-child(2),
  .why__card:nth-child(4) {
    transform: translateY(40px);
  }

  .why__card:nth-child(2).visible,
  .why__card:nth-child(4).visible {
    transform: translateY(40px);
  }
}

.why__card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border-left: 2px solid var(--accent-cyan);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.6s ease;
  position: relative;
}

.why__card:nth-child(even) {
  border-left-color: var(--accent-green);
}

.why__card:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
}

@media (min-width: 768px) {
  .why__card:nth-child(even):hover {
    transform: translateY(36px);
  }
}

.why__card-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.4;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.why__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.why__card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   LEARN SECTION (Timeline)
   ======================================== */
.learn {
  padding: 6rem 0;
}

.learn__timeline {
  position: relative;
  padding-left: 2.5rem;
}

.learn__timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), transparent);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.learn__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.learn__item:last-child {
  padding-bottom: 0;
}

.learn__dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  animation: dotPulse 1.5s ease-in-out infinite alternate;
  z-index: 1;
}

.learn__topic {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.learn__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: 6rem 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: start;
  }
}

.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 280px;
  background: var(--bg-secondary);
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.about__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.about__tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.about__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.about__stat {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 1rem;
}

.about__stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.about__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at 40% 60%, rgba(0, 255, 136, 0.06), transparent 50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta__phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ========================================
   ANIMATIONS — Keyframes
   ======================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(0, 255, 136, 0.08);
  }
  50% {
    box-shadow: 0 0 30px var(--glow-green), 0 0 60px rgba(0, 255, 136, 0.18);
  }
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbPulse {
  from {
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.15), 0 0 120px rgba(0, 240, 255, 0.05);
    opacity: 0.7;
  }
  to {
    box-shadow: 0 0 80px rgba(0, 240, 255, 0.25), 0 0 160px rgba(0, 240, 255, 0.1);
    opacity: 1;
  }
}

@keyframes dotPulse {
  from { transform: scale(1); }
  to { transform: scale(1.3); }
}

/* --- Hero load animation --- */
.hero-anim {
  opacity: 0;
  animation: fadeSlideUp 0.7s ease-out forwards;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep stagger offset on even cards after reveal */
@media (min-width: 768px) {
  .why__card:nth-child(even).visible {
    transform: translateY(40px);
  }

  .why__card:nth-child(even):hover {
    transform: translateY(36px);
  }
}

/* ========================================
   RESPONSIVE — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .hero {
    padding: 8rem 2rem 4rem;
  }

  .nav__inner {
    padding: 0 2rem;
  }
}

/* ========================================
   RESPONSIVE — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .nav__inner {
    padding: 0 3rem;
  }

  .learn__timeline {
    padding-left: 3rem;
  }

  .learn__timeline::before {
    left: 8px;
  }

  .learn__dot {
    left: -3rem;
  }
}

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