/* ============================================================
   index-page.css — styles specific to index.html only
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
  overflow: hidden;
}

/* background watermark logo — large, faint, centered */
.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 47%;
  transform: translate(-50%, -52%);
  width: min(2000px, 180vw);   /* large enough to fill hero */
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  filter: brightness(3) saturate(0.4);
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,191,0.14) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 44px; height: 1px;
  background: var(--blue-lt);
  opacity: 0.45;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-lt);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 560px;
  margin: 24px auto 40px;
  line-height: 1.65;
}

.hero-sub strong { color: var(--white); font-weight: 600; }

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

.btn-primary-hero {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(45,106,191,0.35);
}

.btn-primary-hero:hover {
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,106,191,0.5);
}

.btn-ghost-hero {
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74,144,217,0.4);
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ghost-hero:hover {
  border-color: var(--blue-lt);
  background: rgba(74,144,217,0.08);
  transform: translateY(-2px);
}

.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

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

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue-lt);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ── SECTION BASE ───────────────────────────────────────────── */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 40px;
}

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--blue-lt);
  opacity: 0.55;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title em { font-style: normal; color: var(--blue-lt); }

.section-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.72;
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.how-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.25s;
}

.how-card:hover {
  border-color: var(--card-bdr-hover);
  transform: translateY(-4px);
}

.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.how-card:hover::before { opacity: 1; }

.how-step-num {
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(74,144,217,0.1);
  position: absolute;
  top: 14px; right: 18px;
  pointer-events: none;
}

.how-icon {
  width: 46px; height: 46px;
  background: rgba(45,106,191,0.14);
  border: 1px solid rgba(74,144,217,0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.how-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 10px;
}

.how-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.how-card p strong { color: var(--blue-lt); font-weight: 600; }

/* ── WHY KEYSTONE ───────────────────────────────────────────── */
.why-section {
  background: rgba(0,0,0,0.18);
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}

.why-item:hover { border-color: var(--card-bdr-hover); }

.why-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-lt);
  flex-shrink: 0;
  margin-top: 6px;
}

.why-item h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white);
  margin-bottom: 5px;
}

.why-item p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.62;
}

.why-callout {
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  position: sticky;
  top: 116px;
}

.why-callout-num {
  font-family: var(--font-head);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue-lt);
  margin-bottom: 8px;
}

.why-callout-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.why-callout p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.why-callout p strong { color: var(--white); }

.divider-line {
  width: 40px; height: 2px;
  background: var(--blue);
  margin: 18px auto;
  border-radius: 2px;
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.test-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s, transform 0.25s;
}

.test-card:hover {
  border-color: var(--card-bdr-hover);
  transform: translateY(-3px);
}

.test-stars {
  color: #f5c518;
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 3px;
}

.test-quote {
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.test-author {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-lt);
}

.test-author span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  margin-top: 3px;
}

.test-placeholder-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: rgba(154,170,187,0.4);
  font-style: italic;
}

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-section {
  background: rgba(45,106,191,0.07);
  border-top: 1px solid rgba(74,144,217,0.18);
  border-bottom: 1px solid rgba(74,144,217,0.18);
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 40px;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 18px;
}

.cta-inner h2 em { font-style: normal; color: var(--blue-lt); }

.cta-inner p {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FADE UP ANIMATION ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 100px 24px 60px; }
  .section-inner { padding: 72px 24px; }
  .why-layout { grid-template-columns: 1fr; gap: 32px; }
  .why-callout { position: static; }
  .cta-inner { padding: 72px 24px; }
}

@media (max-width: 600px) {
  .hero-stat-row { gap: 28px; }
  .how-grid { grid-template-columns: 1fr; }
}
