/* 30forti.com — Coming Soon */

:root {
  --bg: #0b0f14;
  --bg-elevated: #121820;
  --text: #f2f5f7;
  --text-muted: #9aa7b2;
  --accent: #2ee6a6;
  --accent-soft: rgba(46, 230, 166, 0.16);
  --accent-strong: #1fc98d;
  --line: rgba(242, 245, 247, 0.12);
  --danger: #ff6b7a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 120%, #15202b 0%, transparent 55%),
    linear-gradient(180deg, #0b0f14 0%, #0e141c 50%, #0b0f14 100%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 18s var(--ease-out) infinite alternate;
}

.atmosphere__glow--one {
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  top: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.35), transparent 70%);
}

.atmosphere__glow--two {
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  right: -12%;
  top: 20%;
  background: radial-gradient(circle, rgba(56, 120, 160, 0.4), transparent 70%);
  animation-duration: 22s;
  animation-delay: -4s;
}

.atmosphere__glow--three {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  left: 30%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.18), transparent 70%);
  animation-duration: 26s;
  animation-delay: -8s;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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: 180px 180px;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, -3%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-3%, 4%, 0) scale(0.96);
  }
}

/* Page composition */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  gap: 0;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.support {
  margin: 0 0 2.5rem;
  max-width: 36ch;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
}

/* Countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1.25rem);
  width: min(100%, 520px);
  margin: 0 0 2.5rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.countdown__value {
  display: inline-block;
  min-width: 2ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.countdown__value.is-ticking {
  transform: translateY(-4px);
  color: var(--accent);
}

.countdown__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Waitlist */

.waitlist {
  width: min(100%, 420px);
  margin: 0 0 2.25rem;
}

.waitlist__row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 3.15rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 24, 32, 0.72);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.waitlist input[type="email"]::placeholder {
  color: #6f7d88;
}

.waitlist input[type="email"]:hover {
  border-color: rgba(242, 245, 247, 0.22);
}

.waitlist input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(18, 24, 32, 0.9);
}

.waitlist input[type="email"].is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.18);
}

.waitlist button {
  flex-shrink: 0;
  height: 3.15rem;
  padding: 0 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #062218;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.waitlist button:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 28px rgba(46, 230, 166, 0.28);
}

.waitlist button:active {
  transform: translateY(1px);
}

.waitlist button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.waitlist__status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.waitlist__status.is-success {
  color: var(--accent);
}

.waitlist__status.is-error {
  color: var(--danger);
}

/* Socials */

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s var(--ease-out), background 0.2s ease;
}

.socials a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  color: var(--accent);
}

/* Entrance motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.9s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 520px) {
  .waitlist__row {
    flex-direction: column;
  }

  .waitlist button {
    width: 100%;
  }

  .countdown {
    gap: 0.5rem;
  }

  .support {
    margin-bottom: 2rem;
  }
}

@media (max-width: 380px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.1rem;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .atmosphere__glow,
  .reveal,
  .countdown__value {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .countdown__value.is-ticking {
    transform: none;
  }

  .socials a:hover,
  .waitlist button:hover {
    transform: none;
  }
}
