/* ============================================================
   Fulk Labs — Coming Soon
   Palette extracted from logo:
     Primary (shield navy)   #131c2a / #1a2634
     Accent  (border gold)   #e3b54d
     Secondary (hull silver) #c3c7cd
   ============================================================ */

:root {
  --navy-950: #0b1220;
  --navy-900: #131c2a;
  --navy-800: #1a2634;
  --navy-700: #243447;

  --gold: #e3b54d;
  --gold-bright: #f0c968;
  --gold-dim: rgba(227, 181, 77, 0.35);

  --silver: #c3c7cd;
  --silver-dim: #8b93a1;

  --text: #eef1f5;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */

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

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.25rem 3rem;

  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--navy-950);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Ambient background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--navy-700) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

/* Soft golden glow behind the hero, like sun through storm clouds */
.bg__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 65%);
  opacity: 0.35;
  filter: blur(40px);
  animation: glow-pulse 9s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.45; transform: translateX(-50%) scale(1.08); }
}

/* Subtle film grain for a cinematic feel */
.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* Rolling waves along the bottom edge */
.bg__waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 16vh, 180px);
}

.wave {
  animation: wave-drift 14s ease-in-out infinite alternate;
}

.wave--back {
  fill: var(--navy-800);
  opacity: 0.7;
}

.wave--mid {
  fill: var(--navy-700);
  opacity: 0.5;
  animation-duration: 11s;
  animation-delay: -3s;
}

.wave--front {
  fill: var(--gold);
  opacity: 0.08;
  animation-duration: 8s;
  animation-delay: -6s;
}

@keyframes wave-drift {
  from { transform: translateX(-2.5%); }
  to   { transform: translateX(2.5%); }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  width: 100%;
}

.hero__logo img {
  width: clamp(110px, 26vw, 180px);
  height: auto;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
}

/* Text fallback shown only if logo.png is missing */
.hero__logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* optically recenters the letter-spaced text */
  color: var(--gold);
}

.hero__logo--missing img { display: none; }
.hero__logo--missing .hero__logo-fallback { display: block; }

.hero__eyebrow {
  margin-top: 2.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__slogan {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero__slogan span {
  display: block;
}

.hero__slogan-accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__rule {
  margin-top: 2rem;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Email capture ---------- */

.notify {
  margin-top: 2rem;
  width: 100%;
  max-width: 30rem;
}

.notify__lead {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--silver);
}

.notify__form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notify__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(26, 38, 52, 0.75);
  border: 1px solid var(--navy-700);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.notify__input::placeholder {
  color: var(--silver-dim);
}

.notify__input:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.notify__input--error {
  border-color: #d06565;
}

.notify__button {
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.notify__button:hover,
.notify__button:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(227, 181, 77, 0.35);
  transform: translateY(-1px);
}

.notify__button:active {
  transform: translateY(0);
}

.notify__button:disabled {
  cursor: wait;
  filter: saturate(0.6) brightness(0.85);
  transform: none;
  box-shadow: none;
}

.notify__message {
  margin-top: 0.9rem;
  min-height: 1.4em;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--silver-dim);
  transition: color 0.25s ease;
}

.notify__message--success { color: var(--gold-bright); }
.notify__message--error   { color: #e08a8a; }

/* ---------- Footer ---------- */

.footer {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
}

/* ---------- Entrance animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Accessibility ---------- */

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .bg__glow,
  .wave {
    animation: none;
  }
}

/* ---------- Tablet and up ---------- */

@media (min-width: 640px) {
  .notify__form {
    flex-direction: row;
  }

  .notify__button {
    flex-shrink: 0;
  }
}
