/* ===== Palette (extracted from brain logo) ===== */
:root {
  --dark-primary: #2D2B6B;
  --dark-secondary: #3B3486;
  --accent-violet: #8B5CF6;
  --accent-violet-light: #A78BFA;
  --accent-blue: #38BDF8;
  --accent-pink: #EC4899;
  --accent-gold: #F59E0B;
  --accent-teal: #14B8A6;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --bg-tinted: #F5F3FF;
  --bg-section: #F8FAFC;
  --border-subtle: #E2E0F0;
  --white: #ffffff;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Layout ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 55% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 70%),
    var(--white);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--accent-violet);
}

.subheadline {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 12px;
  line-height: 1.7;
}

.tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 40px;
  font-style: italic;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 0 32px;
  filter: drop-shadow(0 4px 24px rgba(139, 92, 246, 0.15));
}

.explore-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.explore-link:hover {
  color: var(--accent-violet);
}

/* ===== Section Basics ===== */
.section {
  padding: 64px 0;
}

.section-tinted {
  background: var(--bg-tinted);
}

.eyebrow {
  color: var(--accent-violet);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--text-primary);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 24px;
}

/* ===== Cards (Feature cards — white) ===== */
.card {
  position: relative;
  border-radius: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(45, 43, 107, 0.08);
  transform: translateY(-2px);
}

.card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Step numbers (01, 02, 03) */
.card[data-step]::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 72px;
  font-weight: 800;
  color: var(--border-subtle);
  line-height: 1;
  pointer-events: none;
}

/* ===== Icon Badges ===== */
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-pink {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
}

.icon-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
}

.icon-teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-teal);
}

.icon-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-blue);
}

.icon-light {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ===== Dark Card (For residents) ===== */
.card-dark {
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
  border: none;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-dark::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  pointer-events: none;
}

.card-dark h3 {
  color: var(--accent-blue);
  font-size: 22px;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Purple Card (For programs) ===== */
.card-purple {
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-violet-light) 100%);
  border: none;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-purple::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.card-purple h3 {
  color: var(--white);
  font-size: 22px;
}

.card-purple p {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent-violet);
}

/* ===== Policy Pages (Privacy, Terms) ===== */
.policy-nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  transition: color 0.2s;
}

.policy-nav-brand:hover {
  color: var(--accent-violet);
}

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

.policy-main {
  flex: 1;
  padding: 56px 0 72px;
}

.policy-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  text-align: left;
}

.policy-content h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 40px 0 12px;
}

.policy-content p {
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.75;
}

.policy-content a {
  color: var(--accent-violet);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-content a:hover {
  color: var(--dark-primary);
}

.policy-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 56px 0 40px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .section {
    padding: 48px 0;
  }

  .card {
    box-shadow: 0 1px 4px rgba(45, 43, 107, 0.06);
  }

  .card-dark,
  .card-purple {
    min-height: 220px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

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

  .hero-logo {
    width: 140px;
    height: 140px;
  }
}
