/* R.A.M.B.O — dark blue / black, city → country morph
   Structure & wholesale copy from the original site; visual system from the redesign. */

:root {
  --black: #05070d;
  --navy-950: #070b16;
  --navy-900: #0a1224;
  --navy-800: #101c38;
  --navy-700: #162548;
  --blue: #3d6cff;
  --blue-bright: #6b8fff;
  --blue-soft: rgba(61, 108, 255, 0.16);
  --text: #d8e0f0;
  --text-hi: #f2f5fc;
  --muted: #8b97b0;
  --line: rgba(120, 140, 180, 0.22);

  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;

  --max: 1100px;
  --narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 48px, var(--narrow));
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--text-hi);
  line-height: 1;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a { color: rgba(242, 245, 252, 0.82); }
.nav a:hover { color: #fff; }

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--blue);
  color: #fff !important;
  border-radius: 2px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--blue-bright); color: #05070d !important; }

/* Hero — cityscape morphing into countryscape (vertically compact) */

.hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--text-hi);
}

.hero-morph {
  position: absolute;
  inset: 0;
}

.layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}

.layer-city {
  background-image:
    linear-gradient(105deg, rgba(5, 7, 13, 0.55), rgba(10, 18, 36, 0.2)),
    url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=2200&q=80");
  clip-path: polygon(0 0, 72% 0, 48% 100%, 0 100%);
  z-index: 1;
  animation: city-pulse 22s ease-in-out infinite alternate, morph-edge 18s ease-in-out infinite alternate;
}

.layer-country {
  background-image:
    linear-gradient(250deg, rgba(5, 7, 13, 0.45), rgba(10, 18, 36, 0.15)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=2200&q=80");
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 38% 100%);
  z-index: 2;
  animation: country-drift 26s ease-in-out infinite alternate;
}

.morph-sweep {
  position: absolute;
  inset: -10% -5%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(61, 108, 255, 0.18) 48%,
    rgba(5, 7, 13, 0.55) 52%,
    transparent 64%
  );
  mix-blend-mode: screen;
  animation: sweep 14s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(to top, rgba(5, 7, 13, 0.94) 0%, rgba(7, 11, 22, 0.55) 42%, rgba(7, 11, 22, 0.28) 100%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(61, 108, 255, 0.18), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 6.5rem 0 2.75rem;
  max-width: var(--max);
  margin-left: max(24px, calc((100% - var(--max)) / 2));
  margin-right: max(24px, calc((100% - var(--max)) / 2));
  width: min(100% - 48px, var(--max));
}

.brand-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 40px rgba(61, 108, 255, 0.35);
  animation: rise 0.85s ease both;
}

.hero h1 {
  display: grid;
  gap: 0.12rem;
  margin-bottom: 1.35rem;
  animation: rise 0.85s 0.1s ease both;
}

.acronym-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 245, 252, 0.78);
  line-height: 1.2;
}

.acronym-line em {
  font-style: normal;
  color: var(--blue-bright);
  text-shadow: 0 0 18px rgba(61, 108, 255, 0.55);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.75rem;
  align-items: start;
  animation: rise 0.85s 0.2s ease both;
}

.hero-rule {
  width: 1px;
  align-self: stretch;
  min-height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 18%,
    rgba(107, 143, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.28) 82%,
    transparent 100%
  );
}

.hero .lede {
  font-size: 1.02rem;
  color: rgba(216, 224, 240, 0.9);
  max-width: 42ch;
  margin-bottom: 1.35rem;
}

.lede-tight {
  margin-bottom: 0.85rem;
}

.tech-note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(168, 184, 214, 0.78);
  max-width: 40ch;
  letter-spacing: 0.01em;
}

.eyebrow-on-dark {
  margin-bottom: 0.65rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* AI optimization band */

.ai-band {
  position: relative;
  min-height: min(48vh, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.ai-band-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=2200&q=80")
      center 30% / cover no-repeat;
  transform: scale(1.04);
  animation: country-drift 20s ease-in-out infinite alternate;
}

.ai-band-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 7, 13, 0.96) 0%, rgba(7, 11, 22, 0.55) 50%, rgba(10, 18, 36, 0.35) 100%),
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(61, 108, 255, 0.22), transparent 55%);
}

.ai-band-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.25rem;
  max-width: 640px;
  margin-left: max(24px, calc((100% - var(--max)) / 2));
  width: min(100% - 48px, 640px);
}

.ai-band h2 { max-width: 16ch; }
.ai-band .section-lede { margin-bottom: 0; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 28px rgba(61, 108, 255, 0.35);
}

.btn-primary:hover {
  background: var(--blue-bright);
  color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost:hover {
  border-color: var(--blue-bright);
  background: var(--blue-soft);
}

/* Sections */

.section {
  padding: 5.75rem 0;
  position: relative;
}

.section-tint {
  background: var(--navy-900);
  border-block: 1px solid var(--line);
}

.section-dark {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(61, 108, 255, 0.12), transparent 55%),
    var(--black);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.9rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  color: var(--text-hi);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.45rem;
}

.section-lede {
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.nuance {
  max-width: 58ch;
  font-size: 1rem;
  color: rgba(216, 224, 240, 0.78);
  padding-left: 1.1rem;
  border-left: 2px solid var(--blue);
}

.section-dark .section-lede { margin-bottom: 2.25rem; }
.section-dark strong { color: var(--text-hi); font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.split h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  max-width: 16ch;
}

.split p { max-width: 42ch; color: var(--muted); }

/* Plain list */

.plain-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 0.75rem;
}

.plain-list li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--blue);
  color: var(--muted);
}

.plain-list strong {
  color: var(--text-hi);
  font-weight: 600;
}

/* Advisory */

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.advisory-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--blue);
}

.advisory-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact */

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form label.full { grid-column: 1 / -1; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-hi);
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue-soft);
  border-color: var(--blue);
}

.contact-form option { background: var(--navy-900); color: var(--text-hi); }

.contact-form button { justify-self: start; margin-top: 0.35rem; }

.form-note {
  grid-column: 1 / -1;
  color: var(--blue-bright);
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  background: var(--black);
  border-top: 1px solid var(--line);
}

.footer-brand { margin-bottom: 1.5rem; }

.footer-brand .brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer-brand p {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal {
  display: grid;
  gap: 0.9rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 84ch;
}

.copy { margin-top: 0.4rem; color: rgba(216, 224, 240, 0.55); }

/* Motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes city-pulse {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

@keyframes country-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(1.4%, -0.8%, 0); }
}

@keyframes sweep {
  from {
    transform: translateX(-4%) skewX(-8deg);
    opacity: 0.55;
  }
  to {
    transform: translateX(6%) skewX(-4deg);
    opacity: 0.95;
  }
}

@keyframes morph-edge {
  0% { clip-path: polygon(0 0, 72% 0, 48% 100%, 0 100%); }
  50% { clip-path: polygon(0 0, 62% 0, 55% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 68% 0, 42% 100%, 0 100%); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 900px) {
  .nav a:not(.nav-cta) { display: none; }

  .layer-city {
    clip-path: polygon(0 0, 100% 0, 100% 52%, 0 58%);
    animation: city-pulse 22s ease-in-out infinite alternate;
  }

  .layer-country {
    clip-path: polygon(0 48%, 100% 42%, 100% 100%, 0 100%);
  }

  .morph-sweep {
    background: linear-gradient(
      180deg,
      transparent 38%,
      rgba(61, 108, 255, 0.2) 48%,
      rgba(5, 7, 13, 0.5) 52%,
      transparent 62%
    );
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .hero-rule {
    width: 100%;
    height: 1px;
    min-height: 0;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(255, 255, 255, 0.28) 18%,
      rgba(107, 143, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.28) 82%,
      transparent 100%
    );
  }

  .split,
  .advisory-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content { padding: 6.5rem 0 2.5rem; }
  .ai-band { min-height: 360px; }
  .section { padding: 4.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
