/* =============================
   iD – id.com.vc | style.css
   ============================= */

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

:root {
  --bg: #060606;
  --white: #f5f5f0;
  --red-dot: #CC1A1A;
  --font: 'Outfit', sans-serif;
  --card-size: clamp(180px, 24vw, 280px);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--white);
  min-height: 100dvh;
  overflow: hidden;
}

/* ── Particle Canvas ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* ── Splash ── */
.splash {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem;
}

.stage {
  position: relative;
  width: min(90vw, 700px);
  min-height: min(70vh, 520px);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 40px 120px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* ── Logo Card ── */
.logo-wrapper {
  position: relative;
}

.logo-card {
  width: var(--card-size);
  height: var(--card-size);
  background: transparent;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 16px 46px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  user-select: none;
  pointer-events: none;
}

/* ── Tagline ── */
.tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  max-width: 34ch;
  animation: fadeInUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  line-height: 1.6;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.dot-red {
  color: var(--red-dot);
  font-weight: 500;
}

/* ── Animations ── */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .logo-card:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.07),
      0 40px 100px rgba(0, 0, 0, 0.75),
      0 20px 50px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-ring,
  .stage,
  .tagline {
    animation: none;
  }

  .logo-card,
  .cursor,
  .cursor-ring {
    transition: none;
  }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .stage {
    min-height: auto;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .tagline {
    font-size: 0.85rem;
  }
}
