/* Retro Den website: a cozy tent at night, lit by a lava lamp.
   Minimal on purpose: lots of dark space, cream text, one amber accent. */

:root {
  --bg: #0f0a07;
  --bg-2: #1a120c;
  --ink: #f6ecdf;          /* cream text: ~16:1 on --bg */
  --muted: #c9b8a4;        /* body copy: ~10:1 */
  --faint: #93826f;        /* fine print: ~5:1 */
  --line: rgba(255, 236, 214, 0.12);
  --glass: rgba(24, 16, 11, 0.58);
  --amber: #ffb454;        /* buttons */
  --amber-hover: #ffc879;
  --amber-ink: #1c1007;    /* text on amber: ~11:1 */
  --lava: #ff6a2b;
  --teal: #7fd8c4;
  --radius: 22px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hover); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Backgrounds ---------- */

/* The 3D tent (index page only) */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.webgl-ready #scene { opacity: 1; }

/* Soft floating liquid blobs: used on every page, and as the fallback
   when 3D can't run. Hidden on the index page once the 3D tent is ready. */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 110%, #2a160b 0%, transparent 60%),
    linear-gradient(180deg, #0c0805 0%, #150d08 100%);
  transition: opacity 1.2s ease;
}
.webgl-ready .liquid-bg { opacity: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-1 { width: 42vmax; height: 42vmax; left: -10vmax; top: 35%; background: radial-gradient(circle, #ff6a2b 0%, transparent 65%); }
.blob-2 { width: 34vmax; height: 34vmax; right: -8vmax; top: 5%; background: radial-gradient(circle, #ffb454 0%, transparent 65%); animation-duration: 28s; animation-delay: -6s; opacity: 0.35; }
.blob-3 { width: 26vmax; height: 26vmax; left: 40%; bottom: -12vmax; background: radial-gradient(circle, #7fd8c4 0%, transparent 65%); animation-duration: 32s; animation-delay: -12s; opacity: 0.18; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vmax, -8vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 4vmax) scale(0.94); }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.scrolled,
.page-body .site-header {
  background: rgba(15, 10, 7, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--ink); }
.logo-dot {
  width: 10px;
  height: 18px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #ffb454, #ff6a2b);
  box-shadow: 0 0 14px rgba(255, 106, 43, 0.8);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }

/* ---------- Buttons (high contrast) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: 650 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 8px 30px rgba(255, 140, 50, 0.35);
}
.btn-primary:hover {
  background: var(--amber-hover);
  color: var(--amber-ink);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(246, 236, 223, 0.06);
  color: var(--ink);
  border-color: rgba(246, 236, 223, 0.55);
}
.btn-ghost:hover {
  background: rgba(246, 236, 223, 0.14);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }

.soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px dashed rgba(246, 236, 223, 0.45);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Index: scroll scenes ---------- */

main { position: relative; z-index: 1; }

.scene-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 24px 80px;
}
.scene-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; }

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 34em;
  margin: 0 0 30px;
}

.text-glow { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75); }

.hero {
  align-items: flex-start;
  padding-top: 15vh;
  text-align: center;
  position: relative;
}
.hero::before { /* soft dark pool behind the headline so it always reads */
  content: "";
  position: absolute;
  left: 50%;
  top: 8vh;
  width: min(900px, 100%);
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 6, 4, 0.6), transparent);
  pointer-events: none;
}
.hero .scene-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lede { max-width: 30em; }
.hero .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.scroll-hint {
  margin-top: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Glass panels: frosted, like looking through a warm window */
.panel {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.panel-right { margin-left: auto; }

/* Rooms: a tall section whose panel stays put while the TV changes channel */
.rooms { min-height: 260vh; align-items: flex-start; padding: 0 24px; }
.rooms .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.room-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 6px;
}
.room-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--faint);
  transition: background 0.35s ease, color 0.35s ease;
}
.room-list li.active {
  background: rgba(255, 180, 84, 0.12);
  color: var(--ink);
}
.room-list li.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 10px;
  box-shadow: 0 0 10px var(--amber);
}
.room-list li span:first-child { flex: 1; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 180, 84, 0.16);
  color: var(--amber);
}

/* Make it yours */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 8px;
}
.feature h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.pricing .scene-inner { text-align: center; }
.pricing .lede { margin-left: auto; margin-right: auto; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 20px;
  text-align: left;
  margin-top: 10px;
}
.plan { max-width: none; padding: 30px; }
.plan.pro {
  border-color: rgba(255, 180, 84, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(255, 140, 50, 0.12);
}
.plan-name { font-family: var(--sans); font-weight: 650; font-size: 1.1rem; margin: 0; }
.price {
  font-family: var(--serif);
  font-size: 2.6rem;
  margin: 6px 0 16px;
}
.price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { padding-left: 24px; position: relative; color: var(--muted); font-size: 0.96rem; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.plan.pro li::before { background: var(--amber); }
.plan-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Final call */
.outro { text-align: center; }
.outro .scene-inner { display: flex; flex-direction: column; align-items: center; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s ease;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Footer: quiet fine print ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(15, 10, 7, 0.85);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.fineprint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
  margin: 0;
}
.fineprint a { color: var(--faint); }
.footer-links a { text-decoration: none; margin-right: 14px; }
.fineprint a:hover { color: var(--ink); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; }

/* ---------- Plain pages (legal, checkout, thanks) ---------- */

.page-body main { padding: 120px 24px 80px; }
.doc {
  max-width: 760px;
  margin: 0 auto;
}
.doc-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 52px);
}
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc h2 {
  font-size: 1.35rem;
  margin: 38px 0 10px;
  color: var(--ink);
}
.doc p, .doc li { color: var(--muted); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.updated { font-size: 0.85rem; color: var(--faint); margin-top: -6px; }
.summary {
  border-left: 3px solid var(--amber);
  background: rgba(255, 180, 84, 0.07);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.summary p { margin: 0; }
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.doc-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.doc-nav a[aria-current="page"] { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.doc-nav a:hover { color: var(--ink); }
.doc-nav a[aria-current="page"]:hover { color: var(--amber-ink); }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.mini-lamp {
  width: 54px;
  height: 110px;
  margin: 0 auto 26px;
  position: relative;
}
.mini-lamp::before { /* glass */
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 8px; bottom: 26px;
  border-radius: 40% 40% 30% 30% / 25% 25% 20% 20%;
  background: radial-gradient(circle at 40% 70%, #ff6a2b 0 22%, transparent 23%),
              radial-gradient(circle at 60% 35%, #ff8a3d 0 16%, transparent 17%),
              linear-gradient(180deg, rgba(255, 180, 84, 0.25), rgba(255, 106, 43, 0.35));
  box-shadow: 0 0 40px rgba(255, 106, 43, 0.6);
}
.mini-lamp::after { /* base */
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 0; height: 28px;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #b89463, #6e5536);
}

/* ---------- Plan picker ---------- */

.plan-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 14px 0 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.plan-toggle button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 600 0.88rem/1.1 var(--sans);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.plan-toggle button:hover { background: rgba(246, 236, 223, 0.1); color: var(--ink); }
.plan-toggle button[aria-pressed="true"] {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 4px 18px rgba(255, 140, 50, 0.35);
}
.plan-toggle .save {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 2px;
}
.plan-sub { color: var(--muted); font-size: 0.9rem; margin: -10px 0 16px; min-height: 1.4em; }
.checkout-prices { color: var(--ink); font-weight: 600; margin: -6px 0 16px; }
.test-buttons { justify-content: center; margin-bottom: 18px; }

/* ---------- Hover: everything you can press reacts ---------- */

.btn { position: relative; overflow: hidden; }
.btn::after { /* a soft light sweep across the button */
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(255, 140, 50, 0.5); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(246, 236, 223, 0.08); }
.btn:active { transform: translateY(0) scale(0.98); }

.soon { transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; cursor: default; }
.soon:hover {
  border-color: var(--amber);
  background: rgba(255, 180, 84, 0.08);
  box-shadow: 0 0 24px rgba(255, 140, 50, 0.18);
}

.logo { transition: opacity 0.2s ease; }
.logo:hover .logo-dot { box-shadow: 0 0 22px rgba(255, 106, 43, 1); }
.logo-dot { transition: box-shadow 0.3s ease; }

.nav a:not(.btn) { position: relative; transition: color 0.2s ease; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.room-list li { cursor: default; }
.room-list li:hover { background: rgba(246, 236, 223, 0.07); color: var(--ink); }

.plan { transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.plan:hover { transform: translateY(-4px); border-color: rgba(246, 236, 223, 0.28); }
.plan.pro:hover { border-color: var(--amber); }

.doc-nav a { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.doc-nav a:hover { border-color: rgba(246, 236, 223, 0.4); background: rgba(246, 236, 223, 0.06); }

.doc a:not(.btn), .lede a { transition: color 0.2s ease; }
.footer-links a { transition: color 0.2s ease; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav a.hide-sm { display: none; }
  .header-inner { padding: 12px 16px; }
  .scene-section { padding: 96px 16px 56px; }
  .rooms { padding: 0 16px; }
  .rooms .sticky { align-items: flex-end; padding-bottom: 32px; }
  .panel { padding: 24px; max-width: none; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .lamp-section, .rooms-section-align { align-items: flex-end; }
  .footer-inner { padding: 18px 16px 24px; }
  .page-body main { padding: 96px 16px 56px; }
}

/* ---------- Respect "reduce motion" ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .plan, .plan-toggle button { transition: none; }
  .btn::after { display: none; }
  .btn:hover, .plan:hover { transform: none; }
}
