/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Dark Luxury Palette */
  --bg: #0d1114; /* Deep midnight greenish black */
  --bg-alt: #13171a;
  --surface: #1a1f22;
  --surface-hover: #22282c;

  --text: #f5f3ec; /* Soft off-white */
  --text-muted: #9ba49e;

  --border: rgba(204, 189, 149, 0.12); /* Subtle gold/champagne border */
  --border-hover: rgba(204, 189, 149, 0.25);

  --teal: #dcc89b; /* Champagne gold */
  --teal-light: #f5e4bc;
  --teal-dark: #b8a272;

  /* Soft textures instead of neon glows */
  --teal-glow: rgba(220, 200, 155, 0.08);
  --teal-glow-md: rgba(220, 200, 155, 0.15);

  --danger: #cf7171;
  --warning: #d4a34b;

  /* Refined, slightly softer shapes */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  --container: 1140px;
  --section-pad: clamp(4.5rem, 7vw, 7rem);

  /* Deep shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 30px rgba(220, 200, 155, 0.12);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration: 0.4s;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  /* Subtle grain texture overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(
      ellipse 80% 50% at 20% 0%,
      rgba(220, 200, 155, 0.05),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 5%,
      rgba(220, 200, 155, 0.03),
      transparent
    );
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(220, 200, 155, 0.25);
  color: var(--text);
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
.brand {
  font-family: "Oswald", "Clash Display", sans-serif;
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 18ch;
  color: var(--text);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.4rem;
  max-width: 28ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

a {
  color: inherit;
}

p {
  margin-top: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #0a1628;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus-visible {
  left: 0;
}

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

.section-alt {
  background: rgba(19, 23, 26, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
  line-height: 1.7;
}

/* ── Header & Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 20, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--duration) var(--ease);
  padding-top: env(safe-area-inset-top);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem 1.2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: width var(--duration) var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* Nav CTA button */
.site-nav .nav-cta {
  background: var(--teal);
  color: #0d1114;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition:
    background var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--teal-light);
  color: #0d1114;
  transform: translateY(-1px);
}

/* ── Mobile Menu Toggle ────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--duration) var(--ease),
    opacity var(--duration) var(--ease);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, var(--teal-glow-md), transparent 70%);
  border-radius: 50%;
  animation: heroFloat 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: min(450px, 60vw);
  height: min(450px, 60vw);
  background: radial-gradient(
    circle,
    rgba(143, 174, 149, 0.08),
    transparent 70%
  );
  border-radius: 50%;
  animation: heroFloat 30s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes heroFloat {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(35px, -25px) scale(1.1) rotate(15deg);
  }
}

.hero-stack {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  background: linear-gradient(135deg, #ffffff 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

/* ── Card Shared Styles ────────────────────────────────────── */
.card,
.reason,
.process-card,
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.card:hover,
.reason:hover,
.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* ── Feature Grid (Mission Cards) ─────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card,
.reason {
  padding: 1.5rem;
}

.card p,
.reason p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Mission Card Specific Styles */
.mission-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.mission-card p {
  flex: 1;
}

.mission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.mission-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--teal-glow);
}

/* ── Mission Detail Sections ──────────────────────────────── */
.mission-detail {
  max-width: 740px;
}

.mission-problem {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--border-hover);
}

.mission-solutions h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.mission-solutions ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.mission-solutions li {
  margin-bottom: 0.4rem;
}

.mission-outcome {
  margin-top: 2rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--teal);
  line-height: 1.3;
}

/* ── Reasons Grid ──────────────────────────────────────────── */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.reason {
  position: relative;
  padding-left: 1.8rem;
}

.reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), transparent);
  border-radius: 2px;
}

/* ── Process / Timeline ────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.process-card {
  padding: 1.5rem;
  position: relative;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.meta-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 800px;
}

details {
  overflow: hidden;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 1.3rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--duration) var(--ease);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
  line-height: 1;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] {
  border-color: var(--border-hover);
}

summary:hover {
  color: var(--teal);
}

details > p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  color: var(--text);
}

.cta-band .eyebrow {
  color: var(--teal);
}

.cta-band .btn-secondary {
  border-color: var(--teal);
  color: var(--teal);
}

.cta-band .btn-secondary:hover {
  background: var(--teal);
  color: #0d1114;
}

.cta-band .btn-primary {
  background: var(--teal);
  color: #0d1114;
}

.cta-band .btn-primary:hover {
  background: var(--teal-light);
}

.cta-shell {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cta-actions {
  display: grid;
  gap: 0.8rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-shell {
  padding: 1.5rem 0 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border: none;
  cursor: pointer;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.btn-primary {
  background: var(--teal);
  color: #0d1114;
  box-shadow: 0 4px 12px rgba(220, 200, 155, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--teal-light);
  box-shadow: 0 8px 24px rgba(220, 200, 155, 0.3);
}

.btn-secondary {
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  background: var(--teal);
  color: #0d1114;
}

.btn:focus-visible,
.site-nav a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── Reveal Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal .card,
.reveal .reason,
.reveal .process-card,
.reveal details {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.reveal.in-view .card,
.reveal.in-view .reason,
.reveal.in-view .process-card,
.reveal.in-view details {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 1024px) {
  .timeline,
  .feature-grid,
  .cta-shell {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive: Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: clamp(3rem, 5vw, 4rem) 0;
  }

  .hero {
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
    background: #0a0f1a;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--duration) var(--ease),
      visibility var(--duration) var(--ease);
    z-index: 100;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    font-size: 1rem;
    padding: 0.7rem 1.6rem;
  }

  .feature-grid,
  .reasons-grid,
  .timeline,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-cta {
    display: grid;
  }

  .reason::before {
    display: none;
  }

  .reason {
    padding-left: 1.5rem;
  }

  .card,
  .reason,
  .process-card {
    padding: 1.2rem;
  }

  summary {
    padding: 1rem;
    min-height: 48px;
  }

  .mission-problem {
    font-size: 1.05rem;
  }

  .mission-outcome {
    font-size: 1.1rem;
  }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@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;
  }

  .reveal,
  .reveal.in-view,
  .reveal .card,
  .reveal.in-view .card,
  .reveal .reason,
  .reveal.in-view .reason,
  .reveal .process-card,
  .reveal.in-view .process-card,
  .reveal details,
  .reveal.in-view details {
    opacity: 1;
    transform: none;
  }
}
