/* BeforeNow — marketing site. Celestial-antique editorial. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,900&family=Spectral:ital,wght@0,300;0,400;0,500;1,400&display=swap");

:root {
  --navy-0: #0a1424;
  --navy-1: #0e1a30;
  --navy-2: #14203a;
  --navy-3: #1c2b4a;
  --gold: #c99a4e;
  --gold-bright: #e6c079;
  --cream: #f3ead4;
  --muted: #9aa7bf;
  --line: rgba(201, 154, 78, 0.22);
  --display: "Fraunces", Georgia, serif;
  --body: "Spectral", Georgia, serif;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 700px at 78% -10%, #1b2c50 0%, rgba(27, 44, 80, 0) 55%),
    radial-gradient(900px 600px at 12% 8%, #16244300 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-0) 100%);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Fine grain + starfield overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: screen;
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; }

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

.label {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.82), rgba(10, 20, 36, 0.4));
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 0.98rem; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--cream); }
.btn {
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-gold {
  color: #2a1c06;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid #8a6522;
  box-shadow: 0 8px 26px rgba(201, 154, 78, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 34px rgba(201, 154, 78, 0.35); }
.btn-ghost { color: var(--gold-bright); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 154, 78, 0.08); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5.5rem 0 3rem; text-align: center; }
.hero .banner-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto 2.6rem;
  animation: rise 1s ease both;
}
.hero .banner-wrap::after {
  content: "";
  position: absolute;
  inset: -8% -4% -30%;
  background: radial-gradient(closest-side, rgba(230, 192, 121, 0.22), rgba(230, 192, 121, 0) 72%);
  z-index: -1;
  filter: blur(8px);
}
.hero img.banner { width: 100%; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 auto 1.2rem;
  max-width: 15ch;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  animation: rise 1s ease 0.1s both;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.hero .sub {
  color: var(--muted);
  font-size: 1.28rem;
  max-width: 46ch;
  margin: 0 auto 2.2rem;
  animation: rise 1s ease 0.2s both;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: rise 1s ease 0.3s both; }
.hero .free-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; font-style: italic; animation: rise 1s ease 0.4s both; }

/* decorative constellation */
.constellation { position: absolute; inset: 0; z-index: -2; opacity: 0.5; pointer-events: none; }
.constellation line { stroke: var(--gold); stroke-width: 0.6; opacity: 0.35; }
.constellation circle { fill: var(--gold-bright); }
.twinkle { animation: tw 4s ease-in-out infinite; }
.twinkle:nth-child(3) { animation-delay: 1.2s; }
.twinkle:nth-child(5) { animation-delay: 2.1s; }
.twinkle:nth-child(7) { animation-delay: 0.6s; }

/* ---------- Section frame ---------- */
section.band { padding: 5rem 0; position: relative; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.sec-head { text-align: center; max-width: 44ch; margin: 0 auto 3rem; }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0.8rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.sec-head p { color: var(--muted); font-size: 1.12rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, rgba(28, 43, 74, 0.5), rgba(20, 32, 58, 0.25));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.feature .glyph { font-size: 1.7rem; color: var(--gold-bright); line-height: 1; margin-bottom: 1rem; display: block; }
.feature h3 { font-family: var(--display); font-weight: 500; font-size: 1.32rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Split showcase ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.split img { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.split h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; margin: 0.7rem 0 1rem; }
.split p { color: var(--muted); font-size: 1.12rem; margin-bottom: 1rem; }
.split ul { list-style: none; }
.split li { padding: 0.5rem 0 0.5rem 1.7rem; position: relative; color: var(--cream); border-bottom: 1px dotted var(--line); }
.split li::before { content: "\25C8"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Sources strip ---------- */
.sources-strip { text-align: center; }
.sources-strip .items { display: flex; gap: 2.4rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; color: var(--muted); font-family: var(--display); font-style: italic; font-size: 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 5.5rem 0; }
.cta-band h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.4rem; }
.cta-band em { font-style: italic; color: var(--gold-bright); }

/* ---------- Article pages (about / privacy) ---------- */
.page { padding: 4.5rem 0 2rem; max-width: 760px; }
.page h1 { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.page .lede { color: var(--muted); font-size: 1.25rem; margin-bottom: 2.6rem; }
.page h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 2.4rem 0 0.8rem; }
.page p { color: #d8dae2; margin-bottom: 1.1rem; }
.page p:first-of-type::first-letter { font-family: var(--display); font-size: 3.4rem; float: left; line-height: 0.8; padding: 0.1rem 0.6rem 0 0; color: var(--gold); }
.page a.inline { color: var(--gold-bright); border-bottom: 1px solid var(--line); }
.page ul.plain { margin: 0 0 1.1rem 1.2rem; color: #d8dae2; }
.page ul.plain li { margin-bottom: 0.5rem; }
.meta-note { margin-top: 2.6rem; padding: 1.2rem 1.4rem; border-left: 2px solid var(--gold); background: rgba(201, 154, 78, 0.07); color: var(--muted); font-size: 0.98rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; margin-top: 2rem; }
footer .cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
footer .brand span { font-size: 1.1rem; }
footer .tag { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; max-width: 30ch; }
footer nav { display: flex; gap: 2rem; flex-wrap: wrap; }
footer nav a { color: var(--muted); font-size: 0.98rem; }
footer nav a:hover { color: var(--gold-bright); }
footer .fine { margin-top: 2.2rem; color: #6b7691; font-size: 0.86rem; }
footer .fine .merc { color: var(--gold); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes tw { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .split-media { order: -1; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}

/* Sample discovery card */
.discovery .sec-head { text-align: center; }
.disc-card { max-width: 44rem; margin: 2rem auto 0; background: linear-gradient(180deg, rgba(201,154,78,0.07), rgba(0,0,0,0.18)); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 2.2rem; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.disc-loc { display: flex; align-items: center; gap: 0.5rem; color: var(--gold-bright); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.disc-loc .pin { font-size: 1.05rem; }
.disc-card h3 { font-family: var(--display); font-size: 1.85rem; line-height: 1.15; margin: 0 0 0.85rem; color: var(--cream); }
.disc-card p { color: var(--muted); line-height: 1.7; margin: 0 0 1rem; }
.disc-card .then { border-left: 2px solid var(--gold); padding: 0.4rem 0 0.4rem 1rem; color: var(--cream); font-size: 0.98rem; margin: 1rem 0; font-style: italic; }
.disc-more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold-bright); font-size: 0.95rem; margin-top: 0.4rem; }
.disc-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 1.1rem; opacity: 0.7; }
.disc-card { transition: opacity 0.32s ease; min-height: 20rem; }
.disc-card.is-fading { opacity: 0; }
.disc-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.4rem; }
.disc-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(201,154,78,0.3); transition: transform 0.2s ease, background 0.2s ease; }
.disc-dot:hover { background: rgba(230,192,121,0.7); }
.disc-dot.on { background: var(--gold-bright); transform: scale(1.35); }

/* On this day ticker */
.otd-strip { padding: 1.15rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(201,154,78,0.045); }
.otd-strip .wrap { display: flex; align-items: baseline; gap: 0.4rem 1.1rem; flex-wrap: wrap; }
.otd-label { color: var(--gold-bright); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; }
.otd-line { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; flex: 1 1 22rem; transition: opacity 0.32s ease; }
.otd-line.is-fading { opacity: 0; }
.otd-when { color: var(--cream); font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .disc-card, .disc-dot, .otd-line { transition: none; }
}

/* Waitlist / notify */
.cta-sub { max-width: 34rem; margin: 0.6rem auto 0; color: var(--muted); font-size: 1.08rem; }
.notify { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 30rem; margin: 1.6rem auto 0; }
.notify input { flex: 1 1 15rem; padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--cream); font-family: var(--body); font-size: 1rem; }
.notify input::placeholder { color: var(--muted); }
.notify input:focus { outline: none; border-color: var(--gold); }
.notify-msg { margin-top: 0.9rem; min-height: 1.2em; font-size: 0.98rem; }
.notify-msg.ok { color: #7fe0a8; }
.notify-msg.err { color: #ff9b9b; }
.cta-preview { margin-top: 1.3rem; color: var(--muted); font-size: 0.98rem; }
