/* ============================================================================
   YASSER.COM — Coming Soon
   Trimmed straight from the main site's design system: just the starfield,
   the orbit rings, and the animated core. No nav, no links, nothing else.
   ============================================================================ */

:root {
  --bg-void: #05070a;
  --accent: #35b6ff;
  --accent-2: #6ee3ff;
  --accent-dim: #1c6fa3;
  --accent-glow: rgba(53, 182, 255, 0.55);
  --accent-glow-soft: rgba(53, 182, 255, 0.18);
  --text-primary: #eef4fa;
  --text-muted: #61748a;
  --font-display: 'Space Grotesk', 'Segoe UI', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
  min-height: 100vh;
  width: 100vw;
  /* Casual copy deterrence (see the disclosure comment in index.html) —
     this only stops an accidental text drag/select, not a real download. */
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
}
svg { width: 1em; height: 1em; display: block; }
canvas { -webkit-user-drag: none; pointer-events: none; }

/* Ambient background: fine grid + vignette + starfield canvas ------------ */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 182, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 182, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 10%, rgba(53,182,255,0.08), transparent 60%),
              radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0,0,0,0.6), transparent 40%);
}
#particle-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7; }

/* Layout ------------------------------------------------------------------ */
.stage {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2rem;
}

/* Orb stage — rings, glow, sphere ------------------------------------------ */
.orb-stage { position: relative; width: min(640px, 90vw); aspect-ratio: 1; margin: 2.5rem auto 0; }

/* Shadow behind the sphere (not beneath it) — a dark disc sitting between
   the warm glow and the sphere itself, same center, slightly larger than
   .orb-core so it peeks out around the rim. Reads as the sphere blocking
   light that would otherwise be there, like an eclipse silhouette. */
.orb-back-shadow {
  position: absolute; inset: 21%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(2,4,10,0.7), rgba(2,4,10,0.35) 70%, transparent 88%);
  filter: blur(9px);
}

/* Any element that combines border-radius with filter:blur() or a
   mix-blend-mode has the same WebKit bug as the canvas above — Safari can
   composite the blur/blend using the element's full rectangular box and
   ignore the rounded clip, leaving a faint square edge visible. The
   -webkit-mask-image is what actually fixes it (a real alpha mask, not a
   clip Safari can skip); border-radius/overflow stays as the non-WebKit
   fallback. Applied to every circular glow layer below for the same reason. */
.orb-atmosphere {
  position: absolute; inset: -35%; border-radius: 50%; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle, rgba(53,182,255,0.16), rgba(53,182,255,0.05) 45%, transparent 70%);
  filter: blur(4px);
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
  animation: orb-breathe 8s var(--ease-in-out) infinite;
}

.orb-ring { position: absolute; inset: 0; border: 1px solid rgba(53,182,255,0.14); border-radius: 50%; }
.orb-ring--2 { inset: 6%; border-color: rgba(53,182,255,0.1); animation: spin-slow 60s linear infinite; }
.orb-ring--3 { inset: 12%; border-color: rgba(53,182,255,0.08); animation: spin-slow-reverse 90s linear infinite; }
.orb-ring--4 { inset: -6%; border: 1px dashed rgba(110,227,255,0.16); animation: spin-slow 130s linear infinite; }
.orb-ring--5 {
  inset: 18%; border-color: transparent; border-radius: 50%;
  background: repeating-conic-gradient(rgba(110,227,255,0.35) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
          mask: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
  animation: spin-slow-reverse 40s linear infinite;
  opacity: 0.8;
}

.orb-ping {
  position: absolute; inset: 26%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(110,227,255,0.5);
  animation: orb-ping 4.5s var(--ease-out) infinite;
}
.orb-ping--2 { animation-delay: 2.25s; }

.orb-orbiter { position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; animation: spin-slow 22s linear infinite; }
.orb-orbiter--2 { inset: 12%; animation: spin-slow-reverse 17s linear infinite; }
.orb-orbiter span {
  position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px 2px var(--accent-glow);
}

/* Hot (near-white-yellow) core cooling out to warm orange, ~30% brighter
   overall than before — so the shadow layer behind the sphere actually
   has something bright to contrast against instead of fading into it. */
.orb-warmglow {
  position: absolute; inset: 8%; border-radius: 50%; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 62% 60%, rgba(255,236,190,0.62), rgba(255,175,70,0.56) 26%, rgba(255,140,40,0.24) 48%, transparent 70%);
  filter: blur(6px);
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
  animation: orb-breathe 7s var(--ease-in-out) infinite reverse;
}

.orb-core {
  position: absolute; inset: 26%; border-radius: 50%; overflow: hidden;
  /* Fill dropped to ~10% of its original opacity per request — the dots
     (rendered separately by sun-core.js on top) are untouched, only this
     background layer is now mostly see-through to the starfield behind it. */
  background:
    radial-gradient(circle at 32% 28%, rgba(210,244,255,0.098), transparent 20%),
    radial-gradient(circle at 40% 34%, rgba(150,224,255,0.092), rgba(53,182,255,0.062) 36%, rgba(12,38,62,0.094) 68%),
    radial-gradient(circle at 68% 74%, rgba(15,70,110,0.055), transparent 52%);
  box-shadow: 0 0 90px var(--accent-glow), 0 0 200px rgba(53,182,255,0.25), inset 0 0 70px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: orb-breathe 5s var(--ease-in-out) infinite;
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}
/* mix-blend-mode has the same WebKit clipping bug as filter:blur() — even
   though these are children of the overflow:hidden .orb-core above, Safari
   can still let the blend composite past that clip, so each also gets its
   own explicit mask rather than relying on the parent alone. */
.orb-core::before {
  content: ''; position: absolute; inset: -18%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(110,227,255,0.45) 8%, transparent 24%);
  animation: spin-slow 14s linear infinite; opacity: 0.7; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}
.orb-core::after {
  content: ''; position: absolute; inset: -18%; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(200,245,255,0.3) 6%, transparent 20%);
  animation: spin-slow-reverse 21s linear infinite; opacity: 0.5; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}
/* border-radius + overflow:hidden on the WebGL canvas's own rule, not just
   inherited from .orb-core — mobile Safari sometimes fails to clip a
   GPU-accelerated <canvas> to an ancestor's rounded corner, leaving its
   square bounding box visible as a faint tile over part of the sphere. */
.sun-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; overflow: hidden; -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%); }

/* Directional shadow terminator, opposite the highlight (which sits
   top-left around 32%/28%) — darkens the 'unlit' side of the sphere so
   it reads as a real lit 3D object rather than a flat glowing disc. */
.orb-core-shadow {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 74% 78%, rgba(0,0,0,0.75), transparent 58%);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}

/* New inner light effect: starting at the border, orange, fading through
   dark as it moves inward, gone entirely before it reaches the middle —
   the center stays clear so the dots read cleanly through it. Split into
   two layers on purpose: multiply can only darken, screen can only
   brighten, and this needs both from a single radius. */
.orb-core-innerdark {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, transparent 0%, transparent 40%, rgba(0,0,0,0.6) 62%, rgba(0,0,0,0.3) 80%, transparent 94%);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}
.orb-core-innerglow {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, transparent 0%, transparent 68%, rgba(255,140,60,0.4) 87%, rgba(255,170,90,0.7) 97%, rgba(255,190,120,0.45) 100%);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}

/* Glass-edge highlight: a thin bright ring right at the sphere's rim,
   like light catching the edge of a glass ball — complements the dots'
   own rim brightening in the shader (sun-core.js). */
/* Directional white->black border, swept around the rim rather than a flat
   ring — white at the highlight side (upper-left, matching the light
   direction elsewhere), black at the opposite/shadow side. A conic
   gradient, not radial, since the color needs to change by angle around
   the circle, not by distance from center. */
.orb-core-rim {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: conic-gradient(from 315deg, rgba(255,255,255,0.75), rgba(15,15,18,0.8) 50%, rgba(255,255,255,0.75) 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 89%, #000 95%, #000 98.5%, transparent 100%);
          mask-image: radial-gradient(circle, transparent 89%, #000 95%, #000 98.5%, transparent 100%);
}

.orb-core h1 { position: relative; font-size: clamp(1.7rem, 4.5vw, 2.6rem); letter-spacing: 0.1em; color: #fff; z-index: 1; text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 0 18px rgba(0,0,0,0.75), 0 0 34px rgba(0,0,0,0.5); margin: 0; }
.orb-core .core-word { display: block; font-size: 0.85em; color: rgba(230,247,255,0.92); }
.orb-core .core-sub { position: relative; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 0.8rem; z-index: 1; text-shadow: 0 0 4px rgba(0,0,0,0.9), 0 0 14px rgba(0,0,0,0.7); }
.orb-core .core-status {
  position: relative; z-index: 1; margin-top: 0.6rem; height: 1.2em;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2); text-shadow: 0 0 6px var(--accent-glow), 0 0 4px rgba(0,0,0,0.9);
  animation: status-pulse 2.4s var(--ease-in-out) infinite;
}
.orb-core .core-status::after {
  content: ''; display: inline-block; width: 1px; height: 0.9em; margin-left: 2px;
  background: var(--accent-2); vertical-align: -0.1em;
  animation: cursor-blink 0.9s step-end infinite;
}

/* Orbit section names — visual only, not links. Same continuous-orbit
   technique as the main site: the group rotates as one rigid ring so the
   six labels keep their even spacing, and each node's own content
   counter-rotates at the same speed to stay upright while it travels. */
.orb-node-ring { position: absolute; inset: 0; animation: spin-slow 160s linear infinite; }
.orb-node {
  position: absolute; width: 92px; transform: translate(-50%, -50%);
  text-align: center; cursor: default;
}
.orb-node__inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: spin-slow-reverse 160s linear infinite;
}
.orb-node__dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(53,182,255,0.35); background: rgba(10,16,24,0.7);
  color: var(--accent-2); backdrop-filter: blur(6px);
}
.orb-node__dot svg { width: 18px; height: 18px; }
.orb-node__label { font-size: 0.72rem; font-weight: 600; }
.orb-node__sub { font-size: 0.62rem; color: var(--text-muted); }

.orb-node[data-pos="top"] { top: -2%; left: 50%; }
.orb-node[data-pos="right"] { top: 22%; left: 96%; }
.orb-node[data-pos="bottom-right"] { top: 78%; left: 96%; }
.orb-node[data-pos="bottom"] { top: 100%; left: 50%; }
.orb-node[data-pos="bottom-left"] { top: 78%; left: 4%; }
.orb-node[data-pos="left"] { top: 22%; left: 4%; }

@media (max-width: 760px) {
  .orb-node { width: 68px; }
  .orb-node__dot { width: 38px; height: 38px; }
  .orb-node__sub { display: none; }
}

.tagline {
  /* The orbiting node that lands at the bottom position extends well past
     .orb-stage's own box (icon + two lines of label text), and any of the
     6 nodes can be the one sitting there at a given moment — so this needs
     enough clearance for the tallest case, not just orb-stage's edge. */
  margin-top: 7rem; color: var(--text-muted); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  max-width: 420px;
}
.copyright {
  margin-top: 1rem; color: rgba(97, 116, 138, 0.6); font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.06em;
}

/* Keyframes ----------------------------------------------------------------- */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes orb-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes orb-ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes status-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
