/* ============================================
   SmartMoves Swim — Styles
   Color Palette: Aqua #0EA5E9 · Navy #1E3A5F · White · Light Gray
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --aqua: #0EA5E9;
  --aqua-light: #BAE6FD;
  --aqua-bg: #F0F9FF;
  --navy: #1E3A5F;
  --navy-dark: #0F2A4A;
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --green: #22C55E;
  --red: #EF4444;
  --amber: #F59E0B;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --transition: .3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- GRID ---- */
.grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.grid--2col { grid-template-columns: 1fr 1fr; }
.grid--3col { grid-template-columns: repeat(3, 1fr); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn--sm { padding: 8px 20px; font-size: .875rem; }
.btn--lg { padding: 14px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--aqua);
  color: var(--white);
  border-color: var(--aqua);
}
.btn--primary:hover {
  background: #0284C7;
  border-color: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14,165,233,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

/* ---- SECTION UTILITIES ---- */
.section {
  padding: 100px 0;
}
.section__label {
  display: inline-block;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--aqua);
  margin-bottom: 12px;
}
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon--x { color: var(--red); }
.icon--check { color: var(--green); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.95);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}
.navbar__brand strong { font-weight: 800; }
.navbar__logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--aqua); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  /* Bright swim pool gradient with pattern */
  background:
    linear-gradient(135deg, #0EA5E9 0%, #0284C7 30%, #1E3A5F 70%, #0F2A4A 100%);
  position: relative;
}

/* Water ripple pattern overlay */
.hero__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 120px 80px at 20% 60%, rgba(255,255,255,.12) 0%, transparent 70%),
    radial-gradient(ellipse 100px 60px at 50% 40%, rgba(255,255,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 140px 90px at 75% 70%, rgba(255,255,255,.10) 0%, transparent 70%),
    radial-gradient(ellipse 80px 50px at 30% 30%, rgba(255,255,255,.06) 0%, transparent 70%),
    radial-gradient(ellipse 110px 70px at 85% 25%, rgba(255,255,255,.08) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite alternate;
}

/* Decorative wave shapes */
.hero__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,60 C240,120 480,0 720,60 C960,120 1200,0 1440,60 L1440,120 L0,120Z'/%3E%3C/svg%3E");
  background-size: cover;
}

@keyframes shimmer {
  0%   { opacity: .7; transform: translateX(0); }
  100% { opacity: 1;  transform: translateX(-20px); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,42,74,.3) 0%, rgba(15,42,74,.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 80px;
  max-width: 1140px;
}

.hero__photo {
  flex-shrink: 0;
}
.hero__photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.hero__text {
  text-align: left;
}

.hero__headline {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero__sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.section--problem {
  background: var(--white);
}

.problem__text h2 {
  margin-bottom: 24px;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.problem__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--gray-700);
}

.problem__statement {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  padding-top: 12px;
  border-top: 2px solid var(--gray-200);
}

.placeholder-img svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.problem-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ============================================
   SOLUTION / FEATURES SECTION
   ============================================ */
.section--solution {
  background: var(--gray-50);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-card__icon svg {
  width: 32px;
  height: 32px;
}
.feature-card__icon--blue  { background: var(--aqua-bg); color: var(--aqua); }
.feature-card__icon--navy  { background: #EFF1F5;       color: var(--navy); }
.feature-card__icon--aqua  { background: #ECFDF5;       color: #059669; }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card > p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: .95rem;
}

.feature-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card ul li {
  font-size: .9rem;
  color: var(--gray-600);
  padding-left: 20px;
  position: relative;
}
.feature-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  opacity: .5;
}

/* ============================================
   HOW IT WORKS (STEPS)
   ============================================ */
.section--steps {
  background: var(--white);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 240px;
  padding: 0 16px;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(14,165,233,.3);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.step__connector {
  width: 48px;
  height: 2px;
  background: var(--gray-300);
  margin-top: 28px;
  flex-shrink: 0;
  position: relative;
}
.step__connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--gray-300);
  border-right: 2px solid var(--gray-300);
  transform: rotate(45deg);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.section--benefits {
  background: var(--gray-50);
}

.grid--reverse {
  direction: rtl;
}
.grid--reverse > * {
  direction: ltr;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.benefits__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--gray-700);
}

/* ---- Dashboard Mockup ---- */
.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.dashboard-mockup__bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot--red { background: #FCA5A5; }
.dot--yellow { background: #FDE68A; }
.dot--green { background: #86EFAC; }

.dashboard-mockup__body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 64px;
  background: var(--navy);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mock-sidebar__item {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}
.mock-sidebar__item--active {
  background: var(--aqua);
}

.mock-main {
  flex: 1;
  padding: 24px;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mock-title {
  width: 140px;
  height: 16px;
  background: var(--gray-200);
  border-radius: 4px;
}

.mock-badge {
  font-size: .7rem;
  font-weight: 700;
  background: #DCFCE7;
  color: #15803D;
  padding: 4px 12px;
  border-radius: 20px;
}

.mock-students {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-student-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--aqua-light);
  flex-shrink: 0;
}

.mock-name {
  width: 70px;
  height: 10px;
  background: var(--gray-300);
  border-radius: 3px;
  flex-shrink: 0;
}

.mock-checks {
  display: flex;
  gap: 6px;
  flex: 1;
}

.mock-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
}

.mock-check--done {
  background: #DCFCE7;
  color: #15803D;
}
.mock-check--pending {
  background: var(--gray-200);
  color: transparent;
}

.mock-level-badge {
  font-size: .65rem;
  font-weight: 700;
  background: var(--aqua);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.mock-progress-text {
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
}

/* ============================================
   INSTRUCTOR TRAINING SECTION
   ============================================ */
.section--training {
  background: var(--white);
}

.section--training .section__subtitle {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.training-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
}
.training-card--problem {
  background: #FFF7ED;
  border-color: #FED7AA;
}
.training-card--solution {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.training-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.training-card__header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.training-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.training-card__icon svg {
  width: 28px;
  height: 28px;
}
.training-card__icon--red {
  background: #FEE2E2;
  color: #DC2626;
}
.training-card__icon--green {
  background: #DCFCE7;
  color: #16A34A;
}

.training-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.training-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.training-list li .icon {
  margin-top: 3px;
  flex-shrink: 0;
}
.training-list li strong {
  display: block;
  font-size: .95rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.training-list li span {
  display: block;
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.training-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.training-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.training-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(14, 165, 233, .1);
  color: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.training-feature__icon svg {
  width: 22px;
  height: 22px;
}

.training-feature strong {
  display: block;
  font-size: .95rem;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.training-feature p {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

.training-callout {
  text-align: center;
  padding: 28px 32px;
  background: var(--aqua-bg);
  border-radius: var(--radius);
  border: 1px solid var(--aqua-light);
}
.training-callout p {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .training-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MULTI-LOCATION SECTION
   ============================================ */
.section--multi {
  background: var(--white);
}

.multi__text p {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.placeholder-img--multi svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================
   DIGITIZE YOUR CONTENT SECTION
   ============================================ */
.section--digitize {
  background: var(--gray-50);
}

.section--digitize .section__subtitle {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.digitize-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

/* ---- Visual Journey (left) ---- */
.digitize-visual {
  padding: 24px;
}

.digitize-journey {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.digitize-from__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.digitize-from__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  min-width: 100px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.digitize-from__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.digitize-from__item svg {
  width: 36px;
  height: 36px;
}
.digitize-from__item span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}

.digitize-arrow {
  flex-shrink: 0;
}
.digitize-arrow svg {
  width: 48px;
  height: 20px;
}

.digitize-to__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  background: var(--white);
  border: 2px solid var(--aqua);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, .15);
  min-width: 140px;
}
.digitize-to__icon svg {
  width: 44px;
  height: 44px;
}
.digitize-to__card strong {
  font-size: .9rem;
  color: var(--navy);
}
.digitize-to__card span {
  font-size: .75rem;
  color: var(--gray-500);
}

/* ---- Steps (right) ---- */
.digitize-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.digitize-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.digitize-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .25);
}

.digitize-step strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.digitize-step p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

/* ---- Trust badges ---- */
.digitize-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.digitize-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aqua);
}
.digitize-trust__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.digitize-trust__item span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 768px) {
  .digitize-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .digitize-journey {
    flex-direction: column;
  }
  .digitize-arrow svg {
    transform: rotate(90deg);
  }
  .digitize-trust {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   AI SECTION
   ============================================ */
.section--ai {
  padding: 60px 0;
  background: var(--gray-50);
}

.ai-badge {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.ai-badge__icon svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.ai-badge__text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.ai-badge__text p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.section--cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 20% 50%, rgba(14,165,233,.15), transparent),
    radial-gradient(circle 300px at 80% 50%, rgba(14,165,233,.1), transparent);
}

.cta-block {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.cta-block h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-block > p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 40px;
}

.cta-block__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand .navbar__brand {
  color: var(--white);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: .9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer__links h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: .9rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer__links a:hover {
  color: var(--aqua);
}

.footer__bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  text-align: center;
  font-size: .8rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal__close:hover { color: var(--gray-800); }

.modal h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal > p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 24px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__form input,
.modal__form select,
.modal__form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color var(--transition);
}
.modal__form input:focus,
.modal__form select:focus,
.modal__form textarea:focus {
  outline: none;
  border-color: var(--aqua);
  background: var(--white);
}

.modal__form input::placeholder,
.modal__form textarea::placeholder {
  color: var(--gray-400);
}

.modal__form textarea {
  resize: vertical;
  min-height: 70px;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.modal__success.show {
  display: block;
}
.modal__success.show + .modal__form,
.modal__form:has(~ .modal__success.show) {
  display: none;
}

.modal__success svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}
.modal__success h4 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.modal__success p {
  color: var(--gray-500);
  font-size: .9rem;
}

/* Success state: hide form, show success */
.modal__form.hidden { display: none; }

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate="fade-up"] {
  transform: translateY(30px);
}
[data-animate="fade-right"] {
  transform: translateX(-30px);
}
[data-animate="fade-left"] {
  transform: translateX(30px);
}
[data-animate].visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid--3col { grid-template-columns: 1fr; }
  .feature-card { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .grid--2col { grid-template-columns: 1fr; gap: 40px; }
  .grid--reverse { direction: ltr; }

  .hero__headline {
    font-size: 2.2rem;
  }
  .hero__sub { font-size: 1.05rem; }

  h2, .section__header h2 { font-size: 1.75rem; }

  .section { padding: 72px 0; }

  /* Navbar mobile */
  .navbar__toggle { display: flex; }

  .navbar__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .step__connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }
  .step__connector::after {
    right: -4px;
    top: auto;
    bottom: -4px;
    transform: rotate(135deg);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta-block h2 { font-size: 1.75rem; }

  .ai-badge {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  /* Dashboard mockup responsive */
  .dashboard-mockup__body { flex-direction: column; }
  .mock-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .mock-sidebar__item {
    width: 28px;
    height: 28px;
  }
}

/* ---- PLATFORM FEATURES ---- */
.section--features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.pf-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gray-200);
  transition: var(--transition);
}
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--aqua-light);
}
.pf-card:hover::before {
  background: var(--aqua);
}

.pf-card--highlight {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border-color: var(--aqua-light);
}
.pf-card--highlight::before {
  background: var(--aqua);
}

.pf-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pf-card__icon svg {
  width: 32px;
  height: 32px;
}
.pf-card__icon--aqua  { background: #E0F2FE; color: var(--aqua); }
.pf-card__icon--navy  { background: #E8EDF4; color: var(--navy); }
.pf-card__icon--green { background: #DCFCE7; color: #16A34A; }
.pf-card__icon--purple { background: #EDE9FE; color: #7C3AED; }
.pf-card__icon--amber { background: #FEF3C7; color: #D97706; }

.pf-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.pf-card p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.pf-card__tags li {
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--gray-100);
  color: var(--gray-600);
  letter-spacing: .02em;
}
.pf-card--highlight .pf-card__tags li {
  background: rgba(14, 165, 233, .15);
  color: #0369A1;
}

/* Features bottom banner */
.features-banner {
  margin-top: 48px;
}
.features-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: var(--white);
}
.features-banner__text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}
.features-banner__text p {
  font-size: 1rem;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  .features-banner__text p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pf-card {
    padding: 28px 24px;
  }
}

/* ---- CONTENT LIBRARY ---- */
.section--library {
  background: var(--navy);
  color: var(--white);
}

.section--library .section__label {
  color: var(--aqua-light);
}
.section--library .section__label::before {
  background: var(--aqua-light);
}
.section--library h2 {
  color: var(--white);
}
.section--library .section__subtitle {
  color: var(--gray-300);
}

.library-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.library-stat {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.library-stat:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.library-stat__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--aqua);
}
.library-stat__icon svg {
  width: 100%;
  height: 100%;
}

.library-stat__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--aqua);
  line-height: 1;
  margin-bottom: 4px;
}

.library-stat__label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.library-stat__desc {
  font-size: .9rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.library-callout {
  text-align: center;
  margin-top: 48px;
  padding: 28px 32px;
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(14, 165, 233, .25);
  border-radius: var(--radius);
}
.library-callout p {
  font-size: 1.1rem;
  color: var(--gray-200);
  max-width: 640px;
  margin: 0 auto;
}
.library-callout strong {
  color: var(--white);
}

@media (max-width: 1024px) {
  .library-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .library-stats {
    grid-template-columns: 1fr;
  }
  .library-stat__number {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .hero__text {
    text-align: center;
    order: 1;
  }
  .hero__photo--left {
    order: 2;
  }
  .hero__photo--right {
    order: 3;
  }
  .hero__sub {
    margin: 0 auto 40px;
  }
  .hero__ctas {
    justify-content: center;
  }
  .hero__photo img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 1.8rem; }
  .hero { min-height: 80vh; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 300px; }
  .cta-block__buttons { flex-direction: column; align-items: center; }
  .cta-block__buttons .btn { width: 100%; max-width: 300px; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 24px; }

  .mock-student-row { flex-wrap: wrap; }
  .mock-checks { order: 3; width: 100%; margin-top: 4px; }
}

/* ============================================
   DEMOS PAGE
   ============================================ */

/* Solid navbar (no transparency) for inner pages */
.navbar--solid {
  background: var(--navy) !important;
  backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* Demos Hero */
.demos-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a4a6e 100%);
  color: var(--white);
  text-align: center;
}
.demos-hero .section__label {
  color: var(--aqua-light);
}
.demos-hero .section__label::before {
  background: var(--aqua-light);
}
.demos-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--white);
}
.demos-hero__sub {
  font-size: 1.15rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Demo Sections */
.demos-main {
  padding: 0;
}

.demo-section {
  padding: 80px 0;
}
.demo-section--alt {
  background: var(--gray-50);
}

.demo-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.demo-section__inner--reverse {
  direction: rtl;
}
.demo-section__inner--reverse > * {
  direction: ltr;
}

.demo-section__num {
  display: inline-block;
  font-size: .85rem;
  font-weight: 800;
  color: var(--aqua);
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.demo-section__text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}
.demo-section__text > p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.demo-section__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-section__highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--gray-700);
  font-weight: 500;
}
.demo-section__highlights li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-size: .75rem;
  font-weight: 700;
}

/* Video Placeholder */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.video-placeholder:hover {
  border-color: var(--aqua);
  background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
}

.video-placeholder__inner {
  text-align: center;
}

.video-placeholder__icon {
  width: 72px;
  height: 72px;
  color: var(--gray-400);
  margin-bottom: 12px;
  transition: var(--transition);
}
.video-placeholder:hover .video-placeholder__icon {
  color: var(--aqua);
  transform: scale(1.08);
}

.video-placeholder__label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: .02em;
}
.video-placeholder:hover .video-placeholder__label {
  color: var(--aqua);
}

/* Demos page responsive */
@media (max-width: 1024px) {
  .demo-section__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .demo-section__inner--reverse {
    direction: ltr;
  }
  .demos-hero h1 {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .demos-hero {
    padding: 140px 0 60px;
  }
  .demos-hero h1 {
    font-size: 1.8rem;
  }
  .demo-section {
    padding: 60px 0;
  }
  .demo-section__text h2 {
    font-size: 1.35rem;
  }
}
