:root {
  --bg: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.05);
  --text: #e6edf7;
  --text-secondary: #8b98b3;
  --accent: #4f8cff;
  --grid: rgba(255, 255, 255, 0.04);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --surface: rgba(255, 255, 255, 0.7);
    --text: #0f172a;
    --text-secondary: #5b6475;
    --grid: rgba(0, 0, 0, 0.05);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* GRID */
.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* GLOW */
.glow {
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(79, 140, 255, 0.25),
    transparent 70%
  );
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* PARTICLES */
.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--text);
  opacity: 0.4;
  animation: float linear infinite;
}
@keyframes float {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  to {
    transform: translateY(-10vh);
    opacity: 0;
  }
}

/* NAV */
nav {
  position: sticky;
  top: 36px;
  margin: 36px auto;
  margin-bottom: 0;
  width: auto;
  display: flex;
  justify-content: space-between;
  padding: 22px 22px;
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 26, 0.2);
  z-index: 1000;
  border-radius: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  max-width: 1200px;
  margin-inline: clamp(36px, (100% - 1200px) / 2, 100%);
}

nav .logo {
  display: flex;
  align-items: center;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
}

nav .logo img {
  height: 36px;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: contain;
  vertical-align: middle;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  z-index: 1110;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.nav-toggle span {
  display: none;
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

html {
  scroll-behavior: smooth;
}

.nav-menu {
  /* center the menu horizontally in the nav */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(0) translateY(-50%);
  width: 0;
  height: 42px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.16);
  transition:
    transform 0.25s ease,
    width 0.25s ease,
    opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.18);
}

.nav-menu > .nav-link {
  position: relative;
  z-index: 1;
}

.nav-open .nav-menu {
  opacity: 1;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(100%) saturate(0%);
}

/* ensure plain anchor links inside nav match button spacing */
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

.nav-link img {
  margin-right: 5px;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.nav-link:hover img,
.nav-link:focus-visible img {
  filter: invert(100%) saturate(0%) brightness(1.1);
}

.nav-link:focus-visible {
  outline: none;
  border-color: rgba(79, 140, 255, 0.7);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 2px rgba(79, 140, 255, 0.28),
    0 0 0 3px rgba(79, 140, 255, 0.08);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  z-index: 1001;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
  background: rgba(79, 140, 255, 0.15);
  color: var(--accent);
  padding-left: 1.5rem;
}

.dropdown-item svg {
  flex-shrink: 0;
}

/* HERO */
.hero {
  min-height: calc(100vh - 172px);
  height: calc(100vh - 172px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

@supports (height: 100svh) {
  .hero {
    min-height: calc(100svh - 72px);
    height: calc(100svh - 72px);
  }
}

@supports (height: 100dvh) {
  .hero {
    min-height: calc(100dvh - 72px);
    height: calc(100dvh - 72px);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 500px;
}

.button {
  margin-top: 2rem;
  padding: 0.9rem 1.6rem;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.25s ease;

  border-radius: 999px;
  background: rgba(79, 140, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.18);
}

.button:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 20px rgba(79, 140, 255, 0.2);
}

.hero img {
  margin: 0;
  margin-bottom: 40px;
  padding: 0;
  height: 60px;
  gap: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.section-reverse {
  direction: rtl;
}

.section-reverse > * {
  direction: ltr;
}

.about-copy,
.contact-card {
  display: grid;
  gap: 1.5rem;
}

.feature-list,
.contact-list,
.capabilities {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon,
.contact-icon {
  min-width: 42px;
  height: 100%;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-list article,
.capabilities li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.15rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item h3 {
  margin-bottom: 0.35rem;
}

.contact-item a,
.contact-item p {
  color: var(--text-secondary);
}

.contact-panel {
  display: grid;
  align-items: start;
}

.highlight-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(79, 140, 255, 0.18);
  box-shadow: 0 24px 60px rgba(31, 76, 143, 0.12);
}

.contact-summary {
  padding: 2rem;
}

.contact-summary ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.contact-summary li {
  list-style: none;
  padding-left: 1.25rem;
  position: relative;
}

.contact-summary li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

@media (max-width: 950px) {
  nav {
    padding: 18px 20px;
    margin: 20px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 18px;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    margin-top: 55px;
    transition:
      opacity 0.25s ease,
      max-height 0.25s ease;
    background: rgba(12, 18, 29, 0.35);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    z-index: 900;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    isolation: isolate;
  }

  .nav-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    max-height: 420px;
  }

  .nav-menu::before {
    border-radius: 0 0 24px 24px;
  }

  .nav-indicator {
    display: none;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(79, 140, 255, 0.14);
    box-shadow: none;
  }

  .hero {
    min-height: calc(100vh - 116px);
    height: calc(100vh - 116px);
  }

  .section-split,
  .section-reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .section-reverse {
    direction: ltr;
  }

  section {
    padding: 2rem 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .contact-summary {
    padding: 1.5rem;
  }
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}
