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

:root {
  --navy: #0f1e3d;
  --navy-mid: #1a3060;
  --blue: #2563eb;
  --blue-light: #4fa3e0;
  --ray: #a8d4f5;
  --off-white: #f4f7fb;
  --text: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #dde4ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(15, 30, 61, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ray);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: 16px;
  cursor: pointer;
  z-index: 110;
}


.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bar:nth-child(1) {
  top: 14px;
}

.nav-toggle-bar:nth-child(2) {
  top: 21px;
}

.nav-toggle-bar:nth-child(3) {
  top: 28px;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

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

body.nav-open .nav-toggle-bar:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ─── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 120% 80% at 50% 40%, #16305c 0%, #0a1428 60%, #060d1c 100%);
  overflow: hidden;
}

.hero-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-rays img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: 100px;
}

.hero-latest {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  margin-bottom: 2em;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 212, 245, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-latest:hover {
  background: rgba(168, 212, 245, 0.08);
  border-color: rgba(168, 212, 245, 0.35);
}

.hero-latest-label {
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
}

.hero-latest-text {
  min-width: 0;
  line-height: 1.45;
}

.hero-latest-link {
  color: var(--ray);
  font-weight: 600;
  white-space: nowrap;
}

.hero-latest-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}

.hero-latest:hover .hero-latest-arrow {
  transform: translateX(3px);
}

@media (min-width: 769px) {
  .hero-latest {
    position: absolute;
    top: 88px;
    right: 48px;
    z-index: 3;
    margin-bottom: 2em;
    background: rgba(15, 30, 61, 0.55);
    backdrop-filter: blur(6px);
  }
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ray);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(168, 212, 245, 0.3);
  border-radius: 100px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--ray);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 0 auto 40px;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ─── SECTION SCAFFOLD ────────────────────────────────────────────── */
section {
  padding: 96px 24px;
}

section:not(.hero):nth-child(even) {
  background: var(--off-white);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.75;
}

.divider {
  width: 52px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ─── MISSION ─────────────────────────────────────────────────────── */
#mission .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-quote {
  border-left: 4px solid var(--blue);
  padding-left: 28px;
}

.mission-quote blockquote {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 16px;
}

.mission-quote cite {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: normal;
}

.mission-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--navy);
  color: var(--white);
  padding: 28px 24px;
  border-radius: 10px;
}

.stat-card .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ray);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ─── TECHNOLOGY ──────────────────────────────────────────────────── */
#technology .tech-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.advantage-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.10);
  transform: translateY(-3px);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.advantage-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── APPLICATIONS ────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.app-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.app-card:hover {
  box-shadow: 0 12px 40px rgba(15, 30, 61, 0.10);
  transform: translateY(-4px);
}

.app-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.app-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.app-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── TEAM ────────────────────────────────────────────────────────── */
#team {
  background: var(--off-white);
}

.team-section-header {
  margin-top: 64px;
  margin-bottom: 36px;
}

.team-section-header:first-of-type {
  margin-top: 0;
}

.subsection-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
  box-shadow: 0 10px 36px rgba(15, 30, 61, 0.12);
  transform: translateY(-4px);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d0ddf0;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-info {
  padding: 20px 20px 22px;
}

.team-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.team-bio ul {
  list-style: none;
  padding: 0;
}

.team-bio ul li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 3px;
}

.team-bio ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ─── COVERAGE ────────────────────────────────────────────────────── */
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.65;
}

.coverage-list li {
  color: var(--text);
}

.coverage-list a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.coverage-list a:hover {
  color: var(--navy);
}

.coverage-list .meta {
  color: var(--muted);
}

.coverage-list+.team-section-header {
  margin-top: 64px;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 36px;
}

.footer-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-email {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--ray);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ray);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-wordmark {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 30, 61, 0.98);
    padding: 8px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    visibility: hidden;
    pointer-events: none;
  }

  body.nav-open .nav-links {
    transform: translateY(72px);
    transition: transform 0.28s ease, visibility 0s linear 0s;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-links a.is-active {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #mission .inner,
  #technology .tech-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-latest {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .hero-latest-text {
    flex: 1;
  }

  .hero-latest-link {
    white-space: normal;
  }

  .hero-content {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .mission-stats {
    grid-template-columns: 1fr;
  }

  .nav-wordmark {
    display: none;
  }

  .nav-logo img {
    height: 40px;
  }
}