/* =========================================================
   gooner.hu — coming soon
   Design: modern dark, neon gradient, glassmorphism
   ========================================================= */

:root {
  --bg: #08080f;
  --bg-2: #0d0d1a;
  --fg: #ececf5;
  --muted: #9a9ab5;
  --card: rgba(20, 20, 34, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8b5cf6;   /* lila */
  --accent-2: #22d3ee; /* cián */
  --accent-3: #f472b6; /* rózsa */
  --ok: #34d399;
  --err: #fb7185;
  --radius: 22px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--fg);
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-2), var(--bg));
  overflow-x: hidden;
  display: flex;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------- Animált háttér ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob--1 {
  width: 46vmax; height: 46vmax;
  background: var(--accent);
  top: -18vmax; left: -12vmax;
  animation: drift1 22s ease-in-out infinite;
}
.blob--2 {
  width: 40vmax; height: 40vmax;
  background: var(--accent-2);
  bottom: -16vmax; right: -12vmax;
  animation: drift2 26s ease-in-out infinite;
}
.blob--3 {
  width: 32vmax; height: 32vmax;
  background: var(--accent-3);
  top: 40%; left: 55%;
  opacity: 0.35;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.1); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-7vmax, -5vmax) scale(1.08); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-6vmax, 7vmax) scale(0.92); }
}

.grid {
  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: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}

#stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Elrendezés ---------- */
.wrap {
  margin: auto;
  padding: 40px 20px;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.card {
  width: 100%;
  padding: 44px 34px 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Logo ---------- */
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.logo-mark {
  width: clamp(64px, 16vw, 88px);
  height: clamp(64px, 16vw, 88px);
  filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.45));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.logo {
  font-size: clamp(44px, 12vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  padding-bottom: 0.12em;
  background: linear-gradient(120deg, #fff 20%, var(--accent-2) 55%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.logo-lockup .logo { margin-bottom: 0; }
.logo__dot {
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(15px, 2.6vw, 18px);
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 34px;
}

/* ---------- Visszaszámláló ---------- */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-bottom: 34px;
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}
.unit__num {
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 12px 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.unit__label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.unit__sep {
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  padding-top: 10px;
}

/* ---------- Feliratkozás ---------- */
.subscribe { margin-bottom: 30px; }
.subscribe__row {
  display: flex;
  gap: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe__row:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.subscribe input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--fg);
  background: transparent;
  border: none;
  outline: none;
}
.subscribe input::placeholder { color: #6a6a86; }

.btn {
  position: relative;
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 24px -6px rgba(139, 92, 246, 0.6);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.7; cursor: wait; }

.btn__spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.subscribe__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
  transition: color 0.2s;
}
.subscribe__note.is-ok { color: var(--ok); }
.subscribe__note.is-err { color: var(--err); }

/* ---------- Közösségi ---------- */
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.social__link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: color 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
}
.social__link:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.12);
}

/* ---------- Lábléc ---------- */
.foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6a6a86;
}
.foot__sep { opacity: 0.5; }

/* ---------- Segéd ---------- */
.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;
}
.br-desktop { display: inline; }

@media (max-width: 480px) {
  .card { padding: 34px 22px 30px; }
  .unit { min-width: 0; flex: 1; }
  .unit__sep { display: none; }
  .countdown { gap: 8px; }
  .subscribe__row { flex-direction: column; }
  .btn { width: 100%; }
  .br-desktop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .badge__dot, .card, .logo-mark { animation: none !important; }
}
