/* ── Variables ── */
:root {
  --bg-deep: #07090f;
  --bg-card: rgba(14, 18, 30, 0.72);
  --accent: #e63b1e;
  --accent-glow: rgba(230, 59, 30, 0.45);
  --accent-soft: #ff5c3d;
  --text: #eef1f8;
  --text-muted: #8b95ad;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ── Background layers ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 77, 26, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255, 120, 50, 0.08), transparent),
    linear-gradient(180deg, #0a0e18 0%, var(--bg-deep) 100%);
}

.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
}

/* ── Road lines animation ── */
.road-lines {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.15;
  pointer-events: none;
}

.road-lines span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  border-radius: 2px;
  animation: roadDash 2.5s linear infinite;
}

.road-lines span:nth-child(1) { animation-delay: 0s; }
.road-lines span:nth-child(2) { animation-delay: 0.5s; }
.road-lines span:nth-child(3) { animation-delay: 1s; }
.road-lines span:nth-child(4) { animation-delay: 1.5s; }
.road-lines span:nth-child(5) { animation-delay: 2s; }

@keyframes roadDash {
  0%   { top: -60px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Floating particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur, 6s) var(--delay, 0s) ease-in infinite;
  box-shadow: 0 0 6px var(--accent-glow);
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Decorative gears ── */
.gear {
  position: fixed;
  z-index: 0;
  color: rgba(255, 77, 26, 0.06);
  pointer-events: none;
}

.gear svg {
  width: 100%;
  height: 100%;
}

.gear-1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -80px;
  animation: spinCW 30s linear infinite;
}

.gear-2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: -50px;
  animation: spinCCW 22s linear infinite;
}

@keyframes spinCW  { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: min(320px, 88vw);
  margin: 0 auto;
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Hero ── */
.hero {
  flex: 1;
  text-align: center;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}

.title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa66 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.subtitle {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 1rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 26, 0.3);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  transition: transform 0.3s ease;
}

.countdown-value.tick {
  animation: tickPop 0.35s ease;
}

@keyframes tickPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--accent); }
  100% { transform: scale(1); }
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.6;
  animation: blinkSep 1s step-end infinite;
  padding-bottom: 1.2rem;
}

@keyframes blinkSep {
  50% { opacity: 0; }
}

/* ── Progress bar ── */
.progress-block {
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.progress-pct {
  color: var(--accent);
  font-family: var(--font-display);
}

.progress-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 100px;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.progress-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 20px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse, var(--accent-glow), transparent);
  animation: glowSlide 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowSlide {
  0%   { left: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: calc(100% - 40px); opacity: 0; }
}

/* ── Notify form ── */
.notify-form {
  max-width: 480px;
  margin: 0 auto 3rem;
}

.input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrap:focus-within {
  border-color: rgba(255, 77, 26, 0.4);
  box-shadow: 0 0 24px rgba(255, 77, 26, 0.12);
}

.input-wrap input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.input-wrap input::placeholder {
  color: var(--text-muted);
}

.btn-notify {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, var(--accent), #e03e0e);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-notify svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-notify:hover {
  filter: brightness(1.1);
}

.btn-notify:hover svg {
  transform: translateX(3px);
}

.btn-notify:active {
  transform: scale(0.97);
}

.btn-notify:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

.form-msg.success { color: #4ade80; }
.form-msg.error   { color: #f87171; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--accent);
  border-color: rgba(255, 77, 26, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 77, 26, 0.15);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children via JS inline delay */

/* ── Responsive ── */
@media (max-width: 700px) {
  .countdown-item {
    min-width: 60px;
    padding: 0.75rem 0.5rem;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-sep {
    display: none;
  }

  .input-wrap {
    flex-direction: column;
    border-radius: 16px;
  }

  .btn-notify {
    justify-content: center;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
  }

  .gear-1 { width: 180px; height: 180px; }
  .gear-2 { width: 120px; height: 120px; }
}
