/* ============================================================
   OrdoWorks — Design tokens
   ============================================================ */
:root {
  /* Base palette */
  --color-navy:        #071426;
  --color-midnight:     #0D1F3A;
  --color-white:        #F4F6F2;
  --color-grey:         #B8C2D6;
  --color-gold:         #F5B84B;

  /* Capability accents */
  --accent-map:      #6EA8FF;
  --accent-build:    #9BBE3F;
  --accent-adopt:    #FF7A2F;
  --accent-grow:     #F4C64E;
  --accent-guard:    #9FD8D0;
  --accent-growth:   #FF7A2F;

  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: clamp(1.5rem, 5vw, 6rem);
  --grid-gap: clamp(1.5rem, 3vw, 2.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale */
  --z-nav: 100;
  --z-drawer: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
  color: var(--color-white);
  text-wrap: balance;
}

p { margin: 0; }

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.lede {
  max-width: 68ch;
}

/* Section label */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-4);
}

/* Section spacing rhythm */
section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  scroll-margin-top: 80px;
}

@media (min-width: 768px) {
  section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-navy);
  padding: var(--space-3) var(--space-6);
  border-radius: 8px;
  font-weight: 600;
  z-index: 2000;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  min-height: 48px;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  font-weight: 500;
  border: 1px solid rgba(244, 246, 242, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(244, 246, 242, 0.8);
}

.link-arrow {
  color: var(--color-gold);
  font-weight: 500;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  text-decoration: underline;
}

.link-arrow i {
  font-size: 14px;
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:hover i {
  transform: translateX(3px);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(13, 31, 58, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: none;
}

.nav-cta {
  display: none;
}

.nav-link-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-white);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}

.nav-link i {
  font-size: 14px;
  transition: transform 0.2s var(--ease-out);
}

.nav-link-item:hover .nav-link,
.nav-link:focus-visible {
  border-bottom-color: var(--color-gold);
}

.nav-link-item:hover .nav-link i {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--color-midnight);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link-item:hover .nav-dropdown,
.nav-link-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--color-white);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-gold);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 24px;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }

  .nav-cta {
    display: inline-flex;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile drawer */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 38, 0.7);
  z-index: var(--z-drawer);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: var(--color-navy);
  z-index: calc(var(--z-drawer) + 1);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-8);
}

.nav-drawer-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-grey);
  font-size: 20px;
}

.nav-drawer-close:hover { color: var(--color-white); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  list-style: none;
}

.nav-drawer-group summary::-webkit-details-marker { display: none; }

.nav-drawer-group summary i {
  font-size: 18px;
  color: var(--color-grey);
  transition: transform 0.2s var(--ease-out);
}

.nav-drawer-group[open] summary i { transform: rotate(180deg); }

.nav-drawer-sublinks {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
}

.nav-drawer-sublinks a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-grey);
  font-size: var(--text-base);
}

.nav-drawer-cta {
  width: 100%;
  margin-top: var(--space-6);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: calc(80px + var(--space-16));
  padding-bottom: var(--space-16);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.hero-content {
  max-width: 640px;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4vw + 0.75rem, 3.25rem);
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-grey);
  max-width: 52ch;
}

.hero-bullets {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-lg);
  color: var(--color-white);
}

.hero-bullets i {
  color: var(--color-gold);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.hero-actions {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-actions .btn { width: 100%; }

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}

.hero-image-wrap picture {
  width: 100%;
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(245, 184, 75, 0.7);
  border-radius: 12px;
}

/* Hero entrance animation */
.hero-content h1,
.hero-sub,
.hero-bullets li,
.hero-actions {
  opacity: 0;
  transform: translateY(20px);
}

.hero-content h1 {
  animation: hero-in 0.6s var(--ease-out) forwards;
}

.hero-sub {
  animation: hero-in 0.6s var(--ease-out) 0.15s forwards;
}

.hero-bullets li {
  animation: hero-in 0.5s var(--ease-out) forwards;
}

.hero-bullets li:nth-child(1) { animation-delay: 0.28s; }
.hero-bullets li:nth-child(2) { animation-delay: 0.38s; }
.hero-bullets li:nth-child(3) { animation-delay: 0.48s; }
.hero-bullets li:nth-child(4) { animation-delay: 0.58s; }

.hero-actions {
  animation: hero-in 0.5s var(--ease-out) 0.7s forwards;
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content h1, .hero-sub, .hero-bullets li, .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-16);
  }

  .hero-content {
    flex: 0 0 55%;
    max-width: none;
  }

  .hero-image-wrap {
    flex: 0 0 45%;
    max-height: none;
    height: auto;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    order: 0;
  }

  .hero-image-wrap picture {
    width: auto;
  }

  .hero-image-wrap img {
    height: 100%;
    width: auto;
    max-width: 420px;
    min-height: 0;
    object-fit: contain;
    object-position: bottom center;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn { width: auto; }
}

/* Astronaut float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.astronaut-image {
  animation: float 6s ease-in-out infinite;
}

/* ============================================================
   Scroll animation
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Section: Hidden cost
   ============================================================ */
.hidden-cost {
  background: var(--color-midnight);
}

.hidden-cost-grid {
  display: grid;
  gap: var(--space-12);
}

.hidden-cost-body h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .hidden-cost-body h2 {
    font-size: var(--text-3xl);
  }
}

.hidden-cost-body p {
  color: var(--color-grey);
  max-width: 68ch;
}

.hidden-cost-body p + p {
  margin-top: var(--space-4);
}

.hidden-cost-stat {
  padding: var(--space-10);
  border: 2px solid rgba(245, 184, 75, 0.45);
  border-radius: 12px;
  background: rgba(245, 184, 75, 0.04);
  text-align: center;
}

.hidden-cost-stat .stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-gold);
  display: block;
}

.hidden-cost-stat .stat-label {
  display: block;
  margin-top: var(--space-3);
  font-weight: 500;
  color: var(--color-white);
}

.hidden-cost-stat .stat-source {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-grey);
}

@media (min-width: 1024px) {
  .hidden-cost-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* ============================================================
   Framework / phase cards
   ============================================================ */
.framework-intro {
  max-width: 68ch;
  color: var(--color-grey);
  margin-top: var(--space-4);
}

.phase-flow {
  position: relative;
  margin-top: var(--space-16);
}

.phase-flow::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-map), var(--accent-build), var(--accent-adopt), var(--accent-grow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
  display: none;
}

.phase-flow.is-visible::before {
  transform: scaleX(1);
}

.phase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.phase-card {
  background: var(--color-midnight);
  border: 1px solid var(--phase-accent, var(--color-gold));
  border-color: color-mix(in srgb, var(--phase-accent, var(--color-gold)) 40%, transparent);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.phase-card:hover {
  transform: translateY(-4px);
  border-color: var(--phase-accent, var(--color-gold));
}

.phase-card-media {
  background: var(--color-navy);
}

.phase-card-media img {
  width: 100%;
  height: auto;
}

.phase-card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.phase-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--phase-accent, var(--color-gold));
  background: color-mix(in srgb, var(--phase-accent, var(--color-gold)) 14%, transparent);
  margin-bottom: var(--space-4);
}

.phase-card-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--phase-accent, var(--color-gold));
}

.phase-card-body h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-3);
}

.phase-card-body p {
  margin-top: var(--space-3);
  color: var(--color-grey);
  flex: 1;
}

.phase-card-body .link-arrow {
  margin-top: var(--space-6);
}

.phase-card[data-phase="map"]   { --phase-accent: var(--accent-map); }
.phase-card[data-phase="build"] { --phase-accent: var(--accent-build); }
.phase-card[data-phase="adopt"] { --phase-accent: var(--accent-adopt); }
.phase-card[data-phase="grow"]  { --phase-accent: var(--accent-grow); }

@media (min-width: 768px) {
  .phase-grid {
    grid-template-columns: 1fr 1fr;
  }
  .phase-flow::before { display: block; }
}

@media (min-width: 1024px) {
  .phase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   Additional services
   ============================================================ */
.services-section {
  background: var(--color-midnight);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.service-card {
  background: var(--color-navy);
  border: 1px solid var(--service-accent, var(--color-gold));
  border-color: color-mix(in srgb, var(--service-accent, var(--color-gold)) 40%, transparent);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--service-accent, var(--color-gold));
}

.service-card-media {
  background: var(--color-midnight);
}

.service-card-media img {
  width: 100%;
  height: auto;
}

.service-card-body {
  padding: var(--space-10);
}

.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--service-accent, var(--color-gold));
  background: color-mix(in srgb, var(--service-accent, var(--color-gold)) 14%, transparent);
  margin-bottom: var(--space-4);
}

.service-card-body h3 {
  font-size: var(--text-xl);
}

.service-card-body p {
  margin-top: var(--space-4);
  color: var(--color-grey);
  max-width: 60ch;
}

.service-card-body .link-arrow {
  margin-top: var(--space-6);
}

.service-card[data-service="governance"] { --service-accent: var(--accent-guard); }
.service-card[data-service="growth"] { --service-accent: var(--accent-growth); }

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Who this is for
   ============================================================ */
.who-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.who-content {
  max-width: 640px;
}

.who-section h2 {
  font-size: var(--text-2xl);
  max-width: 34ch;
}

.who-section .lede {
  margin-top: var(--space-6);
  color: var(--color-grey);
}

.who-section .lede + .lede {
  margin-top: var(--space-4);
}

.who-image-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}

.who-image-wrap img {
  width: auto;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(245, 184, 75, 0.7);
  border-radius: 12px;
}

@media (min-width: 768px) {
  .who-section h2 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  .who-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }

  .who-content {
    flex: 0 0 48%;
    max-width: none;
  }

  .who-image-wrap {
    flex: 0 0 52%;
    max-height: none;
    height: auto;
    overflow: visible;
    justify-content: flex-end;
    order: 0;
  }

  .who-image-wrap img {
    height: auto;
    width: 100%;
    max-width: 600px;
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }
}

/* ============================================================
   Why trust us
   ============================================================ */
.trust-section {
  background: var(--color-midnight);
}

.trust-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.trust-content {
  max-width: 640px;
}

.trust-section h2 {
  font-size: var(--text-2xl);
}

@media (min-width: 768px) {
  .trust-section h2 {
    font-size: var(--text-3xl);
  }
}

.trust-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.trust-visual-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.trust-dot {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trust-visual-svg.is-active .trust-dot {
  opacity: 1;
}

.trust-doc-glow {
  opacity: 0;
}

.trust-doc-glow.is-pulsing {
  animation: trust-doc-pulse 0.3s ease-out;
}

@keyframes trust-doc-pulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-doc-glow.is-pulsing {
    animation: none;
  }
}

@media (min-width: 1024px) {
  .trust-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }

  .trust-content {
    flex: 0 0 52%;
    max-width: none;
  }

  .trust-visual {
    flex: 0 0 44%;
    justify-content: flex-end;
  }

  .trust-visual-svg {
    max-width: 380px;
  }
}

.trust-intro {
  max-width: 68ch;
  color: var(--color-grey);
  margin-top: var(--space-6);
}

.trust-points {
  margin-top: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.trust-point {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-point:first-child {
  border-top: none;
  padding-top: 0;
}

.trust-point i {
  color: var(--color-gold);
  font-size: 24px;
}

.trust-point h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.trust-point p {
  color: var(--color-grey);
}

@media (min-width: 768px) {
  .trust-points {
    flex-direction: row;
  }

  .trust-point {
    flex: 1;
    border-top: none;
    padding: 0 var(--space-8);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-point:first-child {
    border-left: none;
    padding-left: 0;
  }

  .trust-point:last-child {
    padding-right: 0;
  }
}

/* ============================================================
   CTA section
   ============================================================ */
.cta-section {
  text-align: center;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.cta-section h2 {
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-inline: auto;
}

.cta-section .lede {
  margin: var(--space-4) auto 0;
  color: var(--color-grey);
}

.cta-section .btn {
  margin-top: var(--space-8);
}

.cta-section .cta-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-grey);
}

@media (min-width: 768px) {
  .cta-section h2 { font-size: var(--text-3xl); }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-midnight);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo img { height: 24px; }

.footer-brand p {
  margin-top: var(--space-4);
  color: var(--color-grey);
  font-size: var(--text-sm);
  max-width: 40ch;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-grey);
  font-weight: 500;
}

.footer-col ul {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-white);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-bottom {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-grey);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
}

/* ============================================================
   Contact modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 38, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  background: var(--color-midnight);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: var(--space-10);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}

.modal-overlay.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-grey);
  font-size: 20px;
}

.modal-close:hover { color: var(--color-white); }

.modal-headline {
  font-size: var(--text-2xl);
  font-weight: 600;
  padding-right: var(--space-8);
}

.modal-subtext {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-grey);
}

.modal-form {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-grey);
  margin-bottom: var(--space-2);
}

.form-field input,
.form-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-size: var(--text-sm);
  width: 100%;
  min-height: 48px;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8C2D6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible {
  border-color: var(--color-gold);
  outline: none;
}

.form-field input::placeholder {
  color: rgba(184, 194, 214, 0.6);
}

.modal-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.modal-success {
  text-align: center;
  padding: var(--space-8) 0;
}

.modal-success i {
  font-size: 48px;
  color: var(--color-gold);
}

.modal-success h3 {
  margin-top: var(--space-6);
  font-size: var(--text-2xl);
  font-weight: 600;
}

.modal-success p {
  margin-top: var(--space-3);
  color: var(--color-grey);
}

[hidden] { display: none !important; }
