/* ============================================================
   Boolip — single-screen brand site
   Shared system for landing + legal pages
   ============================================================ */

:root {
  --bg-base: #140811;
  --bg-elevated: #1d0e1a;
  --bg-deep: #0c050b;

  --ink: #f4ecdf;
  --ink-soft: rgba(244, 236, 223, 0.78);
  --ink-mute: rgba(244, 236, 223, 0.55);
  --ink-faint: rgba(244, 236, 223, 0.36);
  --ink-ghost: rgba(244, 236, 223, 0.14);

  --blush: #ff5c8a;
  --champagne: #e8c785;
  --spark: #d4ff5e;
  --iris: #b69dff;

  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Atmosphere ---- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 82% 8%, rgba(255, 92, 138, 0.20), transparent 60%),
    radial-gradient(55% 45% at 12% 88%, rgba(182, 157, 255, 0.16), transparent 62%),
    radial-gradient(40% 35% at 95% 95%, rgba(232, 199, 133, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-base) 30%, var(--bg-base) 70%, var(--bg-deep));
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 0 0 rgba(212, 255, 94, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,255,94,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(212,255,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,255,94,0); }
}

/* ---- Top bar: logo only ---- */
.topbar { padding: 26px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brandmark { display: inline-flex; align-items: center; text-decoration: none; }
.brandmark img { height: 42px; width: auto; display: block; }
.topbar-links { display: flex; gap: 24px; }
.topbar-links a { color: var(--ink-mute); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.topbar-links a:hover { color: var(--ink); }
@media (max-width: 560px) { .brandmark img { height: 36px; } }

/* ============================================================
   LANDING — single screen
   ============================================================ */
.stage { flex: 1; display: flex; align-items: center; padding: 24px 0 56px; }
.stage-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
@media (max-width: 820px) {
  .stage-grid { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .stage { padding: 12px 0 40px; }
}

.stage-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 8.5vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 22px 0 0;
}
.stage-copy h1 .accent { color: var(--blush); }

.bullets { list-style: none; margin: 34px 0 0; display: grid; gap: 15px; max-width: 38ch; }
.bullets li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.45;
}
.bullets li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 17px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--champagne), var(--blush));
}
.store-note {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Phone with vertical swipe feed ---- */
.stage-art { display: flex; justify-content: center; }
.feed-phone {
  position: relative;
  width: clamp(230px, 28vw, 290px);
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #2a1626, #160a14);
  border: 1px solid rgba(244, 236, 223, 0.12);
  box-shadow: 0 50px 120px -38px rgba(0,0,0,0.85), inset 0 1px 0 rgba(244,236,223,0.08);
}
.feed-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}
.feed-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: feed 11s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.feed-tile {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 30px;
  position: relative;
}
.feed-tile .scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.feed-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(12,5,11,0.62));
}
.feed-tile .ft-tag {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.feed-tile .ft-name {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem;
  letter-spacing: -0.02em; margin-top: 4px; color: #fff;
}
.feed-tile .ft-play {
  position: relative; z-index: 2; margin-top: 12px;
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 500;
}
.feed-tile.g1 { background: radial-gradient(120% 90% at 25% 20%, #ff5c8a, transparent 60%), linear-gradient(160deg, #7a2350, #2a1020); }
.feed-tile.g2 { background: radial-gradient(120% 90% at 75% 20%, #b69dff, transparent 60%), linear-gradient(160deg, #3b2a72, #181030); }
.feed-tile.g3 { background: radial-gradient(120% 90% at 30% 25%, #e8c785, transparent 58%), linear-gradient(160deg, #6e5320, #241a0c); }

@keyframes feed {
  0%, 26%   { transform: translateY(0); }
  33%, 59%  { transform: translateY(-100%); }
  66%, 92%  { transform: translateY(-200%); }
  100%      { transform: translateY(-300%); }
}

/* swipe-up hint */
.swipe-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none;
}
.swipe-hint .arrow {
  animation: bob 1.7s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.swipe-hint .arrow svg { display: block; }
.swipe-hint .lbl {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
@keyframes bob { 0%, 100% { transform: translateY(3px); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* ============================================================
   FOOTER — minimal, shared
   ============================================================ */
footer { border-top: 1px solid var(--ink-ghost); background: rgba(12,5,11,0.45); padding: 28px 0; }
.foot-mini {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 28px;
}
.foot-mini .legal-name {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-mute);
  letter-spacing: 0.02em; line-height: 1.6;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.86rem; transition: color 0.2s ease; }
.foot-links a:hover { color: var(--blush); }
.foot-copy { width: 100%; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--ink-ghost); font-size: 0.76rem; color: var(--ink-faint); }

/* ============================================================
   LEGAL pages
   ============================================================ */
.legal { flex: 1; padding: clamp(36px, 6vh, 72px) 0 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--ink-mute); text-decoration: none; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.backlink:hover { color: var(--ink); }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.04; }
.legal .meta { margin-top: 14px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-mute); }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; margin: 42px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.02rem; font-weight: 600; margin: 24px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { margin: 0 0 16px 1.3em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--blush); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 0.9rem; }
.legal th { text-align: left; font-weight: 500; color: var(--ink-mute); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink-faint); }
.legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink-ghost); color: var(--ink-soft); vertical-align: top; }
.legal .tldr { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: rgba(244,236,223,0.04); border: 1px solid var(--ink-ghost); }
.legal .tldr strong { color: var(--ink); }

/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.38s; } .d5 { animation-delay: 0.49s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  .feed-track, .swipe-hint .arrow, .eyebrow .live { animation: none; }
  html { scroll-behavior: auto; }
}
