
/*
 * Nest English — Phase 7 / Hero & Landing Experience Elevation
 *
 * Purpose:
 * - compose the Phase 6 tokens into a coherent premium landing experience
 * - keep content and behavior intact while strengthening hierarchy, rhythm and interaction
 * - preserve LTR / RTL parity
 */

/* ---------- Navigation composition ---------- */
body.nest-editorial .nest-primary-nav {
  border-bottom: 1px solid var(--nest-line) !important;
  background: color-mix(in srgb, var(--nest-surface-strong) 72%, transparent) !important;
  box-shadow: 0 16px 40px rgba(31, 54, 42, .075), inset 0 -1px 0 rgba(255,255,255,.34);
}
html.dark body.nest-editorial .nest-primary-nav {
  border-bottom-color: var(--nest-dark-line) !important;
  background: color-mix(in srgb, var(--nest-dark) 76%, transparent) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 -1px 0 rgba(255,255,255,.035);
}
body.nest-editorial .nest-primary-nav > div {
  min-height: 72px;
}
body.nest-editorial .nest-primary-nav a,
body.nest-editorial .nest-primary-nav button {
  transition: transform var(--nest-fast) var(--nest-ease), color var(--nest-fast) ease, background-color var(--nest-fast) ease, box-shadow var(--nest-fast) var(--nest-ease);
}
body.nest-editorial .nest-primary-nav .nav-link-luxury {
  position: relative;
  padding: .52rem .2rem;
  color: var(--nest-ink-soft);
}
body.nest-editorial .nest-primary-nav .nav-link-luxury::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -.18rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nest-gold), var(--nest-forest));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--nest-mid) var(--nest-ease);
}
body.nest-editorial .nest-primary-nav .nav-link-luxury:hover {
  color: var(--nest-forest) !important;
}
body.nest-editorial .nest-primary-nav .nav-link-luxury:hover::after,
body.nest-editorial .nest-primary-nav .nav-link-luxury:focus-visible::after {
  transform: scaleX(1);
}
body.nest-editorial .nest-primary-nav #nav-start-btn-desktop {
  min-height: 44px;
  padding-inline: 1.1rem !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 28px rgba(31,95,74,.16) !important;
}
body.nest-editorial .nest-primary-nav .nav-icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0 !important;
  border-radius: 14px !important;
}
body.nest-editorial .nest-mobile-menu {
  padding: .75rem !important;
  border-bottom: 1px solid var(--nest-line);
}
body.nest-editorial .nest-mobile-menu a,
body.nest-editorial .nest-mobile-menu button {
  min-height: 44px;
  border-radius: 12px;
  padding-inline: .8rem;
}

/* ---------- Landing canvas ---------- */
body.nest-editorial #landing-section.nest-landing {
  overflow: clip;
  gap: clamp(5rem, 10vw, 9rem) !important;
}
body.nest-editorial #landing-section.nest-landing > .nest-divider {
  opacity: .72;
  margin-block: -.5rem;
}
body.nest-editorial .nest-hero {
  max-width: 1180px;
  min-height: min(720px, calc(100vh - 72px));
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem) !important;
  padding-top: clamp(4.5rem, 8vw, 7.8rem) !important;
  padding-bottom: clamp(4rem, 7vw, 6.4rem) !important;
}
body.nest-editorial .nest-hero::after {
  inset-inline: 4%;
  opacity: .65;
}
body.nest-editorial .nest-hero-copy {
  position: relative;
  z-index: 2;
}
body.nest-editorial .nest-hero-copy > [data-i18n='hero-badge'] {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-inline: .9rem !important;
  border-radius: 999px !important;
  font-size: .7rem !important;
  letter-spacing: .025em;
  box-shadow: 0 10px 22px rgba(181,138,86,.08);
}
body.nest-editorial .nest-hero-copy h1 {
  max-width: 11ch;
  margin-top: 1rem;
  font-size: clamp(3.25rem, 7.5vw, 6.7rem) !important;
  line-height: .95 !important;
  letter-spacing: -.045em !important;
}
html[dir='rtl'] body.nest-editorial .nest-hero-copy h1 {
  max-width: 12ch;
  letter-spacing: normal !important;
  line-height: 1.08 !important;
}
body.nest-editorial .nest-hero-copy > p {
  max-width: 40rem;
  font-size: clamp(1rem, 1.45vw, 1.16rem) !important;
  line-height: 1.9 !important;
  margin-top: 1.5rem !important;
}
body.nest-editorial .nest-hero .hero-cta-row {
  margin-top: 2rem !important;
  gap: .75rem !important;
}
body.nest-editorial .nest-hero .nest-btn-primary,
body.nest-editorial .nest-hero .nest-btn-secondary {
  min-height: 58px;
  border-radius: 16px;
  padding-inline: 1.3rem !important;
}
body.nest-editorial .nest-hero .nest-btn-primary {
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(31,95,74,.20);
}
body.nest-editorial .nest-hero .nest-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(31,95,74,.25);
}
body.nest-editorial .nest-hero .nest-btn-secondary {
  min-width: 196px;
}
body.nest-editorial .nest-hero .hero-fineprint {
  margin-top: 1.4rem;
  display: grid;
  gap: .55rem;
}
body.nest-editorial .nest-hero .hero-fineprint > div {
  gap: .7rem 1rem;
}
body.nest-editorial .nest-hero .hero-fineprint > div > span {
  min-height: 28px;
  padding-inline: .6rem;
  border: 1px solid var(--nest-line);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
}
html.dark body.nest-editorial .nest-hero .hero-fineprint > div > span {
  background: rgba(255,255,255,.035);
  border-color: var(--nest-dark-line);
}

/* ---------- Hero benchmark card ---------- */
body.nest-editorial .nest-hero-card {
  max-width: 440px !important;
  justify-self: center;
  padding: clamp(1.25rem, 2.5vw, 1.7rem) !important;
  border-radius: 30px !important;
  border-color: rgba(42,61,50,.12) !important;
  box-shadow: 0 30px 76px rgba(31,54,42,.13), 0 8px 24px rgba(31,54,42,.06), inset 0 1px 0 rgba(255,255,255,.62) !important;
  background:
    radial-gradient(240px 160px at 82% 4%, rgba(181,138,86,.11), transparent 70%),
    linear-gradient(150deg, rgba(255,255,255,.84), rgba(255,255,255,.58)) !important;
}
html.dark body.nest-editorial .nest-hero-card {
  border-color: var(--nest-dark-line) !important;
  box-shadow: 0 34px 82px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05) !important;
  background:
    radial-gradient(240px 160px at 82% 4%, rgba(181,138,86,.08), transparent 70%),
    linear-gradient(150deg, rgba(25,34,29,.88), rgba(18,27,22,.75)) !important;
}
body.nest-editorial .nest-hero-card .cefr-scale-luxury {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .3rem;
}
body.nest-editorial .nest-hero-card .cefr-scale-luxury span {
  min-height: 42px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.16);
}
body.nest-editorial .nest-hero-card .benchmark-row {
  min-height: 58px;
  padding: .75rem .9rem !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.48) !important;
  border-color: var(--nest-line) !important;
}
html.dark body.nest-editorial .nest-hero-card .benchmark-row {
  background: rgba(255,255,255,.035) !important;
  border-color: var(--nest-dark-line) !important;
}

/* ---------- Stats rail ---------- */
body.nest-editorial .nest-metric-rail {
  max-width: 1120px;
  gap: .75rem !important;
}
body.nest-editorial .nest-stat-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  border-radius: 22px !important;
  border-color: var(--nest-line) !important;
  background: rgba(255,255,255,.56) !important;
  box-shadow: var(--nest-shadow-sm);
  transition: transform var(--nest-mid) var(--nest-ease), box-shadow var(--nest-mid) var(--nest-ease);
}
html.dark body.nest-editorial .nest-stat-card {
  background: rgba(255,255,255,.035) !important;
  border-color: var(--nest-dark-line) !important;
}
body.nest-editorial .nest-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nest-shadow-md);
}
body.nest-editorial .nest-stat-number {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1;
  color: var(--nest-forest) !important;
}
html.dark body.nest-editorial .nest-stat-number {
  color: #9bc9b0 !important;
}

/* ---------- Section heading ---------- */
body.nest-editorial .nest-section-heading {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: .45rem;
}
body.nest-editorial .nest-section-heading h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem) !important;
  line-height: 1.08 !important;
  margin: 0;
}
html[dir='rtl'] body.nest-editorial .nest-section-heading h2 {
  line-height: 1.28 !important;
}
body.nest-editorial .nest-section-heading p {
  font-size: .9rem !important;
  line-height: 1.8 !important;
}

/* ---------- Learning journey / assessment cards ---------- */
body.nest-editorial .nest-journey {
  max-width: 1120px;
}
body.nest-editorial .nest-step-grid,
body.nest-editorial .nest-feature-grid,
body.nest-editorial .nest-method-grid {
  gap: .8rem !important;
}
body.nest-editorial .nest-step-card,
body.nest-editorial .nest-feature-card,
body.nest-editorial .nest-method-card {
  border-radius: 24px !important;
  border-color: var(--nest-line) !important;
  background: rgba(255,255,255,.56) !important;
  box-shadow: var(--nest-shadow-sm);
}
html.dark body.nest-editorial .nest-step-card,
html.dark body.nest-editorial .nest-feature-card,
html.dark body.nest-editorial .nest-method-card {
  background: rgba(255,255,255,.035) !important;
  border-color: var(--nest-dark-line) !important;
}
body.nest-editorial .nest-step-card {
  min-height: 250px;
  padding: 1.35rem !important;
  display: grid;
  align-content: start;
  gap: .6rem;
}
body.nest-editorial .nest-step-card .step-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  background: linear-gradient(135deg, var(--nest-forest), var(--nest-sage));
  color: #fff;
  box-shadow: 0 14px 28px rgba(31,95,74,.18);
}
body.nest-editorial .nest-feature-card,
body.nest-editorial .nest-method-card {
  transition: transform var(--nest-mid) var(--nest-ease), box-shadow var(--nest-mid) var(--nest-ease), border-color var(--nest-mid) ease;
}
body.nest-editorial .nest-feature-card:hover,
body.nest-editorial .nest-method-card:hover,
body.nest-editorial .nest-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nest-shadow-md);
  border-color: var(--nest-line-strong) !important;
}
body.nest-editorial .nest-feature-hero {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(360px 260px at 90% 0%, rgba(181,138,86,.12), transparent 72%),
    linear-gradient(145deg, rgba(232,239,233,.74), rgba(255,255,255,.56)) !important;
}
html.dark body.nest-editorial .nest-feature-hero {
  background:
    radial-gradient(360px 260px at 90% 0%, rgba(181,138,86,.08), transparent 72%),
    linear-gradient(145deg, rgba(44,64,52,.46), rgba(20,29,24,.54)) !important;
}
body.nest-editorial .nest-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--nest-forest), var(--nest-sage));
  color: #fff;
  box-shadow: 0 14px 28px rgba(31,95,74,.16);
}

/* ---------- Method section ---------- */
body.nest-editorial .nest-method-section {
  position: relative;
}
body.nest-editorial .nest-method-section::before {
  content: '';
  position: absolute;
  inset: 8% 0 4%;
  pointer-events: none;
  background: radial-gradient(420px 220px at 50% 0%, rgba(181,138,86,.10), transparent 72%);
}

/* ---------- FAQ ---------- */
body.nest-editorial .nest-faq-section {
  max-width: 820px !important;
}
body.nest-editorial .nest-faq-section .faq-item {
  border-radius: 18px !important;
  background: rgba(255,255,255,.46);
  border-color: var(--nest-line) !important;
  box-shadow: var(--nest-shadow-sm);
}
html.dark body.nest-editorial .nest-faq-section .faq-item {
  background: rgba(255,255,255,.03);
  border-color: var(--nest-dark-line) !important;
}
body.nest-editorial .nest-faq-section .faq-item:hover {
  border-color: var(--nest-line-strong) !important;
}

/* ---------- Touch / small screens ---------- */
@media (max-width: 767px) {
  body.nest-editorial #landing-section.nest-landing {
    gap: 4.75rem !important;
  }
  body.nest-editorial .nest-hero {
    min-height: auto;
    padding-top: 3.4rem !important;
  }
  body.nest-editorial .nest-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 14vw, 4.6rem) !important;
  }
  html[dir='rtl'] body.nest-editorial .nest-hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 13vw, 4.4rem) !important;
  }
  body.nest-editorial .nest-hero .hero-cta-row {
    align-items: stretch;
  }
  body.nest-editorial .nest-hero .nest-btn-primary,
  body.nest-editorial .nest-hero .nest-btn-secondary {
    width: 100%;
    min-width: 0;
  }
  body.nest-editorial .nest-hero-card {
    width: min(100%, 430px);
  }
  body.nest-editorial .nest-stat-card {
    min-height: 112px;
  }
  body.nest-editorial .nest-stat-number {
    font-size: 1.85rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nest-editorial .nest-stat-card,
  body.nest-editorial .nest-feature-card,
  body.nest-editorial .nest-method-card,
  body.nest-editorial .nest-step-card,
  body.nest-editorial .nest-primary-nav a,
  body.nest-editorial .nest-primary-nav button,
  body.nest-editorial .nest-btn-primary,
  body.nest-editorial .nest-btn-secondary {
    transition: none !important;
  }
}
