/* ============================================================
   Orion Data Services — orion-data.net
   "Deep-field observatory": near-black indigo sky, accents from
   Orion's own stars (Betelgeuse amber / Rigel ice-blue).
   Type: Bricolage Grotesque · Instrument Sans · Spline Sans Mono
   ============================================================ */

:root {
  --sky-0: #05080f;
  --sky-1: #070b14;
  --sky-2: #0b1120;
  --sky-3: #101830;
  --star: #eef3fc;
  --text: #dfe6f3;
  --muted: #8fa0bd;
  --betelgeuse: #f0a44a;
  --betelgeuse-hi: #ffc175;
  --rigel: #7db4ff;
  --rigel-hi: #a8ccff;
  --line: rgba(223, 230, 243, 0.10);
  --line-strong: rgba(223, 230, 243, 0.28);
  --card: rgba(16, 24, 48, 0.45);
  --card-hover: rgba(20, 30, 60, 0.65);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(35, 52, 105, 0.35), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(240, 164, 74, 0.05), transparent 55%),
    var(--sky-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--betelgeuse); color: var(--sky-0); }

/* ---------- ambient starfield canvas ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
}

/* ---------- shared bits ---------- */
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--betelgeuse);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--betelgeuse);
  box-shadow: 0 0 12px 2px rgba(240, 164, 74, 0.55);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 4px 1px rgba(240,164,74,0.25); opacity: .65; } }

h1, h2, h3 { font-family: var(--font-display); color: var(--star); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.18rem; font-weight: 600; }

.hl-amber { color: var(--betelgeuse-hi); }
.hl-blue  { color: var(--rigel-hi); }

.lede, .section-lede { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.lede strong, .section-lede strong { color: var(--text); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn .arrow { font-family: var(--font-mono); transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost:hover .arrow { transform: translateY(3px); }
.btn-solid {
  background: linear-gradient(120deg, var(--betelgeuse-hi), var(--betelgeuse));
  color: #1a0f02;
  box-shadow: 0 4px 26px rgba(240, 164, 74, 0.28);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(240, 164, 74, 0.42); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(238, 243, 252, 0.03);
}
.btn-ghost:hover { background: rgba(238, 243, 252, 0.08); transform: translateY(-2px); }
.btn-small { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-big { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* reveal-on-scroll */
.reveal, .reveal-slow {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-slow { transition-duration: 1.6s; }
.reveal.in, .reveal-slow.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-slow { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--star);
  letter-spacing: 0.01em;
}
.brand-name em { font-style: normal; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--star); }
.nav-burger {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--star); transition: transform .3s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1.4rem;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a { color: var(--text); text-decoration: none; padding: 0.7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; color: var(--betelgeuse-hi); }
.nav-mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: 92vh;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-copy .lede { margin-top: 1.6rem; }
.hero-foot { color: var(--muted); margin-top: 2.6rem; opacity: 0.85; }

.hero-sky { position: relative; height: 560px; }
#orion { width: 100%; height: 100%; display: block; }
.sky-caption {
  position: absolute;
  bottom: 0.4rem; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--muted);
  opacity: 0.7;
}

/* ============================================================
   PRINCIPLE STRIP
   ============================================================ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 17, 32, 0.5); }
.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--star);
  line-height: 1;
}
.stat-num em { font-style: normal; font-size: 1.1rem; color: var(--betelgeuse); margin-left: 0.15rem; }
.stat-label { color: var(--muted); font-size: 0.9rem; line-height: 1.5; max-width: 24ch; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: var(--max); margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.section-head { margin-bottom: 3.4rem; max-width: 720px; }
.section-head .section-lede { margin-top: 1.2rem; }

/* --- steps --- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 1.6rem; right: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--betelgeuse), transparent);
  opacity: 0.55;
}
.step-num { color: var(--betelgeuse); font-size: 0.85rem; letter-spacing: 0.25em; }
.step p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.step-art { margin-top: 0.6rem; border-radius: 12px; border: 1px solid var(--line); min-height: 118px; }

.code-art {
  background: var(--sky-0);
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.8rem; color: var(--rigel-hi);
}
.code-art i { color: var(--betelgeuse); font-style: normal; }

.consent-art { display: flex; align-items: center; justify-content: center; padding: 0.9rem; background: var(--sky-0); }
.consent-card {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  max-width: 250px;
  background: var(--sky-2);
}
.consent-title { font-weight: 600; font-size: 0.82rem; color: var(--star); }
.consent-body { font-size: 0.72rem; color: var(--muted); margin: 0.35rem 0 0.6rem; line-height: 1.45; }
.consent-actions { display: flex; gap: 0.5rem; font-size: 0.7rem; font-weight: 600; }
.c-yes { background: var(--betelgeuse); color: #1a0f02; border-radius: 999px; padding: 0.3rem 0.8rem; }
.c-no { border: 1px solid var(--line-strong); color: var(--muted); border-radius: 999px; padding: 0.3rem 0.8rem; }

.earn-art { background: var(--sky-0); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; justify-content: center; }
.bar-row { display: flex; align-items: center; gap: 0.7rem; }
.bar-label { color: var(--muted); font-size: 0.68rem; width: 2.2rem; }
.bar {
  height: 8px; border-radius: 4px;
  width: var(--w);
  background: linear-gradient(90deg, rgba(125, 180, 255, 0.35), var(--rigel));
}
.bar.amber { background: linear-gradient(90deg, rgba(240, 164, 74, 0.4), var(--betelgeuse)); }

/* --- cards grid --- */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  background: var(--card);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-4px); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(125, 180, 255, 0.08);
  border: 1px solid rgba(125, 180, 255, 0.2);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; fill: var(--rigel-hi); }
.card:nth-child(even) .card-icon { background: rgba(240, 164, 74, 0.08); border-color: rgba(240, 164, 74, 0.25); }
.card:nth-child(even) .card-icon svg { fill: var(--betelgeuse-hi); }
.card p { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; }

/* --- split / network --- */
.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}
.split-copy > p { color: var(--muted); margin-top: 1.2rem; max-width: 54ch; }
.split-copy .btn { margin-top: 1.8rem; }
.check-list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; }
.check-list li { padding-left: 1.9rem; position: relative; color: var(--muted); font-size: 0.97rem; }
.check-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--betelgeuse);
}
.check-list strong { color: var(--text); }

.orbit-art { position: relative; width: 100%; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.orbit { position: absolute; border: 1px dashed var(--line-strong); border-radius: 50%; opacity: 0.7; }
.o1 { inset: 30%; animation: spin 40s linear infinite; }
.o2 { inset: 15%; animation: spin 70s linear infinite reverse; }
.o3 { inset: 0; animation: spin 110s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  position: absolute; inset: 44%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--betelgeuse-hi), var(--betelgeuse) 60%, #a05c14);
  box-shadow: 0 0 60px 12px rgba(240, 164, 74, 0.35);
}
.orbit-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--rigel-hi); box-shadow: 0 0 12px 3px rgba(125, 180, 255, 0.5); }
.o1, .o2, .o3 { transform-origin: center; }
.n1 { top: 30%; left: 30%; }
.n2 { top: 12%; left: 62%; }
.n3 { top: 58%; left: 88%; }
.n4 { top: 84%; left: 40%; }
.n5 { top: 48%; left: 2%; }
.orbit-node { animation: nodePulse 4s ease-in-out infinite; }
.n2 { animation-delay: 0.8s; } .n3 { animation-delay: 1.6s; }
.n4 { animation-delay: 2.4s; } .n5 { animation-delay: 3.2s; }
@keyframes nodePulse { 50% { transform: scale(1.6); opacity: 0.7; } }

/* --- ethics --- */
.section-ethics { position: relative; }
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.ethic {
  padding: 2.1rem 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 32, 0.35);
  transition: background 0.3s;
}
.ethic:hover { background: rgba(16, 24, 48, 0.65); }
.ethic:nth-child(3n) { border-right: none; }
.ethic:nth-child(n+4) { border-bottom: none; }
.ethic-num {
  color: var(--rigel);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 0.9rem;
}
.ethic h3 { font-size: 1.05rem; }
.ethic p { color: var(--muted); font-size: 0.92rem; margin-top: 0.55rem; }

/* --- FAQ --- */
.section-faq .faq-list { max-width: 780px; }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--star);
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--betelgeuse-hi); }
.faq-x { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  background: var(--betelgeuse);
  transition: transform 0.3s var(--ease);
}
.faq-x::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-x::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq[open] .faq-x::after { transform: rotate(90deg) scaleY(0); }
.faq p { color: var(--muted); padding: 0 2.5rem 1.4rem 0.2rem; max-width: 68ch; }

/* --- contact --- */
.section-contact { padding-bottom: 7rem; }
.contact-inner {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(240, 164, 74, 0.12), transparent 70%),
    radial-gradient(500px 350px at 90% 120%, rgba(125, 180, 255, 0.08), transparent 70%),
    rgba(11, 17, 32, 0.6);
}
.contact-inner .kicker { justify-content: center; }
.contact-inner .section-lede { margin: 1.4rem auto 0; }
.contact-inner .hero-ctas { justify-content: center; margin-top: 2.4rem; }
.contact-inner .hero-foot { margin-top: 1.6rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: rgba(5, 8, 15, 0.75); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}
.footer-tag { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 30ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.28rem 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--star); }
.footer-h { color: var(--star); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.7rem; font-size: 0.7rem; }
.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  opacity: 0.75;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8rem; }
  .hero-sky { height: 420px; order: -1; margin-top: 1rem; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .steps, .grid.cards, .ethics-grid { grid-template-columns: 1fr 1fr; }
  .ethic:nth-child(3n) { border-right: 1px solid var(--line); }
  .ethic:nth-child(2n) { border-right: none; }
  .ethic:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .ethic:nth-child(n+5) { border-bottom: none; }
  .section-split { grid-template-columns: 1fr; gap: 3rem; }
  .split-art { order: -1; }
  .orbit-art { max-width: 320px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links, .nav .btn { display: none; }
  .nav-burger { display: flex; }
  .steps, .grid.cards, .ethics-grid { grid-template-columns: 1fr; }
  .ethic { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .ethic:last-child { border-bottom: none !important; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .stat-num { font-size: 2rem; }
  .contact-inner { padding: 3rem 1.4rem; }
  .footer-base { flex-direction: column; }
  .hero-sky { height: 340px; }
  .sky-caption { white-space: normal; text-align: center; width: 90%; }
}
