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

:root {
  --bg-primary: #060d0b;
  --bg-secondary: #0b1613;
  --accent: #6EE7B7;
  --accent-light: #a7f3d0;
  --accent-dim: #34d399;
  --accent-dark: #059669;
  --accent-glow: rgba(110, 231, 183, 0.15);
  --accent-glow-strong: rgba(110, 231, 183, 0.35);
  --text-primary: #e4ede9;
  --text-secondary: #7e9a8e;
  --text-muted: #4a6358;
  --surface: rgba(110, 231, 183, 0.03);
  --border: rgba(110, 231, 183, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@font-face {
  font-family: 'Eksel Display Local';
  src: local('Eksell Display TRIAL Medium'),
    local('Eksell Display TRIAL'),
    url('fonts/ekselldisplaytrial-medium.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


 /*CUSTOM CURSOR SYSTEM*/

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.6;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  mix-blend-mode: screen;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  opacity: 0.4;
  border-color: var(--accent-light);
  background: rgba(110, 231, 183, 0.06);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  box-shadow: 0 0 8px var(--accent-glow-strong), 0 0 20px var(--accent-glow);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Cursor trail canvas */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Click ripple */
.click-ripple {
  position: fixed;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: rippleExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }

  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

/*CANVAS & BACKGROUND*/
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Gradient orbs */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: orbFadeIn 2.5s ease forwards;
}

.gradient-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.1) 0%, transparent 70%);
  top: -12%;
  right: -8%;
  animation-delay: 0.3s;
}

.gradient-orb--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
  bottom: -18%;
  left: -8%;
  animation-delay: 0.6s;
}

.gradient-orb--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.9s;
}

@keyframes orbFadeIn {
  to {
    opacity: 1;
  }
}

/*GRID OVERLAY (subtle blueprint feel)*/

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/*MAIN CONTENT*/

.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 2rem;
  text-align: center;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: contentReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.status-badge:hover {
  border-color: rgba(110, 231, 183, 0.2);
  background: rgba(110, 231, 183, 0.05);
}

.status-badge__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-glow);
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.4);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 8px rgba(110, 231, 183, 0);
  }
}

/* Heading with character-level interaction */
.heading {
  font-family: 'Eksel Display Local', 'Space Grotesk', serif;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.0035em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: contentReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.heading .line {
  display: block;
}

.heading .char {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.heading .char:hover {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px) scale(1.05);
}

.heading .accent-line {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim), var(--accent-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

.heading .accent-line .char:hover {
  -webkit-text-fill-color: var(--accent-light);
  filter: brightness(1.3);
  text-shadow: 0 0 40px var(--accent-glow-strong);
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Subheading */
.subheading {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(25px);
  animation: contentReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes contentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress section */
.progress-section {
  width: 100%;
  max-width: 380px;
  opacity: 0;
  transform: translateY(25px);
  animation: contentReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  border-radius: 100px;
  transition: width 2.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow-strong), 0 0 30px var(--accent-glow);
}

/* Shimmer on progress track */
.progress-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Divider */
.divider {
  width: 100%;
  max-width: 380px;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
  opacity: 0;
  animation: contentReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: contentReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-item__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 2ch;
  text-align: center;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.countdown-item:hover .countdown-item__value {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.countdown-item__label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/*CORNER DECORATIONS*/

.corner {
  position: fixed;
  z-index: 2;
  opacity: 0;
  animation: cornerReveal 1s ease 1.8s forwards;
}

.corner svg {
  width: 50px;
  height: 50px;
  stroke: rgba(110, 231, 183, 0.12);
  stroke-width: 1;
  fill: none;
}

.corner--tl {
  top: 20px;
  left: 20px;
}

.corner--tr {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
}

.corner--bl {
  bottom: 20px;
  left: 20px;
  transform: scaleY(-1);
}

.corner--br {
  bottom: 20px;
  right: 20px;
  transform: scale(-1);
}

@keyframes cornerReveal {
  to {
    opacity: 1;
  }
}

/*BOTTOM BAR*/

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: contentReveal 1s ease 2s forwards;
}

.bottom-bar a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bottom-bar a:hover {
  color: var(--accent);
}

/* Coordinates display */
.coordinates {
  position: fixed;
  top: 24px;
  right: 90px;
  z-index: 3;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: contentReveal 1s ease 2.2s forwards;
}

/* Magnetic hover */
.magnetic {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/*RESPONSIVE*/

@media (max-width: 640px) {
  body {
    cursor: auto;
  }

  .cursor-ring,
  .cursor-dot,
  .cursor-glow,
  #trail-canvas,
  .coordinates {
    display: none;
  }

  .corner {
    display: none;
  }

  .countdown {
    gap: 1rem;
  }

  .bottom-bar {
    padding: 10px 16px;
  }
}

::selection {
  background: rgba(110, 231, 183, 0.25);
  color: var(--text-primary);
}