/* ============================================================
   YambaCode — Shared Sci-Fi Landing System
   Extracted from sites/v3-supernova and tokenized by --accent.
   Every subdomain page loads this file and overrides --accent /
   --accent-rgb / --accent-2 in an inline <style>:root{…}</style>.
   Layout is handled by Tailwind (CDN) in the pages; this file owns
   the theme, background layers, and animated primitives.
   ============================================================ */

:root {
  --bg: #030308;
  --accent: #c084fc;            /* primary — overridden per subdomain */
  --accent-rgb: 192, 132, 252;  /* same colour, rgb triplet for rgba() */
  --accent-2: #f472b6;          /* gradient secondary — override per page */
  --accent-3: #fbbf24;          /* gradient tertiary */
  --accent-4: #22d3ee;          /* incidental cyan */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  color: #fff;
}

/* ── Canvas backdrops ── */
#star-canvas,
#sig-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#sig-canvas { z-index: 1; }        /* signature animation sits above stars */

/* ── Nebula blobs ── */
.nebula-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.nebula-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -10%; left: -10%;
  animation: floatA 25s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 500px; height: 500px;
  background: var(--accent-2);
  top: 30%; right: -10%;
  animation: floatB 20s ease-in-out infinite alternate;
}
.nebula-3 {
  width: 400px; height: 400px;
  background: var(--accent-4);
  bottom: -5%; left: 25%;
  animation: floatA 30s ease-in-out infinite alternate-reverse;
}
@keyframes floatA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes floatB {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(0.92); }
}

/* ── Scanline ── */
.scanline {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.25), transparent);
  animation: scan 7s linear infinite;
  z-index: 5;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 0; }
  100% { top: 100vh; }
}

/* ── Grid bg ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glass card ── */
.neo-glass {
  background: rgba(8, 4, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.neo-glass:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

/* ── Text effects ── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-text { color: var(--accent); }

/* ── HUD label (monospace kicker) ── */
.hud-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── CTA buttons ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  white-space: nowrap;
}
.cta-accent {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}
.cta-accent:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4);
}
.cta-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: #d1d5db;
  background: transparent;
}
.cta-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Accent left-border (feature rows) ── */
.border-l-accent { border-left: 2px solid rgba(var(--accent-rgb), 0.55); }

/* ── Tech tag ── */
.tech-tag {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

/* ── Per-letter sci-fi glimmer (used on brand wordmark) ── */
.lc {
  display: inline;
  transition: text-shadow 0.1s ease;
}
.lc-flash {
  text-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 18px rgba(var(--accent-rgb), 0.95),
    0 0 40px rgba(var(--accent-rgb), 0.6),
    0 0 80px rgba(var(--accent-rgb), 0.35) !important;
}
[data-glimmer] .lc { text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.2); }

/* ── Typewriter cursor ── */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  animation: blink 0.75s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Nav ── */
.site-nav {
  background: rgba(3, 3, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

/* ── Section divider ── */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
  margin: 0 auto;
  max-width: 1152px;
}

/* ── FAQ (AEO) ── */
.faq-item {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 12px;
  background: rgba(8, 4, 18, 0.6);
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: rgba(var(--accent-rgb), 0.3); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 1.25rem 1.1rem;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── App card (apps hub / cross-links) ── */
.app-card {
  display: block;
  padding: 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(8, 4, 18, 0.7);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.app-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 44px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-4px);
}

/* ── Content-layer stacking (keep text above canvases) ── */
.layer { position: relative; z-index: 2; }
