:root {
  --bg: #0b1220;
  --panel: #131d33;
  --text: #e9eefc;
  --muted: #aab7d8;
  --accent: #4ea1ff;
  --border: #213154;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a1222;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

#live-map {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: #000;
}

#live-map .leaflet-container,
#live-map .leaflet-pane,
#live-map .leaflet-tile-pane {
  background: #000 !important;
}

#live-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.58) 0%, rgba(8, 14, 28, 0.66) 100%);
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.08;
  background: radial-gradient(circle at 20% 20%, rgba(78, 161, 255, 0.18) 0, rgba(78, 161, 255, 0) 34%);
}


.plane-marker {
  color: #8fdbff;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(100, 200, 255, 0.6);
}

.plane-glyph {
  display: inline-block;
  transform-origin: center;
  transition: transform 90ms linear;
  will-change: transform;
}

.leaflet-tile {
  filter: saturate(0.85) hue-rotate(8deg) brightness(0.82);
}

/* body::before handled above for globe silhouette */

/* Subtle motion layer: dotted flight routes + airplane markers */
body::after {
  display: none;
}

/* tiny "plane" glyphs that drift across paths */
.hero::before,
.hero::after {
  display: none;
}

@keyframes flightDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1%, 1%, 0) scale(1.01); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes planeOne {
  0% { transform: translate3d(0, 0, 0) rotate(18deg); opacity: 0; }
  10% { opacity: 0.35; }
  50% { transform: translate3d(58vw, 10vh, 0) rotate(22deg); opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translate3d(88vw, 16vh, 0) rotate(24deg); opacity: 0; }
}

@keyframes planeTwo {
  0% { transform: translate3d(0, 0, 0) rotate(18deg); opacity: 0; }
  12% { opacity: 0.28; }
  60% { transform: translate3d(44vw, 12vh, 0) rotate(20deg); opacity: 0.28; }
  100% { transform: translate3d(70vw, 18vh, 0) rotate(22deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .hero::before,
  .hero::after {
    animation: none;
    opacity: 0.08;
  }
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(8, 13, 25, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
  display: block;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: rgba(18, 30, 52, 0.75);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 1rem;
}

.site-nav {
  display: flex;
}

@media (max-width: 900px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .brand {
    order: 1;
  }

  .menu-toggle {
    display: inline-block;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
    padding: 0;
  }

  .site-nav.is-open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding: 0.55rem 0 0.25rem;
  }

  .site-nav a {
    margin-left: 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 28, 48, 0.55);
  }
}

.hero {
  text-align: center;
  padding: 4rem 0 2.5rem;
}

.hero--landing {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.sky-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.satellite {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(100, 190, 255, 0.35));
}

.sat-geo {
  top: 8%;
  font-size: 1.2rem;
  opacity: 0.9;
}

.geo-1 { left: 12%; }
.geo-2 { left: 45%; transform: translateX(-50%); }
.geo-3 { right: 12%; }

.sat-leo {
  opacity: 0.72;
  font-size: 0.9rem;
  filter: grayscale(0.35) brightness(1.15) drop-shadow(0 0 8px rgba(130, 220, 255, 0.25));
  animation: leoDrift 22s linear infinite;
}

.leo-r1 { top: 14%; }
.leo-r2 { top: 20%; opacity: 0.62; }
.leo-r3 { top: 26%; opacity: 0.55; }
.leo-r4 { top: 32%; opacity: 0.48; }

.leo-r1.leo-1 { left: -12%; animation-duration: 22s; }
.leo-r1.leo-2 { left: 12%; animation-duration: 28s; animation-delay: -6s; }
.leo-r1.leo-3 { left: 36%; animation-duration: 24s; animation-delay: -11s; }
.leo-r1.leo-4 { left: 60%; animation-duration: 26s; animation-delay: -15s; }

.leo-r2.leo-1 { left: -2%; animation-duration: 26s; animation-delay: -4s; }
.leo-r2.leo-2 { left: 22%; animation-duration: 30s; animation-delay: -12s; }
.leo-r2.leo-3 { left: 46%; animation-duration: 23s; animation-delay: -8s; }
.leo-r2.leo-4 { left: 70%; animation-duration: 29s; animation-delay: -18s; }

.leo-r3.leo-1 { left: -8%; animation-duration: 27s; animation-delay: -7s; }
.leo-r3.leo-2 { left: 26%; animation-duration: 25s; animation-delay: -13s; }
.leo-r3.leo-3 { left: 62%; animation-duration: 31s; animation-delay: -20s; }

.leo-r4.leo-1 { left: -14%; animation-duration: 29s; animation-delay: -9s; }
.leo-r4.leo-2 { left: 16%; animation-duration: 26s; animation-delay: -16s; }
.leo-r4.leo-3 { left: 44%; animation-duration: 33s; animation-delay: -22s; }
.leo-r4.leo-4 { left: 74%; animation-duration: 30s; animation-delay: -27s; }

.coverage {
  position: absolute;
  top: 9%;
  width: 34vw;
  max-width: 460px;
  min-width: 280px;
  height: 34vw;
  max-height: 460px;
  min-height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(120, 220, 255, 0.3) 0%, rgba(120, 220, 255, 0.14) 44%, rgba(120, 220, 255, 0) 72%);
  transform-origin: top center;
  filter: blur(0.2px);
}

.coverage-a {
  left: 18%;
  transform: scaleX(1.1) scaleY(0.86);
  animation: coveragePulse 4.2s ease-in-out infinite;
}

.coverage-b {
  right: 18%;
  transform: scaleX(1.1) scaleY(0.86);
  animation: coveragePulse 4.2s ease-in-out infinite 2.1s;
}

.aircraft {
  position: absolute;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(110, 200, 255, 0.25));
}

.jet-business {
  font-size: 1rem;
}

.jet-commercial {
  font-size: 1.3rem;
}

/* Global air traffic lanes across the map */
.aircraft.lane-a { top: 36%; }
.aircraft.lane-b { top: 43%; }
.aircraft.lane-c { top: 50%; }
.aircraft.lane-d { top: 57%; }
.aircraft.lane-e { top: 64%; }
.aircraft.lane-f { top: 71%; }

.aircraft.dir-east.jet-1 { left: -14%; animation: jetEastOne 24s linear infinite; animation-delay: 0s; }
.aircraft.dir-east.jet-2 { left: -24%; animation: jetEastTwo 31s linear infinite; animation-delay: -7s; }
.aircraft.dir-east.jet-3 { left: -6%; animation: jetEastThree 27s linear infinite; animation-delay: -13s; }

.aircraft.dir-west.jet-1 { right: -10%; left: auto; animation: jetWestOne 26s linear infinite; animation-delay: -4s; }
.aircraft.dir-west.jet-2 { right: -20%; left: auto; animation: jetWestTwo 32s linear infinite; animation-delay: -11s; }
.aircraft.dir-west.jet-3 { right: -6%; left: auto; animation: jetWestThree 28s linear infinite; animation-delay: -17s; }

@keyframes coveragePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.55; }
}

@keyframes leoDrift {
  0% { transform: translate3d(-20vw, 0, 0); }
  100% { transform: translate3d(120vw, 2vh, 0); }
}

@keyframes jetEastOne {
  0% { transform: translate3d(0, 0, 0) rotate(2deg); opacity: 0; }
  6% { opacity: 0.9; }
  100% { transform: translate3d(112vw, 1vh, 0) rotate(2deg); opacity: 0.9; }
}

@keyframes jetEastTwo {
  0% { transform: translate3d(0, 0, 0) rotate(1deg); opacity: 0; }
  6% { opacity: 0.85; }
  100% { transform: translate3d(118vw, -1vh, 0) rotate(1deg); opacity: 0.85; }
}

@keyframes jetEastThree {
  0% { transform: translate3d(0, 0, 0) rotate(2deg); opacity: 0; }
  6% { opacity: 0.85; }
  100% { transform: translate3d(108vw, 0.5vh, 0) rotate(2deg); opacity: 0.85; }
}

@keyframes jetWestOne {
  0% { transform: translate3d(0, 0, 0) rotate(2deg); opacity: 0; }
  6% { opacity: 0.9; }
  100% { transform: translate3d(-112vw, -0.6vh, 0) rotate(2deg); opacity: 0.9; }
}

@keyframes jetWestTwo {
  0% { transform: translate3d(0, 0, 0) rotate(1deg); opacity: 0; }
  6% { opacity: 0.85; }
  100% { transform: translate3d(-120vw, 0.8vh, 0) rotate(1deg); opacity: 0.85; }
}

@keyframes jetWestThree {
  0% { transform: translate3d(0, 0, 0) rotate(2deg); opacity: 0; }
  6% { opacity: 0.85; }
  100% { transform: translate3d(-110vw, 0.2vh, 0) rotate(2deg); opacity: 0.85; }
}

.hero h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.2px;
}

.hero p {
  margin: 0 auto 1.25rem;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-image {
  display: block;
  width: min(940px, 100%);
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.hero-friendly {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.15rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #041022;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(25, 84, 160, 0.28);
  filter: brightness(1.03);
}

.btn-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18px;
  opacity: 0.76;
  line-height: 1.05;
  margin-top: 0.08rem;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  padding: 2.8rem 0;
}

.section-clear {
  background: transparent;
  border: 0;
  min-height: 20vh;
  padding: 0;
}

.section-soft {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background: rgba(10, 18, 34, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Match spacing/overlay feel with Why Rivercode */
.how-we-work {
  position: relative;
  min-height: 62vh;
  padding-top: 0.2rem;
  padding-bottom: 0.9rem;
  border-top: 1px solid var(--border);
  background: transparent;
}

.how-we-work::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(10, 18, 34, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

#why-rivercode.section-soft {
  position: relative;
  min-height: 62vh;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding-top: 0.2rem;
  padding-bottom: 0.9rem;
}

#why-rivercode.section-soft::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(10, 18, 34, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

#microsoft-partner.section-soft {
  background: transparent;
}

/* Using default .section-soft spacing */

.section h2,
.section h1 {
  margin-top: 0;
}

.section h2 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin-bottom: 0.9rem;
}

.section p,
.card p,
.why-columns p,
.microsoft-list p {
  font-size: 1.08rem;
  line-height: 1.64;
}

.alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.4rem 0;
}

#work.section-soft {
  position: relative;
  min-height: 62vh;
  padding-top: 0.2rem;
  padding-bottom: 0.9rem;
  background: transparent;
  border: 0;
}

#work.section-soft::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(10, 18, 34, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

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

.card {
  background: linear-gradient(180deg, #1a2a47 0%, #14223c 100%);
  border: 1px solid #2a4673;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  border-color: #2f4f82;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.45rem;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.contact-form {
  max-width: 720px;
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0e172a;
  color: #c9d8f5;
}

.dark-select {
  background: rgba(14, 23, 42, 0.9);
  color: var(--text);
}

.dark-select option {
  background: #0e172a;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.mt {
  margin-top: 1rem;
}

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 18, 34, 0.55);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  padding: 0.95rem 0;
}

.trust-strip--landing {
  min-height: 20vh;
  display: flex;
  align-items: center;
}

.trust-grid div {
  display: grid;
  gap: 0.2rem;
}

.trust-grid strong {
  font-size: 1.02rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.trust-grid span {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.section-note {
  margin: 0 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.why-columns article {
  padding: 0.2rem 0.2rem 0.2rem 0;
}

.why-columns h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#work .what-we-do-list {
  column-count: 2;
  column-gap: 3rem;
}

#work ul,
#work li {
  letter-spacing: 0.45px;
  text-transform: none !important;
  font-variant: normal;
  color: var(--muted);
}

#work li {
  break-inside: avoid;
}

.why-columns p {
  margin: 0;
  color: var(--muted);
}

.microsoft-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.microsoft-list article {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(17, 30, 54, 0.45);
}

.microsoft-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.microsoft-list p {
  margin: 0;
  color: var(--muted);
}

.service-item {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-item:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 211, 255, 0.55) !important;
  background: rgba(10, 20, 38, 0.62) !important;
  box-shadow: 0 10px 24px rgba(4, 10, 20, 0.35), 0 0 0 1px rgba(126, 211, 255, 0.15) inset;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 1rem 1rem 1.5rem;
  background: rgba(8, 13, 25, 0.8);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 auto 0.8rem;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.92;
}

.footer-nav a:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .section-soft {
    min-height: 76vh;
  }
}

@media (max-width: 900px) {
  .hero--landing {
    min-height: 44vh;
    padding-top: 2.1rem;
    padding-bottom: 1.6rem;
  }

  .trust-strip--landing {
    min-height: 14vh;
  }

  .section-soft {
    min-height: auto;
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
  }

  .why-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  #work .what-we-do-list {
    column-count: 1;
    column-gap: 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    margin-bottom: 1rem;
  }

  .section {
    padding: 2.1rem 0;
  }

  .section-soft {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }
}

@media (max-height: 760px) {
  .hero--landing {
    min-height: 38vh;
  }

  .trust-strip--landing {
    min-height: 12vh;
  }
}

@media (min-width: 1600px) {
  .container {
    width: min(1320px, 88%);
  }

  body {
    font-size: 17px;
  }
}
