@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMonoVF.woff") format("woff-variations"), url("../fonts/GeistMonoVF.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

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

* {
  margin: 0;
  padding: 0;
}

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

html.light {
  color-scheme: light;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  line-height: 1.7;
  transition: background-color 220ms ease, color 220ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: hsl(var(--foreground));
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
}

p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

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

ul {
  list-style: none;
}

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

:root {
  --background: 226 42% 5%;
  --foreground: 210 24% 96%;
  --card: 226 36% 10%;
  --card-foreground: 210 24% 96%;
  --popover: 226 40% 7%;
  --popover-foreground: 210 24% 96%;

  --primary: 210 10% 84%;
  --primary-foreground: 226 42% 5%;

  --secondary: 226 26% 14%;
  --secondary-foreground: 210 24% 96%;
  --muted: 226 20% 16%;
  --muted-foreground: 215 14% 70%;

  --accent: 210 6% 78%;
  --accent-foreground: 226 42% 5%;

  --border: 220 20% 22%;

  --brand-primary: 210 10% 84%;
  --brand-secondary: 226 26% 14%;
  --brand-accent: 210 6% 78%;
  --brand-border: 220 20% 22%;

  --shadow-color: 226 50% 4%;

  --radius: 1.4rem;
  --content-width: 1240px;
  --header-height: 5rem;
  --section-padding: 6.5rem;
  --container-padding: 2.5rem;
}

.light {
  --background: 0 0% 98%;
  --foreground: 225 28% 12%;
  --card: 0 0% 100%;
  --card-foreground: 225 28% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 225 28% 12%;

  --primary: 225 28% 12%;
  --primary-foreground: 0 0% 100%;

  --secondary: 0 0% 95%;
  --secondary-foreground: 225 28% 12%;
  --muted: 0 0% 93%;
  --muted-foreground: 225 10% 38%;

  --border: 0 0% 86%;

  --brand-primary: 225 28% 12%;
  --brand-secondary: 0 0% 95%;
  --brand-accent: 0 0% 44%;
  --brand-border: 0 0% 86%;

  --shadow-color: 0 0% 10%;
}

@media (min-width: 768px) {
  :root {
    --header-height: 5.75rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 6.25rem;
  }
}

@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;
  }
}

::selection {
  background: hsl(var(--brand-primary) / 0.22);
  color: hsl(var(--foreground));
}

:focus-visible {
  outline: 2px solid hsl(var(--brand-primary));
  outline-offset: 2px;
  border-radius: 8px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--brand-primary) / 0.4) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--brand-primary) / 0.35);
  border-radius: 999px;
  border: 2px solid hsl(var(--background));
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--brand-primary) / 0.55);
}

/* Small hand-rolled layout utilities */
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0;
}
.flex {
  display: flex;
}
.flex-1 {
  flex: 1 1 auto;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.min-w-0 {
  min-width: 0;
}
.hidden {
  display: none;
}
.object-cover {
  object-fit: cover;
}
.h-full {
  height: 100%;
}
.w-full {
  width: 100%;
}
.h-4 {
  height: 1rem;
}
.w-4 {
  width: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.w-5 {
  width: 1.25rem;
}
.h-8 {
  height: 2rem;
}
.w-8 {
  width: 2rem;
}
.h-11 {
  height: 2.75rem;
}
.w-11 {
  width: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.w-12 {
  width: 3rem;
}
.h-header {
  height: var(--header-height);
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-1 > * + * {
  margin-top: 0.25rem;
}
.space-y-3 > * + * {
  margin-top: 0.75rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.pb-24 {
  padding-bottom: 6rem;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-60 {
  opacity: 0.6;
}
.text-lg {
  font-size: 1.125rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-brand-accent {
  color: hsl(var(--brand-accent));
}
.text-brand-primary {
  color: hsl(var(--brand-primary));
}
.text-brand-primary\/90 {
  color: hsl(var(--brand-primary) / 0.9);
}
.text-foreground\/90 {
  color: hsl(var(--foreground) / 0.9);
}
.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;
}

/* Page shell & containers */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 15%, hsl(210 85% 58% / 0.14) 0%, transparent 42%),
    radial-gradient(circle at 82% 18%, hsl(var(--brand-accent) / 0.11) 0%, transparent 48%),
    radial-gradient(circle at 72% 72%, hsl(230 75% 52% / 0.14) 0%, transparent 62%),
    linear-gradient(155deg, hsl(226 44% 4%) 0%, hsl(226 40% 7%) 48%, hsl(230 42% 10%) 100%);
  transition: background 220ms ease;
}

.light .page-shell {
  background:
    radial-gradient(circle at 12% 10%, hsl(0 0% 0% / 0.06) 0%, transparent 52%),
    radial-gradient(circle at 88% 16%, hsl(0 0% 0% / 0.04) 0%, transparent 58%),
    radial-gradient(circle at 50% 120%, hsl(0 0% 0% / 0.05) 0%, transparent 60%),
    radial-gradient(circle at 50% 52%, hsl(0 0% 0% / 0.055) 0%, transparent 58%),
    repeating-linear-gradient(135deg, hsl(0 0% 0% / 0.018) 0px, transparent 1px, transparent 14px),
    repeating-linear-gradient(0deg, hsl(0 0% 0% / 0.012) 0px, transparent 1px, transparent 22px),
    radial-gradient(circle at 70% 75%, hsl(0 0% 0% / 0.035) 0%, transparent 65%),
    linear-gradient(180deg, hsl(0 0% 99%) 0%, hsl(0 0% 97%) 34%, hsl(0 0% 94%) 68%, hsl(0 0% 90%) 100%);
}

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

@media (max-width: 768px) {
  .container-executive {
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .container-executive {
    padding: 0 1rem;
  }
}

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

@media (max-width: 768px) {
  .section-space {
    padding: 4.5rem 0;
  }
  h1 {
    font-size: clamp(2.2rem, 7.5vw, 3.6rem);
  }
}

.page-offset {
  padding-top: calc(var(--header-height) + 1.75rem);
}

/* Decorative backgrounds */
.space-stars {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.45) 0, transparent 55%),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 65% 40%, rgba(255, 255, 255, 0.25) 0, transparent 55%);
  opacity: 0.7;
}

.light .space-stars {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(20, 20, 20, 0.18) 0, transparent 55%),
    radial-gradient(1px 1px at 80% 10%, rgba(20, 20, 20, 0.14) 0, transparent 55%),
    radial-gradient(1px 1px at 30% 70%, rgba(20, 20, 20, 0.12) 0, transparent 55%),
    radial-gradient(1px 1px at 65% 40%, rgba(20, 20, 20, 0.1) 0, transparent 55%);
  opacity: 0.55;
}

.space-grid {
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.35) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: radial-gradient(circle at top, black 0%, transparent 70%);
  opacity: 0.35;
}

.light .space-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(to right, hsl(var(--foreground) / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--foreground) / 0.05) 1px, transparent 1px);
  background-size: 180px 180px;
  mask-image: radial-gradient(circle at 50% 24%, black 0%, transparent 78%);
}

.halo-glow {
  border-radius: 999px;
  background: radial-gradient(circle, hsl(210 85% 58% / 0.42) 0%, transparent 72%);
  filter: blur(2px);
}

.light .halo-glow {
  background: radial-gradient(circle, hsl(0 0% 0% / 0.12) 0%, transparent 72%);
}

/* Shared building blocks */
.surface-panel {
  background: linear-gradient(150deg, hsl(var(--card) / 0.96), hsl(var(--card) / 0.72));
  border: 1px solid hsl(var(--brand-border));
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -70px hsl(var(--shadow-color) / 0.9);
  backdrop-filter: blur(18px);
}

.light .surface-panel {
  background: linear-gradient(155deg, hsl(var(--card)), hsl(var(--secondary) / 0.7));
  box-shadow: 0 28px 70px -60px hsl(var(--shadow-color) / 0.35);
}

.surface-panel-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.surface-panel-hover:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--brand-primary) / 0.45);
  box-shadow: 0 45px 90px -65px hsl(var(--shadow-color) / 0.9);
}

.light .surface-panel-hover:hover {
  border-color: hsl(var(--foreground) / 0.18);
  box-shadow: 0 32px 80px -64px hsl(var(--shadow-color) / 0.35);
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.72);
  background: linear-gradient(140deg, hsl(var(--secondary) / 0.85), hsl(var(--secondary) / 0.55));
  border: 1px solid hsl(var(--border) / 0.9);
}

.dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 999px;
  display: inline-block;
}
.dot-accent {
  background: hsl(var(--brand-accent));
}
.dot-primary {
  background: hsl(var(--brand-primary));
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.7);
  background: linear-gradient(140deg, hsl(var(--secondary) / 0.75), hsl(var(--secondary) / 0.45));
  border: 1px solid hsl(var(--border) / 0.85);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-underline {
  color: hsl(var(--brand-primary));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--brand-primary) / 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-underline:hover {
  border-bottom-color: hsl(var(--brand-primary));
}

.logo-badge {
  border-radius: 999px;
  border: 1px solid hsl(var(--brand-border));
  background:
    radial-gradient(circle at 30% 20%, hsl(var(--brand-accent) / 0.18), transparent 55%),
    hsl(var(--brand-secondary) / 0.55);
  overflow: hidden;
  box-shadow: 0 20px 50px -40px hsl(var(--shadow-color) / 0.95);
  flex-shrink: 0;
}

.card-title {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.card-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.card-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, hsl(var(--background) / 0.95) 0%, hsl(var(--background) / 0.6) 100%);
  border-bottom: 1px solid hsl(var(--brand-border));
  backdrop-filter: blur(16px);
}

.brand-kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.brand-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .brand-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.34em;
  }
  .brand-title {
    font-size: 1rem;
  }
}

.site-footer .brand-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.34em;
}

.site-footer .brand-title {
  font-size: 1rem;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: hsl(var(--foreground) / 0.92);
}

.nav-link.active {
  color: hsl(var(--brand-primary));
}

.desktop-theme-toggle {
  display: none;
}

@media (min-width: 768px) {
  .desktop-theme-toggle {
    display: block;
  }
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.65);
  backdrop-filter: blur(6px);
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background: hsl(var(--accent) / 0.35);
}

.theme-icon {
  display: none;
  position: absolute;
  transition: transform 0.2s ease;
}

.theme-toggle:hover .theme-icon {
  transform: scale(1.1);
}

.theme-toggle[data-theme="light"] .theme-icon-light,
.theme-toggle[data-theme="dark"] .theme-icon-dark,
.theme-toggle[data-theme="system"] .theme-icon-system {
  display: inline-flex;
}

.mobile-menu-btn {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--brand-secondary) / 0.6);
  color: hsl(var(--foreground));
  cursor: pointer;
}

.mobile-menu-btn .icon-menu-close {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-menu-open {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-menu-close {
  display: inline-flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(20px);
}

.mobile-menu[data-open="true"] {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 0.75rem 1rem;
}

.mobile-theme-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: hsl(var(--muted-foreground));
}

.mobile-nav-link {
  display: block;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--muted-foreground));
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background: hsl(var(--brand-secondary));
}

.mobile-nav-link.active {
  background: hsl(var(--brand-secondary));
  color: hsl(var(--brand-primary));
}

/* Hero */
.hero {
  position: relative;
  padding-top: var(--header-height);
  padding-bottom: var(--section-padding);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 4.5rem;
  }
}

.hero-halo {
  position: absolute;
  top: -6rem;
  right: 2.5rem;
  height: 14rem;
  width: 14rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy {
  display: grid;
  gap: 2rem;
  max-width: 36rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.hero-panel-grid {
  opacity: 0.25;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.hero-panel-topline {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--brand-accent) / 0.35), transparent);
}

.hero-panel-glow {
  position: absolute;
  top: -6rem;
  right: 0;
  height: 14rem;
  width: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, hsl(var(--foreground) / 0.08) 0%, transparent 62%);
  filter: blur(24px);
}

.hero-panel-scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4rem;
  background: linear-gradient(180deg, hsl(var(--foreground) / 0.1), transparent);
  opacity: 0;
  animation: scan 8s ease-in-out infinite;
}

.hero-panel-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.mission-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: hsl(var(--muted-foreground));
  font-family: "Geist Mono", ui-monospace, monospace;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
}

.hero-panel-head-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.secure-channel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.4);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .secure-channel {
    display: flex;
  }
}

/* Terminal */
.terminal-shell {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid hsl(var(--brand-border));
  background: linear-gradient(160deg, hsl(var(--popover) / 0.92), hsl(var(--card) / 0.72));
  box-shadow: 0 40px 90px -70px hsl(var(--shadow-color) / 0.9);
  isolation: isolate;
}

.light .terminal-shell {
  background: linear-gradient(160deg, hsl(var(--card)), hsl(var(--secondary) / 0.65));
  box-shadow: 0 28px 70px -60px hsl(var(--shadow-color) / 0.35);
}

.terminal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, hsl(var(--foreground) / 0.04), transparent 40%),
    repeating-linear-gradient(to bottom, hsl(var(--foreground) / 0.03) 0px, transparent 2px, transparent 10px);
  opacity: 0.35;
  pointer-events: none;
}

.light .terminal-shell::before {
  background:
    linear-gradient(to bottom, hsl(var(--foreground) / 0.05), transparent 48%),
    repeating-linear-gradient(to bottom, hsl(var(--foreground) / 0.03) 0px, transparent 2px, transparent 11px);
  opacity: 0.22;
}

.terminal-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, hsl(var(--foreground) / 0.07) 0%, transparent 44%),
    radial-gradient(circle at 78% 18%, hsl(var(--foreground) / 0.05) 0%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 22px, hsl(var(--foreground) / 0.035) 23px, transparent 24px);
  mix-blend-mode: overlay;
  animation: terminal-flow 10s ease-in-out infinite;
}

.light .terminal-shell::after {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.terminal-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(var(--brand-border));
  background: linear-gradient(180deg, hsl(var(--background) / 0.75), hsl(var(--background) / 0.35));
  backdrop-filter: blur(16px);
}

.light .terminal-topbar {
  background: linear-gradient(180deg, hsl(var(--background) / 0.95), hsl(var(--secondary) / 0.55));
}

.terminal-dots {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--brand-border));
  background: hsl(var(--muted));
  opacity: 0.9;
}

.terminal-dot.dot-red {
  background: hsl(0 70% 58%);
}

.terminal-dot.dot-neutral {
  background: hsl(var(--brand-accent));
}

.terminal-dot.dot-green {
  background: hsl(152 55% 45%);
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-family: "Geist Mono", ui-monospace, monospace;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--brand-border));
  background: hsl(var(--background) / 0.35);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 650;
  font-family: "Geist Mono", ui-monospace, monospace;
}

@media (max-width: 640px) {
  .terminal-topbar {
    padding: 0.7rem 0.85rem;
  }
  .terminal-title {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-align: left;
  }
  .terminal-badge {
    display: none;
  }
}

.terminal-body {
  position: relative;
  padding: 1.1rem 1.2rem 1rem;
}

@media (max-width: 640px) {
  .terminal-body {
    padding: 0.95rem 0.95rem 0.85rem;
  }
}

.terminal-lines {
  position: relative;
  display: grid;
  gap: 0.55rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .terminal-lines {
    font-size: 0.72rem;
  }
}

.terminal-line {
  animation: terminal-rise 520ms ease both;
  animation-delay: var(--d, 0ms);
}

.terminal-prompt {
  color: hsl(var(--foreground) / 0.92);
  font-weight: 650;
}

.terminal-path {
  color: hsl(var(--foreground) / 0.82);
}

.terminal-dim {
  color: hsl(var(--muted-foreground));
  opacity: 0.8;
}

.terminal-sep {
  padding: 0 0.55rem;
  opacity: 0.55;
}

.terminal-ok {
  color: hsl(152 55% 45%);
  font-weight: 650;
}

.terminal-warn {
  color: hsl(12 85% 56%);
  font-weight: 650;
}

.terminal-cursor {
  display: inline-block;
  width: 0.7ch;
  height: 1.05em;
  background: hsl(var(--foreground) / 0.75);
  border-radius: 2px;
  vertical-align: -0.2em;
  animation: cursor-blink 1.05s steps(2, end) infinite;
}

.terminal-footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid hsl(var(--brand-border));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .terminal-footer {
    grid-template-columns: 1fr;
  }
}

.terminal-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--brand-border));
  background: hsl(var(--background) / 0.25);
}

.light .terminal-stat {
  background: hsl(var(--card) / 0.65);
}

.terminal-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 650;
}

.terminal-value {
  font-size: 0.85rem;
  color: hsl(var(--foreground) / 0.9);
  font-weight: 650;
}

/* Solutions */
.section-head {
  max-width: 42rem;
  display: grid;
  gap: 1rem;
}

.solutions-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.solution-card {
  padding: 2rem;
  height: 100%;
}

/* Approach */
.approach-section {
  position: relative;
}

.approach-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .approach-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.approach-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 36rem;
}

.approach-list {
  display: grid;
  gap: 1.5rem;
  border-left: 1px solid hsl(var(--border));
  padding-left: 22px;
}

.approach-item {
  position: relative;
  padding: 1.5rem;
}

.approach-dot {
  position: absolute;
  left: -24px;
  transform: translateX(-50%);
  top: 2rem;
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 999px;
  background: hsl(var(--foreground) / 0.9);
  z-index: 10;
}

.approach-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.approach-item-head .card-title {
  margin-top: 0;
  font-size: 1.125rem;
}

.approach-stage {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

/* Capabilities */
.capability-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .capability-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.capability-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.capability-blocks {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .capability-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.capability-card {
  padding: 1.5rem;
  height: 100%;
}

.capability-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: hsl(var(--muted-foreground));
}

.capability-card .card-title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  padding: 2.5rem;
  height: 100%;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-card .card-title {
  margin-top: 0;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 1.875rem;
  }
}

.platform-links {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.platform-links a {
  width: fit-content;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--background) / 0.8);
}

.footer-grid {
  padding: 3rem 0;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--muted-foreground));
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.35);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.85);
  transition: background-color 0.2s ease;
}

.footer-pill:hover {
  background: hsl(var(--accent) / 0.2);
}

.footer-link {
  display: block;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: hsl(var(--foreground));
}

.footer-legal-border {
  border-top: 1px solid hsl(var(--border) / 0.7);
}

.footer-legal {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-legal-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-legal-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.footer-legal-left {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-legal-left {
    text-align: left;
  }
}

.footer-legal-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: hsl(var(--muted-foreground));
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: 1rem;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-legal-links {
    justify-content: flex-start;
  }
}

.footer-legal-links a:hover {
  color: hsl(var(--foreground));
}

.footer-legal-right {
  display: grid;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-legal-right {
    font-size: 0.875rem;
    text-align: right;
  }
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-legal-line {
    justify-content: flex-end;
  }
}

/* Policy pages */
.policy-shell {
  background: linear-gradient(160deg, hsl(var(--card) / 0.98), hsl(var(--card) / 0.78));
  border: 1px solid hsl(var(--brand-border));
  border-radius: calc(var(--radius) + 0.2rem);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 40px 90px -70px hsl(var(--shadow-color) / 0.9);
  backdrop-filter: blur(16px);
}

.policy-header {
  border-bottom: 1px solid hsl(var(--brand-border));
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-meta {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.policy-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  max-width: 60ch;
}

.policy-content {
  display: grid;
  gap: 1.5rem;
}

.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.policy-content p {
  max-width: 70ch;
}

.policy-content ul {
  margin-left: 1.25rem;
  list-style: disc;
  color: hsl(var(--muted-foreground));
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-contact {
  display: grid;
  gap: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scan {
  0% {
    transform: translateY(-140%);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  55% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(140%);
    opacity: 0;
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes terminal-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-flow {
  0% {
    transform: translateY(-2%);
    opacity: 0.45;
  }
  50% {
    transform: translateY(2%);
    opacity: 0.25;
  }
  100% {
    transform: translateY(-2%);
    opacity: 0.45;
  }
}

.animate-rise {
  animation: rise 0.8s ease both;
}

.animate-float {
  animation: float 7s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}
