/* ============================================================
   L'Acqua Marina · VR Tour · v1
   Editorial gold + deep night · Fraunces + Host Grotesk
   ============================================================ */

:root {
  --bg-deep:       #0A0A0B;
  --bg-soft:       #14140F;
  --ink:           #F5F1E8;
  --ink-muted:     #B8B0A0;
  --ink-faded:     #6E685C;
  --gold:          #C9A84C;
  --gold-soft:     #FFD27A;
  --gold-faded:    #8A7330;
  --line:          rgba(201,168,76,0.22);
  --line-strong:   rgba(201,168,76,0.45);
}

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

html, body {
  height: 100%;
  font-family: 'Host Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; }
code { font-family: ui-monospace, SFMono-Regular, monospace; background: rgba(201,168,76,0.10); color: var(--gold-soft); padding: 2px 7px; border-radius: 4px; font-size: 0.92em; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.page-landing {
  background:
    radial-gradient(ellipse at top left, rgba(201,168,76,0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(80,40,20,0.10), transparent 60%),
    var(--bg-deep);
  min-height: 100vh;
}

.lp-bg-veil {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,168,76,0.05), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(140,80,30,0.06), transparent 50%);
  pointer-events: none; z-index: 0;
}
.lp-bg-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.lp-topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  border-bottom: 1px solid var(--line);
}
.lp-brand img { height: 36px; opacity: 0.95; }
.lp-back {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
  padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 999px; transition: all 0.25s ease;
}
.lp-back:hover { border-color: var(--gold); color: var(--gold); }

.lp-main {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 64px 56px 96px;
}

.lp-mac-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(201,168,76,0.10), rgba(201,168,76,0.04));
  border: 1px solid var(--gold);
  border-radius: 16px;
  margin: 28px 0 0;
}
.lp-mac-banner-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.lp-mac-banner-text { flex: 1; }
.lp-mac-banner-title {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 19px;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.lp-mac-banner-sub {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 8px;
}
.lp-mac-banner-sub em { color: var(--gold-soft); font-weight: 400; }
.lp-mac-banner-url {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  color: var(--gold);
  background: rgba(0,0,0,0.30);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.lp-hero {
  text-align: center;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.lp-eyebrow {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.lp-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 26px;
}
.lp-title em { color: var(--gold-soft); font-style: italic; }
.lp-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.lp-cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.lp-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Host Grotesk', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--ink);
}
.lp-cta-icon svg { width: 26px; height: 26px; }
.lp-cta-primary {
  background: var(--gold);
  color: #0A0A0B;
  border-color: var(--gold);
}
.lp-cta-primary:hover:not(:disabled) { background: var(--gold-soft); border-color: var(--gold-soft); }
.lp-cta-primary:disabled {
  background: rgba(201,168,76,0.15);
  color: var(--ink-faded);
  border-color: var(--line);
  cursor: not-allowed;
}
.lp-cta-primary.is-ready { animation: pulse-gold 2s ease-in-out infinite; }
.lp-cta-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.lp-cta-ghost:hover { border-color: var(--gold); color: var(--gold); }

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

.lp-status {
  font-size: 13px; color: var(--ink-muted);
  max-width: 540px; margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.lp-status a { color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 1px; }

.lp-devices { padding: 72px 0; border-bottom: 1px solid var(--line); }
.lp-devices-title {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 40px;
}
.lp-devices-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-device {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-device:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lp-device.is-current {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  box-shadow: 0 0 0 1px var(--gold-faded);
}
.lp-device-icon { font-size: 28px; color: var(--gold); margin-bottom: 4px; line-height: 1; }
.lp-device-name {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 400;
  color: var(--ink); line-height: 1.2;
}
.lp-device-badge {
  display: inline-block; align-self: flex-start;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.lp-badge-best { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,0.07); }
.lp-badge-ok { color: var(--ink); border-color: var(--line-strong); }
.lp-badge-pc { color: var(--ink-muted); border-color: var(--line); }
.lp-badge-fallback { color: var(--ink-faded); border-color: var(--line); }
.lp-device-howto {
  font-size: 13.5px; color: var(--ink-muted);
  line-height: 1.65; margin-top: 6px;
}
.lp-device-howto strong { color: var(--ink); font-weight: 500; }
.lp-device-howto em { color: var(--gold-soft); }

.lp-tour-info { padding: 56px 0 48px; border-bottom: 1px solid var(--line); text-align: center; }
.lp-tour-eyebrow {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 32px;
}
.lp-tour-list { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.lp-tour-item {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: 16px; color: var(--ink-muted);
}
.lp-tour-item span {
  display: inline-block;
  font-family: 'Host Grotesk', sans-serif; font-style: normal;
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--gold); margin-right: 8px;
}

.lp-controls { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.lp-controls-title {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 32px;
}
.lp-controls-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.lp-control-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lp-control-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.lp-control-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }

.lp-footer {
  padding-top: 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.lp-footer-brand img { height: 28px; opacity: 0.55; }
.lp-footer-meta {
  font-size: 12.5px; color: var(--ink-faded); line-height: 1.7;
  text-align: right;
}
.lp-footer-credits { margin-top: 4px; }

@media (max-width: 760px) {
  .lp-topbar { padding: 20px 24px; }
  .lp-main { padding: 32px 24px 56px; }
  .lp-hero { padding: 48px 0 40px; }
  .lp-cta { padding: 16px 22px; font-size: 13px; }
  .lp-footer { flex-direction: column; }
  .lp-footer-meta { text-align: center; }
}

/* ============================================================
   VR PAGE
   ============================================================ */
.page-vr {
  background: #000;
  overflow: hidden;
  position: fixed; inset: 0;
}
.page-vr.is-vr .vr-topbar,
.page-vr.is-vr .vr-paradas,
.page-vr.is-vr .vr-narration,
.page-vr.is-vr .vr-bottombar,
.page-vr.is-vr .vr-enter-shell,
.page-vr.is-vr .vr-hint { display: none !important; }

#vr-stage { position: fixed; inset: 0; }
#vr-stage canvas { display: block; width: 100% !important; height: 100% !important; }

.vr-loader {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 100;
  transition: opacity 0.6s ease;
}
.vr-loader.is-done { opacity: 0; pointer-events: none; }
.vr-loader img { height: 48px; margin-bottom: 32px; opacity: 0.9; }
.vr-loader-label {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 18px;
}
.vr-loader-bar {
  width: 220px; height: 2px;
  background: rgba(201,168,76,0.15);
  overflow: hidden;
  border-radius: 2px;
}
.vr-loader-fill {
  width: 0%; height: 100%;
  background: var(--gold);
  transition: width 0.25s ease;
}

.vr-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(10,10,11,0.7), transparent);
}
.vr-back, .vr-iconbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(10,10,11,0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.vr-back svg, .vr-iconbtn svg { width: 16px; height: 16px; }
.vr-back:hover, .vr-iconbtn:hover { border-color: var(--gold); color: var(--gold); }
.vr-iconbtn[aria-pressed="false"] { opacity: 0.5; }

.vr-current {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: 22px;
  color: var(--gold-soft);
  letter-spacing: 0.01em;
}

.vr-actions { display: flex; gap: 10px; }

.vr-paradas {
  position: fixed; left: 28px; top: 50%; transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 6px;
  width: 180px;
}
.vr-parada {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10,10,11,0.55);
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  transition: all 0.2s ease;
}
.vr-parada:hover { border-color: var(--line-strong); color: var(--ink); }
.vr-parada.is-active { border-color: var(--gold); background: rgba(201,168,76,0.10); color: var(--gold); }
.vr-parada-num {
  font-family: 'Host Grotesk', sans-serif;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--gold); font-weight: 500;
  min-width: 22px;
}
.vr-parada-name { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 14px; }

.vr-narration {
  position: fixed; right: 28px; bottom: 84px;
  max-width: 360px;
  padding: 20px 22px;
  background: rgba(10,10,11,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.vr-narration-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.vr-narration-text {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: 18px; line-height: 1.5;
  color: var(--ink);
}

.vr-bottombar {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: rgba(10,10,11,0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 10;
}
.vr-progress {
  width: 160px; height: 2px;
  background: rgba(201,168,76,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.vr-progress-fill {
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 0.5s ease;
}

.vr-enter-shell {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  transition: opacity 0.5s ease;
}
.vr-enter-shell.is-hidden { opacity: 0; pointer-events: none; }
.vr-enter-button {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 38px;
  background: var(--gold);
  color: #0A0A0B;
  border: none;
  border-radius: 999px;
  font-family: 'Host Grotesk', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 60px rgba(201,168,76,0.45);
  transition: all 0.3s ease;
}
.vr-enter-button:disabled {
  background: rgba(201,168,76,0.18);
  color: var(--ink-faded);
  cursor: not-allowed;
  box-shadow: none;
}
.vr-enter-button:hover:not(:disabled) { background: var(--gold-soft); transform: scale(1.03); }
.vr-enter-button.is-ready { animation: pulse-gold 2s ease-in-out infinite; }
.vr-enter-button svg { width: 32px; height: 20px; }

.vr-hint {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faded);
  z-index: 9;
  pointer-events: none;
  transition: opacity 0.6s ease;
  text-align: center;
  max-width: 90%;
}
.vr-hint.is-hidden { opacity: 0; }

/* ---- Mobile VR mode (iPhone Cardboard) ---- */
.vr-enter-mobile {
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.4) !important;
  margin-top: 14px;
  display: inline-flex !important;
  animation: pulse-gold 2.4s ease-in-out infinite;
}
.vr-enter-mobile:hover { background: rgba(201,168,76,0.10) !important; }
.vr-enter-shell { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.is-mobile-vr .vr-topbar,
.is-mobile-vr .vr-paradas,
.is-mobile-vr .vr-narration,
.is-mobile-vr .vr-bottombar,
.is-mobile-vr .vr-enter-shell,
.is-mobile-vr .vr-hint { display: none !important; }

.vr-mobile-controls {
  position: fixed; top: 12px; right: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.vr-mobile-controls .vr-iconbtn {
  background: rgba(10,10,11,0.72);
  border-color: rgba(201,168,76,0.5);
  color: var(--gold);
  padding: 10px;
}

.vr-gaze {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  z-index: 25;
  pointer-events: none;
  display: none;
  align-items: center; justify-content: center;
}
.vr-gaze-ring {
  position: absolute; inset: 22px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.vr-gaze-progress { position: absolute; inset: 0; }
.vr-gaze-progress svg { width: 100%; height: 100%; }
.vr-gaze-progress circle { transition: stroke-dashoffset 0.05s linear; }


@media (max-width: 760px) {
  .vr-paradas { display: none; }
  .vr-narration { left: 16px; right: 16px; bottom: 76px; max-width: none; }
  .vr-current { font-size: 16px; }
}
