:root {
  --bg-main: #050505;
  --bg-soft: rgba(20, 20, 20, 0.72);
  --border-soft: rgba(57, 255, 20, 0.18);
  --text-main: #f5fff5;
  --text-secondary: #8bff9d;
  --accent: #39ff14;
  --accent-strong: #7cff7c;
  --accent-dark: #031b03;
  --shadow-glow: 0 0 22px rgba(57, 255, 20, 0.35);
  --overlay-dark: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: -2;
}

#matrix-canvas {
  opacity: 0.18;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
}

.gradient-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-dark);
  pointer-events: none;
  z-index: -1;
}



.glass {
  background: var(--bg-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.03);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.hero {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.hero-header {
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.95;
  font-weight: 900;
  text-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(40px);
}

.hero-subtitle {
  max-width: 850px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  color: var(--text-secondary);
  font-weight: 300;
  opacity: 0;
}

.countdown-wrap {
  margin-bottom: 3rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(40px);
}

.countdown-card {
  padding: 1.6rem 1rem;
}

.count-value {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}

.count-label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
}

.primary-btn,
.disabled-app {
  min-width: 220px;
  min-height: 78px;
  padding: 1.2rem 1.8rem;
  border-radius: 1.25rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: #031003;
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.28);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  background: var(--accent-strong);
  outline: none;
}

.disabled-app {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-soft);
  opacity: 0.72;
}

.disabled-app__text {
  font-weight: 700;
}

.disabled-badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  background: #103810;
  color: var(--accent-strong);
  border: 1px solid rgba(57, 255, 20, 0.22);

  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.noscript-note {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  z-index: 999;
}

.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;
}

.profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: auto;
  box-shadow:
    0 0 14px rgba(57, 255, 20, 0.35),
    0 0 32px rgba(57, 255, 20, 0.2),
    0 0 60px rgba(57, 255, 20, 0.12);
  transition: all 0.4s ease;
  animation: float 4s ease-in-out infinite;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 22px rgba(57, 255, 20, 0.45),
    0 0 48px rgba(57, 255, 20, 0.24);
}

#profile-container {
  position: relative;
  display: inline-block;
}

#profile-container::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(57, 255, 20, 0.35);
  animation: pulse 2s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 991px) {
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 5rem 1rem 2rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.9rem;
  }

  .primary-btn,
  .disabled-app {
    width: 100%;
    min-width: 100%;
  }
}