:root {
  --bg: #070a09;
  --bg-elev: #0d1411;
  --ink: #f5f7f4;
  --ink-soft: rgba(245, 247, 244, 0.68);
  --ink-faint: rgba(245, 247, 244, 0.38);
  --mint: #9dffb8;
  --mint-deep: #2f9e5b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --mark: #7c5cff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% -20%, rgba(47, 158, 91, 0.18), transparent 60%),
    linear-gradient(180deg, #0a100e 0%, var(--bg) 55%, #060807 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.1s var(--ease),
    transform 6s var(--ease);
}

.hero-video.is-ready {
  opacity: 1;
  transform: scale(1);
}

.video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 9, 0.28) 0%, rgba(7, 10, 9, 0.42) 42%, rgba(7, 10, 9, 0.72) 100%),
    linear-gradient(90deg, rgba(7, 10, 9, 0.42) 0%, rgba(7, 10, 9, 0.16) 48%, rgba(7, 10, 9, 0.38) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: clamp(1.1rem, 3.5vw, 2rem);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.mark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mark {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(78%) saturate(2476%)
    hue-rotate(236deg) brightness(98%) contrast(97%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(157, 255, 184, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 40rem;
  padding: clamp(2.5rem, 10vh, 6rem) 0;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.2rem, 13vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 20%, rgba(245, 247, 244, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 1.4rem 0 0;
  max-width: 26rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.notify {
  margin-top: 2.25rem;
  width: min(100%, 26.5rem);
}

.notify-shell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.35rem 0.35rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 50px rgba(0, 0, 0, 0.28);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.notify-shell:focus-within {
  border-color: color-mix(in srgb, var(--mint) 45%, white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 4px rgba(157, 255, 184, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.3);
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.7rem 0.4rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
}

.notify input::placeholder {
  color: var(--ink-faint);
  font-weight: 450;
}

.notify button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #07110c;
  background: linear-gradient(180deg, #c8ff9a 0%, var(--mint) 100%);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(157, 255, 184, 0.2);
  transition:
    transform 160ms var(--ease),
    filter 160ms ease,
    box-shadow 160ms ease;
}

.notify button svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 180ms var(--ease);
}

.notify button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(157, 255, 184, 0.28);
}

.notify button:hover svg {
  transform: translateX(2px);
}

.notify button:active {
  transform: translateY(0);
}

.notify button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  filter: none;
}

.notify button:disabled:hover {
  transform: none;
  filter: none;
  box-shadow: 0 8px 22px rgba(157, 255, 184, 0.2);
}

.notify.is-success .notify-shell {
  display: none;
}

.form-note {
  min-height: 1.25rem;
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-note.error {
  color: #ff9f9f;
}

.form-note.success {
  color: var(--mint);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 140ms ease;
}

.foot a:hover {
  color: var(--ink);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: rise 900ms var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@media (max-width: 560px) {
  .status-chip {
    display: none;
  }

  .notify-shell {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.35rem;
    padding: 0.55rem;
  }

  .notify input {
    padding: 0.85rem 0.85rem 0.55rem;
  }

  .notify button {
    justify-content: center;
    width: 100%;
  }
}

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

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

  .hero-video {
    display: none;
  }

  .notify button:hover,
  .notify button:hover svg {
    transform: none;
  }
}
