/* SignaVision AI Datacenter — Custom Styles */

/* ── Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Root tokens ────────────────────────────────── */
:root {
  --void:    #14112a;
  --surf-1:  #1c1838;
  --surf-2:  #252146;
  --border:  #1e1e34;
  --accent:  #4f7fff;
  --accent2: #8b5cf6;
  --txt1:    #e8e8f4;
  --txt2:    #7272a0;
  --txt3:    #48487a;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--void);
  color: var(--txt1);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Grid background ────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(79, 127, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 127, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Noise texture overlay ──────────────────────── */
.noise::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Gradient orbs (hero) ───────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.orb-blue  { background: rgba(79, 127, 255, 0.12); }
.orb-violet{ background: rgba(139, 92, 246, 0.10); }

/* ── Signal line ────────────────────────────────── */
.signal-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  overflow: hidden;
}
.signal-line::after {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: sweep 3s ease-in-out infinite;
}
@keyframes sweep {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ── Fade-up entrance ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--surf-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: rgba(79, 127, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(79, 127, 255, 0.08);
}

/* ── Glow border card ───────────────────────────── */
.card-glow {
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(79,127,255,0.3), rgba(139,92,246,0.2), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-glow:hover::before { opacity: 1; }

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  opacity: 0.85;
  box-shadow: 0 8px 32px rgba(79, 127, 255, 0.3), 0 4px 16px rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--txt1);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
  text-decoration: none;
  position: relative;
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-ghost:hover {
  color: #e8e8f4;
  box-shadow: 0 4px 20px rgba(79, 127, 255, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

/* ── Typography ─────────────────────────────────── */
.heading-display {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.heading-xl {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.heading-lg {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Accent text ────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Pill labels ────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(79, 127, 255, 0.1);
  border: 1px solid rgba(79, 127, 255, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Architecture diagram ───────────────────────── */
.arch-node {
  background: var(--surf-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--txt1);
  text-align: center;
  position: relative;
}
.arch-node.accent-node {
  border-color: rgba(79, 127, 255, 0.4);
  background: rgba(79, 127, 255, 0.08);
  color: var(--accent);
}
.arch-connector {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(79,127,255,0.4), rgba(79,127,255,0.1));
  margin: 0 auto;
}

/* ── Nav ────────────────────────────────────────── */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt2);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--txt1); }
.nav-link.active { color: var(--txt1); }

/* ── Hero canvas ────────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Stat ────────────────────────────────────────── */
.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--txt1), var(--txt2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--txt3); }

/* ── Section divider ────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Tech tag ───────────────────────────────────── */
.tech-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surf-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--txt2);
}

/* ── Timeline ───────────────────────────────────── */
.timeline-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(79,127,255,0.5);
  flex-shrink: 0;
}
