/* Complete redesign with TRUE glass effects, exact color specifications, light mode, and performance optimizations */

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

:root {
  /* EXACT gradient colors from user specification: #007daf (blue), #c771d4 (purple), #ffb829 (orange/yellow) */
  --color-blue: #007daf;
  --color-purple: #c771d4;
  --color-orange: #ffb829;

  /* Gradient with exact colors at 45deg */
  --gradient-primary: linear-gradient(45deg, #007daf, #c771d4, #ffb829);

  /* Individual color variations for effects */
  --glow-blue: rgba(0, 125, 175, 0.5);
  --glow-purple: rgba(199, 113, 212, 0.5);
  --glow-orange: rgba(255, 184, 41, 0.5);

  /* Dark mode colors */
  --bg-dark: #000000;
  --bg-dark-alt: #050505;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Using Outfit font for bold, high-tech modern 2025 look */
  --font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Light mode colors (warm beige/cream, not white/gray) */
[data-theme="light"] {
  --bg-dark: #f5f1eb;
  --bg-dark-alt: #ebe7e1;
  --text-primary: rgba(0, 0, 0, 0.9);
  --text-secondary: rgba(0, 0, 0, 0.65);
  --text-muted: rgba(0, 0, 0, 0.45);
  --glow-blue: rgba(0, 125, 175, 0.3);
  --glow-purple: rgba(199, 113, 212, 0.3);
  --glow-orange: rgba(255, 184, 41, 0.3);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Added smooth scroll with momentum feel */
  scroll-behavior: smooth;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Reduced cursor glow intensity slightly, disabled on mobile for performance */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-purple), var(--glow-blue), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  filter: blur(70px);
  mix-blend-mode: screen;
  will-change: transform;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(0, 125, 175, 0.4), rgba(199, 113, 212, 0.3), transparent 70%);
  mix-blend-mode: multiply;
}

/* Frosted glass text effect with depth and backlighting on ALL text */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title {
  background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px var(--glow-purple));
  font-weight: 900;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .hero-title,
[data-theme="light"] .section-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-primary);
  filter: none;
}

/* Enhanced glassy text with better contrast */
.glassy-text {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(0, 125, 175, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 80px var(--glow-blue)) drop-shadow(0 0 120px var(--glow-purple));
  animation: glassShimmer 6s ease-in-out infinite;
}

[data-theme="light"] .glassy-text {
  background: linear-gradient(135deg, rgba(0, 125, 175, 1), rgba(199, 113, 212, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
  animation: none;
}

/* Backlighting effect behind glassy text */
.glassy-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(40px);
  opacity: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glassShimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 80px var(--glow-blue)) drop-shadow(0 0 120px var(--glow-purple));
  }
  50% {
    filter: drop-shadow(0 0 100px var(--glow-purple)) drop-shadow(0 0 140px var(--glow-blue));
  }
}

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

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  filter: drop-shadow(0 0 40px var(--glow-purple));
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* TRUE glass card with multiple layers, depth, and 3D feel */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 20px 60px -20px
    rgba(0, 0, 0, 0.8), 0 0 100px rgba(0, 125, 175, 0.15);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 20px 60px -20px
    rgba(0, 0, 0, 0.15), 0 0 100px rgba(0, 125, 175, 0.2);
}

/* Multiple glass layers for depth */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(0, 125, 175, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
  opacity: 0.5;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 30px 80px -20px
    rgba(0, 0, 0, 0.9), 0 0 150px rgba(0, 125, 175, 0.25);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 1) inset, 0 30px 80px -20px
    rgba(0, 0, 0, 0.2), 0 0 150px rgba(0, 125, 175, 0.3);
}

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

/* Ambient backlighting throughout site (low intensity gradient orbs) */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
  mix-blend-mode: screen;
}

[data-theme="light"] .gradient-orb {
  opacity: 0.25;
  filter: blur(160px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-blue), var(--glow-purple), transparent);
  top: -250px;
  left: -250px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-purple), var(--glow-orange), transparent);
  top: 100px;
  right: -200px;
  animation-delay: 5s;
}

.orb-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--glow-orange), var(--glow-blue), transparent);
  bottom: -350px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 10s;
}

.orb-4 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--glow-purple), var(--glow-blue), transparent);
  top: 50%;
  right: -250px;
  animation-delay: 7s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

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

/* Smaller, more minimal floating navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  top: 16px;
}

.nav-container {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 14px 30px;
  display: flex;
  gap: 32px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 20px 60px -20px
    rgba(0, 0, 0, 0.8), 0 0 140px rgba(0, 125, 175, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .nav-container {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 1) inset, 0 20px 60px -20px
    rgba(0, 0, 0, 0.15), 0 0 140px rgba(0, 125, 175, 0.25);
}

.navbar.scrolled .nav-container {
  padding: 12px 24px;
}

/* Brand name styling to differentiate studytwin */
.brand-name {
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 125, 175, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px var(--glow-blue));
  letter-spacing: -0.02em;
}

[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, rgba(0, 125, 175, 1), rgba(199, 113, 212, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

.brand-highlight {
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 125, 175, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px var(--glow-blue));
}

[data-theme="light"] .brand-highlight {
  background: linear-gradient(135deg, rgba(0, 125, 175, 1), rgba(199, 113, 212, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
}

/* Enhanced CTA button with glass effect and smooth transitions */
.nav-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 11px 24px;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 125, 175, 0.5), 0 0 70px rgba(199, 113, 212, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.nav-cta:hover::before {
  left: 100%;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 125, 175, 0.7), 0 0 120px rgba(199, 113, 212, 0.5);
}

/* Theme toggle button (non-prominent, modern pill) */
.theme-toggle {
  position: fixed;
  top: 80px; /* 👈 Not too high so it doesn’t clash with navbar */
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(60px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 125, 175, 0.15);
  z-index: 2000; /* 👈 Ensure it's above other content but below nav if needed */
}
[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 60px rgba(0, 125, 175, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 90px rgba(0, 125, 175, 0.3);
}

.theme-toggle .sun-icon {
  display: none;
  color: var(--color-orange);
}

.theme-toggle .moon-icon {
  display: block;
  color: var(--text-primary);
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Glass hero badge with depth */
.hero-badge {
  display: inline-block;
  padding: 11px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(60px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 125, 175, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 80px rgba(0, 125, 175, 0.2), 0 0 0 1px rgba(255, 255, 255, 1) inset;
}

.hero-badge:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 120px rgba(0, 125, 175, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.hero-description {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  /* Body font normal weight, not bold */
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Glass buttons with smooth transitions and no abrupt size changes */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

/* Enhanced hero CTA button with animated gradient */
.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 125, 175, 0.5), 0 0 100px rgba(199, 113, 212, 0.3);
  animation: gradientFlow 4s ease infinite;
}

.btn-hero-cta {
  animation: gradientFlow 3s ease infinite, pulseGlow 2s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 40px rgba(0, 125, 175, 0.5), 0 0 100px rgba(199, 113, 212, 0.3);
  }
  50% {
    box-shadow: 0 10px 40px rgba(0, 125, 175, 0.7), 0 0 140px rgba(199, 113, 212, 0.5);
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 125, 175, 0.7), 0 0 160px rgba(199, 113, 212, 0.5);
}

/* Glass secondary button with depth */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(60px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 125, 175, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 80px rgba(0, 125, 175, 0.2), 0 0 0 1px rgba(255, 255, 255, 1) inset;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 120px rgba(0, 125, 175, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Glass social links with glow */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(60px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 125, 175, 0.12);
}

[data-theme="light"] .social-link {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 60px rgba(0, 125, 175, 0.2);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 125, 175, 0.4);
}

.hero-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Subtle shade differentiation between sections */
.section:nth-child(even) {
  background-color: var(--bg-dark-alt);
}

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

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

.section-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  font-weight: 800;
}

/* Enhanced "Because we needed it too" subtitle */
.section-subtitle-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 26px);
  filter: drop-shadow(0 0 50px var(--glow-purple));
  animation: gradientShift 8s ease infinite;
}

[data-theme="light"] .section-subtitle-highlight {
  filter: none;
}

/* Glass subjects container with depth */
.subjects-container {
  padding: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* Glass subject pills with depth and smooth hover */
.subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  backdrop-filter: blur(50px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 125, 175, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

[data-theme="light"] .subject-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 60px rgba(0, 125, 175, 0.2), 0 0 0 1px rgba(255, 255, 255, 1) inset;
}

.subject-pill svg {
  color: var(--color-blue);
  filter: drop-shadow(0 0 15px var(--glow-blue));
}

.subject-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 125, 175, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15)
    inset;
}

.subject-more {
  background: rgba(199, 113, 212, 0.12);
  border-color: rgba(199, 113, 212, 0.3);
  color: var(--color-purple);
  font-style: italic;
}

.subject-more:hover {
  background: rgba(199, 113, 212, 0.18);
  border-color: rgba(199, 113, 212, 0.5);
}

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

.about-card {
  padding: 44px;
  text-align: center;
}

/* Glass card icon with glow */
.card-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 22px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 125, 175, 0.6), 0 0 100px rgba(199, 113, 212, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover .card-icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 12px 40px rgba(0, 125, 175, 0.8), 0 0 140px rgba(199, 113, 212, 0.7);
}

.about-card h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  padding: 44px;
}

.studytwin-card {
  border: 2px solid rgba(0, 125, 175, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 120px rgba(0, 125, 175, 0.25);
}

.studytwin-card:hover {
  border-color: rgba(0, 125, 175, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 180px rgba(0, 125, 175, 0.4);
}

.chatgpt-card {
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.comparison-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.comparison-header h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.comparison-header p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}

.check-item svg {
  color: #10b981;
  flex-shrink: 0;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6));
}

.cross-item {
  opacity: 0.5;
}

.cross-item svg {
  color: #ef4444;
  flex-shrink: 0;
}

.team-content {
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.team-text p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 24px;
  font-weight: 400;
}

.team-text p:last-child {
  margin-bottom: 0;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.feature-card {
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-number {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

.features-note {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
}

.features-note p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

/* Glass FAQ accordion with smooth transitions */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 19px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--color-purple);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-purple);
  filter: drop-shadow(0 0 12px var(--glow-purple));
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 36px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 36px 28px 36px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-weight: 400;
  font-size: 15px;
}

.waitlist-section {
  position: relative;
  overflow: hidden;
}

.waitlist-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 60px;
  text-align: center;
}

.waitlist-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.waitlist-description {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 400;
}

.waitlist-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  padding: 80px 0 40px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-section h4 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.footer-section a svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-section a:hover svg {
  opacity: 1;
}

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 800;
}

.footer-bottom a:hover {
  color: var(--text-primary);
}

/* Styled Digital Mates link with lighter gradient color */
.digital-mates-link {
  background: linear-gradient(135deg, rgba(0, 125, 175, 0.8), rgba(199, 113, 212, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px var(--glow-blue));
  font-weight: 900;
}

.digital-mates-link:hover {
  filter: drop-shadow(0 0 25px var(--glow-purple));
}

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: var(--color-purple);
  color: white;
}

::-moz-selection {
  background: var(--color-purple);
  color: white;
}

/* Enhanced mobile responsive styles with performance optimizations */
@media (max-width: 768px) {
  /* Disable cursor glow on mobile for performance */
  .cursor-glow {
    display: none;
  }

  /* Reduce animation complexity on mobile */
  .gradient-orb {
    animation: none;
    opacity: 0.15;
  }

  .navbar {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-container {
    padding: 12px 20px;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-logo {
    font-size: 19px;
  }

  .nav-cta {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Position theme toggle on right side on mobile */
  .theme-toggle {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 110px 20px 60px;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    width: 100%;
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .subjects-container {
    padding: 44px 24px;
  }

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

  .team-content {
    padding: 44px 32px;
  }

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

  .faq-question {
    padding: 24px 28px;
    font-size: 17px;
  }

  .faq-answer {
    padding: 0 28px;
  }

  .faq-item.active .faq-answer {
    padding: 0 28px 24px 28px;
  }

  .waitlist-content {
    padding: 60px 36px;
  }

  .waitlist-cta {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }

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

@media (max-width: 480px) {
  .nav-container {
    padding: 11px 18px;
  }

  .nav-logo {
    font-size: 17px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 10px 20px;
  }

  .about-card {
    padding: 32px 24px;
  }

  .subjects-container {
    padding: 32px 20px;
  }

  .subject-pill {
    padding: 11px 20px;
    font-size: 13px;
  }

  .comparison-card {
    padding: 32px 24px;
  }

  .team-content {
    padding: 32px 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .faq-question {
    padding: 22px 24px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 24px;
  }

  .faq-item.active .faq-answer {
    padding: 0 24px 22px 24px;
  }

  .waitlist-content {
    padding: 50px 28px;
  }
}

/* Performance optimization: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

