/* ===== ELI marketing site ===== */
/* Self-hosted brand display font (kept with the project for consistency across
   the app and website — no reliance on an external CDN). */
@font-face {
  font-family: 'Archivo Black';
  src: url('/api/site/ArchivoBlack-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0038ff;
  --blue-dark: #0026b3;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #e2e5ec;
  --gray-400: #9aa0ac;
  --gray-600: #5b6270;
  --gray-800: #23272f;
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ===== Typography ===== */
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow.light { color: #7f98ff; }
.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--white); }
.section-desc { color: var(--gray-600); font-size: 18px; max-width: 560px; margin: 14px auto 0; }
.section-desc.light { color: rgba(255,255,255,0.7); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: 15px 28px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(0,56,255,0.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,56,255,0.35); }
.btn-ghost { background: transparent; color: var(--black); border: 1.5px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--black); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--gray-100); box-shadow: 0 2px 20px rgba(0,0,0,0.04); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: 'Archivo Black', sans-serif; font-size: 24px;
  color: var(--blue); text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--gray-800); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}
.hero-watermark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  font-family: 'Archivo Black', sans-serif; color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,56,255,0.06);
  font-size: clamp(60px, 12vw, 150px); line-height: 0.92; letter-spacing: 0.02em;
  white-space: pre-wrap; word-break: break-all; overflow: hidden; user-select: none;
}
.hero-content { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(52px, 12vw, 132px); line-height: 0.92; letter-spacing: -0.02em;
  margin: 8px 0 24px;
}
.hero-title .blue { color: var(--blue); }
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--gray-600); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Philosophy ===== */
.philosophy { padding: 96px 0; text-align: center; }
.philosophy .lead { font-size: clamp(18px, 2.4vw, 24px); color: var(--gray-800); margin-top: 20px; line-height: 1.5; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--black); }
.section-head { text-align: center; margin-bottom: 56px; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 30px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); border-color: var(--gray-200); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(0,56,255,0.08);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--blue);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--gray-600); font-size: 15px; }

/* ===== Programs ===== */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.09); }
.program-cover {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue) 0%, #001a99 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.program-cover img { width: 100%; height: 100%; object-fit: cover; }
.program-cover .cover-mark { font-family: 'Archivo Black', sans-serif; color: rgba(255,255,255,0.9); font-size: 40px; }
.program-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92);
  color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.program-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.program-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.program-meta { font-size: 13px; color: var(--gray-400); font-weight: 600; margin-bottom: 12px; }
.program-desc { color: var(--gray-600); font-size: 14.5px; flex: 1; margin-bottom: 18px; }
.program-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.program-price { font-family: 'Archivo Black', sans-serif; font-size: 24px; }
.loading, .empty { grid-column: 1 / -1; text-align: center; color: var(--gray-400); padding: 40px 0; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card {
  display: flex; gap: 22px; background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 30px;
}
.team-avatar {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #001a99); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif; font-size: 24px;
}
.team-role { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.team-name { font-size: 21px; font-weight: 800; margin: 4px 0 10px; }
.team-text { color: var(--gray-600); font-size: 15px; }

/* ===== Membership ===== */
.pricing-card {
  background: #fff; border-radius: 24px; padding: 40px; max-width: 460px; margin: 0 auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.pricing-head { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); margin-bottom: 24px; }
.pricing-plan { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-400); }
.pricing-amount { margin-top: 12px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.price { font-family: 'Archivo Black', sans-serif; font-size: 56px; letter-spacing: -0.02em; }
.per { color: var(--gray-400); font-weight: 600; }
.pricing-list { list-style: none; margin-bottom: 28px; }
.pricing-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-weight: 500; }
.pricing-list li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,56,255,0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230038ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pricing-note { text-align: center; color: var(--gray-400); font-size: 13px; margin-top: 16px; }

/* ===== Footer ===== */
.footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer p { font-size: 14px; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; padding: 32px; width: 100%; max-width: 420px;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.3); animation: pop 0.25s var(--ease);
}
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; color: var(--gray-400); cursor: pointer; line-height: 1; }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal .modal-sub { color: var(--gray-600); font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); }
.field input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gray-200); border-radius: 12px;
  font-size: 15px; font-family: inherit; transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--blue); }
.modal-error { color: #d33; font-size: 14px; margin: 6px 0 14px; display: none; }
.modal-error.show { display: block; }
.modal-switch { text-align: center; font-size: 14px; color: var(--gray-600); margin-top: 16px; }
.modal-switch button { background: none; border: none; color: var(--blue); font-weight: 700; cursor: pointer; font-size: 14px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--gray-100); box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .nav.open .nav-links a { padding: 10px 0; }
  .feature-grid, .program-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .section { padding: 72px 0; }
  .hero { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
