/* =================
   TeachTools Design System
   Bundle-focused sales landing pages
   ================= */

:root {
  /* === Colors === */
  /* Backgrounds */
  --bg-dark: #0F172A;
  --bg-surface: #1E293B;
  --bg-card: #334155;

  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Brand Colors */
  --primary-green: #10B981;      /* CTA buttons, bundle badges */
  --primary-green-hover: #059669;
  --secondary-blue: #3B82F6;     /* Links, secondary actions */
  --warning-amber: #F59E0B;      /* Beta badges, highlights */
  --timer-orange: #EA580C;       /* TheTimer accent */

  /* Product Colors */
  --timer-color: #F59E0B;
  --reachout-color: #2563eb;
  --audiograder-color: #7c3aed;
  --lanyard-color: #059669;

  /* Borders & Effects */
  --border: rgba(148, 163, 184, 0.15);
  --glow-green: rgba(16, 185, 129, 0.3);
  --glow-amber: rgba(245, 158, 11, 0.35);

  /* Gradients */
  --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-orange: linear-gradient(135deg, #F59E0B, #EA580C);

  /* === Typography === */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Font Sizes */
  --text-xs: 0.875rem;     /* 14px */
  --text-sm: 1rem;         /* 16px */
  --text-base: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;      /* 20px */
  --text-xl: 1.5rem;       /* 24px */
  --text-2xl: 1.75rem;     /* 28px */
  --text-3xl: 2.25rem;     /* 36px */
  --text-4xl: 2.5rem;      /* 40px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.5rem;      /* 56px */

  /* === Spacing === */
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 1rem;        /* 16px */
  --space-md: 2rem;        /* 32px */
  --space-lg: 4rem;        /* 64px */
  --space-xl: 6rem;        /* 96px */

  /* === Layout === */
  --max-width: 1200px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;

  /* === Transitions === */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-green);
}

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

/* === Navigation === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}
.logo em {
  font-style: normal;
  color: #F59E0B;
}
.logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--gradient-green);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-green);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-green);
}

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

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: var(--text-lg);
}

/* === Cards === */
.card {
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.3);
}

.product-card {
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
}

/* === Bundle Upsell Component === */
.bundle-upsell {
  background: var(--gradient-green);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin: var(--space-xl) 0;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
}

.bundle-upsell h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.bundle-upsell p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.bundle-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
}

.savings {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-md);
}

.bundle-upsell .btn-primary {
  background: white;
  color: var(--primary-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bundle-upsell .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.link-secondary {
  display: inline-block;
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  font-size: var(--text-sm);
}

.link-secondary:hover {
  color: white;
}

/* === Beta Badge === */
.beta-badge {
  display: inline-block;
  background: var(--warning-amber);
  color: var(--bg-dark);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-green) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  animation: float 10s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.trust-badge {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--primary-green);
  border-radius: var(--border-radius);
  color: var(--primary-green);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.product-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 600px;
  margin: var(--space-xl) auto;
}

/* === Problem Section === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.problem-card {
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--warning-amber);
}

.problem-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* === Features Section === */
.feature-list {
  list-style: none;
  margin: var(--space-md) 0;
}

.feature-list li {
  padding: var(--space-sm) 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* === Pricing Comparison === */
.pricing-comparison {
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border: 1px solid var(--border);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.price-row:last-child {
  border-bottom: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--primary-green);
}

.price-label {
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.price-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-green);
}

.price-value.strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
}

.savings-badge {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-left: var(--space-sm);
}

/* === Testimonials === */
.testimonial {
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
  margin: var(--space-md) 0;
}

.testimonial-quote {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.testimonial-author {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* === Footer === */
.site-footer {
  background: var(--bg-surface);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* === Section Spacing === */
section {
  padding: var(--space-xl) 0;
}

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

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

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

/* === Utilities === */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-green { color: var(--primary-green); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* === Responsive Design === */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 2.5rem;
    --text-4xl: 2rem;
    --text-2xl: 1.5rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --text-6xl: 2rem;
    --text-4xl: 1.75rem;
    --text-2xl: 1.25rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 6rem 1rem 2rem;
  }

  .product-grid-2x2 {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    width: 100%;
    display: block;
  }

  .bundle-upsell {
    padding: var(--space-md);
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
