/* ==========================================================================
   SDS AI Orchestration Platform — single-viewport neural page
   Dark hi-tech theme (deep navy derived from #003c66, cyan glows)
   ========================================================================== */

:root {
  --cyan:        #00aeef;
  --cyan-2:      #25aae2;
  --light-blue:  #85b6dd;
  --navy:        #003c66;
  --bg:          #050e1a;
  --text:        #e8f1f8;
  --text-faint:  #6b87a0;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

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

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(0, 60, 102, 0.5) 0%, transparent 68%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(0, 174, 239, 0.07) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(133, 182, 221, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 182, 221, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 25%, transparent 100%);
}
/* Scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.1) 3px 4px
  );
  opacity: 0.5;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Heading (top center) ---------- */
.site-head {
  padding: clamp(20px, 4.5vh, 48px) 24px 0;
  text-align: center;
}
.site-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 1rem + 1.6vw, 2rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em; /* balance letterspacing on the right */
  background: linear-gradient(120deg, #fff 15%, var(--light-blue) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(0, 174, 239, 0.25);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .site-title { white-space: normal; letter-spacing: 0.22em; text-indent: 0.22em; }
}

/* ---------- Center stage ---------- */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.brain-wrap {
  position: relative;
  width: min(76vmin, 100%);
  aspect-ratio: 1;
}
#brain-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.brain-hud {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(0.55rem, 1.2vmin, 0.68rem);
  letter-spacing: 0.24em;
  color: rgba(133, 182, 221, 0.7);
  text-transform: uppercase;
  pointer-events: none;
}
.brain-hud--tl { top: 4%; left: 0; }
.brain-hud--br { bottom: 4%; right: 0; }

/* ---------- SDS logo (bottom center) ---------- */
.site-foot {
  display: flex;
  justify-content: center;
  padding: 0 24px clamp(18px, 4vh, 40px);
}
.site-logo {
  width: clamp(140px, 18vmin, 180px);
  height: auto;
  opacity: 0.72;
  filter: drop-shadow(0 0 14px rgba(0, 174, 239, 0.25));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-title { text-shadow: none; }
  .site-logo { filter: none; }
}
