/* ===================================================================
   SPACEVLEO — RF Sensing Intelligence
   Design tokens + Navbar + Hero
   =================================================================== */

:root {
  /* palette — deep space */
  --bg:        #060B14;
  --bg-2:      #0A1220;
  --card:      #0F1A2E;
  --line:      rgba(120,160,220,.15);
  --line-soft: rgba(120,160,220,.08);

  /* accents */
  --accent:    #2E7DFF;   /* electric blue — CTA / emphasis */
  --accent-2:  #5BC8FF;   /* cyan — RF beams / glow */
  --accent-deep:#1B4DBE;

  /* text */
  --ink:       #EAF1FB;
  --ink-2:     #8DA0BC;
  --ink-3:     #5C6E89;

  /* type */
  --display: 'Raleway', system-ui, sans-serif; 
  --body: 'Raleway', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px -6px rgba(46,125,255,.6);
}
.btn--primary:hover {
  background: #3d8aff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -6px rgba(46,125,255,.75);
}
.btn--primary svg { transition: transform .2s ease; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover {
  border-color: var(--accent-2);
  color: #fff;
  background: rgba(46,125,255,.08);
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }

/* yellow demo CTA (hero + footer banner) */
.btn--demo {
  background: #F5BE00;
  color: #1A1206;
  box-shadow: 0 6px 24px -6px rgba(245,190,0,.5);
}
.btn--demo:hover {
  background: #FFC91F;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -6px rgba(245,190,0,.65);
}
.btn--demo svg { transition: transform .2s ease; }
.btn--demo:hover svg { transform: translateX(3px); }

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6,11,20,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__logo { height: 26px; width: auto; }
.nav__tag {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .22em;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  white-space: nowrap;
}
.nav__menu {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav__menu a {
  font-size: .9rem;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent-2);
  transition: width .25s ease;
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after { width: 100%; }
.nav__cta { flex-shrink: 0; }

/* mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--pad) 24px;
  background: rgba(8,14,26,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a {
  padding: 12px 4px;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a:last-child { border: none; }
.nav.is-open .nav__mobile { display: flex; }

/* ===================================================================
   DEEP-SPACE BACKGROUND (earth-from-space photo)
   =================================================================== */
.space { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.space__earth {
  position: absolute;
  inset: 0;
  background: #04070E url('assets/earth.jpg') center 38% / cover no-repeat;
}
/* darken left side so headline + body copy stay readable;
   keep the bright earth/lights visible on the right */
.space__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,14,.92) 0%, rgba(4,7,14,.72) 32%, rgba(4,7,14,.25) 60%, rgba(4,7,14,.05) 100%),
    linear-gradient(180deg, rgba(4,7,14,.55) 0%, transparent 22%, transparent 78%, rgba(4,7,14,.6) 100%);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  background: #04070E;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: .02em;
  margin-bottom: 32px;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--accent-2);
  max-width: 30ch;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: 1rem;
  color: var(--ink);
  max-width: 44ch;
  margin-bottom: 34px;
}

/* product image staging */
.hero__product {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__product::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(4,7,14,.85), rgba(4,7,14,.4) 55%, transparent 75%);
  z-index: 0;
}
.hero__product-glow {
  position: absolute;
  inset: 5% 5% 5% 5%;
  background: radial-gradient(circle at 50% 45%, rgba(46,125,255,.35), rgba(91,200,255,.12) 45%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.hero__product-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(46,125,255,.28));
  animation: float 7s ease-in-out infinite;
  /* feather the square black background so it blends into the dark space */
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 48%, #000 52%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 75% at 50% 48%, #000 52%, transparent 78%);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__wordmark {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .35em;
  font-size: clamp(.8rem, 1.4vw, 1.1rem);
  color: rgba(234,241,251,.55);
  z-index: 2;
}

/* ===================================================================
   RF BEAM SCENE (transition section, photo background + animated overlay)
   =================================================================== */
.scene {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 56vw, 760px);
  display: flex;
  align-items: flex-start;
  background: #04070E;
}
.scene__photo {
  position: absolute;
  inset: 0;
  background: #04070E url('assets/scene-bg.jpg') center center / cover no-repeat;
}
/* subtle veil to keep the title legible over the bright sea */
.scene__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,14,.15) 0%, rgba(4,7,14,.05) 40%, rgba(4,7,14,.55) 100%),
    linear-gradient(180deg, rgba(4,7,14,.4) 0%, transparent 30%, transparent 70%, rgba(4,7,14,.5) 100%);
}
.scene__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* scan sweep + beam glow (overlay animations) */
.scene__beamglow {
  mix-blend-mode: screen;
  animation: beamBreathe 4.5s ease-in-out infinite;
}
@keyframes beamBreathe {
  0%,100% { opacity: .05; }
  50%     { opacity: .22; }
}
.scene__sweep {
  mix-blend-mode: screen;
  animation: beamScan 4.5s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes beamScan {
  0%   { transform: translateY(140px); opacity: 0; }
  20%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(560px); opacity: 0; }
}

/* title only */
.scene__copy {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 13vw, 180px) var(--pad) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* padding-left: 35%; */
  width: 100%;
  text-align: left;
}
.scene__title {
  text-align: left;
  max-width: 50ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(4,7,14,.8);
}

/* ===================================================================
   RF SENSING SOLUTIONS
   =================================================================== */
.solutions {
  background: linear-gradient(180deg, #04070E 0%, #060B14 100%);
  padding: clamp(64px, 9vw, 120px) 0;
}
.solutions__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.solutions__head {
  margin-bottom: clamp(36px, 5vw, 60px);
}
.solutions__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.solutions__intro p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 95ch;
  margin-bottom: 16px;
}
.solutions__intro p:last-child { margin-bottom: 0; }

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.scard-wrap {
  display: flex;
  flex-direction: column;
}
.scard-wrap .scard {
  flex: 1;
}
.scard__tags {
  margin-top: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--accent-2);
}
.scard {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
}
.scard__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: brightness(1.15) saturate(1.05);
  transition: transform .5s ease, filter .3s ease;
}
.scard::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4,7,14,.05) 0%, rgba(4,7,14,.15) 40%, rgba(4,7,14,.82) 100%);
}
.scard__body { padding: clamp(20px, 2.4vw, 28px); }
.scard__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.scard__text {
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.55;
}
.scard:hover { transform: translateY(-5px); border-color: var(--accent-2); }
.scard:hover .scard__media { transform: scale(1.06); }

/* ===================================================================
   OUR MISSION (product carousel)
   =================================================================== */
.mission {
  background: linear-gradient(180deg, #060B14 0%, #0A1428 50%, #060B14 100%);
  padding: clamp(40px, 5vw, 64px) 0;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 30% 50%, rgba(46,125,255,.12), transparent 70%);
  pointer-events: none;
}
.mission__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* carousel */
.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: 14px;
}
.carousel__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.carousel__slide {
  min-width: 100%;
  height: clamp(280px, 34vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)) drop-shadow(0 0 50px rgba(46,125,255,.2));
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 58%, transparent 82%);
          mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 58%, transparent 82%);
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10,18,32,.6);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  z-index: 2;
}
.carousel__btn:hover { background: rgba(46,125,255,.25); border-color: var(--accent-2); }
.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(141,160,188,.35);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel__dot.is-active { background: var(--accent-2); transform: scale(1.3); }

/* mission copy */
.mission__eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 26px;
}
.mission__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 30px;
}
.mission__text {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 48ch;
}

/* ===================================================================
   BUILT FOR REAL-WORLD MISSIONS (application cards)
   =================================================================== */
.missions {
  position: relative;
  background: linear-gradient(180deg, #060B14 0%, #04070E 100%);
  padding: clamp(40px, 5vw, 64px) 0;
  overflow: hidden;
}
.missions::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 18% 30%, rgba(46,125,255,.14), transparent 70%),
    radial-gradient(50% 60% at 82% 60%, rgba(91,200,255,.1), transparent 70%);
  pointer-events: none;
}
.missions__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.missions__eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--accent-2);
  display: block;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.missions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.mcard {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15, 26, 46, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.mcard__media {
  height: clamp(190px, 18vw, 250px);
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.mcard__body {
  padding: clamp(20px, 2vw, 28px) clamp(16px, 1.6vw, 22px) clamp(26px, 2.4vw, 32px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.mcard__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(46,125,255,.1);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -50px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.mcard__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.mcard__text {
  color: var(--ink);
  font-size: .90rem;
  line-height: 1.55;
}
.mcard:hover { transform: translateY(-5px); border-color: var(--accent-2); background: rgba(15, 26, 46, 0.65); }
.mcard:hover .mcard__media { transform: scale(1.06); }

/* ===================================================================
   CTA BANNER + FOOTER
   =================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 42vw, 540px);
  display: flex;
  align-items: flex-start;
  background: #04070E;
  margin-top: clamp(40px, 7vw, 90px);
}
.cta__bg {
  position: absolute;
  inset: 0;
  background: #04070E url('assets/cta-bg.jpg') center center / cover no-repeat;
}
.cta__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,14,.6) 0%, rgba(4,7,14,.25) 45%, rgba(4,7,14,.02) 100%),
    linear-gradient(180deg, rgba(4,7,14,.25) 0%, transparent 35%, transparent 100%);
}
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--pad) clamp(80px, 12vw, 160px);
  width: 100%;
}
.cta__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 28px;
}
.cta__text {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 40px;
}

/* footer */
.footer {
  background: #060B14;
  border-top: 1px solid var(--line-soft);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.footer__logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer__tagline {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .24em;
  color: var(--ink-3);
}
.footer__contact { padding-top: 4px; }
.footer__line {
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer__line a {
  color: var(--accent-2);
  transition: color .2s ease;
}
.footer__line a:hover { color: #fff; }
.footer__bar {
  border-top: 1px solid var(--line-soft);
}
.footer__bar p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad);
  color: var(--ink-3);
  font-size: .85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }

  .solutions__grid { grid-template-columns: 1fr; }
  .scard { min-height: 300px; }

  .mission__inner { grid-template-columns: 1fr; gap: 28px; }
  .mission__copy { text-align: center; }
  .mission__text { margin: 0 auto; }

  .missions__grid { grid-template-columns: repeat(2, 1fr); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero__lead, .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__product { order: -1; }
  .hero__product-img { max-width: 380px; }
}
@media (max-width: 560px) {
  .missions__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .hero__product-img { max-width: 300px; }
}
