/* ============================================================
   COOLCASE — design tokens + global styles
   ============================================================ */
:root {
  /* surfaces */
  --bg-0: #0d0a22;
  --bg-1: #14102e;
  --bg-2: #1a1336;
  --bg-3: #221a4a;

  /* neon accents (palette 1) */
  --neon-magenta: #ff3df0;
  --neon-purple: #8b5cff;
  --neon-cyan: #2de2ff;

  /* text */
  --ink: #f3f0ff;
  --ink-70: rgba(243, 240, 255, 0.72);
  --ink-50: rgba(243, 240, 255, 0.52);
  --ink-30: rgba(243, 240, 255, 0.30);

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-strong: rgba(255, 255, 255, 0.24);
  --glass-blur: 22px;

  /* gradients */
  --grad-neon: linear-gradient(110deg, var(--neon-magenta), var(--neon-purple) 52%, var(--neon-cyan));
  --grad-neon-soft: linear-gradient(120deg, rgba(255,61,240,0.9), rgba(139,92,255,0.9) 55%, rgba(45,226,255,0.9));

  /* type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  /* radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-glass: 0 18px 50px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.10);
  --shadow-float: 0 30px 80px -28px rgba(80, 30, 180, 0.55);

  /* logo framing — ajusta el encuadre del logo circular aquí */
  --logo-zoom: 100%;  /* acercar/alejar */
  --logo-x: 50%;      /* posición horizontal */
  --logo-y: 50%;      /* posición vertical */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ambient neon field */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(139,92,255,0.30), transparent 70%),
    radial-gradient(55% 45% at 88% 22%, rgba(45,226,255,0.20), transparent 68%),
    radial-gradient(60% 55% at 75% 92%, rgba(255,61,240,0.20), transparent 70%),
    radial-gradient(50% 50% at 12% 88%, rgba(61,255,168,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-0) 60%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

#root { position: relative; z-index: 1; }

/* typography helpers */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.02; }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.grad-text {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* glass primitives */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}
.glass-strong {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(170%);
  backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(170%);
  border: 1px solid var(--glass-border-strong);
}

/* buttons */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-neon {
  background: var(--grad-neon);
  color: #fff;
  padding: 13px 24px;
  font-size: 15px;
  box-shadow: 0 10px 30px -8px rgba(255,61,240,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-neon:hover { filter: brightness(1.08); box-shadow: 0 14px 40px -8px rgba(255,61,240,0.65), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost {
  background: var(--glass-bg);
  color: var(--ink);
  padding: 13px 22px;
  font-size: 15px;
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--glass-bg-strong); border-color: var(--glass-border-strong); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); background-clip: padding-box; }

/* layout */
.page { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section-pad { padding-top: 132px; padding-bottom: 120px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes riseIn {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rise { animation: riseIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.muted { color: var(--ink-70); }
.center { align-items: center; justify-content: center; }
