:root {
  --red: #b1001a;
  --red-glow: rgba(177, 0, 26, 0.6);
  --red-dim: rgba(177, 0, 26, 0.15);
  --bg: #050505;
  --bg2: #0c0303;
  --text: #ece8e8;
  --muted: rgba(236, 232, 232, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  overflow-x: hidden;
}

/* ─── Canvas background ─── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Grain overlay ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  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");
  background-size: 200px 200px;
}

/* ─── Page layout ─── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

/* ─── TOP NAV ─── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.2rem;
}

.top-bar .logo img {
  height: clamp(36px, 5.5vw, 62px);
  width: auto;
  filter: drop-shadow(0 0 10px rgba(177, 0, 26, 0.5));
  opacity: 0;
  animation: fadeSlide 0.9s ease forwards 0.3s;
}

.top-bar .tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(0.5rem, 1.3vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeSlide 0.9s ease forwards 0.5s;
}

/* ─── ORBS / BLACKHOLE ─── */
.orb-stage {
  position: relative;
  width: min(500px, 92vw);
  height: min(500px, 92vw);
  margin-bottom: clamp(-80px, -14vw, -60px);
  flex-shrink: 0;
}

/* Core dark sphere */
.orb-core {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 38% 32%,
    #180006 0%,
    #0e0003 35%,
    #050002 60%,
    #010001 100%
  );
  box-shadow:
    0 0 60px 20px var(--red-glow),
    0 0 140px 60px rgba(177, 0, 26, 0.25),
    0 0 280px 120px rgba(100, 0, 12, 0.15),
    inset 0 0 80px 30px rgba(0, 0, 0, 0.95);
  animation: pulse 6s ease-in-out infinite;
}

/* Glowing corona arc */
.orb-core::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(
    from 160deg,
    transparent 0deg,
    var(--red) 18deg,
    rgba(177, 0, 26, 0.4) 38deg,
    transparent 58deg,
    transparent 360deg
  );
  filter: blur(6px);
  animation: arcSpin 9s linear infinite;
}

/* Second faint arc */
.orb-core::after {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: conic-gradient(
    from 280deg,
    transparent 0deg,
    rgba(177, 0, 26, 0.3) 12deg,
    transparent 30deg
  );
  filter: blur(10px);
  animation: arcSpin 14s linear infinite reverse;
}

/* Outer diffuse halo */
.orb-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(177, 0, 26, 0.12) 0%,
    transparent 70%
  );
  animation: pulse 6s ease-in-out infinite 0.8s;
}

/* Accretion disk ring */
.orb-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
        var(--red) 0deg,
        rgba(177, 0, 26, 0.05) 80deg,
        transparent 130deg,
        transparent 230deg,
        rgba(177, 0, 26, 0.05) 280deg,
        var(--red) 360deg
      )
      border-box;
  transform: rotateX(68deg);
  animation: ringRot 16s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 60px 20px var(--red-glow),
      0 0 140px 60px rgba(177, 0, 26, 0.25),
      0 0 280px 120px rgba(100, 0, 12, 0.15),
      inset 0 0 80px 30px rgba(0, 0, 0, 0.95);
  }

  50% {
    box-shadow:
      0 0 90px 35px var(--red-glow),
      0 0 180px 90px rgba(177, 0, 26, 0.38),
      0 0 360px 160px rgba(100, 0, 12, 0.22),
      inset 0 0 80px 30px rgba(0, 0, 0, 0.95);
  }
}

@keyframes arcSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringRot {
  to {
    transform: rotateX(68deg) rotate(360deg);
  }
}

/* ─── TEXT BLOCK ─── */
.text-block {
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: riseIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.label-top {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.big-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.big-title span {
  display: block;
  /* color: var(--red); */
  color: #fff;
  text-shadow:
    0 0 40px var(--red-glow),
    0 0 80px rgba(177, 0, 26, 0.2);
  font-style: italic;
}

.sub-label {
  font-size: clamp(0.55rem, 1.8vw, 0.72rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.8rem;
}

/* thin red line */
.line-accent {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 0 auto 3rem;
  opacity: 0.8;
}

/* ─── COUNTDOWN ─── */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 2rem);
  margin-bottom: 3.4rem;
  flex-wrap: wrap;
}

.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  color: var(--text);
  min-width: clamp(3rem, 9vw, 6.5rem);
  text-align: center;
  position: relative;
}

.cd-num::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--red);
  opacity: 0.4;
}

.cd-label {
  font-size: clamp(0.48rem, 1.4vw, 0.6rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.cd-sep {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--red);
  opacity: 0.35;
  line-height: 1.08;
  align-self: flex-start;
  padding-top: 0.05em;
}

/* ─── EMAIL FORM ─── */
.notify-wrap {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.notify-row {
  display: flex;
}

.notify-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  letter-spacing: 0.1em;
  padding: 0.85rem 1.3rem;
  outline: none;
  border-radius: 2px 0 0 2px;
  transition: border-color 0.3s;
}

.notify-input::placeholder {
  color: var(--muted);
}

.notify-input:focus {
  border-color: rgba(177, 0, 26, 0.55);
}

.notify-btn {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(0.65rem, 1.6vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition:
    background 0.25s,
    box-shadow 0.25s;
  white-space: nowrap;
}

.notify-btn:hover {
  background: #d6001f;
  box-shadow: 0 0 24px var(--red-glow);
}

.success-msg {
  display: none;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.9rem;
}

/* ─── BOTTOM BAR ─── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.2rem;
  opacity: 0;
  animation: fadeSlide 0.9s ease forwards 1.4s;
}

.bottom-bar .copyright {
  font-size: clamp(0.45rem, 1.2vw, 0.58rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 232, 232, 0.2);
}

.social-links {
  display: flex;
  gap: 1.4rem;
}

.social-links a {
  font-size: clamp(0.45rem, 1.2vw, 0.58rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 232, 232, 0.25);
  text-decoration: none;
  transition: color 0.25s;
}

.social-links a:hover {
  color: var(--red);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  /* .top-bar .tagline {
    display: none;
  } */

  .notify-row {
    flex-direction: column;
  }

  .notify-input {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px 2px 0 0;
  }

  .notify-btn {
    border-radius: 0 0 2px 2px;
  }

  .bottom-bar .copyright {
    display: none;
  }
}
