/* =========================================================
   Stellar Group — styles.css
   ========================================================= */

:root {
  --bg: #05060f;
  --ink: #eef1ff;
  --ink-dim: #a6acce;
  --ink-faint: #6b7099;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7aa2ff;
  --accent-2: #b388ff;
  --accent-3: #5fe9d0;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --grad: linear-gradient(115deg, #7aa2ff 0%, #b388ff 55%, #f0a6ff 100%);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Space Grotesk", "Inter", sans-serif; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(179, 136, 255, 0.35); color: #fff; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Background ---------- */
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.cosmos-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(122, 162, 255, 0.16), transparent 60%),
    radial-gradient(800px 700px at 12% 8%, rgba(179, 136, 255, 0.14), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(95, 233, 208, 0.10), transparent 60%);
}

/* ---------- Layout helpers ---------- */
section { position: relative; padding: clamp(80px, 12vw, 170px) clamp(20px, 6vw, 64px); }
.section-head { max-width: 820px; margin: 0 auto clamp(48px, 7vw, 80px); }
.section-title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; }
.section-lead { margin-top: 22px; color: var(--ink-dim); font-size: clamp(1.02rem, 1.7vw, 1.18rem); max-width: 640px; }

/* ---------- Buttons (magnetic) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.2s;
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #0a0a16; box-shadow: 0 14px 40px -12px rgba(122, 162, 255, 0.6); }
.btn-primary:hover { box-shadow: 0 22px 60px -12px rgba(179, 136, 255, 0.8); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: var(--glass); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 19px 38px; font-size: 1.08rem; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at 50% 45%, #0a0e22, #04050d 70%);
  display: grid; place-items: center; gap: 26px; grid-auto-flow: row;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-mark { display: flex; align-items: center; gap: 14px; }
.intro-mark span {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  letter-spacing: 0.28em; font-size: clamp(0.9rem, 2.6vw, 1.15rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-mark svg { filter: drop-shadow(0 0 16px rgba(122,162,255,0.6)); animation: introspin 6s linear infinite; }
@keyframes introspin { to { transform: rotate(360deg); } }
.intro-bar { width: min(240px, 60vw); height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: var(--grad); }

/* ---------- Reticle cursor ---------- */
.reticle {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(122, 162, 255, 0.7); border-radius: 50%;
  mix-blend-mode: screen;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.3s;
}
.reticle::before, .reticle::after { content: ""; position: absolute; background: rgba(122, 162, 255, 0.8); }
.reticle::before { left: 50%; top: -6px; width: 1px; height: 6px; transform: translateX(-50%); }
.reticle::after { left: 50%; bottom: -6px; width: 1px; height: 6px; transform: translateX(-50%); }
.reticle-dot {
  position: fixed; top: 0; left: 0; z-index: 96; pointer-events: none;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3);
}
.reticle.lock { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--accent-3); }
@media (hover: none) { .reticle, .reticle-dot { display: none; } }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  font-family: "JetBrains Mono", monospace; color: rgba(180, 200, 255, 0.85);
  opacity: 0; transition: opacity 0.8s var(--ease) 0.2s;
}
.hud.live { opacity: 1; }
.hud-corner { position: absolute; width: 22px; height: 22px; opacity: 0.5; }
.hud-corner.tl { top: 16px; left: 16px; border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.hud-corner.tr { top: 16px; right: 16px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }
.hud-corner.bl { bottom: 16px; left: 16px; border-bottom: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.hud-corner.br { bottom: 16px; right: 16px; border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }
.hud-panel { position: absolute; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hud-tl { top: 80px; left: 26px; }
.hud-tr { top: 80px; right: 26px; }
.hud-bl { bottom: 28px; left: 26px; }
.hud-br { bottom: 28px; right: 26px; }
.hud-row { display: flex; align-items: center; gap: 8px; color: #d6e2ff; }
.hud-row.right { justify-content: flex-end; }
.hud-sub { color: rgba(150, 170, 220, 0.55); margin-top: 6px; font-size: 0.66rem; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hud-gauge, .hud-progress { height: 5px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 8px; }
.hud-gauge { width: 130px; margin-left: auto; }
.hud-progress { width: 150px; margin-left: auto; }
.hud-gauge i, .hud-progress i { display: block; height: 100%; background: var(--grad); }
.hud-progress i { width: 0; }
#radar { width: 84px; height: 84px; opacity: 0.85; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 64px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5,6,15,0.72); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 10px rgba(122,162,255,0.5)); }
.brand-name { font-weight: 700; letter-spacing: 0.14em; font-size: 1.02rem; }
.brand-name-accent { color: var(--accent); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav-links a { font-size: 0.92rem; color: var(--ink-dim); transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink) !important; }
.nav-cta:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 140px; overflow: hidden; }
.hero-inner { position: relative; z-index: 3; max-width: 900px; will-change: transform, opacity; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; opacity: 0.85; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 42%, transparent 0%, rgba(5,6,15,0.55) 75%, rgba(5,6,15,0.92) 100%),
    linear-gradient(180deg, rgba(5,6,15,0.5) 0%, transparent 25%, transparent 58%, var(--bg) 100%);
}
.cockpit { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: fill; pointer-events: none; opacity: 0.92; will-change: transform, opacity; }
.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--ink-dim);
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(8px); margin-bottom: 30px;
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(2.7rem, 8vw, 5.7rem); line-height: 1.0; letter-spacing: -0.035em; font-weight: 700; }
.hero-sub { margin: 30px auto 0; max-width: 600px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-dim); }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; z-index: 3; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: rgba(255,255,255,0.012); }
.marquee-track { display: flex; gap: 38px; white-space: nowrap; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.05rem, 2.3vw, 1.6rem); font-weight: 500; color: var(--ink-dim); }
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; max-width: var(--maxw); margin: 0 auto; overflow: visible; }
.manifesto-text { font-size: clamp(1.7rem, 4.6vw, 3.2rem); line-height: 1.24; letter-spacing: -0.02em; font-weight: 500; max-width: 1000px; margin: 0 auto; }

/* ---------- Cards ---------- */
.metier { max-width: var(--maxw); margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card { padding: 34px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); backdrop-filter: blur(10px); position: relative; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(122, 162, 255, 0.12), transparent 70%); opacity: 0; transition: opacity 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--glass-strong); }
.card:hover::before { opacity: 1; }
.card-n { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.24rem; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--ink-dim); font-size: 0.96rem; }

/* ---------- Stats ---------- */
.stats { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat-num { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { display: block; margin-top: 14px; color: var(--ink-dim); font-size: 0.92rem; max-width: 240px; margin-inline: auto; }

/* ---------- Difference ---------- */
.difference { max-width: var(--maxw); margin: 0 auto; }
.difference-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feature-list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.feature-list li { padding-left: 26px; position: relative; color: var(--ink-dim); font-size: 1.02rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(122, 162, 255, 0.7); }
.feature-list strong { color: var(--ink); font-weight: 600; }
.difference-visual { display: grid; place-items: center; position: relative; }
.orbit { position: relative; width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit-core { width: 70px; height: 70px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 60px rgba(179, 136, 255, 0.7), inset 0 0 20px rgba(255,255,255,0.4); animation: corepulse 4s ease-in-out infinite; }
@keyframes corepulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.orbit-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.ring1 { inset: 18%; animation: spin 14s linear infinite; }
.ring2 { inset: 6%; animation: spin 22s linear infinite reverse; }
.ring3 { inset: -8%; animation: spin 30s linear infinite; }
.planet { position: absolute; top: -5px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 16px var(--accent-3); }
.ring2 .planet { background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }
.ring3 .planet { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.astronaut { position: absolute; z-index: 2; width: min(240px, 64%); right: -8%; bottom: -10%; pointer-events: none; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); animation: floaty 7s ease-in-out infinite; will-change: transform; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }

/* ---------- Floating asteroids ---------- */
.float-asteroid { position: absolute; z-index: 0; pointer-events: none; opacity: 0.45; will-change: transform; filter: brightness(0.9); }
.float-asteroid.a1 { top: 2%; right: -3%; width: min(360px, 42vw); }
.float-asteroid.a2 { bottom: 0; left: -6%; width: min(440px, 48vw); opacity: 0.3; }

/* ---------- Process ---------- */
.process { max-width: var(--maxw); margin: 0 auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step { padding: 30px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); position: relative; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.step:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.step-num { font-family: "JetBrains Mono", monospace; font-size: 0.95rem; font-weight: 500; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 8px; font-size: 1.18rem; font-weight: 600; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---------- Crypto ---------- */
.crypto { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; }
.crypto-visual img { width: min(220px, 60vw); filter: drop-shadow(0 20px 40px rgba(122,162,255,0.25)); animation: floaty 6s ease-in-out infinite; }
.crypto-text { max-width: 460px; }
.crypto-text h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.crypto-text p { color: var(--ink-dim); }
.coin-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.coin { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink-dim); display: inline-flex; align-items: center; gap: 7px; }
.coin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); }
@media (max-width: 700px) { .crypto-text { text-align: center; } .coin-row { justify-content: center; } }

/* ---------- Contact ---------- */
.contact { display: grid; place-items: center; }
.contact-card { max-width: 760px; width: 100%; text-align: center; padding: clamp(40px, 7vw, 80px) clamp(28px, 6vw, 70px); border: 1px solid var(--line-strong); border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); backdrop-filter: blur(16px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 140%; height: 100%; background: radial-gradient(closest-side, rgba(179,136,255,0.18), transparent 70%); pointer-events: none; }
.contact-title { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 16px; font-weight: 600; }
.contact-lead { color: var(--ink-dim); max-width: 540px; margin: 0 auto 32px; font-size: 1.05rem; }
.contact-actions { display: flex; justify-content: center; position: relative; z-index: 1; }
.contact-fine { margin-top: 22px; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px clamp(20px, 6vw, 64px) 40px; max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--ink-faint); margin-top: 12px; font-size: 0.92rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--ink-dim); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .difference-grid { grid-template-columns: 1fr; }
  .difference-visual { order: -1; }
  .nav-links a:not(.nav-cta) { display: none; }
  .cockpit { display: none; }
  .hud-bl { display: none; }
  .hud-panel { font-size: 0.6rem; }
  .astronaut { position: static; width: min(220px, 70%); margin: 20px auto 0; display: block; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-top { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reticle, .reticle-dot { display: none; }
  .intro { display: none; }
}
