/* =========================================================
   AI Bureau — Coming Soon
   Brand: Primary #4B6CCC · Ink #1C1C1C · Mist #DCE8FB
   ========================================================= */

:root {
  --primary: #4B6CCC;
  --primary-bright: #6B8AEC;
  --primary-deep: #34509E;
  --ink: #1C1C1C;
  --mist: #DCE8FB;

  --bg-0: #0D0F14;
  --bg-1: #12141C;
  --bg-2: #181B25;

  --text: #EAF0FF;
  --text-dim: #9AA6C4;
  --text-faint: #59617A;

  --line: rgba(220, 232, 251, 0.08);

  --glow: rgba(75, 108, 204, 0.55);
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* =========================================================
   Background layers
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(75, 108, 204, 0.18), transparent 60%),
    radial-gradient(900px 700px at 85% 110%, rgba(75, 108, 204, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
}

/* Drifting aurora blobs */
.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  display: block;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora .a1 { background: radial-gradient(circle, rgba(75,108,204,0.55), transparent 65%); top: -8vmax; left: 8vmax; animation: drift1 26s var(--ease) infinite; }
.aurora .a2 { background: radial-gradient(circle, rgba(107,138,236,0.40), transparent 65%); bottom: -10vmax; right: 6vmax; animation: drift2 32s var(--ease) infinite; }
.aurora .a3 { background: radial-gradient(circle, rgba(52,80,158,0.45), transparent 65%); top: 30%; left: 40%; animation: drift3 38s var(--ease) infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vmax, 6vmax) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-7vmax, -5vmax) scale(0.9); } }
@keyframes drift3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-42%,-58%) scale(1.2); } }

/* Radar — concentric rings + expanding sweep pulses */
.radar {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* evenly spaced static rings radiating from the hero center */
  background: repeating-radial-gradient(circle at 50% 44%,
    transparent 0 90px,
    rgba(107, 138, 236, 0.09) 90px 91px,
    transparent 91px 92px);
  mask-image: radial-gradient(circle at 50% 44%, #000 4%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 4%, transparent 72%);
}
.radar span {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 44vmax;
  height: 44vmax;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(107, 138, 236, 0.4);
  box-shadow: 0 0 40px rgba(75, 108, 204, 0.18), inset 0 0 40px rgba(75, 108, 204, 0.10);
  opacity: 0;
  will-change: transform, opacity;
  animation: radarPulse 7.5s ease-out infinite;
}
.radar span:nth-child(2) { animation-delay: 2.5s; }
.radar span:nth-child(3) { animation-delay: 5s; }
@keyframes radarPulse {
  0%   { transform: scale(0.04); opacity: 0; }
  12%  { opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}

/* Particle / neural canvas */
#neural {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Vignette + grain for depth */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* =========================================================
   Layout
   ========================================================= */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr); /* prevent min-content grid blowout */
  padding: clamp(20px, 4vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.shell > * { min-width: 0; }
.hero > * { max-width: 100%; }
.headline { overflow-wrap: break-word; }

/* ---------- Header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: clamp(60px, 8vw, 92px);
  width: auto;
  filter: drop-shadow(0 0 20px rgba(75,108,204,0.45));
  transition: filter .4s var(--ease), transform .4s var(--ease);
}
.brand:hover img { filter: drop-shadow(0 0 28px rgba(107,138,236,0.7)); transform: translateY(-1px); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 0 rgba(107,138,236,0.7);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(107,138,236,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(107,138,236,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,138,236,0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(16px, 2.4vw, 26px);
  padding: clamp(20px, 4vh, 48px) 0;
}

/* Rotating conic halo behind the hero.
   position: fixed (not absolute) so its rotating square bounding box can never
   extend the document height — otherwise the vertical scrollbar flickers. */
.halo {
  position: fixed;
  top: 44%;
  left: 50%;
  width: min(820px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(75,108,204,0) 0deg,
    rgba(75,108,204,0.22) 70deg,
    rgba(107,138,236,0.45) 140deg,
    rgba(220,232,251,0.18) 210deg,
    rgba(75,108,204,0.30) 290deg,
    rgba(75,108,204,0) 360deg);
  filter: blur(55px);
  opacity: 0.9;
  animation: spin 24s linear infinite;
  mask-image: radial-gradient(circle, #000 28%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 72%);
}
.halo::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(107,138,236,0.20);
  box-shadow: 0 0 60px rgba(75,108,204,0.25) inset;
  animation: spin 36s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-logo {
  width: min(560px, 82vw);
  filter: drop-shadow(0 18px 60px rgba(75,108,204,0.30));
  animation: floaty 7s ease-in-out infinite;
}
.hero-logo img { width: 100%; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 1.4vw, 13.5px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary-bright);
  font-weight: 500;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(24px, 6vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}
.eyebrow::after { background: linear-gradient(90deg, var(--primary), transparent); }

.headline {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 7.4vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.headline .line { display: block; }
.headline .word {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #E7EDFB 60%, #B9C7EC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* staggered blur-up reveal (wrap-safe) */
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--rise, 0ms);
}
.headline .word + .word { margin-left: 0.28em; }
.is-ready .headline .word { opacity: 1; transform: none; filter: none; }

/* The hero accent word ("AI") */
.headline .word.gradient {
  background: linear-gradient(110deg, var(--primary-bright) 0%, var(--mist) 35%, #ffffff 50%, var(--primary-bright) 75%, var(--primary) 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 4px 26px rgba(75,108,204,0.55));
}
@keyframes shimmer { to { background-position: 240% center; } }

.headline .line:nth-child(1) .word { --rise: 220ms; }
.headline .line:nth-child(2) .word { --rise: 360ms; }
.headline .line:nth-child(3) .word { --rise: 500ms; }

.subhead {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.9vw, 1.12rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Coverage chips */
.chips {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}
.chips li {
  position: relative;
  padding: 9px 16px;
  font-size: clamp(12px, 1.6vw, 13.5px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mist);
  background: rgba(75, 108, 204, 0.06);
  border: 1px solid rgba(107,138,236,0.20);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  animation: chipFloat 6s ease-in-out infinite;
}
.chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  translate: 0 -1px;
  background: var(--primary-bright);
  box-shadow: 0 0 10px var(--glow);
}
.chips li:nth-child(2) { animation-delay: .8s; }
.chips li:nth-child(3) { animation-delay: 1.6s; }
.chips li:nth-child(4) { animation-delay: 2.4s; }
.chips li:nth-child(5) { animation-delay: 3.2s; }
.chips li:hover {
  transform: translateY(-3px);
  background: rgba(75,108,204,0.16);
  border-color: rgba(107,138,236,0.55);
  box-shadow: 0 10px 30px rgba(75,108,204,0.25);
}
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* Terminal-style status line */
.terminal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 14px;
  background: rgba(13, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-dim);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
}
/* Animated gradient border */
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg),
    rgba(107,138,236,0.05), rgba(107,138,236,0.7), rgba(220,232,251,0.3), rgba(75,108,204,0.6), rgba(107,138,236,0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderspin 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderspin { to { --ang: 360deg; } }
.prompt { color: var(--primary-bright); font-weight: 600; }
#typed { color: var(--text); }
.caret {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--primary-bright);
  margin-left: 2px;
  translate: 0 2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Indeterminate progress shimmer */
.progress {
  width: min(360px, 80vw);
  height: 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--primary-bright), transparent);
  box-shadow: 0 0 18px var(--glow);
  animation: scan 2.4s var(--ease) infinite;
}
@keyframes scan {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ---------- Footer ---------- */
.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13px;
}
.site-foot a { color: var(--text-dim); text-decoration: none; transition: color .25s var(--ease); }
.site-foot a:hover { color: var(--primary-bright); }
.foot-meta { display: inline-flex; align-items: center; gap: 8px; }
.foot-spark {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px var(--glow);
}

/* =========================================================
   Entrance reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.is-ready [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 560px) {
  .status-pill .label-long { display: none; }
  .eyebrow { letter-spacing: 0.22em; }
  .terminal { width: 100%; justify-content: center; }
}

/* =========================================================
   Accessibility — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-logo, .aurora span, .radar span { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
