:root {
  --brand-400: #f87171;
  --brand-500: #ef4444;
  --brand-600: #e50914;
  --brand-700: #c80812;
  --ink-950: #05050a;
  --ink-900: #0f1016;
  --muted: #5b5d68;
  --canvas: #f7f7f8;
  --line: rgba(15, 16, 22, 0.08);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--brand-600);
  color: #fff;
}

/* ---------- Background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.blob {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob 18s ease-in-out infinite;
  pointer-events: none;
}

.blob--one {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -8rem;
  background: rgba(229, 9, 20, 0.18);
}

.blob--two {
  width: 24rem;
  height: 24rem;
  bottom: -8rem;
  left: -8rem;
  background: rgba(248, 113, 113, 0.18);
  animation-delay: -9s;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.12); }
  66% { transform: translate(-30px, 30px) scale(0.92); }
}

/* ---------- Layout ---------- */
.wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 16px;
}

.brand img {
  display: block;
  width: 220px;
  height: auto;
  mix-blend-mode: multiply; /* blends the logo's white background into the canvas */
}

.card {
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: 44px 40px;
  border-radius: 24px;
  border: 1px solid rgba(15, 16, 22, 0.07);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px -20px rgba(15, 16, 22, 0.18);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: #fff1f1;
  border: 1px solid #ffe0e0;
}

.badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-600);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-500);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Text ---------- */
h1 {
  margin: 22px 0 14px;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.accent {
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Waveform ---------- */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  margin: 30px auto 6px;
}

.wave span {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  transform-origin: center;
  animation: bar 1.4s ease-in-out infinite;
}

@keyframes bar {
  0%, 100% { transform: scaleY(var(--min, 0.2)); }
  50% { transform: scaleY(var(--max, 1)); }
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 26px auto 0;
}

.countdown[hidden] {
  display: none;
}

.countdown__item {
  padding: 14px 6px;
  border-radius: 14px;
  background: var(--ink-950);
  color: #fff;
}

.countdown__item span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.countdown__item small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Contact ---------- */
.contact {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact__title {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
}

.contact__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 16, 22, 0.1);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

a.contact__item:hover,
a.contact__item:focus-visible {
  border-color: var(--brand-600);
  color: var(--brand-700);
  transform: translateY(-2px);
  outline: none;
}

.contact__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Footer ---------- */
.foot {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .brand img { width: 180px; }
  .card { padding: 32px 20px; border-radius: 20px; }
  h1 br { display: none; }
  .accent { display: block; }
  .wave { height: 48px; gap: 3px; }
  .wave span { width: 3px; }
  .countdown { gap: 8px; }
  .countdown__item span { font-size: 1.25rem; }
  .contact__item { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
