:root {
  --midnight: #141820;
  --midnight-deep: #0f1318;
  --slate: #1e2228;
  --stone: #e6e4de;
  --stone-dim: #c8c4bc;
  --concrete: #8b9298;
  --text-dark: #1a1c22;
  --text-muted: #6b6e73;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: var(--midnight);
  color: var(--stone);
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(139, 146, 152, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(139, 146, 152, 0.3);
  color: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--concrete);
  outline-offset: 4px;
}

/* ─── Navigation ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  background: rgba(15, 19, 24, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.nav.visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(15, 19, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.nav-wordmark img {
  height: 16px;
  width: auto;
  opacity: 0.9;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* ─── Buttons ─── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  background: transparent;
  border: 1px solid rgba(230, 228, 222, 0.2);
  padding: 20px 40px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              letter-spacing 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  border-color: rgba(230, 228, 222, 0.5);
  letter-spacing: 0.22em;
  padding: 20px 48px;
}

.btn-primary .arrow {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-primary--on-light {
  color: var(--text-dark);
  border-color: rgba(26, 28, 34, 0.2);
}

.btn-primary--on-light:hover {
  border-color: rgba(26, 28, 34, 0.5);
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--midnight);
  display: flex;
  align-items: center;
  padding: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: 8%;
  width: 60px;
  height: 2px;
  background: var(--concrete);
  opacity: 0.3;
}

.hero-content {
  margin-left: 8%;
  max-width: 800px;
}

.hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--stone);
  margin: 0 0 28px 0;
}

.hero-subhead {
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--stone-dim);
  margin: 0 0 56px 0;
}

/* ─── Education (Stone) Section ─── */

.education-section {
  background: var(--stone);
  padding: 160px 0 180px;
}

.education-container {
  margin-left: 8%;
  max-width: 700px;
}

.section-headline {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 56px 0;
  letter-spacing: -0.02em;
}

.education-intro {
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0 0 56px 0;
}

.footprint-components {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 56px 0;
  padding-left: 24px;
  border-left: 2px solid var(--concrete);
}

.component {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.component-name {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.component-desc {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.education-closer {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 48px 0;
}

.education-punchline {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  padding-top: 48px;
  border-top: 1px solid var(--concrete);
}

/* ─── Modules Zone ─── */

.modules-zone {
  background: var(--slate);
  padding: 80px 0 100px;
}

.module {
  position: relative;
  margin: 0 8%;
  padding: 100px 0;
  max-width: 700px;
}

.module + .module {
  border-top: 1px solid rgba(139, 146, 152, 0.2);
}

.module-number {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 500;
  color: var(--concrete);
  opacity: 0.15;
  position: absolute;
  top: 80px;
  right: 0;
  line-height: 1;
  user-select: none;
}

.module-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--concrete);
  margin: 0 0 32px 0;
}

.module-pull-quote {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--stone);
  margin: 0 0 40px 0;
  max-width: 500px;
}

.module-body {
  margin: 0 0 48px 0;
  max-width: 520px;
}

.module-body p {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.module-body p:last-child {
  margin-bottom: 0;
}

.module-body p.current {
  color: var(--stone-dim);
}

.module-body p.optimised {
  color: var(--stone);
  font-weight: 500;
}

.module-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px 0;
}

.price {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--stone);
  letter-spacing: -0.02em;
}

.price-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--concrete);
}

.price-secondary {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--stone-dim);
  width: 100%;
  margin-top: 4px;
}

.module-tagline {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--stone-dim);
  margin: 0;
}

/* ─── Summary Section ─── */

.summary-section {
  background: var(--midnight);
  padding: 160px 0;
  text-align: center;
}

.summary-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.summary-headline {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--stone);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.summary-subline {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--concrete);
  margin: 0 0 48px 0;
}

.summary-body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--stone-dim);
  margin: 0;
}

/* ─── Partnership Section ─── */

.partnership-section {
  background: var(--midnight);
  padding: 140px 0;
  border-top: 1px solid rgba(139, 146, 152, 0.1);
}

.partnership-container {
  margin-left: 8%;
  max-width: 560px;
}

.partnership-statement {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--stone);
  margin: 0 0 20px 0;
}

.partnership-note {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--stone-dim);
  margin: 0 0 64px 0;
}

.partnership-logo {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--concrete);
  padding-top: 32px;
  border-top: 1px solid rgba(139, 146, 152, 0.15);
}

/* ─── Close Section ─── */

.close-section {
  background: var(--midnight);
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid rgba(139, 146, 152, 0.1);
}

.close-statement {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--stone);
  margin: 0 0 48px 0;
}

/* ─── Footer ─── */

.footer {
  background: var(--midnight-deep);
  padding: 72px 0 56px;
  text-align: center;
  border-top: 1px solid rgba(139, 146, 152, 0.1);
}

.footer-wordmark {
  margin: 0 0 28px 0;
}

.footer-wordmark img {
  height: 14px;
  width: auto;
  opacity: 0.85;
  margin: 0 auto;
  display: block;
}

.footer-descriptor {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--stone-dim);
  opacity: 0.6;
  margin: 0 0 44px 0;
}

.footer-divider {
  display: block;
  font-size: 1.1rem;
  color: var(--concrete);
  opacity: 0.3;
  margin: 0 0 44px 0;
}

.footer-legal {
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-dim);
  opacity: 0.4;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-legal a:hover {
  opacity: 0.8;
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .hero-content {
    margin-right: 6%;
  }

  .module-number {
    right: -8px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 6%;
  }

  .hero::after {
    bottom: 48px;
    left: 6%;
    width: 40px;
  }

  .hero-content {
    margin-left: 6%;
    margin-right: 6%;
  }

  .education-section {
    padding: 100px 0 120px;
  }

  .education-container {
    margin-left: 6%;
    margin-right: 6%;
  }

  .modules-zone {
    padding: 60px 0 80px;
  }

  .module {
    margin: 0 6%;
    padding: 72px 0;
  }

  .module-number {
    position: static;
    font-size: 3rem;
    opacity: 0.12;
    margin-bottom: 24px;
    display: block;
  }

  .summary-section {
    padding: 100px 0;
  }

  .partnership-section {
    padding: 100px 0;
  }

  .partnership-container {
    margin-left: 6%;
    margin-right: 6%;
  }

  .close-section {
    padding: 100px 0;
  }

  .btn-primary {
    padding: 18px 36px;
  }

  .btn-primary:hover {
    padding: 18px 44px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    margin-left: 5%;
    margin-right: 5%;
  }

  .education-container,
  .partnership-container {
    margin-left: 5%;
    margin-right: 5%;
  }

  .module {
    margin: 0 5%;
  }
}
