/* =========================================================
   Origami Space — Concept #1 "ORBIT"
   ========================================================= */

:root {
  /* Backgrounds */
  --bg:            #080B12;
  --bg-deep:       #0C111A;
  --surface:       #121A26;
  --surface-hover: #18222F;

  /* Text */
  --text:          #FFFFFF;
  --text-muted:    #9AA7B8;
  --text-dim:      #6B788A;

  /* Brand accent — RED */
  --red:           #BD0202;
  --red-bright:    #E23A3A;

  /* Support blue */
  --blue:          #0B3D91;
  --blue-bright:   #1E73E8;

  /* Lines & overlays */
  --hairline:      rgba(255,255,255,0.08);
  --hairline-2:    rgba(255,255,255,0.14);
  --scrim:         rgba(8,11,18,0.72);
  --red-glow:      rgba(189,2,2,0.35);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: 24px;
  --radius-card: 16px;
  --radius-img: 20px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 78% -5%,  rgba(30,115,232,0.10), transparent 55%),
    radial-gradient(90% 70% at 8% 110%,   rgba(11,61,145,0.14),  transparent 60%),
    radial-gradient(60% 50% at 92% 75%,   rgba(189,2,2,0.06),    transparent 60%),
    #05070C;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px)  { :root { --gutter: 48px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; } }
@media (min-width: 1200px) { :root { --gutter: 80px; } }

section { padding-block: 64px; }
@media (min-width: 1024px) { section { padding-block: 96px; } }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-family: var(--font-display); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 18px;
}
.eyebrow .tick { width: 24px; height: 2px; background: var(--red); border-radius: 2px; flex: none; }
.eyebrow.center { justify-content: center; }

.accent-red { color: var(--red-bright); }

.underline-red {
  position: relative;
  white-space: nowrap;
}
.underline-red::after {
  content: ""; position: absolute; left: 6%; bottom: 4px;
  width: 40%; height: 4px; background: var(--red); border-radius: 2px;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.1;
}
h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-muted); max-width: 62ch; }
p { max-width: 62ch; }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { max-width: 18ch; }
.section-head.center h2 { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: .01em; line-height: 1;
  padding: 15px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; min-height: 44px;
  transition: background .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-red {
  position: relative; color: #fff;
  background: linear-gradient(180deg, #E0271F 0%, var(--red) 55%, #9E0303 100%);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 6px 20px rgba(189,2,2,0.30), inset 0 1px 0 rgba(255,255,255,0.22);
  gap: 9px;
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.28);
  filter: saturate(1.08) brightness(1.04);
}
.btn-red:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(189,2,2,0.34); }
.btn-arrow { transition: transform .2s var(--ease); }
.btn-red:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: var(--hairline-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.btn-ghost:active { transform: translateY(0); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s var(--ease), backdrop-filter .25s var(--ease),
              border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,11,18,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand-logo { width: 132px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a {
  position: relative; font-size: 15px; color: var(--text-muted);
  padding: 6px 0; transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 860px) {
  .primary-nav, .hide-mobile { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
}

/* ---------- Mobile drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 110; background: var(--scrim);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s var(--ease);
}
.drawer-scrim.open { opacity: 1; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(80vw, 320px); height: 100%;
  background: var(--bg-deep); border-left: 1px solid var(--hairline);
  padding: 88px 28px 28px;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer a {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px;
  padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--hairline);
}
.drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; font-size: 32px; line-height: 1;
  background: none; border: 0; color: var(--text); cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; max-height: 920px;
  display: flex; align-items: center;
  padding-top: 128px; padding-bottom: 72px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% 26%, rgba(11,61,145,0.20), transparent 60%),
    radial-gradient(140% 80% at 50% 50%, transparent 58%, rgba(2,4,8,0.55) 100%);
}
/* planet-limb horizon glow along the bottom of the hero */
.hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -62%;
  height: 120%; border-radius: 50%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(30,115,232,0.16), transparent 72%);
  box-shadow: 0 -1px 60px 6px rgba(30,115,232,0.10);
  border-top: 1px solid rgba(120,170,255,0.10);
}
.starfield { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }

/* ===== Global cosmos backdrop (whole page) ===== */
.cosmos {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nebula .neb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; will-change: transform;
}
.neb-blue { top: -14%; right: -8%; width: 52vw; height: 52vw;
  background: radial-gradient(closest-side, rgba(30,115,232,0.30), transparent 70%);
  animation: nebDrift 26s ease-in-out infinite alternate; }
.neb-deep { bottom: -20%; left: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(closest-side, rgba(11,61,145,0.28), transparent 70%);
  animation: nebDrift 34s ease-in-out infinite alternate-reverse; }
.neb-red  { top: 48%; right: 16%; width: 30vw; height: 30vw;
  background: radial-gradient(closest-side, rgba(189,2,2,0.16), transparent 70%);
  animation: nebDrift 30s ease-in-out infinite alternate; }
@keyframes nebDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2.5%, -2%, 0) scale(1.12); }
}
/* lift all real content above the cosmos */
#main, .site-footer { position: relative; z-index: 1; }
/* let the cosmos show through section fills */
.use-cases, .team { background: transparent !important; }
.concept, .technology, .investors { background: rgba(10,14,22,0.55) !important; }
.site-footer { background: rgba(8,11,18,0.78); }
@media (prefers-reduced-motion: reduce) { .nebula .neb { animation: none; } }
.orbit-rings {
  position: absolute; z-index: -1;
  top: 50%; right: -6%; transform: translateY(-50%);
  width: min(90vh, 900px); aspect-ratio: 1; pointer-events: none;
  opacity: .9;
}
.orbit-rings svg { width: 100%; height: 100%; }
.ring { fill: none; stroke: var(--blue-bright); transform-origin: 400px 400px; }
.ring-1 { stroke: var(--blue-bright); opacity: .14; stroke-width: 1; animation: ringspin 90s linear infinite; }
.ring-2 { stroke: var(--blue-bright); opacity: .18; stroke-width: 1; animation: ringspin 60s linear infinite reverse; }
.ring-3 { stroke: var(--blue-bright); opacity: .12; stroke-width: 1; animation: ringspin 40s linear infinite; }
@keyframes ringspin { to { transform: rotate(360deg); } }

.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 56% 1fr; gap: 32px; }
}
.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-copy .hero-lead {
  margin: 0 0 30px; max-width: 52ch;
  color: var(--text-muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
}
.hero-copy .hero-lead { text-wrap: pretty; }
.hero-copy .eyebrow { margin-bottom: 22px; }
@media (max-width: 560px) { .hero-copy h1 br { display: none; } }

.sector-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.sector-pills li {
  border: 1px solid var(--hairline); background: var(--bg-deep);
  color: var(--text-muted); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.hero-visual-label {
  display: block; text-align: center; margin-bottom: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero-glow {
  position: absolute; inset: 5% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(30,115,232,0.30), transparent 75%);
  filter: blur(8px);
}
.satellite {
  width: 100%; max-width: 720px; height: auto; margin-inline: auto;
  animation: float 8s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(0.4deg); }
}
@media (max-width: 1023px) {
  .hero-inner { display: flex; flex-direction: column-reverse; }
  .satellite { max-width: 88%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   CONCEPT
   ========================================================= */
.concept { position: relative; background: var(--bg-deep); overflow: hidden; }
.concept-watermark {
  position: absolute; top: 40px; right: 6%;
  width: 64px; height: auto; opacity: .12; pointer-events: none;
}
.concept-inner { text-align: center; max-width: 900px; }
.concept-h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 auto 56px; max-width: 16ch; }

.approach-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  text-align: left;
}
@media (min-width: 720px) { .approach-grid { grid-template-columns: repeat(3,1fr); } }
.approach .icon { color: var(--text); margin-bottom: 16px; }
.approach h3 { font-size: 20px; margin-bottom: 8px; }
.approach p { color: var(--text-muted); font-size: 16px; margin: 0; }

.icon { display: inline-flex; }
.icon svg { width: 28px; height: 28px; }
.icon-lg svg { width: 40px; height: 40px; }

/* =========================================================
   USE CASES
   ========================================================= */
.use-cases { background: var(--bg); }
.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 720px)  { .card-grid { grid-template-columns: repeat(2,1fr); } }

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 32px;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.card-edge {
  position: absolute; top: 0; left: 0; height: 2px; width: 40%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.card .icon { color: var(--text); margin-bottom: 20px; transition: color .25s var(--ease); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 16px; margin: 0; }
.card:hover {
  background: var(--surface-hover); border-color: var(--hairline-2);
  transform: translateY(-4px);
}
.card:hover .icon { color: var(--red); }
.card:hover .card-edge { transform: scaleX(1); }

/* =========================================================
   TECHNOLOGY
   ========================================================= */
.technology { background: var(--bg-deep); }
.tech-inner {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 1024px) { .tech-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.tech-frame {
  border: 1px solid var(--hairline); border-radius: var(--radius-img);
  overflow: hidden; position: relative;
  box-shadow: inset 0 0 80px rgba(11,61,145,0.25);
}
.tech-frame img { width: 100%; height: auto; }
.tech-copy h2 { margin: 0 0 20px; }
.tech-copy .lead { margin: 0 0 32px; }

.spec-list { display: grid; gap: 0; }
.spec-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--hairline);
  font-size: 16px; color: var(--text);
}
.spec-list li:last-child { border-bottom: 1px solid var(--hairline); }
.spec-list .bullet { width: 6px; height: 6px; background: var(--red); flex: none; }

/* =========================================================
   INVESTORS
   ========================================================= */
.investors { background: var(--bg-deep); }
.investors-inner { text-align: center; }
.investors h2 { margin: 0 auto 40px; }
.techstars-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF; border-radius: var(--radius-card);
  padding: 24px 40px; max-width: 360px; margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.techstars-chip img { width: 240px; height: auto; }
.techstars-year {
  font-weight: 700; font-size: 22px; line-height: 1; color: var(--red);
  padding-left: 16px; margin-left: 16px; border-left: 1px solid rgba(0,0,0,0.12);
  letter-spacing: -0.01em;
}
.investors-caption { color: var(--text-muted); margin: 24px auto 0; font-size: 15px; }

/* =========================================================
   TEAM
   ========================================================= */
.team { background: var(--bg); }
.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 760px; margin-inline: auto;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 28px; text-align: center;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-deep); border: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--text); margin-bottom: 18px;
}
.team-card h3 { font-size: 22px; margin-bottom: 6px; }
.team-card .role {
  color: var(--text-muted); font-size: 14px; text-transform: uppercase;
  letter-spacing: .06em; margin: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  background: url('assets/space-1.jpg') center/cover no-repeat;
}
.contact-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, var(--scrim) 100%);
}
.contact-inner { max-width: 720px; }
.contact h2 { margin: 0 auto 36px; }
.email-capture {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  max-width: 560px; margin-inline: auto;
}
.email-capture input {
  flex: 1 1 280px; min-height: 48px;
  background: rgba(8,11,18,0.55); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 12px 18px;
  color: var(--text); font-family: var(--font-body); font-size: 16px;
}
.email-capture input::placeholder { color: var(--text-dim); }
.email-capture input:focus-visible { border-color: var(--blue-bright); outline-offset: 0; }
.email-capture input.invalid { border-color: var(--red-bright); }
.email-capture .btn { flex: 0 0 auto; }
.form-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; min-height: 20px; }
.form-msg.error { color: var(--red-bright); }
.form-msg.ok { color: var(--text); }
@media (max-width: 560px) {
  .email-capture input, .email-capture .btn { flex: 1 1 100%; width: 100%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--hairline); padding-block: 48px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; padding-bottom: 28px;
}
.footer-inner .brand-logo { width: 116px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--text-muted); font-size: 14px; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--hairline);
}
.footer-mark { width: 20px; height: auto; }
.footer-bottom p { color: var(--text-dim); font-size: 13px; margin: 0; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.card-grid .reveal.in-view:nth-child(1),
.approach-grid .reveal.in-view:nth-child(1) { transition-delay: 0ms; }
.card-grid .reveal:nth-child(2),
.approach-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.card-grid .reveal:nth-child(3),
.approach-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .reveal:nth-child(4) { transition-delay: 240ms; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .satellite { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none !important; }
  * { transition-duration: .001ms !important; }
}
