/* ============================================
   TEARN WEBSITE - PROFESSIONAL STYLING
   ============================================ */

:root {
  --bg-base: #07070e;
  --bg-dark: #0f0f1a;
  --bg-light: #1a1a2e;
  --text-primary: #f0f0ff;
  --text-secondary: #b0b0d0;
  --accent-amber: #fde68a;
  --accent-orange: #f59e0b;
  --accent-purple: #a78bfa;
  --accent-purple-dark: #8b5cf6;
  --border-color: rgba(255,255,255,.1);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   AMBIENT ORBS - BACKGROUND ANIMATION
   ============================================ */

.orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 30% 50%, var(--accent-purple), transparent);
  top: -100px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 70% 60%, var(--accent-orange), transparent);
  bottom: -50px;
  right: -50px;
  animation: float 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at 50% 50%, var(--accent-amber), transparent);
  top: 50%;
  right: 10%;
  animation: float 22s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
  position: relative;
}

section:nth-child(even) {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-base) 100%);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(7,7,14,0.95) 0%, rgba(7,7,14,0.7) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 18px;
  transition: all 0.3s ease;
}

.brand svg {
  width: 32px;
  height: 36px;
}

.brand:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-amber);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  transition: width 0.3s ease;
}

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

.nav-cta {
  padding: 10px 20px;
  background: var(--accent-purple);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(167, 139, 250, 0.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.nav-hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

main {
  margin-top: 70px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(253, 230, 138, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
}

.btn-secondary:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.btn-light {
  background: white;
  color: var(--bg-base);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255,255,255,0.2);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(253, 230, 138, 0.1);
  border: 1px solid rgba(253, 230, 138, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin: 20px 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-subheadline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  text-align: center;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  width: 100%;
  max-width: 500px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

.hero-visual {
  display: none;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   TRAINER DIVERSITY SECTION
   ============================================ */

.trainers-section {
  position: relative;
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.trainer-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.trainer-card:nth-child(1) { animation-delay: 0.1s; }
.trainer-card:nth-child(2) { animation-delay: 0.2s; }
.trainer-card:nth-child(3) { animation-delay: 0.3s; }
.trainer-card:nth-child(4) { animation-delay: 0.4s; }
.trainer-card:nth-child(5) { animation-delay: 0.5s; }
.trainer-card:nth-child(6) { animation-delay: 0.6s; }

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

.trainer-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-color: var(--accent-amber);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.trainer-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.trainer-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.trainer-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.05), rgba(253, 230, 138, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(253, 230, 138, 0.08));
  border-color: var(--accent-purple);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.step-card {
  position: relative;
  padding: 40px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

.step-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA DUAL SECTION
   ============================================ */

.cta-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 80px 0;
}

.cta-card {
  padding: 60px 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.cta-learner {
  animation-delay: 0.2s;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.cta-learner:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.2);
}

.cta-trainer {
  animation-delay: 0.3s;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.15), rgba(253, 230, 138, 0.05));
  border: 1px solid rgba(253, 230, 138, 0.3);
}

.cta-trainer:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 20px 60px rgba(253, 230, 138, 0.2);
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 800;
}

.cta-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   BETA SECTION
   ============================================ */

.beta {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(253, 230, 138, 0.05));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.beta .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.beta-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.beta-headline {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.beta-subheadline {
  font-size: 18px;
  color: var(--text-secondary);
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 12px;
  outline: none;
  font-size: 14px;
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

.form-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.beta-roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.role-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.role-radio:hover {
  background: rgba(255,255,255,0.05);
}

.role-radio input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-purple);
}

.role-radio span {
  font-size: 14px;
  font-weight: 500;
}

.beta-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.badge {
  padding: 6px 12px;
  background: rgba(253, 230, 138, 0.15);
  color: var(--accent-amber);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.app-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    flex-direction: column;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    text-align: center;
  }

  .cta-dual {
    grid-template-columns: 1fr;
  }

  .beta .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-group {
    flex-direction: column;
  }

  section {
    padding: 60px 0;
  }

  .hero-badge {
    font-size: 11px;
  }

  .trainer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card, .trainer-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 12px;
  }
}