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

/* === CUSTOM PROPERTIES === */
:root {
  --glow: oklch(82% 0.12 280 / 0.4);
  --text-primary: #fff;
  --text-secondary: oklch(90% 0 0 / 0.6);
  --mouse-x: 50%;
  --mouse-y: 50%;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: oklch(10% 0.04 280);
  cursor: none;
}

/* Custom cursor rendered in WebGL shader — hide default */

/* === WEBGL CANVAS === */
#depthCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Color overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 30% 20%, oklch(45% 0.2 280 / 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, oklch(55% 0.2 330 / 0.14) 0%, transparent 60%);
  pointer-events: none;
}

/* === LAYOUT === */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  position: relative;
  z-index: 3;
}

/* === GLASS CARD ===
   The glass effect (refraction, bevel, highlights) is rendered
   by the WebGL shader underneath. The card itself is transparent
   so the shader shows through. Only text sits on top. */
.card {
  background: transparent;
  border: none;
  border-radius: 2.5rem;
  padding: 4rem 5rem;
  text-align: center;
  position: relative;
  animation: cardIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both 0.2s;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* === TYPOGRAPHY === */
.title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
  animation: textIn 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.5s;
}

.title span {
  background: linear-gradient(135deg, #fff 0%, oklch(87% 0.1 280) 40%, oklch(85% 0.12 340) 70%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s ease-in-out infinite;
}

.divider {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    oklch(85% 0.08 300 / 0.4),
    oklch(100% 0 0 / 0.5),
    oklch(85% 0.08 240 / 0.4),
    transparent
  );
  margin: 0 auto 1.5rem;
  animation: fadeIn 1s ease both 0.8s;
  box-shadow: 0 0 8px oklch(80% 0.1 280 / 0.2);
}

.subtitle {
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  animation: textIn 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.9s;
}

/* === PARTICLES === */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.particle {
  position: absolute;
  background: oklch(95% 0.05 260 / 0.2);
  border-radius: 50%;
  animation: float linear infinite;
  contain: strict;
}

/* === ANIMATIONS === */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes textIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes float {
  from { transform: translateY(100vh) rotate(0deg); }
  to { transform: translateY(-100vh) rotate(720deg); }
}

@media (max-width: 640px) {
  .card { padding: 3rem 2.5rem; border-radius: 1.5rem; }
}

@media (hover: none) {
  html, body { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
