/* ═══════════════════════════════════════════════════════════
   Synnode — style.css
   Splash: fundo (rede de nós) + lockup Metatron centralizado.
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:      #0A0A0C;   /* fundo principal */
  --accent:  #00E5CC;   /* teal — destaque único */
  --text:    #EDEDF0;   /* texto principal (off-white, nunca #fff) */
  --border:  rgba(255,255,255,0.07);
  --muted:   rgba(237,237,240,0.42);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── CANVAS (fundo orgânico) ───────────────────────────── */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* ─── SPLASH (lockup central) ───────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 3rem);
  pointer-events: none;            /* não bloqueia o fundo */
}

/* Vinheta sutil: acalma o canvas atrás do lockup (canto superior esquerdo) */
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 40% 42% at 13% 11%,
              rgba(10,10,12,0.66) 0%,
              rgba(10,10,12,0.42) 30%,
              rgba(10,10,12,0.18) 55%,
              transparent 80%);
}

/* Grão sutil: dithering para eliminar banding dos gradientes no quase-preto */
.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1rem);
  /* entrada suave no load */
  animation: lockupIn 1s cubic-bezier(.22,.68,0,1.2) both;
}

/* Glow radial atrás do mark (variante "Clean" da marca) */
.lockup-glow {
  position: absolute;
  top: 50%;
  left: clamp(20px, 3vw, 28px);
  transform: translate(-50%, -50%);
  width: clamp(130px, 17vw, 175px);
  height: clamp(130px, 17vw, 175px);
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(0,229,204,0.11) 0%,
              rgba(0,229,204,0.045) 30%,
              rgba(0,229,204,0.015) 50%,
              transparent 72%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  animation: glowBreath 5.5s ease-in-out infinite;
}

/* Mark Metatron — geométrico e fixo (nunca rotacionar/distorcer) */
.mark {
  display: block;
  width: clamp(42px, 6vw, 56px);
  height: auto;
}

/* Wordmark: Syn (off-white) + node (teal) */
.wordmark {
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
}
.wordmark span { color: var(--accent); }

/* ─── ANIMAÇÕES ─────────────────────────────────────────── */
@keyframes lockupIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

/* ─── ACESSIBILIDADE ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lockup      { animation: none; }
  .lockup-glow { animation: none; opacity: 0.7; }
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 820px) {
  .splash { padding: 1.25rem 1.5rem; }
}
