/* =========================================================================
   Features page — deep dive
   ========================================================================= */

/* "Back to home" persistent button — always visible */
.back-home {
  position: fixed;
  top: 74px;
  left: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--gold);
  color: var(--navy);
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(10,37,64,0.35), 0 0 0 6px rgba(253,185,19,0.12);
  transition: transform .2s ease, background .2s ease;
}
.back-home:hover {
  background: #ffc733;
  transform: translateY(-2px);
}
.back-home svg { width: 16px; height: 16px; stroke-width: 3; }
@media (max-width: 640px) {
  .back-home {
    top: auto;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
  }
  .back-home:hover { transform: translateX(-50%) translateY(-2px); }
}

/* Features hero */
.f-hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.f-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(253,185,19,0.15), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,115,230,0.18), transparent 70%);
  pointer-events: none;
}
.f-hero .container { position: relative; }
.f-hero .eyebrow { color: var(--gold); justify-content: center; display: inline-flex; }
.f-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 20px 0 24px;
}
.f-hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  font-family: "Playfair Display", serif;
}
.f-hero p {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,0.78);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Sticky in-page nav */
.f-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,37,64,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}
.f-nav .scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 20px;
}
.f-nav .scroller::-webkit-scrollbar { display: none; }
.f-nav a {
  color: rgba(255,255,255,0.65);
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.f-nav a:hover { color: var(--gold); }
.f-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Feature deep-dive sections */
.f-section {
  padding: clamp(80px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 80px;
}
.f-section:nth-child(even) { background: var(--bg-warm); }
.f-section.dark {
  background: var(--navy);
  color: #fff;
}
.f-section.dark h2 { color: #fff; }
.f-section.dark .f-lead { color: rgba(255,255,255,0.85); }
.f-section.dark p { color: rgba(255,255,255,0.72); }
.f-section.dark .f-list li { color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.12); }
.f-section.dark .f-list li strong { color: var(--gold); }
.f-section.dark .f-list li .dot { background: rgba(253,185,19,0.18); color: var(--gold); }
.f-section.dark .f-tier {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.f-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr; } }
.f-section.reverse .f-grid .f-visual { order: -1; }

.f-copy .eyebrow { color: var(--gold-warm); }
.f-section.dark .f-copy .eyebrow { color: var(--gold); }
.f-copy h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--navy);
  margin: 16px 0 20px;
}
.f-copy h2 em {
  color: var(--gold-warm);
  font-style: italic;
  font-weight: 400;
  font-family: "Playfair Display", serif;
}
.f-section.dark .f-copy h2 em { color: var(--gold); }
.f-lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 18px;
  line-height: 1.45;
}
.f-copy p {
  color: var(--body-soft);
  font-size: 16px;
  line-height: 1.7;
}
.f-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.f-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--body);
}
.f-list li:first-child { border-top: 0; padding-top: 0; }
.f-list li .dot {
  width: 22px; height: 22px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 999px;
  display: grid; place-items: center;
  margin-top: 2px;
}
.f-list li .dot svg { width: 12px; height: 12px; }
.f-list li strong {
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.f-tier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(253,185,19,0.12);
  border: 1px solid rgba(253,185,19,0.45);
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--navy);
}
.f-tier .lbl { color: var(--body-soft); text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; }
.f-tier .val { font-weight: 900; }

.f-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10,37,64,0.18);
  background: #f0ede5;
}
.f-section.dark .f-visual { box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.f-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.f-visual .ribbon {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.f-visual.cover { aspect-ratio: 16/10; }

.f-section .f-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Compact section for shorter features (Mentors/Mentees/etc) */
.f-section.compact { padding: clamp(60px, 7vw, 100px) 0; }
.f-section.compact .f-copy h2 { font-size: clamp(28px, 3.5vw, 40px); }

/* Tier-includes table */
.f-tiers-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.f-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-warm);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--body-soft);
}
.f-tier-chip.in {
  background: rgba(253,185,19,0.18);
  border-color: var(--gold);
  color: var(--navy);
}
.f-tier-chip.in::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 999px;
}
.f-section.dark .f-tier-chip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
}
.f-section.dark .f-tier-chip.in {
  background: rgba(253,185,19,0.18);
  border-color: var(--gold);
  color: #fff;
}

/* Final CTA on features page */
.f-final {
  background: var(--navy-deep);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.f-final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0,115,230,0.20), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(253,185,19,0.10), transparent 70%);
  pointer-events: none;
}
.f-final .container { position: relative; }
.f-final h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 22px;
}
.f-final p {
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* Image-coverable visual fallback when no screenshot exists */
.f-visual.illustration {
  background: linear-gradient(135deg, var(--navy) 0%, var(--e3-blue) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.f-visual.illustration svg { width: 40%; height: 40%; opacity: 0.8; }
.f-visual.illustration .name {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Hero-feature anchor styling — defeat default link styles */
a.hero-feature, a.platform-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}
a.platform-card { display: block; }
