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

:root {
  --navy: #12233F;
  --ink: #18212F;
  --paper: #F7F3EA;
  --coral: #E86D4F;
  --teal: #1E9E9A;
  --gold: #F4B942;
  --blue: #3E6FB6;
  --surface: #FFFCF6;
  --muted: #5C6470;
  --line: rgba(18, 35, 63, 0.08);
  --card-shadow: 0 12px 36px rgba(18, 35, 63, 0.04);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(180deg, rgba(247, 243, 234, 0.94) 0%, rgba(247, 243, 234, 0.98) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(18, 35, 63, 0.025) 23px, rgba(18, 35, 63, 0.025) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(18, 35, 63, 0.025) 23px, rgba(18, 35, 63, 0.025) 24px),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

/* Layout */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(247, 243, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 35, 63, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 35, 63, 0.25);
  background: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: rgba(18, 35, 63, 0.05);
}

.btn-icon {
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

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

/* Hero Section */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 158, 154, 0.1);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero h1 span {
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(232, 109, 79, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Wave & Mountain Graphic */
.graphic-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(18, 35, 63, 0.015) 15px, rgba(18, 35, 63, 0.015) 16px),
    repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(18, 35, 63, 0.015) 15px, rgba(18, 35, 63, 0.015) 16px);
  z-index: 1;
}

.graph-path {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  z-index: 2;
  position: relative;
  padding-bottom: 40px;
}

/* Sections */
section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

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

.section-eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Programs Grid & Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.program-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(18, 35, 63, 0.08);
}

.card-header {
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,35,63,0.85) 0%, rgba(18,35,63,0.5) 100%);
  z-index: 1;
}

/* Background Grids for Card Headers */
.card-header-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 10px, #fff 10px, #fff 11px),
    repeating-linear-gradient(90deg, transparent, transparent 10px, #fff 10px, #fff 11px);
  z-index: 0;
}

/* Card Specific Colors */
.card-term .card-header { background-color: var(--navy); }
.card-term .card-header::before { background: linear-gradient(135deg, rgba(18,35,63,0.9) 0%, rgba(30,158,154,0.6) 100%); }
.card-term .program-btn { background-color: var(--navy); color: #fff; }

.card-lab .card-header { background-color: var(--teal); }
.card-lab .card-header::before { background: linear-gradient(135deg, rgba(30,158,154,0.9) 0%, rgba(62,111,182,0.6) 100%); }
.card-lab .program-btn { background-color: var(--teal); color: #fff; }

.card-boost .card-header { background-color: var(--coral); }
.card-boost .card-header::before { background: linear-gradient(135deg, rgba(232,109,79,0.95) 0%, rgba(244,185,66,0.6) 100%); }
.card-boost .program-btn { background-color: var(--coral); color: #fff; }

.card-revision .card-header { background-color: var(--gold); }
.card-revision .card-header::before { background: linear-gradient(135deg, #d97706 0%, rgba(232,109,79,0.7) 100%); }
.card-revision .program-btn { background-color: #d97706; color: #fff; }

.card-header-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.price-tag {
  background: #fff;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.85rem;
  position: absolute;
  top: 24px;
  right: 24px;
  box-shadow: 0 4px 12px rgba(18, 35, 63, 0.1);
  z-index: 2;
}

.card-title {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 72px;
}

.card-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
}

.card-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-box {
  background: rgba(18, 35, 63, 0.03);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--navy);
}

.card-lab .callout-box {
  border-left-color: var(--teal);
  background: rgba(30, 158, 154, 0.03);
  color: var(--teal);
}

.card-boost .callout-box {
  border-left-color: var(--coral);
  background: rgba(232, 109, 79, 0.03);
  color: var(--coral);
}

.card-revision .callout-box {
  border-left-color: #d97706;
  background: rgba(217, 119, 6, 0.03);
  color: #d97706;
}

.program-btn {
  margin-top: auto;
  width: 100%;
}

.program-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(18, 35, 63, 0.12);
  filter: brightness(0.95);
}

/* Why Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.why-card {
  text-align: center;
  padding: 24px;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(30, 158, 154, 0.1);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.95rem;
}

/* CTA Section */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.cta-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-align: left;
  min-width: 180px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
}

.store-btn-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.store-btn-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.app-meta-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
  padding: 64px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

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

  .hero {
    padding: 64px 0 48px;
  }

  .cta-banner {
    padding: 40px 24px;
  }
}
