/* ==========================================================================
   APURA - LANDING PAGE STYLESHEET
   Design System: Modern Educational Tech, Glassmorphism, Micro-animations
   ========================================================================== */

/* --- Custom Properties & Theme Tokens --- */
:root {
  /* Brand Colors */
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #334155;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-cyan: #0ea5e9;
  --brand-cyan-light: #e0f2fe;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #f3e8ff;
  --success-emerald: #10b981;
  --success-light: #d1fae5;
  --warning-amber: #f59e0b;
  --danger-rose: #f43f5e;

  /* Neutral Spectrum */
  --bg-dark: #090d16;
  --bg-card-dark: rgba(30, 41, 59, 0.7);
  --bg-light: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --border-color: rgba(226, 232, 240, 0.8);
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
  --shadow-glow: 0 0 35px rgba(14, 165, 233, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets & Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography Helpers --- */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary-900);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* --- Buttons & UI Inputs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-900);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--accent-purple));
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-fast);
  filter: blur(8px);
}

.btn-glow:hover::after {
  opacity: 0.7;
}

/* --- Header / Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-900);
  cursor: pointer;
}

/* --- Inline Nav Login Dropdown Menu --- */
.nav-login-wrapper {
  position: relative;
}

.login-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  padding: 1.5rem;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-fast);
}

.login-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-dropdown-menu h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--primary-900);
}

.login-dropdown-menu p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px 0;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              var(--bg-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-700);
}

.trust-icon {
  color: var(--success-emerald);
}

/* Hero CSS Phone Mockup & Vector Animation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: var(--primary-900);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  border: 4px solid #334155;
  transform: rotate(-3deg) translateY(-10px);
  transition: var(--transition-normal);
}

.phone-mockup:hover {
  transform: rotate(0deg) translateY(-15px);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 22px;
  background: #000;
  margin: 0 auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mockup-app-header {
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  padding: 40px 16px 20px 16px;
  color: #fff;
}

.mockup-app-header h4 {
  color: #fff;
  font-size: 1.1rem;
}

.mockup-app-header p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.mockup-app-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0f172a;
  overflow-y: auto;
}

.mockup-notification-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  animation: pulseCard 3s infinite alternate;
}

@keyframes pulseCard {
  0% { border-color: rgba(14, 165, 233, 0.3); box-shadow: 0 0 10px rgba(14, 165, 233, 0.1); }
  100% { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 20;
}

.floating-badge-1 {
  top: 15%;
  left: -20px;
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-badge-2 {
  bottom: 12%;
  right: -20px;
  animation: floatAnim 4s ease-in-out infinite 2s;
}

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

/* --- Section 2: Before vs After Transformation --- */
.transformation {
  padding: 100px 0;
  background: #ffffff;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition-normal);
}

.comparison-old {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.comparison-new {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-lg);
}

.comparison-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-new h3 {
  color: #ffffff;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.old-icon {
  color: var(--danger-rose);
  font-size: 1.25rem;
  line-height: 1;
}

.new-icon {
  color: var(--success-emerald);
  font-size: 1.25rem;
  line-height: 1;
}

/* --- Section 3: Multi-Role Experience --- */
.roles-section {
  padding: 100px 0;
  background: #0f172a;
  color: #ffffff;
}

.roles-section h2 {
  color: #ffffff;
}

.role-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.role-btn {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.role-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.role-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.role-card-display {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Section 4: Pricing Plans --- */
.pricing {
  padding: 100px 0;
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
}

.price-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
}

.price-card:not(.featured) {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.9);
}

.price-card:not(.featured) .price-features {
  margin: 1rem 0 1.25rem 0;
  gap: 0.65rem;
}

.price-card:not(.featured) .price-features li {
  font-size: 0.9rem;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  padding: 2.75rem 2rem 2.25rem 2rem;
  border: 2.5px solid var(--brand-blue);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(37, 99, 235, 0.22);
  transform: scale(1.06);
  z-index: 10;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border-radius: var(--radius-lg);
}

.price-card.featured:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 45px rgba(37, 99, 235, 0.35);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.price-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.price-card.featured .price-header h3 {
  font-size: 1.65rem;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-900);
  margin: 0.75rem 0;
}

.price-card.featured .price-amount {
  font-size: 2.6rem;
}

.price-features {
  list-style: none;
  margin: 1.25rem 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--primary-700);
}

/* --- Modal Demo Request --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--primary-900);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- Footer (Compact Version) --- */
.footer {
  background: var(--primary-900);
  color: var(--text-inverse);
  padding: 28px 0 20px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.4rem;
  max-width: 420px;
  font-size: 0.85rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

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

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding-top: 120px;
  }

  .phone-mockup {
    width: 280px;
    height: 560px;
  }
}
