:root {
  color-scheme: dark;
  --bg: #030606;
  --text: #edfef8;
  --muted: #9dbab4;
  --green: #4aff9b;
  --cyan: #58d8ff;
  --amber: #ffce65;
  --line: rgba(118, 255, 190, 0.25);
  --panel: rgba(3, 12, 12, 0.54);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::selection {
  background: rgba(74, 255, 155, 0.35);
}

.launch {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg,
#scene,
.noise {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.08) brightness(0.82);
  z-index: -5;
}

#scene {
  width: 100%;
  height: 100%;
  z-index: -3;
}

.launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 76% 20%, rgba(88, 216, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(1, 7, 7, 0.97), rgba(1, 7, 7, 0.74) 44%, rgba(1, 7, 7, 0.35));
}

.launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.noise {
  z-index: -1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 86px) 0 clamp(30px, 6vw, 64px);
  display: grid;
  align-content: center;
}

.signal {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(74, 255, 155, 0.32);
  background: rgba(1, 18, 16, 0.46);
  color: var(--green);
  font: 700 0.78rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 0 26px rgba(74, 255, 155, 0.11);
}

.intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 150px));
  gap: 12px;
  margin: clamp(34px, 5vw, 56px) 0 0;
}

.time-cell {
  min-height: 128px;
  padding: 18px 16px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 34, 30, 0.62), rgba(3, 12, 12, 0.38)),
    var(--panel);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 18px 70px rgba(0, 0, 0, 0.34);
}

.time-cell strong {
  font: 800 clamp(2.2rem, 5vw, 3.9rem)/0.92 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.time-cell span {
  margin-top: 14px;
  color: var(--green);
  font: 700 0.76rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 42px);
}

.socials a {
  min-width: 158px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(157, 186, 180, 0.28);
  background: rgba(2, 11, 11, 0.66);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(74, 255, 155, 0.78);
  background: rgba(9, 38, 31, 0.72);
  color: var(--green);
  outline: none;
}

.socials svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.socials a[href*="github"] svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 760px) {
  .launch::before {
    background:
      radial-gradient(circle at 70% 10%, rgba(88, 216, 255, 0.16), transparent 36%),
      linear-gradient(90deg, rgba(1, 7, 7, 0.96), rgba(1, 7, 7, 0.75));
  }

  .hero {
    width: min(100% - 28px, 620px);
    align-content: end;
    padding-top: 72px;
  }

  .intro {
    max-width: 100%;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-cell {
    min-height: 112px;
  }

  .socials a {
    flex: 1 1 152px;
  }
}

@media (max-width: 390px) {
  .hero {
    width: calc(100% - 22px);
  }

  .countdown {
    gap: 8px;
  }

  .time-cell {
    min-height: 98px;
    padding: 14px 10px;
  }

  .socials a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
