/* ==========================================================================
   NEXT FRONTIER TECH AI — Design System (light)
   Learn Smarter. Build Better. Go Further.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --bg:        #F5F7F4;
  --white:     #FFFFFF;
  --text:      #17231C;
  --green:     #315C46;
  --green-dk:  #264838;
  --sage:      #A7BBA9;
  --pale:      #E7EEE8;
  --muted:     #65736A;
  --body:      #46544B;
  --border:    #DCE4DD;
  --border-strong: #C9D5CC;

  /* Deep surface (used once, for the closing CTA) */
  --deep:        #22412F;
  --deep-2:      #1B3527;
  --deep-border: rgba(255, 255, 255, 0.16);

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(23, 35, 28, 0.04);
  --shadow-sm: 0 1px 3px rgba(23, 35, 28, 0.05), 0 10px 26px -18px rgba(23, 35, 28, 0.20);
  --shadow-md: 0 2px 6px rgba(23, 35, 28, 0.05), 0 20px 44px -26px rgba(23, 35, 28, 0.24);
  --shadow-lg: 0 28px 64px -34px rgba(23, 35, 28, 0.30);

  /* Geometry */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 76px;

  /* Type */
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--pale); color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 6.4vw, 92px);
  position: relative;
}

.section--tight { padding-block: clamp(44px, 5.5vw, 72px); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 64ch;
  line-height: 1.7;
}

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--green);
  opacity: 0.55;
  flex: none;
}

.eyebrow--pill {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 13px;
  letter-spacing: 0.1em;
  font-size: 11px;
  box-shadow: var(--shadow-xs);
}
.eyebrow--pill::before { width: 6px; height: 6px; border-radius: 50%; opacity: 1; }

.text-green { color: var(--green); }
.text-muted { color: var(--muted); }

.lead {
  font-size: clamp(16px, 1.45vw, 18.5px);
  color: var(--muted);
  line-height: 1.72;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.18s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--primary {
  --btn-bg: var(--green);
  --btn-fg: #FFFFFF;
  --btn-bd: var(--green);
}
.btn--primary:hover {
  --btn-bg: #2A4F3C;
  --btn-bd: #2A4F3C;
  box-shadow: 0 12px 26px -16px rgba(49, 92, 70, 0.75);
}

.btn--ghost:hover {
  --btn-bd: var(--green);
  color: var(--green);
  background: var(--pale);
}

.btn--sm { padding: 11px 18px; font-size: 11.5px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo__mark {
  width: 40px;
  height: 40px;
  color: var(--green);
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text);
}

.logo__sub {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 5px;
  opacity: 0.9;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}

.nav__link:hover { color: var(--text); background: var(--bg); }

.nav__link[aria-current="page"] {
  color: var(--green);
  background: var(--pale);
  font-weight: 600;
}

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile panel */
.nav__panel {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 20px var(--gutter) 40px;
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.nav__panel.is-open { display: flex; }

.nav__panel a {
  padding: 15px 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.nav__panel .btn { margin-top: 24px; justify-content: center; border-bottom: 0; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -180px -20% auto -20%;
  height: 760px;
  background:
    radial-gradient(ellipse 55% 60% at 26% 34%, rgba(167, 187, 169, 0.34), transparent 68%),
    radial-gradient(ellipse 45% 55% at 84% 12%, rgba(231, 238, 232, 0.95), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero h1 .line { display: block; }

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero__sub {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 32px;
  line-height: 1.72;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- 8. Hero console visual ---------- */
.console { position: relative; }

.console__frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.console:hover .console__frame {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: #FBFCFA;
}

.console__bar i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}
.console__bar i:first-child { background: var(--sage); }

.console__bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.console__body {
  position: relative;
  aspect-ratio: 5 / 4;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 56%, rgba(49, 92, 70, 0.17) 0%, rgba(49, 92, 70, 0.07) 34%, rgba(49, 92, 70, 0) 64%),
    linear-gradient(155deg, #F7FAF6 0%, #EDF3ED 100%);
}

.console__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(49, 92, 70, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 78% 70% at 50% 46%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 46%, #000 20%, transparent 76%);
  opacity: 0.75;
  pointer-events: none;
}

/* Glow lives in the panel background so it cannot seam as a rasterised layer */
.console__orb { display: none; }

.console__ring {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 232px;
  height: 232px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(49, 92, 70, 0.20);
  border-radius: 50%;
  pointer-events: none;
}
.console__ring::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px dashed rgba(49, 92, 70, 0.16);
  border-radius: 50%;
}

.console__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.console__chip b {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.75;
}

.console__chip--a { top: 15%; left: 6%; }
.console__chip--b { top: 44%; right: 4%; }
.console__chip--c { bottom: 15%; left: 12%; }

@media (prefers-reduced-motion: no-preference) {
  .console__chip--a { animation: float 8s ease-in-out infinite; }
  .console__chip--b { animation: float 10s ease-in-out infinite reverse; }
  .console__chip--c { animation: float 9s ease-in-out infinite 0.8s; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.console__foot {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}

.console__foot span { display: inline-flex; align-items: center; gap: 6px; }
.console__foot span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--green); opacity: 0.6;
}

/* ---------- 9. Audience band ---------- */
.audience-band {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.audience {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience__item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px clamp(18px, 2.2vw, 32px);
  border-left: 1px solid var(--border);
}

.audience__item:first-child { border-left: 0; padding-left: 0; }
.audience__item:last-child { padding-right: 0; }

.audience__icon { display: inline-flex; color: var(--green); }
.audience__icon svg { width: 20px; height: 20px; }

.audience__item h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.audience__item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 10. Trust / intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pillars {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.pillar {
  background: var(--white);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  transition: background 0.25s var(--ease);
}

.pillar:hover { background: #FCFDFB; }

.pillar__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  padding-top: 3px;
}

.pillar h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.015em;
}

.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- 10. Cards ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--green {
  color: var(--green);
  border-color: #CFDDD3;
  background: var(--pale);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--pale);
  border: 1px solid #D6E2D9;
  color: var(--green);
  flex: none;
}

.card__icon svg { width: 19px; height: 19px; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.68;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
}

.card__link .arrow { transition: transform 0.22s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(3px); }

.card--flat:hover { transform: none; }

.card--cta {
  border-style: dashed;
  border-color: var(--border-strong);
  background: transparent;
  box-shadow: none;
}
.card--cta:hover {
  border-style: solid;
  border-color: var(--green);
  background: var(--white);
}

/* ---------- 11. Learn list ---------- */
.track {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease),
              transform 0.26s var(--ease);
}

.track:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.track__num {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  border-right: 1px solid var(--border);
  padding-right: 20px;
}

.track h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.015em; }
.track p { font-size: 13.5px; color: var(--muted); }

.track__arrow {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.26s var(--ease);
}

.track:hover .track__arrow {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
  transform: rotate(-45deg);
}

/* ---------- 12. Products ---------- */
.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}

.product:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
}

.product__media {
  position: relative;
  aspect-ratio: 16 / 8.2;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 22%, rgba(231, 238, 232, 0.95), transparent 62%),
    linear-gradient(150deg, #F3F7F2, #E9F0E9);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.product__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 92, 70, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 92, 70, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000, transparent 78%);
}

.product__glyph {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(49, 92, 70, 0.42);
  line-height: 1;
}

.product__kind {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.product__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.product__body p { font-size: 13.5px; color: var(--muted); flex: 1; }

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.85;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.3; }
}

/* ---------- 13. Resources ---------- */
.resource {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease),
              transform 0.26s var(--ease);
}

.resource:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.resource__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--pale);
  border: 1px solid #D6E2D9;
  color: var(--green);
}

.resource__icon svg { width: 20px; height: 20px; }

.resource__body { flex: 1; min-width: 0; }
.resource__body h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.resource__body p { font-size: 13.5px; color: var(--muted); }

.resource__cta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 14. News ---------- */
.article {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  padding: 24px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}

.article:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.article__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.article__meta a { color: var(--green); }

.article h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 9px; }
.article p { font-size: 13.5px; color: var(--muted); flex: 1; }

/* ---------- 15. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--deep-2);
  background:
    radial-gradient(ellipse 70% 130% at 50% -10%, rgba(255, 255, 255, 0.10), transparent 62%),
    linear-gradient(165deg, var(--deep) 0%, var(--deep-2) 100%);
  padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  color: #FFFFFF;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.20) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 65% 90% at 50% 0%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 65% 90% at 50% 0%, #000, transparent 74%);
  opacity: 0.45;
  pointer-events: none;
}

.cta-band > * { position: relative; }

/* Monochrome brand mark, for the dark surface only */
.cta-band::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  background: url("../img/logo-mark-mono.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(26px, 3.8vw, 44px);
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 56ch;
  margin: 0 auto 30px;
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  line-height: 1.7;
}

.cta-band .hero__cta { justify-content: center; margin-bottom: 0; }

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  border-color: var(--deep-border);
  background: rgba(255, 255, 255, 0.08);
}
.cta-band .eyebrow::before { background: rgba(255, 255, 255, 0.82); }

.cta-band .btn--primary {
  --btn-bg: #FFFFFF;
  --btn-fg: var(--green);
  --btn-bd: #FFFFFF;
}
.cta-band .btn--primary:hover { --btn-bg: var(--pale); --btn-bd: var(--pale); }

.cta-band .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #FFFFFF;
  --btn-bd: rgba(255, 255, 255, 0.34);
}
.cta-band .btn--ghost:hover {
  --btn-bd: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* ---------- 16. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding-top: clamp(48px, 6vw, 76px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}

.footer__brand p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 18px;
  line-height: 1.7;
}

.footer__slogan {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 16px;
}

.footer__brand .footer__domain {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-top: 6px;
}

.footer h3 {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer__list { display: grid; gap: 10px; }

.footer__list a {
  font-size: 13.5px;
  color: var(--body);
  transition: color 0.18s;
}

.footer__list a:hover { color: var(--green); }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.22s var(--ease);
}

.footer__social a:hover {
  color: var(--green);
  border-color: var(--sage);
  background: var(--pale);
}

.footer__social svg { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a:hover { color: var(--green); }

/* ---------- 17. Page header (inner pages) ---------- */
.page-head {
  position: relative;
  padding-top: clamp(52px, 6.5vw, 88px);
  padding-bottom: clamp(32px, 4vw, 52px);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(ellipse 46% 62% at 22% 32%, rgba(167, 187, 169, 0.34), transparent 70%),
    radial-gradient(ellipse 40% 55% at 92% 4%, rgba(231, 238, 232, 0.9), transparent 72%);
  pointer-events: none;
}

.page-head .container { position: relative; }

/* A page header already provides the top breathing room, so the section after it
   does not need a second full gap. */
.page-head + .section,
.page-head + .section--tight {
  padding-top: clamp(24px, 3vw, 40px);
}

.page-head h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  max-width: 20ch;
  margin-bottom: 18px;
}

.page-head .lead { max-width: 64ch; }

/* ---------- 18. Prose (articles / legal) ---------- */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--body);
}

.prose > * + * { margin-top: 20px; }

.prose h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  color: var(--text);
  margin-top: 42px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 30px;
}

.prose strong { color: var(--text); font-weight: 600; }

.prose ul, .prose ol { display: grid; gap: 9px; padding-left: 4px; }

.prose li { position: relative; padding-left: 20px; }

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1.5px;
  background: var(--sage);
}

.prose ol { counter-reset: n; }
.prose ol li::before {
  counter-increment: n;
  content: counter(n) ".";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.prose blockquote {
  margin: 0;
  padding: 20px 24px;
  border-left: 2px solid var(--green);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 17px;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid #D3E0D6;
  background: var(--pale);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
}

.callout strong { color: var(--text); }

/* ---------- 19. Forms ---------- */
.form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field input::placeholder,
.field textarea::placeholder { color: #93A099; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 92, 70, 0.10);
}

.field textarea { min-height: 140px; resize: vertical; }

.form__note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.form__status {
  font-size: 13.5px;
  color: var(--green);
  min-height: 1.4em;
}

.form__status.is-error { color: #A6402F; }

.article__meta a:hover { color: var(--text); }

/* ---------- 19b. Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
              transform 0.24s var(--ease);
}

.cat-tile:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.cat-tile .card__icon { width: 34px; height: 34px; border-radius: 9px; }
.cat-tile .card__icon svg { width: 17px; height: 17px; }

.cat-tile__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cat-tile__copy {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 19c. Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.chip:hover { color: var(--text); border-color: var(--sage); }

.chip.is-active {
  color: #FFFFFF;
  background: var(--green);
  border-color: var(--green);
  font-weight: 600;
}

.filter-bar__count {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

[data-tool-grid] > [hidden] { display: none; }

/* ---------- 19d. Track cards ---------- */
.track-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.track-card:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); }

.track-card__head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 12px;
}

.track-card__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}

.track-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.track-card > p { font-size: 14px; color: var(--muted); line-height: 1.68; }

.track-card__list,
.product__list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.track-card__list li,
.product__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--body);
}

.track-card__list li::before,
.product__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 1.5px;
  background: var(--sage);
}

/* ---------- 19e. 404 ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 72px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(68px, 13vw, 132px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sage);
  margin-bottom: 14px;
}

/* ---------- 20. Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--green);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal (gated so content stays visible without JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .console { max-width: 540px; margin-inline: auto; width: 100%; }
  .intro { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience__item { padding: 26px 24px 26px 0; border-left: 0; }
  .audience__item:nth-child(even) { padding: 26px 0 26px 24px; }
  .audience__item:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero::before { height: 620px; }
  .track { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .track__arrow { display: none; }
  .track__num { padding-right: 12px; }
  .resource { flex-wrap: wrap; }
  .resource__cta { width: 100%; padding-top: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .logo__name { font-size: 13px; }
  .console__body { aspect-ratio: 4 / 3.4; padding: 16px; }
  .console__chip { font-size: 9.5px; padding: 7px 11px; }
  .cat-grid { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .audience__item,
  .audience__item:nth-child(even) { padding: 20px 0; border-top: 1px solid var(--border); }
  .audience__item:first-child { border-top: 0; padding-top: 26px; }
  .filter-bar__count { margin-left: 0; }
  .article { padding: 22px; }
}

@media (max-width: 560px) {
  /* The panel carries the call to action on phones, so the bar stays clean */
  .nav__actions .btn { display: none; }
  .logo__mark { width: 33px; height: 33px; }
  .logo__name { font-size: 12.5px; }
  .logo__sub { font-size: 8px; }
}

@media (max-width: 420px) {
  .eyebrow--pill { font-size: 10px; letter-spacing: 0.05em; padding: 7px 13px 7px 11px; }
  .console__chip--b { display: none; }
  .btn { padding: 13px 20px; font-size: 12px; }
  .cta-band { border-radius: var(--radius); }
}

/* ---------- 22. 3D hero scene ---------- */
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1100px;
  perspective-origin: 50% 45%;
  pointer-events: none;
}

.scene__glow {
  position: absolute;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 92, 70, 0.16), rgba(167, 187, 169, 0.10) 45%, transparent 70%);
  filter: blur(6px);
}

.scene__stage {
  position: relative;
  width: 76%;
  height: 64%;
  transform-style: preserve-3d;
  animation: sceneFloat 16s ease-in-out infinite;
}

.scene__tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-17deg);
}

.scene__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -30px rgba(23, 35, 28, 0.45);
  transform-style: preserve-3d;
}

.scene__panel--back {
  transform: translate3d(-13%, -11%, -130px) rotateZ(-3deg);
  opacity: 0.5;
}

.scene__panel--mid {
  transform: translate3d(-3%, -3%, -62px) rotateZ(-1deg);
  opacity: 0.78;
}

.scene__panel--front {
  transform: translate3d(7%, 7%, 24px);
}

.scene__label {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.scene__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene__chips b {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text);
}

.scene__rows { display: grid; gap: 7px; }

.scene__rows span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--pale);
  width: var(--w, 70%);
}

.scene__rows span:nth-child(2) { width: 88%; background: #DDE9E0; }
.scene__rows span:nth-child(3) { width: 54%; }

.scene__bars {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
}

.scene__bars i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(49, 92, 70, 0.5), rgba(49, 92, 70, 0.16));
}

@keyframes sceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .scene__stage { animation: none; }
}

.motion-off .scene__stage { animation: none; }

/* Motion toggle, sits under the hero copy */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.motion-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.8;
}

.motion-toggle[aria-pressed="true"]::before { opacity: 0.25; }
.motion-toggle:hover { color: var(--text); border-color: var(--sage); }
