/* ══════════════════════════════════════════════════════════════
   ZEPHYRA — COMING SOON  |  style.css
   Background: WebGL GradientBlinds (emerald) via script.js
   Content: white / light-emerald, matching reference design
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --white:      #ffffff;
  --white-60:   rgba(255,255,255,0.60);
  --white-30:   rgba(255,255,255,0.30);
  --white-10:   rgba(255,255,255,0.10);
  --white-05:   rgba(255,255,255,0.05);
  --emr-300:    #34d08b;
  --emr-200:    #6ee7b7;
  --emr-100:    #a7f3d0;
  --emr-glow:   rgba(52,208,139,0.35);
  --font-body:  'Inter', system-ui, sans-serif;
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Body ────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: #020d09;
  color: var(--white);
  min-height: 100dvh;
  overflow: hidden; /* single-screen coming-soon */
}

/* ── WebGL canvas (full-screen background) ───────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;          /* base layer */
  touch-action: none;
}

/* ── Film-grain noise ────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════════════
   SHELL — three-row layout: header / main / footer
══════════════════════════════════════════════════════════ */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(24px, 6vw, 80px);
}

/* ── Top bar ─────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;        /* logo centred */
  padding: 36px 0 0;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Real logo image */
.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(110,231,183,0.5));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(110,231,183,0.35)); }
  to   { filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(110,231,183,0.85)); }
}

/* ══════════════════════════════════════════════════════════
   HERO — main content area
══════════════════════════════════════════════════════════ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px; /* reduced to keep single-screen layout compact */
  padding: 20px 0 60px;
}

/* COMING SOON pill */
.label-coming {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--emr-200);
  text-transform: uppercase;
  animation: fadeUp 0.6s var(--ease) both;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.5px;
  color: var(--white);
  max-width: 1000px;
  animation: fadeUp 0.65s var(--ease) 0.08s both;
}

.headline .accent {
  color: var(--emr-300);
  font-style: italic;
}

/* Sub copy */
.sub-copy {
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--white-60);
  max-width: 560px;
  animation: fadeUp 0.65s var(--ease) 0.15s both;
}

.br-desk { display: inline; }

/* Editorial USP Info Strip */
.usp-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 10px;
  margin-bottom: 22px;
  animation: fadeUp 0.65s var(--ease) 0.18s both;
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 180px;
}

.usp-number {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--emr-300); /* Muted emerald/olive accent highlight */
  letter-spacing: -0.02em;
  line-height: 1;
}

.usp-text {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.1vw, 10px);
  font-weight: 500;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.usp-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  align-self: center;
}

/* ══════════════════════════════════════════════════════════
   EMAIL FORM
══════════════════════════════════════════════════════════ */
.email-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  animation: fadeUp 0.65s var(--ease) 0.22s both;
}

/* Input + button wrapper — pill shape, single row */
.field-wrap {
  display: flex;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field-wrap:focus-within {
  border-color: rgba(110,231,183,0.5);
  box-shadow: 0 0 0 3px rgba(52,208,139,0.12),
              0 0 40px rgba(52,208,139,0.08);
}

#emailField {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 17px 22px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--white);
}

#emailField::placeholder { color: rgba(255,255,255,0.35); }

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 28px;
  border: none;
  border-radius: 100px;
  background: var(--white);
  color: #0b3d28;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 4px;
  transition: background 0.2s, transform 0.18s var(--ease-spring),
              box-shadow 0.2s;
}

.btn-submit:hover {
  background: var(--emr-200);
  color: #052016;
  box-shadow: 0 0 28px rgba(110,231,183,0.45);
  transform: scale(1.03);
}

.btn-submit:active { transform: scale(0.97); }

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.9s linear infinite;
  display: flex;
}

.spinner svg {
  width: 100%;
  height: 100%;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success message */
.success-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--emr-200);
  padding: 13px 22px;
  background: rgba(52,208,139,0.08);
  border: 1px solid rgba(52,208,139,0.25);
  border-radius: 100px;
  width: 100%;
  justify-content: center;
  animation: fadeUp 0.4s var(--ease-spring) both;
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   SOCIAL LINKS
══════════════════════════════════════════════════════════ */
.socials {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.65s var(--ease) 0.3s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-10);
  border: 1px solid var(--white-10);
  color: var(--white-60);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}

.social-link svg { width: 17px; height: 17px; }

.social-link:hover {
  background: rgba(52,208,139,0.15);
  border-color: rgba(52,208,139,0.4);
  color: var(--emr-200);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════════
   BOTTOM BAR + BRAND WATERMARK
══════════════════════════════════════════════════════════ */
.bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between; /* separates left copyright and right watermark */
  padding: 24px 0 28px;
}

/* Desktop layout styles */
.footer-left-desk {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 2;
}

.copy-text {
  font-size: 13px;
  color: var(--white-30);
  line-height: 1.4;
}

.design-credit {
  font-size: 12px;
  color: var(--white-30);
  line-height: 1.4;
}

.design-credit a,
.copy-text a {
  color: var(--white-60);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.design-credit a:hover,
.copy-text a:hover {
  color: var(--emr-300);
}

.brand-watermark-desk {
  position: fixed;
  right: clamp(-10px, -1vw, 0px);
  bottom: -28px;                /* bleeds off screen bottom */
  font-family: var(--font-display);
  font-size: clamp(100px, 15vw, 200px);
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 1;
  color: rgba(26, 110, 70, 0.35); /* original filled watermark style */
  -webkit-text-stroke: 0;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: fadeUp 1s var(--ease) 0.4s both;
}

/* Mobile layout hidden by default on desktop */
.footer-mobile-wrap {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  body { overflow-y: auto; }

  .headline {
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .br-desk { display: none; }

  .usp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin-top: 14px;
    margin-bottom: 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .usp-item {
    max-width: 100%;
    gap: 4px;
  }

  .usp-item:last-child {
    grid-column: span 2;
    justify-self: center;
  }

  .usp-divider {
    display: none;
  }

  .field-wrap {
    flex-direction: row; /* keep horizontal input bar side by side */
    border-radius: 100px;
    gap: 4px;
    align-items: center;
  }

  #emailField {
    padding: 14px 18px;
    font-size: 14px;
  }

  .btn-submit {
    border-radius: 100px; /* keep pill shape */
    margin: 4px;
    padding: 11px 20px;
    font-size: 13px;
    width: auto; /* keep side-by-side */
  }

  /* Hide desktop footer layout */
  .footer-left-desk,
  .brand-watermark-desk {
    display: none;
  }

  /* Show mobile stacked layout */
  .footer-mobile-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* right-aligned */
    gap: 4px;
    width: 100%;
    text-align: right;
  }

  .brand-watermark-mob {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(38px, 12vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.95;
    color: rgba(34, 168, 111, 0.18); /* faint watermark */
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    margin-bottom: 4px;
  }

  .copy-text-mob {
    font-size: 12px;
    color: var(--white-30);
    line-height: 1.4;
  }

  .copy-text-mob a {
    color: var(--white-60);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }

  .copy-text-mob a:hover {
    color: var(--emr-300);
  }

  .bottom-bar {
    padding-top: 30px;
    padding-bottom: 20px;
    display: flex;
    justify-content: flex-end; /* right indented */
    align-items: flex-end;
  }
}
