@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Atkinson+Hyperlegible:wght@400;700&display=swap');

/* ==========================================
   CSS CUSTOM PROPERTIES (STITCH DESIGN SYSTEM)
   ========================================== */
:root {
  /* Colors from DESIGN.md */
  --primary: #451ebb;            /* Cosmic Purple */
  --primary-hover: #36179e;
  --primary-container: #5d3fd3;
  --primary-light: #e6deff;      /* primary-fixed */
  
  --secondary: #0040e0;          /* Electric Blue */
  --secondary-hover: #0033b3;
  --secondary-light: #dde1ff;    /* secondary-fixed */
  
  --accent: #e9c400;             /* Star Gold */
  --accent-hover: #c9a900;
  --accent-light: #ffe16d;
  
  /* Neutrals */
  --bg-main: #f8f9fa;            /* background / surface */
  --bg-alt: #f3f4f5;             /* surface-container-low */
  --bg-card: #ffffff;            /* surface-container-lowest */
  --text-primary: #191c1d;       /* on-surface */
  --text-secondary: #484554;     /* on-surface-variant */
  --text-light: #797586;         /* outline */
  --border-color: #c9c4d7;       /* outline-variant */
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(93, 63, 211, 0.04);
  --shadow-md: 0 10px 30px rgba(93, 63, 211, 0.08); /* Purple-tinted shadow */
  --shadow-lg: 0 20px 40px rgba(93, 63, 211, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(93, 63, 211, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Layout & Sizing */
  --radius-sm: 0.25rem;          /* 4px */
  --radius-md: 0.5rem;           /* 8px */
  --radius-lg: 0.75rem;          /* 12px */
  --radius-xl: 1.5rem;           /* 24px */
  --radius-full: 9999px;
  --container-width: 1280px;      /* Capped at 1280px */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GLOBAL RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   UTILITY CLASSES & GRID SYSTEM
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 48px; /* margin-desktop */
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px; /* margin-mobile */
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  padding: 80px 0;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   TYPOGRAPHY SPECIFICS
   ========================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-secondary {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

/* ==========================================
   BUTTONS & ACTIONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 8px;
  min-height: 48px; /* touch-target */
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(69, 30, 187, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 30, 187, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: #191c1d; /* Black text for maximum contrast on gold */
  box-shadow: 0 4px 14px rgba(233, 196, 0, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 196, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  min-height: 40px; /* still clickable but compact */
}

/* Arrow Icon animation */
.btn svg {
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(248, 249, 25a, 0.85); /* surface transparent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  min-height: 48px; /* touch target */
  display: inline-flex;
  align-items: center;
}

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

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
  width: 48px;
  height: 48px;
  padding: 12px;
}

.bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* ==========================================
   HERO SECTIONS
   ========================================== */
.hero {
  padding: 60px 0 100px 0;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl); /* 24px */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

/* Glassmorphism Card Overlay */
.glass-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-glass);
}

.glass-card h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.glass-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* How It Works Center Hero */
.hero-center {
  padding: 80px 0 40px 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-center h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-center p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* ==========================================
   CARDS & FEATURES SECTION
   ========================================== */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.blend-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blend-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(69, 30, 187, 0.2);
}

.card-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.bg-purple { background-color: hsla(255, 75%, 50%, 0.1); color: var(--primary); }
.bg-blue { background-color: hsla(220, 90%, 55%, 0.1); color: var(--secondary); }
.bg-gold { background-color: hsla(45, 95%, 48%, 0.1); color: var(--accent); }

.blend-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.blend-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================
   HOLISTIC DEVELOPMENT SECTION
   ========================================== */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-header-row .left {
  max-width: 600px;
}

.section-header-row .left .section-title {
  margin-bottom: 8px;
}

.section-header-row .left p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.dev-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-color);
}

.dev-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.dev-card:hover .dev-card-bg {
  transform: scale(1.05);
}

.dev-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(25, 28, 29, 0.5) 0%, rgba(25, 28, 29, 0) 80%);
  z-index: 2;
}

.dev-card-overlay {
  position: relative;
  z-index: 3;
  width: calc(100% - 32px);
  margin: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.overlay-icon-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
}

.overlay-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.dev-card-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================
   EMPOWERING / SCIENCE SECTION
   ========================================== */
.dashboard-mockup {
  background-color: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
  border: 1px solid var(--border-color);
}

.main-progress-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.progress-info h5 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 700;
}

.progress-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.gauge-circle {
  position: relative;
  width: 72px;
  height: 72px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-color);
}

.stat-icon {
  font-size: 1.25rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 700;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.checklist {
  list-style: none;
  margin-top: 24px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.checkmark-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.checklist-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.checklist-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================
   JOIN BANNER (NEWSLETTER)
   ========================================== */
.join-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #30148c 100%);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.join-banner h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 800;
}

.join-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.join-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.join-form {
  display: flex;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 6px;
  gap: 8px;
}

.join-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 1rem;
  color: #ffffff;
  font-family: inherit;
}

.join-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.join-btn {
  background-color: var(--accent);
  color: #191c1d;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.join-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.02);
}

.privacy-notice {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

.success-message {
  display: none;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 12px;
  font-weight: 700;
}

/* ==========================================
   CONTACT MODAL
   ========================================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 28, 29, 0.55);
  backdrop-filter: blur(4px);
}

.contact-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.contact-modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.contact-modal-dialog h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.contact-modal-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-main);
  transition: var(--transition);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(69, 30, 187, 0.12);
}

.contact-field textarea {
  resize: vertical;
  min-height: 100px;
}

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

.contact-success {
  display: none;
  background: var(--primary-light);
  color: var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.contact-success.visible {
  display: block;
}

/* ==========================================
   HOW IT WORKS STEP CARDS
   ========================================== */
.step-item-main {
  background-color: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  border: 1px solid var(--border-color);
}

.step-number-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-content h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card-image-wrapper {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.step-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ==========================================
   FAQ SECTION (ACCORDION)
   ========================================== */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(69, 30, 187, 0.2);
}

.faq-header {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  text-align: left;
}

.faq-question {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon-svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 1rem;
  padding-bottom: 24px;
  line-height: 1.6;
}

/* Active State for FAQ */
.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

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

.faq-item.active .faq-content {
  max-height: 500px;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo-link {
  font-size: 1.75rem;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-col h5 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
}

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

.footer-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
}

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

/* Tablet Viewport (1024px and below) */
@media (max-width: 1024px) {
  .grid-2 {
    gap: 32px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-center h1 {
    font-size: 3rem;
  }
  .step-item-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile Portrait / Landscape Breakpoint */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-alt {
    padding: 60px 0;
  }
  
  /* Navigation Menu mobile drawer overlay */
  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 68px; /* height of header */
    gap: 0;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    height: calc(100vh - 68px);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 1000;
  }
  
  .nav-item {
    margin: 16px 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 12px;
    font-size: 1.25rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  /* Hide the download app CTA on mobile menu, keep it inside drawer if needed */
  .nav-container > .btn {
    display: none; /* Hide top CTA */
  }
  .nav-menu .mobile-cta-item {
    display: block;
    margin: 24px auto 0 auto;
    width: 80%;
  }
  
  /* Hero Sections responsiveness */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero {
    text-align: center;
    padding: 40px 0 60px 0;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-center h1 {
    font-size: 2.5rem;
  }
  
  .glass-card {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border-top: 1px solid var(--border-color);
    box-shadow: none;
    background: #ffffff;
  }
  
  /* Grid conversions */
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .step-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .join-banner {
    padding: 40px 20px;
  }
  
  .join-banner h2 {
    font-size: 1.85rem;
  }
  
  .join-form {
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  
  .join-input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    width: 100%;
    color: #ffffff;
  }
  
  .join-btn {
    width: 100%;
  }
  
  .dev-card {
    height: 360px;
  }
}
