/* AstraBlox Flagship Design System v4.0 — Obsidian Titanium, Electric Cyan (#00d2ff) & Molten Gold (#ff9e1b) */
:root {
  --bg: #03060f;
  --bg-2: #070d1c;
  --surface: rgba(11, 17, 32, 0.72);
  --surface-elev: rgba(15, 23, 42, 0.88);
  --surface-strong: rgba(10, 15, 29, 0.96);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 210, 255, 0.42);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #8b9bb4;
  --cyan: #00d2ff;
  --cyan-soft: #7ceeff;
  --gold: #ff9e1b;
  --gold-soft: #fcd34d;
  --green: #34d399;
  --red: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 32px 96px rgba(0, 0, 0, 0.72), 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Customizable User Profile Themes */
[data-theme="obsidian_cyan"] { --accent-1: #00d2ff; --accent-2: #ff9e1b; --card-tint: rgba(0, 210, 255, 0.08); }
[data-theme="solar_gold"] { --accent-1: #ff9e1b; --accent-2: #fb7185; --card-tint: rgba(255, 158, 27, 0.10); }
[data-theme="midnight_violet"] { --accent-1: #a78bfa; --accent-2: #38bdf8; --card-tint: rgba(167, 139, 250, 0.10); }
[data-theme="emerald_matrix"] { --accent-1: #34d399; --accent-2: #00d2ff; --card-tint: rgba(52, 211, 153, 0.09); }
[data-theme="crimson_forge"] { --accent-1: #f43f5e; --accent-2: #fbbf24; --card-tint: rgba(244, 63, 94, 0.10); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.58;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Subtle architectural grid + ambient celestial aura */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 50% at 50% -10%, rgba(0, 210, 255, 0.14), transparent 62%),
    radial-gradient(ellipse 55% 42% at 85% 15%, rgba(255, 158, 27, 0.09), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 35%, transparent 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Animated Cosmic Backdrop Canvas */
#cosmosCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.56;
}
.page-shell { position: relative; z-index: 1; }

/* Top Pre-Launch Announcement Ribbon */
.top-banner {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.08), rgba(255, 158, 27, 0.10), rgba(0, 210, 255, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 16px; text-align: center; font-size: 12.5px; color: #dbe7f5;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  backdrop-filter: blur(12px);
}
.top-banner .pill-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; background: rgba(0, 210, 255, 0.14); color: var(--cyan-soft);
  border: 1px solid rgba(0, 210, 255, 0.28);
  font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: pulseGlow 2.1s infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.82); } }

/* Floating Glass Navigation Bar */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(3, 6, 15, 0.74);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 70px;
}
.brand-link { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; font-size: 17.5px; letter-spacing: -0.025em; flex-shrink: 0; }
.brand-link img {
  width: 38px; height: 38px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.35), 0 0 22px rgba(0, 210, 255, 0.32);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1);
}
.brand-link:hover img { transform: scale(1.07) rotate(6deg); }
.brand-word {
  background: linear-gradient(95deg, #ffffff 12%, var(--cyan-soft) 56%, var(--gold-soft) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: #b8c7dc;
  padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.028); border: 1px solid rgba(255, 255, 255, 0.065);
}
.nav-links a {
  padding: 6px 14px; border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.065); }
.nav-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

/* Precision Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 650;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.72); color: var(--text);
  box-shadow: var(--specular), 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), border-color 0.2s, box-shadow 0.22s, background 0.2s;
  white-space: nowrap; font-family: inherit;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.5);
  background: rgba(22, 34, 60, 0.92);
  box-shadow: var(--specular), 0 10px 26px rgba(0, 0, 0, 0.42), 0 0 20px rgba(0, 210, 255, 0.14);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #00b8f0 0%, #00d2ff 42%, #ff9e1b 100%);
  color: #030712; border: 1px solid rgba(255, 255, 255, 0.26); font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 34px rgba(0, 210, 255, 0.30), 0 4px 18px rgba(255, 158, 27, 0.22);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255,255,255,0.48) 50%, transparent 78%);
  transform: translateX(-125%); transition: transform 0.7s cubic-bezier(.22,1,.36,1);
}
.btn-primary:hover::after { transform: translateX(125%); }
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #10c8ff 0%, #2ee0ff 44%, #ffae33 100%);
  color: #020617;
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 44px rgba(0, 210, 255, 0.48), 0 6px 26px rgba(255, 158, 27, 0.36);
}

.btn-discord {
  background: linear-gradient(180deg, #626ff5, #4e5ae3);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 10px 26px rgba(88, 101, 242, 0.28);
}
.btn-discord:hover {
  background: linear-gradient(180deg, #6f7bf7, #5763eb);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 34px rgba(88, 101, 242, 0.42);
}
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.btn-danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.35); background: rgba(127, 29, 29, 0.28); }
.btn-danger:hover { border-color: #f87171; background: rgba(153, 27, 27, 0.48); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 14px; letter-spacing: -0.01em; }

/* Badges & Pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.035em;
  border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(15, 23, 42, 0.72); color: #e2e8f0;
  backdrop-filter: blur(8px);
}
.badge.cyan { color: var(--cyan-soft); border-color: rgba(0, 210, 255, 0.34); background: rgba(0, 210, 255, 0.11); }
.badge.gold { color: var(--gold-soft); border-color: rgba(255, 158, 27, 0.38); background: rgba(255, 158, 27, 0.12); }
.badge.green { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.38); background: rgba(52, 211, 153, 0.12); }
.badge.red { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.14); }

/* Titanium Glass Cards */
.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 24, 44, 0.78), rgba(9, 14, 28, 0.84));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  padding: 24px;
  box-shadow: var(--specular), 0 18px 44px rgba(0, 0, 0, 0.38);
  transition: border-color 0.24s ease, transform 0.24s cubic-bezier(.22,1,.36,1), box-shadow 0.24s ease;
}
.glass-card.interactive:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--specular), 0 28px 64px rgba(0, 0, 0, 0.56), 0 0 36px rgba(0, 210, 255, 0.14);
}

.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(6, 10, 22, 0.9);
  color: var(--text); font-size: 13.5px; font-family: inherit; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan); background: rgba(8, 14, 30, 0.98);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.16);
}
.field-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* Animated Orbiting Brand Emblem */
.orbit-emblem {
  position: relative; width: 92px; height: 92px; margin: 0 auto 22px;
  display: grid; place-items: center;
}
.orbit-emblem img {
  width: 78px; height: 78px; border-radius: 50%; position: relative; z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.35), 0 0 38px rgba(0, 210, 255, 0.44), 0 0 68px rgba(255, 158, 27, 0.22);
  animation: floatBob 4.6s ease-in-out infinite;
}
.orbit-emblem::before, .orbit-emblem::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid transparent; pointer-events: none;
}
.orbit-emblem::before {
  border-top-color: var(--cyan); border-right-color: rgba(0, 210, 255, 0.3);
  animation: spinRing 7.5s linear infinite;
}
.orbit-emblem::after {
  inset: -14px; border-bottom-color: var(--gold); border-left-color: rgba(255, 158, 27, 0.3);
  animation: spinRing 12s linear infinite reverse;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Section Headers & Dividers */
.section { padding: 88px 0; position: relative; }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(820px, 84%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.22), rgba(255, 158, 27, 0.16), transparent);
}
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan-soft);
  margin-bottom: 12px;
}
.section-kicker::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.section-title { font-size: clamp(28px, 4.1vw, 44px); font-weight: 850; letter-spacing: -0.035em; margin: 0 0 14px; line-height: 1.1; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 700px; margin: 0; line-height: 1.62; }

/* Toasts */
.abx-toast-host {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.abx-toast {
  padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(12, 18, 36, 0.96); border: 1px solid rgba(0, 210, 255, 0.35);
  color: #f8fafc; box-shadow: 0 18px 46px rgba(0,0,0,0.6); backdrop-filter: blur(14px);
  animation: toastIn 0.22s ease;
}
.abx-toast.success { border-color: rgba(52, 211, 153, 0.55); }
.abx-toast.error { border-color: rgba(248, 113, 113, 0.6); color: #fecaca; }
.abx-toast.out { opacity: 0; transform: translateY(8px); transition: all 0.24s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; }
.data-table tr:hover td { background: rgba(0, 210, 255, 0.04); }

/* Full-Site 60 FPS Motion System */
#abxScrollProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 9999;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), #38bdf8 50%, var(--gold));
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.75);
  pointer-events: none;
}
#abxAmbientCanvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none; opacity: 0.92;
}
.page-shell { position: relative; z-index: 1; }

/* Animated Luminous Gradient Shimmer on Hero & Primary CTA */
.btn-primary {
  position: relative; overflow: hidden;
  background-size: 200% 200%;
  animation: abxGradFlow 6s ease infinite;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.34) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: abxBtnSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes abxGradFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes abxBtnSweep {
  0%, 72% { transform: translateX(-125%); }
  100% { transform: translateX(135%); }
}

/* Magnetic Spotlight Reflection + Premium Animated Icon Tiles */
.glass-card.interactive, .feat-card, .gal-card, .engine-pill, .tier-card {
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.28s ease;
  will-change: transform;
}
.glass-card.interactive::after, .feat-card::after, .engine-pill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 210, 255, 0.14), rgba(255, 158, 27, 0.04) 45%, transparent 72%);
  opacity: 0; transition: opacity 0.28s ease;
}
.glass-card.interactive:hover::after, .feat-card:hover::after, .engine-pill:hover::after { opacity: 1; }
.feat-icon {
  position: relative; overflow: hidden;
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.34s ease, border-color 0.34s ease;
}
.feat-icon::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.18) 55deg, transparent 115deg);
  animation: spinRing 9s linear infinite; opacity: 0.45; pointer-events: none;
}
.feat-icon svg { position: relative; z-index: 1; transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), filter 0.34s ease; }
.feat-card:hover .feat-icon {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(0, 210, 255, 0.6) !important;
  box-shadow: 0 12px 30px -6px rgba(0, 210, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
.feat-card:hover .feat-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.55));
}

/* Engine Pill Mini Premium Icon Badges */
.engine-pill {
  display: flex !important; flex-direction: row !important;
  align-items: center !important; gap: 12px !important; text-align: left !important;
}
.engine-pill > div:not(.engine-pill-ico) {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.engine-pill strong { display: block; line-height: 1.25; }
.engine-pill span { display: block; line-height: 1.4; }
.engine-pill-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(0,210,255,0.14), rgba(10,16,32,0.92));
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s;
}
.engine-pill:hover .engine-pill-ico { transform: scale(1.08) rotate(-3deg); border-color: rgba(0,210,255,0.48); }

/* Staggered Blur-to-Sharp Cascade Reveals */
.stagger-child {
  opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(4px);
  transition: opacity 0.62s cubic-bezier(0.16,1,0.3,1) var(--stagger-delay, 0ms),
              transform 0.68s cubic-bezier(0.16,1,0.3,1) var(--stagger-delay, 0ms),
              filter 0.58s ease var(--stagger-delay, 0ms);
}
.stagger-child.in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Hero Subtle Floating Motion & Glow Pulse */
.hero-stage-shell { animation: abxStageGlow 7s ease-in-out infinite; }
@keyframes abxStageGlow {
  0%, 100% { box-shadow: 0 32px 90px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 210, 255, 0.18); }
  50% { box-shadow: 0 38px 110px -20px rgba(0, 210, 255, 0.22), 0 0 0 1px rgba(255, 158, 27, 0.28); }
}

/* Mobile Responsive Guarantees (390px zero overflow) */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { height: 62px; }
  .brand-link { font-size: 15.5px; }
  .brand-link img { width: 32px; height: 32px; }
  .nav-actions .btn { padding: 7px 12px; font-size: 12px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .nav-actions .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
