:root {
  --bg: #070a12;
  --text: #e5e7eb;
  --muted: rgba(229, 231, 235, 0.65);
  --accent: #4f8cff;
}

/* =========================
   RESET / BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  z-index: 2;
}

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

/* =========================
   BACKGROUND EFFECTS
========================= */
.glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(79, 140, 255, 0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(120, 80, 255, 0.12),
      transparent 45%
    );
  filter: blur(40px);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
  z-index: 1;
}

/* =========================
   SCROLL PROGRESS BAR
========================= */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
}

/* =========================
   HEADER / NAV
========================= */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(10, 12, 20, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

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

/* desktop nav links */
.nav-menu {
  display: flex;
  gap: 20px;
  z-index: 1600;
}

/* =========================
   MOBILE NAV
========================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;

  z-index: 1500;
}

/* mobile menu panel */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    padding: 100px 24px;
    gap: 20px;
    background: rgba(10, 12, 20, 0.95);
    transform: translateX(100%);
    transition: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

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

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* hamburger animation */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

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

/* =========================
   SECTIONS
========================= */
.section {
  min-height: 100vh;
  padding: 120px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* mission section spacing tweak */
.mission {
  padding-top: 140px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

p {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 12px;
  line-height: 1.4;
}

/* =========================
   CTA BUTTON
========================= */
.cta {
  margin-top: 28px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  width: fit-content;
  transition: transform 0.2s ease;
}

/* =========================
   HERO / ANIMATIONS
========================= */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}

.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-split {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1.2s ease forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* =========================
   MISSION GRID / CARDS
========================= */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.mission-tile {
  position: relative;
  padding: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;

  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.mission-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.4);
}

.tile-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.tile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.25);
}

.icon-wrap i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* hover reveal layer */
.tile-hover {
  position: absolute;
  inset: 0;
  padding: 26px;
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.mission-tile:hover .tile-hover {
  opacity: 1;
  transform: translateY(0);
}

.tile-hover span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 60px 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand,
.footer-contact,
.footer-contract {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  white-space: nowrap;
}

.pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

/* footer mobile */
@media (max-width: 600px) {
  .footer {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
