/* ── DESIGN TOKENS ───────────────────────────────── */
:root {
  --font: 'DM Sans', sans-serif;
  --clr-text: #1c2b4a;
  --clr-sub: #5a6a7e;
  --clr-blue: #3282f6;
  --clr-orange: #f08650;
  --clr-bg: #fefefe;
  --clr-bg-alt: #f4f6f9;
  --cmax: 1100px;
  --cpad: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  font-family: var(--font);
  color: var(--clr-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── LAYOUT ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--cmax);
  margin: 0 auto;
  padding-left: var(--cpad);
  padding-right: var(--cpad);
}

/* ── SECTION LABEL ───────────────────────────────── */
.sec-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-sub);
  margin-bottom: 28px;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(254,254,254,0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(28,43,74,0.12);
}

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

nav a.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

nav a.logo img { width: 146px; height: 35px; }

@media (min-width: 1300px) {
  nav a.logo img { width: 159px; height: 38px; }
}

@media (max-width: 680px) {
  nav a.logo img { width: 122px; height: 29px; }
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav ul a {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-sub);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color .2s;
}

nav ul a:hover { color: var(--clr-text); }

nav ul a.nav-cta {
  color: #32578b;
  font-weight: 500;
}

nav ul a.nav-cta:hover { color: var(--clr-text); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.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); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
}

.nav-drawer.open { display: block; }

.nav-drawer-panel {
  background: rgba(254,254,254,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(28,43,74,0.12);
}

.nav-drawer ul {
  list-style: none;
  text-align: center;
  padding: 100px 0 40px; /* top: 60px nav + 40px gap; bottom: same 40px gap */
}

.nav-drawer ul li a {
  display: block;
  padding: clamp(20px, 3.5vh, 34px) 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-sub);
  text-decoration: none;
  transition: color .2s;
}

.nav-drawer ul li a:hover { color: var(--clr-text); }
.nav-drawer ul li a.nav-cta { color: #32578b; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: min(100vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-top: 60px;
}

.hero-text { padding-top: clamp(10px, 3vh, 48px); }

.hero-text h1 {
  max-width: 800px;
  font-size: clamp(28px, min(4.8vw, 7vh), 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--clr-text);
  font-weight: 300;
  margin-bottom: clamp(4px, 2.33vh, 20px);
}

.hero-text h1 em {
  font-style: normal;
  font-weight: 700;
}

.hero-text .subhead {
  max-width: 800px;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 400;
  color: var(--clr-sub);
  line-height: 1.5;
  letter-spacing: 0.005em;
  margin-bottom: clamp(0px, 1vh, 14px);
}

.diagram-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 52px !important;
  padding-right: 52px !important;
}

.diagram-embed {
  width: 100%;
  aspect-ratio: 1012 / 310;
  display: block;
}

.bottom-cta {
  text-align: center;
  padding: 0 0 clamp(10px, 6vh, 72px);
}

.microcopy {
  font-size: 10.5px;
  color: var(--clr-sub);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.btn-access {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #3282f6 0%, #0c2060 100%);
  border: none;
  border-radius: 12px;
  padding: 11px 32px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 120ms ease;
}

.btn-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a6be0 0%, #060e30 100%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.btn-access:hover::before { opacity: 1; }
.btn-access:active { transform: scale(0.97); }
.btn-access > span { position: relative; z-index: 1; }

/* ── SECTIONS — shared ───────────────────────────── */
section:not(.hero) {
  padding: clamp(58px, 7.2vw, 96px) 0 clamp(36px, 4.5vw, 60px);
}

#infrastructure {
  background: var(--clr-bg-alt);
  padding-top: clamp(62px, 7.2vw, 96px);
}

/* ── CARDS — shared ──────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid rgba(28,43,74,0.09);
  border-radius: 16px;
  padding: 32px 28px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card p {
  font-size: 15px;
  font-weight: 400;
  color: var(--clr-sub);
  line-height: 1.65;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── SECTION 2 — WHAT NEVOOA DOES ────────────────── */

.sec-lead {
  max-width: 680px;
  font-size: 17px;
  font-weight: 400;
  color: var(--clr-sub);
  line-height: 1.65;
  margin-bottom: 56px;
}

/* ── SECTION INTRO (text + side image) ──────────── */
.section-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.section-intro-text { flex: 1; }

.section-intro-text .sec-body { margin-bottom: 0; }

.section-intro-img {
  width: 150px;
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 1023px) {
  .section-intro-img { width: 80px; }
  .hero-text h1 { margin-bottom: 22px; }
  .diagram-wrap { margin-top: -24px; }
  .bottom-cta { padding-top: 16px; }
}

@media (min-width: 681px) and (max-width: 1023px) {
  .section-intro { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 680px) {
  .section-intro, .contact-form { padding-left: 10px; padding-right: 10px; }
  .section-intro-img { display: none; }
}

/* ── SECTION 3 — WHO WE WORK WITH ───────────────── */
#who {
  border-top: 1px solid rgba(28,43,74,0.07);
}

.sec-headline {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.sec-body {
  max-width: 660px;
  font-size: 17px;
  font-weight: 400;
  color: var(--clr-sub);
  line-height: 1.65;
  margin-bottom: 56px;
}

/* ── SECTION 4 — WHY OPERATORS NEED CONTROL ─────── */
#why { background: var(--clr-bg-alt); }

#why .sec-headline { max-width: 680px; }
#why .section-intro-text .sec-headline { max-width: none; }

#why .sec-body { max-width: 680px; }

#why .card {
  background: #fff;
  border: none;
  border-left: 3px solid var(--clr-blue);
  border-radius: 0 12px 12px 0;
  padding: 28px 28px 28px 28px;
}

/* ── SECTION 5 — CONTACT ─────────────────────────── */
#contact {
  border-top: 1px solid rgba(28,43,74,0.07);
}

.contact-header {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 16px;
}

.contact-lead {
  max-width: 600px;
  font-size: 17px;
  font-weight: 400;
  color: var(--clr-sub);
  line-height: 1.65;
  margin-bottom: 48px;
}

.contact-form { max-width: 560px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row .form-field { margin-bottom: 0; }

.form-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-sub);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--clr-text);
  background: #fff;
  border: 1.5px solid rgba(28,43,74,0.18);
  border-radius: 10px;
  padding: 11px 15px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(90,106,126,0.45);
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--clr-blue); }

.form-field textarea { min-height: 120px; }

.field-error {
  font-size: 11.5px;
  color: var(--clr-orange);
  margin-top: 5px;
  display: none;
}

.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--clr-orange); }

.form-field.has-error .field-error { display: block; }

.btn-submit {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #3282f6 0%, #0c2060 100%);
  border: none;
  border-radius: 12px;
  padding: 13px 36px;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 120ms ease, opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a6be0 0%, #060e30 100%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.btn-submit:hover:not(:disabled)::before { opacity: 1; }
.btn-submit:active:not(:disabled) { transform: scale(0.97); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-submit > * { position: relative; z-index: 1; }

.btn-submit .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  visibility: hidden;
}

.btn-submit.loading .spinner-right {
  visibility: visible;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.contact-footnote {
  margin-top: 24px;
  font-size: 11px;
  color: var(--clr-sub);
  max-width: 460px;
  line-height: 1.65;
  opacity: 0.75;
}

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1c2b4a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 12px;
  z-index: 2000;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(28,43,74,0.22);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(28,43,74,0.1);
  padding: 56px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.footer-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-sub);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color .2s;
}

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

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-social a img {
  display: block;
  opacity: 0.65;
  transition: opacity .2s;
}

.footer-social a:hover img {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(28,43,74,0.07);
  padding: 20px 0;
  text-align: center;
  font-size: 10px;
  color: var(--clr-sub);
  opacity: 0.7;
}

/* ── CENTERING OVERRIDES ─────────────────────────── */

/* Section 2: center section label + lead */
#infrastructure .sec-label { text-align: center; }
#infrastructure .sec-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Section 5: center header, lead, form, footnote */
#contact .contact-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#contact .contact-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#contact .contact-form {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
#contact .contact-footnote {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#contact .btn-submit {
  display: flex;
  width: fit-content;
  margin: 8px auto 0;
}

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 680px) {
  .cards-3,
  .cards-4 { grid-template-columns: 1fr; }
}

@media (max-width: 830px) {
  :root { --cpad: 24px; }

  nav ul { display: none; }
  .nav-toggle { display: flex; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .form-row .form-field { margin-bottom: 20px; }

  .diagram-wrap {
    padding-left: var(--cpad) !important;
    padding-right: var(--cpad) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-wordmark { justify-content: center; }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  .footer-social { justify-content: center; }
}

@media (min-width: 681px) and (max-width: 830px) {
  nav .container,
  .hero-text,
  .hero .container { padding-left: 52px; padding-right: 52px; }
  .diagram-wrap { padding-left: 52px !important; padding-right: 52px !important; }
}

@media (max-width: 680px) {
  nav .container,
  .hero-text,
  .hero .container { padding-left: 34px; padding-right: 34px; }
  .diagram-wrap { padding-left: 34px !important; padding-right: 34px !important; }
}
