:root {
  --navy: #0b2545;
  --navy-dark: #081b34;
  --navy-deep: #050f1f;
  --accent: #d64045;
  --accent-dark: #b8353a;
  --cyan: #38bdf8;
  --ink: #1c2733;
  --muted: #5b6675;
  --bg-alt: #f4f6f9;
  --border: #e2e6ec;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.18);
  /* flat accent (kept as a var so all accent fills stay in sync) */
  --grad-accent: var(--accent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

a { color: var(--navy); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.18s ease;
}

.navbar-links a.btn {
  color: #fff;
}

.navbar-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--grad-accent);
  transition: width 0.22s ease;
}

.navbar-links a:not(.btn):hover { color: var(--navy); }
.navbar-links a:not(.btn):hover::after { width: 100%; }

@media (max-width: 860px) {
  .navbar-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.18s ease, background 0.2s ease;
  will-change: transform;
}

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(214, 64, 69, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(214, 64, 69, 0.36);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.section .btn-secondary {
  color: var(--navy);
  border-color: rgba(11, 37, 69, 0.35);
}

.section .btn-secondary:hover {
  background: rgba(11, 37, 69, 0.05);
  border-color: var(--navy);
}

.btn-link {
  align-self: center;
  font-weight: 600;
  color: var(--accent);
  padding: 13px 4px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.btn-link:hover { color: var(--accent-2); transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy); /* Acts as a fallback color before the video loads */
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0; 
}

/* NEW: Styles for the background video */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* UPDATED: Converted your original gradient into a semi-transparent overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Using your var(--navy) and var(--navy-dark) hex values with ~75%-85% opacity */
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.75) 0%, rgba(8, 27, 52, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1; /* Keeps text above the video and overlay */
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #bcd2ec;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero h1 {
  font-size: 5rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  color: #fff;
}

.subtitle {
  font-size: 1.3rem;
  color: #d4e1f1;
  margin: 0 auto 10px;
  max-width: 660px;
  font-weight: 500;
}

.acronym {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #8ba6c4;
  max-width: 660px;
  margin: 0 auto 24px;
}

.lede {
  font-size: 1.08rem;
  color: #a8bdd6;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-proof {
  max-width: 660px;
  margin: 0 auto 34px;
  padding: 15px 24px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #f4f7fb;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-proof strong { color: #fff; }

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 44px 24px;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 2.1rem;
  margin-bottom: 28px;
  position: relative;
}

.section > .container > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--grad-accent);
}

/* ---------- Cards (shared hover) ---------- */
.model-card,
.workflow-step,
.deployment-list li,
.partner-list li {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.model-card:hover,
.workflow-step:hover,
.deployment-list li:hover,
.partner-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* ---------- Press ---------- */
.press-section {
  border-bottom: 1px solid var(--border);
}

.press-logos {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0;
  margin: 0 0 36px;
}

.press-logos img {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.press-logos a:hover img {
  transform: scale(1.08);
}

.press-list {
  list-style: none;
  padding: 0;
  color: var(--ink);
  columns: 2;
  column-gap: 40px;
}

.press-list li {
  margin-bottom: 12px;
  break-inside: avoid;
  padding-left: 20px;
  position: relative;
}

.press-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.press-list a { text-decoration: none; font-weight: 500; }
.press-list a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .press-list { columns: 1; }
}

/* ---------- Models ---------- */
.model-image {
  margin-top: 24px;
  width: 100%;
  aspect-ratio: 1 / 1; /* Forces the container into a perfect square */
  background: var(--bg-alt); /* Fallback background color */
  border: 2px dashed var(--border); /* Dashed border for the placeholder look */
  border-radius: 8px; /* Slightly rounded corners to match your theme */
  overflow: hidden; /* Keeps the image inside the rounded corners */
}

.model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the square without stretching */
  display: block;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.model-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px;
  overflow: hidden;
}

.model-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.model-card:hover::before { transform: scaleX(1); }

.model-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.model-card p {
  color: var(--muted);
  margin: 0;
}

.model-card .cta-row {
  margin-top: 20px;
  justify-content: flex-start;
}

.model-disclaimer {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sample-output download links inside each model card */
.model-downloads {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.downloads-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 10px;
}

.download-row:last-child { margin-bottom: 0; }

.download-row-label {
  flex: 0 0 96px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.download-links a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

.download-links a:hover { color: var(--accent-dark); }

/* Workflow disclaimer sits between the step cards and the CTA button */
#workflow .model-disclaimer {
  margin-top: 12px;
  margin-bottom: 40px;
}

.heritage-note {
  margin: 34px auto 0;
  max-width: 780px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Research ---------- */
.pub-list {
  list-style: none;
  padding: 0;
  color: var(--ink);
  columns: 2;
  column-gap: 40px;
}

.pub-list li {
  margin-bottom: 12px;
  break-inside: avoid;
  padding-left: 20px;
  position: relative;
}

.pub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.pub-list a { text-decoration: none; font-weight: 500; }
.pub-list a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .pub-list { columns: 1; }
}

/* ---------- Partners ---------- */
.partner-list {
  list-style: none;
  padding: 0;
  margin: 64px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.partner-list li {
  flex: 0 1 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 20px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.partner-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-list img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.partner-list li:hover img {
  transform: scale(1.06);
}

.partner-list span {
  font-size: 0.95rem;
}

.partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* ---------- CTA section ---------- */
.cta-section {
  text-align: center;
  background: var(--bg-alt);
}

.cta-section p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
}

/* ---------- Workflow ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.workflow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.workflow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.22);
}

.workflow-step h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.workflow-step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Deployments ---------- */
.deployment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.deployment-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.deployment-list h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.deployment-list p {
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

.two-col-item h2 {
  font-size: 1.7rem;
}

.two-col-item h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--grad-accent);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 780px;
  margin: 48px auto 0;
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-member {
  text-align: center;
  transition: transform 0.25s ease;
}

.team-member:hover { transform: translateY(-4px); }

.team-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.team-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  margin: 0 auto 16px;
  object-fit: cover;
  display: block;
  transition: box-shadow 0.25s ease;
}

.team-member:hover .team-photo {
  box-shadow: 0 0 0 4px rgba(214, 64, 69, 0.18), var(--shadow-md);
}

.team-member h3 {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1.08rem;
}

.team-member p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--navy-deep);
  color: #9fb3cc;
  padding: 56px 0 48px;
  font-size: 0.85rem;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer a { color: var(--cyan); }

.footer p {
  margin: 0;
  max-width: 420px;
  line-height: 1.7;
}

.footer-grant p {
  max-width: 520px;
}

/* ---------- Request Form ---------- */
.request-section {
  padding-top: 64px;
}

.request-shell {
  max-width: 640px;
}

.request-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.request-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.request-back:hover { color: var(--accent); }

.request-card h1 {
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.request-subhead {
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 64, 69, 0.14);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.form-actions .btn { padding: 13px 40px; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  max-width: 460px;
  margin: 0;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .request-card { padding: 32px 24px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-content { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero { padding: 90px 0 80px; }
  .hero h1 { font-size: 3rem; }
  .subtitle { font-size: 1.08rem; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 1.7rem; }
}
