/* ======================================
   EasyNav – Reset & Theme
   ====================================== */

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

:root {
  --en-blue: #004f86;
  --en-blue-soft: #0b2740;
  --en-red: #d61f29;
  --en-bg: #f5f7fb;
  --en-surface: #ffffff;
  --en-text: #0f172a;
  --en-muted: #6b7280;
  --en-border: #e2e8f0;
  --en-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.22);
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--en-bg);
  color: var(--en-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ======================================
   Layout helpers
   ====================================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.0rem;
}

/* Header container – tighter padding just for the logo + nav */
.site-header .container {
  padding: 0.5rem 0.6rem;   /* top/bottom, left/right */
}

.section {
  padding: 1rem 0;
}

.section--light {
  background-color: var(--en-surface);
}

/* subtle separators between major blocks */
.section-block + .section-block {
  border-top: 1px solid var(--en-border);
}

/* ======================================
   Header / Navigation
   ====================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition:
    background 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Initial state – matches hero block */
.site-header--hero {
  background: radial-gradient(circle at top left, #0f172a, #020617 50%),
    radial-gradient(circle at bottom right, #0b2640, #020617 60%);
  border-bottom: none;
  box-shadow: none;
}

/* After scrolling up – classic white header */
.site-header--solid {
  background-color: rgba(245, 247, 251, 0.98);
  border-bottom: 1px solid var(--en-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Hidden while scrolling down */
.site-header--hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.1rem 1.5rem;
}

/* Brand / logo */

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-full {
  height: 45px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .nav__logo-full {
    height: 40px;
  }
}

/* Links */

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Default (solid white header) link colours */
.nav__link a {
  text-decoration: none;
  color: var(--en-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__link a:hover {
  color: var(--en-blue);
}

/* CTA button (solid header) */
.nav__cta a {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--en-blue);
  color: var(--en-blue);
  font-size: 0.9rem;
}

.nav__cta a:hover {
  background-color: var(--en-blue);
  color: #ffffff;
}

/* HERO STATE: light links on dark background */
.site-header--hero .nav__link a {
  color: #e5e7eb;
}

.site-header--hero .nav__link a:hover {
  color: #ffffff;
}

.site-header--hero .nav__cta a {
  border-color: #e5e7eb;
  color: #e5e7eb;
}

.site-header--hero .nav__cta a:hover {
  background-color: #e5e7eb;
  color: #020617;
}

/* Burger menu */

.nav__menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: inherit;
}

@media (max-width: 768px) {
  .nav__menu-toggle {
    display: block;
  }

  .nav__links {
    display: none;
  }

  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1.5rem;
    top: 64px;
    background-color: var(--en-surface);
    border-radius: 0.9rem;
    padding: 0.9rem 1.25rem;
    box-shadow: var(--en-shadow-soft);
    gap: 0.9rem;
    min-width: 190px;
  }

  .nav.nav--open .nav__links .nav__cta a {
    width: 100%;
    text-align: center;
  }
}

/* Tighten the vertical padding in the header */
.site-header .nav {
  padding-top: 0.05rem;
  padding-bottom: 0.05rem;
  height: 64px; /* ✔ fixes overall header height */
  display: flex;
  align-items: center;
}


/* ======================================
   HERO – Simple, bold header
   ====================================== */

.hero-landing {
  background: radial-gradient(circle at top left, #0f172a, #020617 50%),
    radial-gradient(circle at bottom right, #0b2640, #020617 60%);
  color: #e5e7eb;
  padding: 5rem 0.5rem;
}

.hero-landing__inner {
  max-width: 720px;
}

.hero-landing__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.hero-landing__title {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-landing__text {
  font-size: 1rem;
  color: #cbd5f5;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

@media (max-width: 640px) {
  .hero-landing {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-landing__title {
    font-size: 2.3rem;
  }
}

/* ======================================
   Buttons
   ====================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--en-blue), #0070c8);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 79, 134, 0.45);
}

.btn--primary:hover {
  filter: brightness(0.97);
}

.btn--ghost {
  background-color: transparent;
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

.btn--ghost:hover {
  border-color: #9fd2ff;
  color: #ffffff;
}

/* ======================================
   Section headings / text
   ====================================== */

.section__header {
  margin-bottom: 2rem;
}

.section__header--center {
  text-align: center;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section__title--center {
  text-align: center;
}

.section__title--light {
  color: #f9fafb;
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--en-muted);
  max-width: 38rem;
}

.section__subtitle--center {
  margin: 0 auto;
}

.section__subtitle--light {
  color: #e5e7eb;
}

.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--en-muted);
  margin-bottom: 0.3rem;
}

.section__eyebrow--light {
  color: #d1d5db;
}

/* ======================================
   TRUST GRID / SIMPLE CARDS
   ====================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trust-card {
  background-color: var(--en-surface);
  border-radius: 1rem;
  border: 1px solid var(--en-border);
  padding: 1.25rem;
}

.trust-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--en-muted);
  margin-bottom: 0.5rem;
}

.trust-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.trust-card__text {
  font-size: 0.9rem;
  color: var(--en-muted);
}

/* Simple grid/card helpers (used for reuse) */

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 960px) {
  .simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .simple-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.simple-card {
  background-color: var(--en-surface);
  border-radius: 1rem;
  border: 1px solid var(--en-border);
  padding: 1.25rem;
}

.simple-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.simple-card__text {
  font-size: 0.9rem;
  color: var(--en-muted);
}

/* ======================================
   HOW IT WORKS – Steps row
   ====================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.steps__item {
  background-color: var(--en-surface);
  border-radius: 1rem;
  border: 1px solid var(--en-border);
  padding: 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.steps__badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--en-blue), var(--en-red));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.steps__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.steps__text {
  font-size: 0.9rem;
  color: var(--en-muted);
}

/* slightly tighter copy for this layout */
.steps--simple .steps__text {
  max-width: 18rem;
}

/* ======================================
   FEATURE BAND – STARS EXAMPLE
   ====================================== */

.feature-band {
  background: radial-gradient(circle at top left, rgba(0, 79, 134, 0.3), #004f86),
    radial-gradient(circle at bottom right, rgba(214, 31, 41, 0.5), #082f49);
  color: #f9fafb;
  padding: 4rem 0 3.5rem;
}

.feature-band__intro {
  padding-bottom: 1rem;
}

/* Layout: image + text, with smaller image column */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 1.5rem 0;
}

/* Reverse row: text left, image right */
.feature-row--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.feature-row__media {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.feature-row__image-frame {
  max-width: 420px;
  width: 100%;
  margin: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background-color: #0b2640;
  box-shadow: var(--en-shadow-soft);
}

.feature-row__image {
  display: block;
  width: 100%;
  height: auto; /* maintain aspect ratio – no squish */
}

/* Taller multi-level image still obeys max-width, but can be taller */
.feature-row__image--tall {
  max-height: 620px;
}

.feature-row__copy {
  min-width: 0;
}

.feature-row__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-row__text {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem;
  }

  .feature-row__media {
    justify-content: center;
  }

  .feature-row__image-frame {
    max-width: 360px;
  }
}

/* ======================================
   CTA section
   ====================================== */

.cta-section {
  background-color: var(--en-surface);
}

.cta-section__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

@media (max-width: 768px) {
  .cta-section__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================
   Footer
   ====================================== */

.site-footer {
  border-top: 1px solid var(--en-border);
  background-color: var(--en-surface);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.site-footer__content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ======================================
   STARS demo wrapper
   ====================================== */

.stars-demo-hero {
  background: radial-gradient(circle at top left, #0f172a, #020617 50%),
    radial-gradient(circle at bottom right, #0b2640, #020617 60%);
  color: #e5e7eb;
  padding: 4rem 0 4rem;
}

.stars-demo-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.stars-demo-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #020617;
}

/* Desktop iframe size */
.stars-demo-iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}

/* Smaller screens */
@media (max-width: 768px) {
  .stars-demo-iframe {
    height: 520px;
  }
}

.stars-demo-cta {
  margin-top: 2rem;
}

.stars-demo-note {
  margin-top: 1.5rem;
  max-width: 32rem;
}

/* Make the entire STARS demo page dark until the footer */
.stars-demo-page {
  background: linear-gradient(180deg, #0f1629 0%, #0a1020 100%);
  min-height: calc(100vh - 80px); /* full height minus the footer */
  padding-bottom: 60px; /* space before the footer */
  display: flex;
  flex-direction: column;
}

/* Ensure the text container grows downward */
.stars-demo-hero {
  flex: 1;
}

/* Footer stays white, small, clean */
.site-footer {
  background: #ffffff;
  color: #777;
  padding: 0.2rem 0;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.site-footer__content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ======================================
   STARS DEMO PAGE
   ====================================== */

.stars-demo-page {
  /* Dark background all the way down, main area only.
     Footer stays white because it's outside <main>. */
  background: radial-gradient(circle at top left, #0f172a, #020617 50%),
              radial-gradient(circle at bottom right, #0b2640, #020617 60%);
  min-height: calc(100vh - 72px); /* fills screen under header */
  display: flex;
  flex-direction: column;
}

.stars-demo-hero {
  flex: 1;
  padding: 4.5rem 0 4rem;
  color: #e5e7eb;
}

.stars-demo-hero__inner {
  max-width: 720px;
}

.stars-demo-hero__title {
  margin-bottom: 1.2rem;
}

.stars-demo-hero__text {
  max-width: 38rem;
  margin-bottom: 2.1rem;
}

.stars-demo-hero__actions {
  margin-bottom: 1.8rem;
}

.stars-demo-note {
  max-width: 34rem;
}

/* Slightly tighter on mobile */
@media (max-width: 640px) {
  .stars-demo-hero {
    padding: 3.5rem 0 3rem;
  }

  .stars-demo-hero__title {
    font-size: 1.8rem;
  }
}
