/* =========================================================
   Spacebackend — ORBIT (v1)
   ========================================================= */

:root {
  /* Background (darkest at top, lightens toward horizon) */
  --bg-0: #00020f;
  --bg-1: #00041f;
  --bg-2: #000529;
  --bg-3: #0a0c1e;
  --bg-4: #0e122e;

  /* Cards / borders */
  --card: #0e122e;
  --card-2: #131839;
  --border: #1f275f;
  --border-soft: #161c44;

  /* Accent — electric blue */
  --accent: #194eff;
  --accent-deep: #003bff;
  --accent-bright: #3362ff;
  --accent-soft: #6689ff;
  --accent-mute: #5c7ef5;

  /* Light tints */
  --tint-1: #ccd7ff;
  --tint-2: #e5ebff;
  --tint-3: #eff3ff;

  /* Text */
  --text-h: #f9faff;
  --white: #ffffff;
  --text-b: #c4c8d4;
  --text-mut: #a7adbe;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, sans-serif;
  color: var(--text-b);
  background: var(--bg-0);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: "Rethink Sans", system-ui, sans-serif;
  color: var(--text-h);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent-soft);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 18ch;
}

/* ---------- Buttons ---------- */
.btn {
  font: 600 0.98rem/1 "Inter Tight", sans-serif;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: .25s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  border-color: var(--accent-bright);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 4px 24px rgba(25,78,255,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(25,78,255,0.65), inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-bright));
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--tint-1);
}
.btn-ghost:hover {
  border-color: var(--accent-soft);
  background: rgba(25,78,255,0.08);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0,2,15,0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.brand-logo { height: 26px; width: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a {
  font-size: 0.95rem;
  color: var(--text-b);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 8px; }

/* ---------- Burger ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,2,15,0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s, transform .35s, visibility .35s;
}
body.nav-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-menu nav a {
  font-size: 1.5rem;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 600;
  color: var(--text-h);
}
.mobile-menu nav a:hover { color: var(--accent-soft); }
.mobile-cta { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00020f 0%, rgba(0,2,15,0) 30%, rgba(0,2,15,0) 60%, rgba(0,4,31,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6vw;
  transform: translateX(-50%);
  width: 120vw; height: 60vw;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(51,98,255,0.40) 0%,
    rgba(25,78,255,0.18) 35%,
    rgba(0,4,31,0) 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}
.horizon {
  position: absolute;
  left: 50%; bottom: -78vw;
  transform: translateX(-50%);
  width: 150vw; height: 150vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%,
      rgba(102,137,255,0.0) 49.2%,
      rgba(102,137,255,0.85) 49.7%,
      rgba(25,78,255,0.55) 50.2%,
      rgba(0,4,31,0.0) 56%),
    radial-gradient(circle at 50% 50%, #050a24 0%, #02030f 60%);
  box-shadow: 0 -2px 120px 10px rgba(25,78,255,0.45);
  z-index: 1;
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 -2px 110px 6px rgba(25,78,255,0.40); }
  50%      { box-shadow: 0 -2px 140px 16px rgba(25,78,255,0.52); }
}

/* Stars */
.stars {
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 2px;
  z-index: 0;
  pointer-events: none;
}
.stars-sm { animation: twinkle 6s ease-in-out infinite; }
.stars-md { animation: twinkle 8s ease-in-out infinite; }
.stars-lg { animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.hero-inner { position: relative; z-index: 3; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--tint-1);
  background: rgba(25,78,255,0.06);
}
.chips .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 8px var(--accent);
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero-title .grad {
  background: linear-gradient(90deg, #6689ff, #ccd7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  color: var(--text-b);
  max-width: 560px;
  margin-top: 24px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.trust-line {
  font-size: 0.85rem;
  color: var(--text-mut);
  margin-top: 28px;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(19,24,57,0.6), rgba(14,18,46,0.4));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(25,78,255,0.25);
}
.card:hover::before { opacity: 1; }
.icon-box {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(25,78,255,0.06);
  color: var(--accent-soft);
  margin-bottom: 20px;
  transition: box-shadow .3s, border-color .3s;
}
.icon-box svg { width: 24px; height: 24px; }
.card:hover .icon-box {
  border-color: var(--accent-soft);
  box-shadow: 0 0 20px rgba(25,78,255,0.4);
}
.card h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { font-size: 0.95rem; color: var(--text-mut); margin: 0; }

/* ---------- Value props ---------- */
.platform { background: linear-gradient(180deg, var(--bg-0), var(--bg-3)); }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- Products ---------- */
.products { background: var(--bg-3); }
.grid-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  padding: 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.product-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,78,255,0.18), transparent 70%);
  pointer-events: none;
}
.product-muted::after { opacity: .4; }
.product-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.product-sub { font-size: 0.95rem; color: var(--accent-soft) !important; margin-bottom: 16px !important; }
.status-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.badge-active {
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  background: rgba(25,78,255,0.08);
}
.badge-soon {
  border: 1px solid var(--border);
  color: var(--text-mut);
  background: transparent;
}
.product-muted { opacity: 0.82; }
.learn-more {
  margin-top: auto;
  padding-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.learn-more .arrow { transition: transform .25s; }
.learn-more:hover .arrow { transform: translateX(3px); }
.learn-disabled { color: var(--text-mut); cursor: default; }

/* ---------- Roadmap ---------- */
.roadmap { background: var(--bg-0); }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 0;
  padding-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
}
.tl-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(25,78,255,0.2), 0 0 16px var(--accent);
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
}
.tl-node.future .tl-dot {
  background: transparent;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(25,78,255,0.12), 0 0 12px rgba(25,78,255,0.5);
}
.tl-content { display: flex; flex-direction: column; gap: 6px; }
.tl-date {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
}
.tl-label { font-size: 0.9rem; color: var(--text-mut); }

/* ---------- Investors ---------- */
.investors {
  background: var(--bg-3);
  position: relative;
}
.investors::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 360px;
  max-width: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(25,78,255,0.18), transparent 70%);
  pointer-events: none;
}
.center-wrap { text-align: center; }
.center-wrap .section-title { margin-inline: auto; max-width: 22ch; }
.techstars-card {
  margin: 0 auto;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(19,24,57,0.6), rgba(14,18,46,0.4));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 0 0 1px rgba(25,78,255,0.18), 0 16px 48px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}
.techstars-logo { height: 40px; width: auto; }
.techstars-caption {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}
.investor-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.investor-chips li {
  font-size: 0.9rem;
  color: var(--tint-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: rgba(255,255,255,0.02);
}

/* ---------- Team ---------- */
.team { background: var(--bg-0); }
.team-lead { color: var(--text-mut); margin: -28px 0 48px; }
.grid-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-soft));
  color: #fff;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.member-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.member-role { color: var(--text-mut); margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-soft);
  padding-block: clamp(64px, 9vw, 110px) 48px;
}
.cta-band {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(56px, 8vw, 96px);
  position: relative;
  padding: clamp(40px, 6vw, 70px) 24px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(25,78,255,0.16), transparent 70%);
  pointer-events: none;
}
.cta-band .section-title {
  margin-inline: auto;
  margin-bottom: 28px;
  max-width: 16ch;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border-soft);
}
.footer-logo { height: 24px; width: auto; margin-bottom: 16px; }
.footer-tag { font-size: 0.95rem; color: var(--text-b); margin: 0 0 12px; max-width: 280px; }
.footer-copy { font-size: 0.85rem; color: var(--text-mut); margin: 0; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 4px;
}
.footer-col a { font-size: 0.9rem; color: var(--text-mut); transition: color .25s; }
.footer-col a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
}
@media (max-width: 860px) {
  .grid-products { grid-template-columns: 1fr; }
  .grid-team { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 0;
    padding-left: 18px;
  }
  .timeline::before {
    top: 6px; bottom: 6px;
    left: 6px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--border), var(--accent), var(--border));
  }
  .tl-node {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: 0;
  }
  .tl-dot { margin-bottom: 0; margin-top: 5px; }
  .tl-content { gap: 4px; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { text-align: center; }
  .chips, .hero-cta { justify-content: center; }
  .hero-title, .hero-lead { margin-inline: auto; }
  .footer-grid { flex-direction: column; }
  .footer-cols { gap: 32px; }
  .horizon {
    width: 200vw; height: 200vw;
    bottom: -120vw;
  }
  .hero::after { filter: blur(28px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars, .horizon { animation: none; }
  [data-reveal] { transition: opacity .3s; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
