:root {
  color-scheme: dark;
  --navy: #00296b;
  --navy-mid: #003f88;
  --navy-bright: #00509d;
  --sand: #d8b178;
  --cream: #f3e7d3;
  --indigo: #0f1b2d;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--navy);
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

code,
pre,
kbd,
.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Uniform section rhythm */
main > section {
  padding-block: 4rem;
}

/* Desert atmosphere — blue dunes of light */
.desert-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(0, 80, 157, 0.45), transparent 55%),
    radial-gradient(900px 480px at 88% 8%, rgba(0, 63, 136, 0.35), transparent 52%),
    radial-gradient(700px 400px at 50% 100%, rgba(15, 27, 45, 0.85), transparent 60%),
    linear-gradient(180deg, #001a45 0%, #00296b 48%, #001532 100%);
}

.desert-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.horizon-glow {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: -18vh;
  height: 42vh;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 80, 157, 0.35), rgba(216, 177, 120, 0.08) 45%, transparent 68%);
  filter: blur(10px);
}

.dune-silhouette {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(0, 41, 107, 0.75)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23003F88' fill-opacity='0.55' d='M0,224L80,208C160,192,320,160,480,165.3C640,171,800,213,960,218.7C1120,224,1280,192,1360,176L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'/%3E%3Cpath fill='%230F1B2D' fill-opacity='0.85' d='M0,288L120,266.7C240,245,480,203,720,202.7C960,203,1200,245,1320,266.7L1440,288L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z'/%3E%3C/svg%3E")
      bottom / 100% 100% no-repeat;
  opacity: 0.95;
}

.nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.kicker {
  margin: 0;
  color: var(--sand);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-tab {
  position: relative;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-tab:hover {
  color: #fff;
}

.service-tab.is-active {
  color: #fff;
  border-bottom-color: var(--sand);
}

.field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.9rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field:focus {
  border-color: rgba(216, 177, 120, 0.7);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(216, 177, 120, 0.18);
}

.term-window {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: color-mix(in srgb, var(--navy) 55%, #000);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.term-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0.85rem;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.term-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
}

.term-dot:nth-child(1) {
  background: #e53935;
}
.term-dot:nth-child(2) {
  background: var(--sand);
}
.term-dot:nth-child(3) {
  background: #28c840;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.06s;
}
.delay-2 {
  animation-delay: 0.14s;
}
.delay-3 {
  animation-delay: 0.24s;
}
.delay-4 {
  animation-delay: 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-fade-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
