/* =========================================================
   Peeka — See the wild
   Cinematic single-page coming-soon site
   ========================================================= */

:root {
  /* Palette — pulled from the logo */
  --forest-deepest: #0F251C;
  --forest-deep: #1F4A34;
  --forest: #2A5A3F;
  --moss: #3E6B3A;
  --moss-light: #7BA37B;
  --cream: #F4EFE0;
  --cream-warm: #EDE4CE;
  --bark: #2A2118;
  --bark-warm: #4A3826;
  --tagline-brown: #6B4423;
  --terracotta: #A85A2E;
  --terracotta-soft: #C97A4B;

  --text: var(--cream);
  --text-muted: rgba(244, 239, 224, 0.72);
  --text-faint: rgba(244, 239, 224, 0.48);

  /* Type scale */
  --font-display: 'Zodiak', 'Erode', Georgia, serif;
  --font-body: 'General Sans', ui-sans-serif, system-ui, sans-serif;

  --step-hero: clamp(3.4rem, 9.5vw, 8.8rem);
  --step-h2: clamp(2.2rem, 5.2vw, 4.4rem);
  --step-h3: clamp(1.2rem, 1.4vw, 1.5rem);
  --step-body: clamp(1rem, 1.05vw, 1.15rem);
  --step-lead: clamp(1.15rem, 1.5vw, 1.4rem);
  --step-eyebrow: 0.78rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--forest-deepest);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--forest-deepest);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

.waitlist-form .hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.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;
}

/* ---- Grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  mix-blend-mode: overlay;
}

/* ---- Top bar ---- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  color: var(--forest-deep);
  background: var(--cream);
  border-bottom: 1px solid rgba(31, 74, 52, 0.12);
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.top-bar.scrolled {
  background: rgba(244, 239, 224, 0.94);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 6px 24px -18px rgba(15, 37, 28, 0.5);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}
.wordmark-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: none;
}

.top-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(31, 74, 52, 0.72);
}
.top-nav a {
  transition: color 0.3s var(--ease-out);
}
.top-nav a:hover {
  color: var(--forest-deep);
}
.top-nav .cta-link {
  color: var(--cream);
  background: var(--forest-deep);
  padding: 0.5rem 1rem;
  border: 1px solid var(--forest-deep);
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
}
.top-nav .cta-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}

@media (max-width: 640px) {
  .top-nav a:not(.cta-link) {
    display: none;
  }
  .top-nav {
    gap: 0;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding: 6rem clamp(1.25rem, 5vw, 5rem) 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroDrift 24s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 30% 50%, rgba(15, 37, 28, 0.15), rgba(15, 37, 28, 0.85) 80%),
    linear-gradient(180deg, rgba(15, 37, 28, 0.45) 0%, rgba(15, 37, 28, 0.35) 40%, rgba(15, 37, 28, 0.95) 100%);
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(244, 239, 224, 0.08);
  border: 1px solid rgba(244, 239, 224, 0.18);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeUp 1.2s var(--ease-out) 0.2s both;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  box-shadow: 0 0 0 0 rgba(201, 122, 75, 0.7);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 122, 75, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(201, 122, 75, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-hero);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: lineReveal 1.1s var(--ease-out) forwards;
}
.hero-title .line[data-line="1"] { animation-delay: 0.4s; }
.hero-title .line[data-line="2"] { animation-delay: 0.7s; }
.hero-title .line[data-line="3"] { animation-delay: 1.0s; }

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

.hero-sub {
  font-size: var(--step-lead);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 32ch;
  animation: fadeUp 1.2s var(--ease-out) 1.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 1.2s var(--ease-out) 1.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cream);
  color: var(--forest-deepest);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(244, 239, 224, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 224, 0.35);
}
.btn-ghost:hover {
  background: rgba(244, 239, 224, 0.08);
  border-color: var(--cream);
}

/* ---- Scroll hint ---- */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: fadeUp 1.5s var(--ease-out) 2s both;
}
.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(244, 239, 224, 0.6), rgba(244, 239, 224, 0));
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* =========================================================
   LOGO REVEAL — cream backdrop makes the green logo pop
   ========================================================= */
.logo-reveal {
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(190, 210, 175, 0.35) 0%, transparent 65%),
    linear-gradient(180deg, #F4EFE0 0%, #EDE4CE 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.logo-reveal::before,
.logo-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(31, 74, 52, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(31, 74, 52, 0.4) 0%, transparent 40%);
}

.logo-reveal-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moss-light);
  margin-bottom: 1.75rem;
}

.logo-reveal .section-eyebrow {
  margin-bottom: 1rem;
  color: var(--forest-deep);
}
.section-eyebrow.light {
  color: var(--terracotta-soft);
}

.logo-reveal .section-eyebrow {
  color: var(--forest-deep);
}

.logo-stage {
  position: relative;
  padding: 1.25rem 0;
  margin: 0 auto;
}
.logo-stage::before,
.logo-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 320px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 74, 52, 0.35), transparent);
}
.logo-stage::before { top: 0; }
.logo-stage::after { bottom: 0; }

.master-logo {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(31, 74, 52, 0.18));
}

.logo-caption {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-lead);
  color: var(--bark-warm);
  max-width: 30ch;
  margin-inline: auto;
  text-wrap: balance;
}

.logo-reveal-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--forest-deepest) 100%);
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   STORY
   ========================================================= */
.story {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  background: linear-gradient(180deg, var(--forest-deepest), #14312A);
}

.story-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.story-body p {
  font-size: var(--step-lead);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 34ch;
}
.story-body .story-emphasis {
  color: var(--cream);
  border-left: 2px solid var(--terracotta-soft);
  padding-left: 1.25rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  max-width: 40ch;
}

.story-visual {
  position: relative;
}
.story-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.story-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #F8F4C8;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
.image-caption .cap-time {
  color: #FFE87A;
  font-weight: 700;
}
.image-caption .cap-sep {
  color: rgba(248, 244, 200, 0.5);
}
.image-caption .cap-tag {
  color: var(--terracotta-soft);
  font-weight: 700;
}

/* =========================================================
   PRODUCT
   ========================================================= */
.product {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  background: linear-gradient(180deg, #14312A, var(--forest-deep));
}

.product-header {
  max-width: 900px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.product-features {
  max-width: 1240px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 239, 224, 0.1);
  border: 1px solid rgba(244, 239, 224, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .product-features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: clamp(2rem, 3vw, 3rem);
  background: var(--forest-deep);
  transition: background 0.5s var(--ease-out);
}
.feature:hover {
  background: #24543C;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--moss-light);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h3);
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-body {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32ch;
}

.product-visual {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}
.product-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =========================================================
   NIGHT PANEL
   ========================================================= */
.night-panel {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.night-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  animation: heroDrift 30s ease-in-out infinite alternate;
}

.night-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 60% 55%, rgba(15, 37, 28, 0.1), rgba(15, 37, 28, 0.85) 75%),
    linear-gradient(90deg, rgba(15, 37, 28, 0.9) 0%, rgba(15, 37, 28, 0.4) 50%, rgba(15, 37, 28, 0.1) 100%);
}

.night-content {
  max-width: 640px;
  color: var(--cream);
}

.night-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.night-sub {
  font-size: var(--step-lead);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
}

/* =========================================================
   WAITLIST
   ========================================================= */
.waitlist {
  padding: clamp(6rem, 12vw, 10rem) 1.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(168, 90, 46, 0.14) 0%, transparent 70%),
    var(--forest-deepest);
  text-align: center;
}

.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
}

.waitlist-body {
  font-size: var(--step-lead);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 40ch;
  margin-inline: auto;
  text-wrap: balance;
}

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(244, 239, 224, 0.08);
  border: 1px solid rgba(244, 239, 224, 0.16);
  border-radius: 999px;
  max-width: 480px;
  margin: 0 auto 1rem;
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.waitlist-form:focus-within {
  border-color: rgba(244, 239, 224, 0.4);
  background: rgba(244, 239, 224, 0.12);
}

.waitlist-form input {
  flex: 1;
  padding: 0.8rem 1.25rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  min-width: 0;
}
.waitlist-form input::placeholder {
  color: var(--text-faint);
}

.waitlist-form .btn {
  padding: 0.8rem 1.5rem;
  flex-shrink: 0;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 3rem;
  transition: color 0.3s var(--ease-out);
}
.form-note.success { color: var(--moss-light); }
.form-note.error { color: var(--terracotta-soft); }

.waitlist-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid rgba(244, 239, 224, 0.1);
}
.waitlist-stats li {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  min-width: 8rem;
}
.waitlist-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
    border-radius: 24px;
    padding: 0.75rem;
  }
  .waitlist-form input {
    text-align: center;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid rgba(31, 74, 52, 0.12);
  color: var(--forest-deep);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--tagline-brown);
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.footer-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(31, 74, 52, 0.6);
  flex-wrap: wrap;
}
.footer-meta a {
  color: rgba(31, 74, 52, 0.78);
  transition: color 0.3s var(--ease-out);
}
.footer-meta a:hover {
  color: var(--terracotta);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

/* Parallax hooks */
.parallax {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg img { animation: none !important; transform: scale(1.08); }
  .night-bg { animation: none !important; transform: none; }
}
