:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f7f4;
  --muted: rgba(255, 255, 255, 0.58);
  --primary: #6bff8f;
  --primary-dark: #0abc56;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(11, 188, 86, 0.2), transparent 32%),
    linear-gradient(180deg, #031108 0%, #000000 36%, #000000 100%);
  font-family: "Plus Jakarta Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 18px 14px 24px;
  display: flex;
  flex-direction: column;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.ambient-left {
  top: 60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: rgba(107, 255, 143, 0.12);
}

.ambient-right {
  right: -90px;
  bottom: 160px;
  width: 220px;
  height: 220px;
  background: rgba(107, 255, 143, 0.08);
}

.site-header,
.site-footer,
.hero-layout {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 20px;
}

.brand,
.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand {
  color: var(--primary);
  font-size: 1rem;
}

.header-cta {
  padding: 11px 14px;
  color: #04210d;
  background: linear-gradient(145deg, var(--primary), #8cffab 58%, var(--primary-dark));
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-status {
  padding: 11px 14px;
  color: var(--primary);
  background: rgba(107, 255, 143, 0.08);
  border: 1px solid rgba(107, 255, 143, 0.2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-layout {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 10px 0 40px;
}

.hero-panel {
  width: min(100%, 1180px);
  text-align: center;
  padding: 28px 0;
}

.eyebrow,
.count-label,
.hero-note,
.footer-links a {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.68rem;
}

h1 {
  margin: 0 auto;
  max-width: 10ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--primary);
  font-style: italic;
  text-shadow: 0 0 20px rgba(107, 255, 143, 0.36);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
  max-width: 860px;
  margin: 42px auto 32px;
}

.count-item {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.count-item.active .count-value {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(107, 255, 143, 0.36);
}

.count-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.25rem, 9vw, 6.75rem);
  font-weight: 300;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.count-label {
  color: var(--muted);
  font-size: 0.62rem;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.signup-row {
  width: min(100%, 540px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.signup-row input,
.signup-row button {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signup-row input {
  color: var(--text);
  background: var(--panel-strong);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  outline: none;
}

.signup-row input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.signup-row button {
  color: #041d0c;
  background: linear-gradient(145deg, var(--primary), #8cffab 58%, var(--primary-dark));
  font-weight: 700;
  cursor: pointer;
}

.hero-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.58rem;
}

.early-access-btn {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: 16px 32px;
  color: #041d0c;
  background: linear-gradient(145deg, var(--primary), #8cffab 58%, var(--primary-dark));
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.early-access-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.early-access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 255, 143, 0.4);
}

.early-access-btn:hover::before {
  opacity: 1;
}

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

.hero-note-alt {
  margin: 12px 0 8px;
  color: rgba(255, 255, 255, 0.38);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  margin: 0;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  font-size: 0.58rem;
}

.count-value.tick {
  animation: pulse 0.45s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ambientPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes gridShimmer {
  0%, 100% {
    opacity: 0.02;
  }
  50% {
    opacity: 0.05;
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(107, 255, 143, 0.36);
  }
  50% {
    text-shadow: 0 0 30px rgba(107, 255, 143, 0.5), 0 0 40px rgba(107, 255, 143, 0.2);
  }
}

.page-shell {
  animation: fadeIn 0.6s ease-out;
}

.brand {
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.header-cta {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  transition: all 0.3s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 255, 143, 0.3);
}

.header-status {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.eyebrow {
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

h1 {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

h1 span {
  animation: glowPulse 3s ease-in-out infinite;
}

.countdown-grid {
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.count-item {
  transition: transform 0.3s ease;
}

.count-item.active {
  transform: scale(1.05);
}

.count-item.active .count-value {
  animation: glowPulse 2s ease-in-out infinite;
}

.hero-text {
  animation: fadeInUp 1s ease-out 0.8s backwards;
}

.signup-row {
  animation: fadeInUp 1s ease-out 1s backwards;
}

.early-access-btn {
  animation: fadeInUp 1s ease-out 1s backwards;
}

.hero-note-alt {
  animation: fadeInUp 1s ease-out 1.1s backwards;
}

.hero-note {
  animation: fadeInUp 1s ease-out 1.1s backwards;
}

.ambient-left {
  animation: ambientPulse 8s ease-in-out infinite;
}

.ambient-right {
  animation: ambientPulse 8s ease-in-out infinite 4s;
}

body::before {
  animation: gridShimmer 4s ease-in-out infinite;
}

.signup-row input {
  transition: all 0.3s ease;
}

.signup-row input:focus {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(107, 255, 143, 0.4);
  box-shadow: 0 0 0 1px rgba(107, 255, 143, 0.2), 0 4px 16px rgba(107, 255, 143, 0.1);
}

.signup-row button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.signup-row button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.signup-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 255, 143, 0.4);
}

.signup-row button:hover::before {
  opacity: 1;
}

.signup-row button:active {
  transform: translateY(0);
}

.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.site-footer {
  animation: fadeIn 1.2s ease-out 1.2s backwards;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 24px 28px 30px;
  }

  .site-header {
    padding-bottom: 30px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .header-cta {
    padding: 13px 18px;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 52px;
    margin-bottom: 40px;
  }

  .signup-row {
    grid-template-columns: 1fr auto;
  }

  .signup-row button {
    min-width: 188px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .page-shell {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero-panel {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-text {
    max-width: 800px;
  }
}
