/* ── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:       #07111F;
  --bg2:      #0F1E38;
  --cyan:     #49D6FF;
  --teal:     #4FFFD1;
  --purple:   #8B7DFF;
  --white:    #F8FAFC;
  --w70:      rgba(248,250,252,.70);
  --w40:      rgba(248,250,252,.40);
  --w08:      rgba(248,250,252,.06);
  --glass:    rgba(15,30,56,.55);
  --gborder:  rgba(73,214,255,.12);
  --display:  'Space Grotesk', system-ui, sans-serif;
  --body:     'Inter', system-ui, sans-serif;
}

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

/* ── Navbar ────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 68px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,17,31,.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gborder);
  transition: background .3s, border-color .3s;
}
nav.scrolled {
  background: rgba(7,17,31,.92);
  border-bottom-color: rgba(73,214,255,.22);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--white);
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--bg);
  flex-shrink: 0;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--w70); font-size: .875rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-btn {
  padding: .5rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(73,214,255,.35);
  border-radius: 8px;
  color: var(--cyan); font-family: var(--body);
  font-size: .85rem; font-weight: 500;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.nav-btn:hover {
  background: rgba(73,214,255,.1);
  border-color: var(--cyan);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 120px 2rem 80px;
}

#stars { position: absolute; inset: 0; z-index: 0; }

/* Atmospheric glow layers */
.atmo {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.atmo-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 80vw; height: 70vh;
  background: radial-gradient(ellipse,
    rgba(73,214,255,.07) 0%,
    rgba(79,255,209,.04) 35%,
    transparent 70%);
}
.atmo-horizon {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(73,214,255,.03) 40%,
    rgba(15,30,56,.85) 75%,
    var(--bg) 100%);
}

/* Orbital rings */
.rings {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.rings svg {
  width: min(85vmin, 860px);
  height: min(85vmin, 860px);
}

/* Floating landscape */
.landscape {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 52%; z-index: 3; pointer-events: none;
}
.landscape svg { width: 100%; height: 100%; }

/* Energy streams */
.stream {
  position: absolute; z-index: 4; pointer-events: none;
  border-radius: 100px;
}
.s1 { width: 1px; height: 28vh; left: 18%; top: 28%;
      background: linear-gradient(180deg, transparent, var(--cyan), transparent);
      animation: streamPulse 4s ease-in-out infinite; opacity: .35; filter: blur(.5px); }
.s2 { width: 1px; height: 20vh; right: 22%; top: 38%;
      background: linear-gradient(180deg, transparent, var(--teal), transparent);
      animation: streamPulse 6s ease-in-out infinite 2s; opacity: .25; filter: blur(.5px); }
.s3 { width: 1px; height: 24vh; left: 33%; top: 22%;
      background: linear-gradient(180deg, transparent, var(--purple), transparent);
      animation: streamPulse 5s ease-in-out infinite 1s; opacity: .25; filter: blur(.5px); }

@keyframes streamPulse {
  0%,100% { transform: scaleY(.6) translateY(-8%); opacity: .15; }
  50%      { transform: scaleY(1)  translateY( 8%); opacity: .45; }
}

/* Hero content */
.hero-body {
  position: relative; z-index: 10;
  text-align: center;
  max-width: 800px; margin: 0 auto;
  animation: fadeUp .9s ease .15s both;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .35rem 1rem;
  background: rgba(73,214,255,.08);
  border: 1px solid rgba(73,214,255,.25);
  border-radius: 100px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: .35; }
}

.hero-h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 1.25rem;
  background: linear-gradient(140deg, var(--white) 0%, rgba(248,250,252,.8) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: var(--w70); max-width: 500px;
  margin: 0 auto 2.5rem; line-height: 1.75;
}

.ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: #06101c; font-family: var(--body);
  font-size: .9375rem; font-weight: 600;
  border-radius: 12px; border: none;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 32px rgba(73,214,255,.28);
  transition: transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 52px rgba(73,214,255,.48);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .85rem 2rem;
  background: var(--w08);
  border: 1px solid rgba(248,250,252,.14);
  color: var(--white); font-family: var(--body);
  font-size: .9375rem; font-weight: 500;
  border-radius: 12px; text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background .25s, border-color .25s, transform .25s;
}
.btn-ghost:hover {
  background: rgba(248,250,252,.1);
  border-color: rgba(248,250,252,.3);
  transform: translateY(-2px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--w40); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  animation: fadeUp 1s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--w40), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Shared Section Styles ─────────────────────────── */
section { position: relative; padding: 100px 2rem; }
.container { max-width: 1180px; margin: 0 auto; }

.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1rem;
}
.sec-label::before { content: ''; width: 18px; height: 1px; background: var(--cyan); }

.sec-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  margin-bottom: .9rem; color: var(--white);
}
.sec-sub {
  font-size: 1rem; color: var(--w70);
  max-width: 540px; line-height: 1.75;
}

/* ── What We Build ─────────────────────────────────── */
#build {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
.build-head { margin-bottom: 3.5rem; }

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

.bcard {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--gborder);
  border-radius: 20px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease, border-color .35s, box-shadow .35s;
}
.bcard::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(73,214,255,.07), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.bcard:hover::before { opacity: 1; }
.bcard:hover {
  border-color: rgba(73,214,255,.28);
  box-shadow: 0 20px 55px rgba(7,17,31,.5), 0 0 35px rgba(73,214,255,.07);
  transform: translateY(-5px) !important;
}
.bcard.visible { opacity: 1; transform: translateY(0); }

.cicon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.ci-cyan   { background: linear-gradient(135deg, rgba(73,214,255,.18), rgba(79,255,209,.18)); }
.ci-teal   { background: linear-gradient(135deg, rgba(79,255,209,.18), rgba(139,125,255,.18)); }
.ci-purple { background: linear-gradient(135deg, rgba(139,125,255,.18), rgba(73,214,255,.18)); }
.ci-mixed  { background: linear-gradient(135deg, rgba(73,214,255,.18), rgba(139,125,255,.18)); }

.ctitle {
  font-family: var(--display);
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: .65rem; color: var(--white);
  letter-spacing: -.01em;
}
.cdesc { font-size: .875rem; color: var(--w70); line-height: 1.72; }

/* ── Future Products ───────────────────────────────── */
#products { padding-top: 80px; }

.prod-head {
  text-align: center; margin-bottom: 3.5rem;
}
.prod-head .sec-label {
  justify-content: center;
}
.prod-head .sec-label::before { display: none; }

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

.pcard {
  padding: 2.5rem;
  background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--gborder);
  border-radius: 24px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease, border-color .35s, box-shadow .35s;
}
.pcard::after {
  content: ''; position: absolute;
  top: -1px; left: 2.5rem; right: 2.5rem; height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--cyan)), transparent);
  opacity: 0; transition: opacity .35s;
}
.pcard:hover::after { opacity: 1; }
.pcard:hover {
  border-color: rgba(73,214,255,.22);
  box-shadow: 0 28px 80px rgba(7,17,31,.6), 0 0 50px rgba(73,214,255,.055);
  transform: translateY(-7px) !important;
}
.pcard.visible { opacity: 1; transform: translateY(0); }
.pcard:nth-child(1) { --accent: var(--cyan); }
.pcard:nth-child(2) { --accent: var(--teal); }
.pcard:nth-child(3) { --accent: var(--purple); }

.ptag {
  display: inline-flex; padding: .28rem .75rem;
  border-radius: 100px;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.4rem;
  background: rgba(73,214,255,.1);
  border: 1px solid rgba(73,214,255,.25);
  color: var(--accent, var(--cyan));
  background: color-mix(in srgb, var(--accent, var(--cyan)) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent, var(--cyan)) 28%, transparent);
}

.pname {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -.025em; margin-bottom: .7rem;
  color: var(--white);
}

.pdesc {
  font-size: .9rem; color: var(--w70);
  line-height: 1.75; margin-bottom: 1.75rem;
}

.pfeats { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.pfeats li {
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--w70);
}
.pfeats li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent, var(--cyan));
  flex-shrink: 0;
}

/* ── Mission ───────────────────────────────────────── */
#mission {
  text-align: center; padding: 120px 2rem;
  overflow: hidden;
}
#mission::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 420px;
  background: radial-gradient(ellipse, rgba(73,214,255,.055) 0%, transparent 68%);
  pointer-events: none;
}

.mission-quote {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 600; line-height: 1.45;
  letter-spacing: -.025em;
  max-width: 780px; margin: 1.25rem auto 2.5rem;
  color: var(--white);
}
.mission-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mission-sub { color: var(--w40); font-size: .82rem; letter-spacing: .06em; }

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--gborder);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 2rem;
}

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--w70);
  font-size: .875rem; transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  width: 100%; text-align: center;
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--gborder);
  font-size: .78rem; color: var(--w40);
}

/* ── Keyframes ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatA {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes floatB {
  0%,100% { transform: translateY(-6px); }
  50%      { transform: translateY(8px); }
}
@keyframes floatC {
  0%,100% { transform: translateY(4px); }
  50%      { transform: translateY(-10px); }
}
@keyframes ringGlow {
  0%,100% { opacity: .15; }
  50%      { opacity: .28; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  section { padding: 72px 1.25rem; }
  .hero { padding: 100px 1.25rem 56px; }
  .ctas { flex-direction: column; align-items: center; }
  .prod-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
