/* ============================================================
   Aperintel AI Academy — Design System
   Last edited 2026-05-13
   Family of the Aperintel main site (dark base, Inter, fixed nav)
   with Academy-specific gold accent and editorial typography.
   ============================================================ */

:root {
  /* Surface */
  --bg: #0B0B0B;
  --bg-2: #111111;
  --bg-3: #171717;
  --bg-4: #1C1C1C;

  /* Text */
  --white: #FFFFFF;
  --bone: #F5F1E6;
  --grey-1: #A1A1A1;
  --grey-2: #6E6E6E;
  --grey-3: #3D3D3D;
  --grey-4: #272727;

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Accents */
  --gold: #C9A84C;
  --gold-soft: #D4B86A;
  --gold-dim: rgba(201, 168, 76, 0.10);
  --gold-border: rgba(201, 168, 76, 0.28);
  --gold-glow: rgba(201, 168, 76, 0.05);

  --indigo: #5B73F5;
  --indigo-dim: rgba(91, 115, 245, 0.10);
  --indigo-border: rgba(91, 115, 245, 0.28);

  /* Status */
  --success: #4ADE80;
  --warning: #FBBF24;
  --danger: #F87171;

  /* Type */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --nav-h: 68px;
  --max-w: 1180px;
  --max-w-narrow: 880px;
  --gap-xxs: 4px;
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 32px;
  --gap-lg: 64px;
  --gap-xl: 96px;
  --gap-2xl: 144px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--gap-xl) 0;
  position: relative;
}

.section-lg {
  padding: var(--gap-2xl) 0;
}

.section-sm {
  padding: var(--gap-lg) 0;
}

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

nav.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

nav.top-nav.solid {
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--white);
  text-decoration: none;
}

.nav-brand-mark {
  height: 56px;
  width: auto;
  max-width: 200px;
  display: block;
  filter: brightness(1.15) contrast(1.05);
}

.nav-brand-text { display: none; }
.nav-brand-name { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--grey-1);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* Premium nav link with inline icon (FAQs). Gold accent so it reads as
   a discoverable resource rather than just another link. */
.nav-link-faq {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: var(--gold) !important;
  padding: 5px 11px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: var(--gold-dim);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.nav-link-faq svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.nav-link-faq:hover {
  color: var(--white) !important;
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.18);
  transform: translateY(-1px);
}
.nav-link-faq.active {
  color: var(--bg) !important;
  background: var(--gold);
  border-color: var(--gold);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 9px 18px;
  border-radius: var(--r-sm);
  letter-spacing: 0.005em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--gold-soft);
  color: var(--bg);
}

/* Hamburger toggle button (injected by js/main.js, hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: var(--gold-dim); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--bone);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay (injected by js/main.js, hidden on desktop) */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(11, 11, 11, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--bone);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 0.2s ease;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--gold); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease, color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-1);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 15px;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}

.eyebrow-grey {
  color: var(--grey-1);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 300;
  color: var(--white);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 300;
  color: var(--white);
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--white);
}

.display-italic {
  font-weight: 400;
  color: var(--bone);
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--grey-1);
  font-weight: 400;
  max-width: 640px;
}

.body-muted {
  color: var(--grey-1);
}

.body-small {
  font-size: 14.5px;
  line-height: 1.55;
}

.body-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.018em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 300;
}

h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  font-weight: 400;
}

h4 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

p {
  color: var(--grey-1);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: calc(var(--nav-h) + 80px) 0 var(--gap-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero-title {
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.55;
  color: var(--grey-1);
  max-width: 640px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-2);
}

.hero-meta-value {
  font-size: 18px;
  color: var(--white);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-3);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.012em;
}

.card-body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--grey-1);
  margin-bottom: 24px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--grey-1);
}

.card-arrow {
  display: none;
}

.card-link:hover .card-arrow {
  display: none;
}

/* Featured card */

.card.featured {
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-color: var(--gold-border);
}

.card.featured .card-eyebrow {
  color: var(--gold);
}

.card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============================================================
   Course grid
   ============================================================ */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: border-color 0.25s ease, background 0.25s ease;
  text-decoration: none;
  color: inherit;
  min-height: 380px;
}

.course-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-3);
}

.course-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.course-card-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.012em;
}

.course-card-price-period {
  font-size: 13px;
  color: var(--grey-1);
  margin-left: 4px;
}

.course-card-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-1);
  background: var(--bg-4);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin-bottom: 12px;
}

.course-card-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--bone);
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.course-card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-1);
  margin-bottom: 28px;
  flex-grow: 1;
}

.course-card-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card-features li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone);
  padding-left: 22px;
  position: relative;
}

.course-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.course-card-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.course-card-cta-label {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}

.course-card-cta-arrow {
  display: none;
}

.course-card:hover .course-card-cta-arrow {
  display: none;
}

/* ============================================================
   Two-column feature block
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: var(--gap-md);
}

.feature {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.feature-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-1);
}

/* ============================================================
   Section heads
   ============================================================ */

.section-head {
  margin-bottom: var(--gap-md);
  max-width: 720px;
}

.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--gap-lg);
}

.section-title {
  margin-bottom: 16px;
}

.section-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--grey-1);
}

/* ============================================================
   Editorial block (quote / pull-quote)
   ============================================================ */

.editorial {
  border-left: 2px solid var(--gold);
  padding-left: 32px;
  margin: var(--gap-md) 0;
  max-width: 680px;
}

.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 16px;
}

.editorial-attr {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-1);
}

/* ============================================================
   Stats / metric panel
   ============================================================ */

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.022em;
  line-height: 1;
}

.metric-value .unit {
  font-size: 20px;
  color: var(--gold);
  margin-left: 4px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-1);
}

.metric-context {
  font-size: 13.5px;
  color: var(--grey-1);
  line-height: 1.5;
}

/* ============================================================
   Pricing table (per-course detail page)
   ============================================================ */

.pricing-detail {
  background: var(--bg-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: 40px;
  margin: var(--gap-md) 0;
}

.pricing-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-detail-row:last-child {
  border-bottom: none;
}

.pricing-detail-label {
  font-size: 15px;
  color: var(--grey-1);
}

.pricing-detail-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  cursor: pointer;
  letter-spacing: -0.005em;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--grey-1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding-top 0.25s ease;
  padding-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 16px;
}

/* ============================================================
   Forms
   ============================================================ */

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
}

.form-hint {
  font-size: 12.5px;
  color: var(--grey-1);
  margin-top: -4px;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-3);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.55;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: var(--gap-lg) 0 var(--gap-md);
  margin-top: var(--gap-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: var(--gap-lg);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-strap {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--grey-1);
  max-width: 360px;
  margin-top: 8px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-2);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  font-size: 14px;
  color: var(--grey-1);
  transition: color 0.2s ease;
}

.footer-col li a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--gap-md);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--grey-2);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--grey-2);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-meta {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 24px;
  }

  nav.top-nav {
    padding: 0 24px;
  }

  .section {
    padding: var(--gap-lg) 0;
  }

  .section-lg {
    padding: var(--gap-xl) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }
}

/* ============================================================
   Utilities
   ============================================================ */

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-bone { color: var(--bone); }
.text-grey { color: var(--grey-1); }
.text-white { color: var(--white); }

.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }

.italic {
  font-family: var(--font-serif);
  font-style: italic;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--gap-md) 0;
}

.divider-thick {
  border-top-width: 2px;
}

/* Highlight word in display headlines */
.hl {
  color: var(--gold);
}

.hl-italic {
  font-weight: 400;
  color: var(--gold);
}

/* ============================================================
   Mobile-first defensive rules
   Stop horizontal scroll, prevent iOS auto-zoom on form inputs,
   wrap long words on small screens.
   ============================================================ */

html, body { overflow-x: hidden; }

@media (max-width: 720px) {
  .form-input,
  .form-select,
  .form-textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1, h2, h3, h4, p, li, a, .display-1, .display-2, .hero-title, .hero-subtitle, .section-title, .section-lede {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}
