/* =======================
   DARK GLASSMORPHISM DESIGN SYSTEM
   RideAware Landing Page
   ======================= */

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

:root {
  /* Backgrounds */
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  /* Accents */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-amber: #f59e0b;
  --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-text: linear-gradient(135deg, #818cf8, #22d3ee);

  /* Effects */
  --glow: 0 0 80px rgba(99, 102, 241, 0.12);
  --glow-sm: 0 0 40px rgba(99, 102, 241, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Layout */
  --navbar-height: 60px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =======================
   UTILITIES
   ======================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* =======================
   NAVBAR
   ======================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  min-height: var(--navbar-height);
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--navbar-height);
}

@media (min-width: 768px) {
  .nav-container { padding: 0 2rem; }
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: none;
  list-style: none;
}

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

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.nav-toggle .bar {
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links.open {
  display: flex;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(9, 9, 11, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem;
  z-index: 999;
}

.nav-links.open a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
}

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

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
  }
  .nav-links a:hover::after { width: 100%; }
}

/* =======================
   HERO
   ======================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-height) + 2rem) 1.25rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
  }
}

.hero-cta .email-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  min-width: 0;
}

.hero-cta .email-input::placeholder {
  color: var(--text-tertiary);
}

.hero-cta .email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.hero-cta .btn-primary {
  padding: 0.85rem 1.75rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.hero-cta .btn-primary:active {
  transform: scale(0.98);
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* =======================
   SOCIAL PROOF BAR
   ======================= */
.proof-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.proof-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}

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

.proof-item .number {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-item .label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* =======================
   FEATURES - BENTO GRID
   ======================= */
.features {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.features .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =======================
   HOW IT WORKS
   ======================= */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.how-it-works .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

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

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 auto 1.25rem;
}

.step-number-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    right: -1rem;
    width: 2rem;
    height: 1px;
    background: var(--glass-border);
  }
}

/* =======================
   ROADMAP / DEV STATUS
   ======================= */
.roadmap {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.roadmap .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.roadmap .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-cyan), var(--glass-border));
}

@media (min-width: 768px) {
  .timeline::before { left: 22px; }
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .timeline-item { padding-left: 60px; }
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: var(--bg-primary);
}

@media (min-width: 768px) {
  .timeline-dot { left: 14px; }
}

.timeline-item.live .timeline-dot {
  border-color: var(--accent-green);
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.timeline-item.in-progress .timeline-dot {
  border-color: var(--accent-amber);
  background: var(--accent-amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.timeline-item.planned .timeline-dot {
  border-color: var(--text-tertiary);
  background: var(--bg-tertiary);
}

.timeline-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.timeline-item.live .timeline-badge {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.timeline-item.in-progress .timeline-badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.timeline-item.planned .timeline-badge {
  background: rgba(113, 113, 122, 0.1);
  color: var(--text-tertiary);
  border: 1px solid rgba(113, 113, 122, 0.2);
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* =======================
   CTA SECTION
   ======================= */
.cta-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.cta-card .hero-cta {
  max-width: 400px;
}

/* =======================
   PAGE HEADER (ABOUT, CONTACT, NEWSLETTERS)
   ======================= */
.page-hero {
  padding: calc(var(--navbar-height) + 4rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
}

.page-hero > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  position: relative;
}

/* =======================
   ABOUT PAGE
   ======================= */
.about-mission {
  padding: 4rem 0;
}

.about-mission .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-mission .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.mission-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.mission-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.mission-text ul {
  list-style: none;
  margin-top: 1.5rem;
}

.mission-text ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mission-text ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mission-visual {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .mission-visual { height: 400px; }
}

.values-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.values-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.value-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: white;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Team */
.team-section {
  padding: 4rem 0;
}

.team-section .section-header,
.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-header p {
  color: var(--text-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-member {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.team-member-image {
  font-size: 3rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.team-member-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-member-info > p {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Stats */
.stats-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.stats-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-section .section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stats-section .section-header p {
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
}

.stat-box .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FAQ */
.faq-section {
  padding: 4rem 0;
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-section .section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  gap: 1rem;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question i {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =======================
   CONTACT PAGE
   ======================= */
.contact-layout {
  padding: 2rem 0 4rem;
}

.contact-layout .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-layout .container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-info-side h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info-side > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-info-side ul {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-info-side ul li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.contact-info-side ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.info-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.info-card a {
  color: var(--accent-light);
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--accent-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.newsletter-opt-in {
  margin-bottom: 1.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-text i {
  color: var(--accent-light);
  margin-right: 0.25rem;
}

.form-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.form-submit:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  color: var(--accent-green);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-success.show {
  display: block;
}

/* =======================
   NEWSLETTERS
   ======================= */
.page-header {
  padding: calc(var(--navbar-height) + 4rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
}

.header-icon {
  font-size: 2.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.main-content {
  padding: 0 1.25rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .main-content { padding: 0 2rem 4rem; }
}

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

@media (min-width: 640px) {
  .newsletters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .newsletters-grid { grid-template-columns: repeat(3, 1fr); }
}

.newsletter-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.newsletter-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.newsletter-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.newsletter-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.newsletter-info h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.newsletter-info h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.newsletter-info h2 a:hover {
  color: var(--accent-light);
}

.newsletter-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.newsletter-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.read-more-btn:hover {
  gap: 0.75rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.subscribe-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.subscribe-prompt:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* =======================
   NEWSLETTER DETAIL / ARTICLE
   ======================= */
.article-wrap {
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 2rem) 1.25rem 4rem;
  gap: 2rem;
}

@media (min-width: 900px) {
  .article-wrap {
    flex-direction: row;
    padding-top: calc(var(--navbar-height) + 3rem);
    gap: 3rem;
  }
}

.article-aside {
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .article-aside {
    width: 260px;
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
    max-height: calc(100vh - var(--navbar-height) - 4rem);
    overflow-y: auto;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-light);
}

.article-meta {
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.toc {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

#toc-list {
  list-style: none;
  padding-left: 0;
}

#toc-list li {
  margin-bottom: 0.4rem;
}

#toc-list li a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

#toc-list li a:hover {
  color: var(--accent-light);
}

.toc-h3 {
  padding-left: 1rem;
}

.article-main {
  flex: 1;
  min-width: 0;
}

.article-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.article-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.newsletter-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.newsletter-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.newsletter-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.newsletter-content p {
  margin-bottom: 1rem;
}

.newsletter-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(129, 140, 248, 0.3);
  text-underline-offset: 2px;
}

.newsletter-content a:hover {
  text-decoration-color: var(--accent-light);
}

.newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.action-btn.primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.action-btn.primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.3);
}

.action-btn.secondary {
  background: var(--glass);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.action-btn.secondary:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

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

.footer p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* =======================
   ANIMATIONS & A11Y
   ======================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Scroll margin for fixed navbar */
[id] {
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}
