/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg:        #060611;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --accent:    #7c5cfc;
  --accent2:   #fc5c7d;
  --text:      #f0f0f5;
  --muted:     rgba(240,240,245,0.45);
  --radius:    16px;
  --font-sans: 'Inter', sans-serif;
  --font-head: 'Syne', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Canvas Background
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   Noise Texture
   ============================================================ */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  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)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ============================================================
   Main Container
   ============================================================ */
.container {
  position: relative;
  z-index: 2;
  width: min(680px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
  text-align: center;
}

/* ============================================================
   Brand
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--muted);
  animation: fadeDown .8s ease both;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: pulse 2.4s ease infinite;
}

.brand-name { text-transform: lowercase; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: fadeUp .9s .1s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  backdrop-filter: blur(8px);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}

.headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

/* Glow effect under gradient text */
.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(24px);
  opacity: .55;
  z-index: -1;
}

.subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 600px) { .br-desktop { display: none; } }

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: fadeUp .9s .25s ease both;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  min-width: 80px;
  backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
}

.countdown-item:hover {
  border-color: rgba(124,92,252,.35);
  box-shadow: 0 0 24px rgba(124,92,252,.12);
}

.countdown-num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  tabular-nums: numeric;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--text) 0%, rgba(240,240,245,.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform .15s ease;
}

.countdown-num.flip {
  animation: flip .35s ease;
}

.countdown-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-sep {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted);
  opacity: .4;
  margin-bottom: 1.4rem;
  animation: blink 1s step-start infinite;
}

@media (max-width: 480px) {
  .countdown-item { min-width: 66px; padding: .9rem 1rem; }
  .countdown-sep  { font-size: 1.4rem; }
}

/* ============================================================
   Notify Form
   ============================================================ */
.notify-form {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  animation: fadeUp .9s .4s ease both;
}

.input-wrap {
  display: flex;
  width: 100%;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .35rem .35rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
}

.input-wrap:focus-within {
  border-color: rgba(124,92,252,.5);
  box-shadow: 0 0 0 4px rgba(124,92,252,.12);
}

.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .95rem;
  min-width: 0;
}

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

.btn-notify {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: linear-gradient(135deg, var(--accent) 0%, #5b8dee 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .3s;
  white-space: nowrap;
}

.btn-notify:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,92,252,.4);
}

.btn-notify:active { transform: translateY(0); }

.form-note {
  font-size: .78rem;
  color: var(--muted);
}

.form-success {
  color: #5cfc8a;
  font-size: .9rem;
  font-weight: 500;
  animation: fadeUp .5s ease both;
}

/* ============================================================
   Social Links
   ============================================================ */
.socials {
  display: flex;
  gap: .75rem;
  animation: fadeUp .9s .55s ease both;
}

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.social-link:hover {
  color: var(--text);
  border-color: rgba(124,92,252,.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124,92,252,.2);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  font-size: .75rem;
  color: rgba(240,240,245,.2);
  animation: fadeUp .9s .65s ease both;
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes flip {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50%       { box-shadow: 0 0 20px var(--accent), 0 0 36px var(--accent); }
}

@keyframes blink {
  0%, 100% { opacity: .4; }
  50%       { opacity: .1; }
}
