/* ═══════════════════════════════════════════════════════════════
   Vantage 360 Tours — Landing Page
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --bg:         #fafafa;
  --bg2:        #f5f3ff;
  --card-bg:    #ffffff;
  --surface:    rgba(124,58,237,0.05);
  --border:     rgba(124,58,237,0.13);
  --purple:     #7c3aed;
  --purple-l:   #a855f7;
  --purple-d:   #5b21b6;
  --text:       #111827;
  --muted:      #6b7280;
  --radius:     14px;
  --nav-bg:     rgba(250,250,250,0.88);
  --nav-border: rgba(124,58,237,0.08);
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.14);
}

[data-theme="dark"] {
  --bg:         #09090f;
  --bg2:        #0e0d20;
  --card-bg:    rgba(255,255,255,0.045);
  --surface:    rgba(255,255,255,0.04);
  --border:     rgba(124,58,237,0.22);
  --text:       #e4deff;
  --muted:      #9082b0;
  --nav-bg:     rgba(9,9,15,0.9);
  --nav-border: rgba(124,58,237,0.1);
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
  --shadow:     0 1px 3px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
#landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
#landing-nav.scrolled {
  box-shadow: 0 1px 14px rgba(0,0,0,0.08);
  border-bottom-color: var(--border);
}
[data-theme="dark"] #landing-nav.scrolled { box-shadow: 0 1px 14px rgba(0,0,0,0.45); }

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.97rem; color: var(--text);
  letter-spacing: -0.01em; flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex; align-items: center;
  gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; color: var(--muted);
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* button inside nav-links that looks like a link */
.nav-link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 0.875rem; color: var(--muted);
  font-weight: 500; transition: color 0.2s;
  font-family: inherit;
}
.nav-link-btn:hover { color: var(--text); }

.nav-actions {
  display: flex; align-items: center;
  gap: 8px; flex-shrink: 0;
}

#dark-mode-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#dark-mode-toggle:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.3);
  color: var(--purple);
}

#nav-signin-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px; color: var(--muted);
  font-size: 0.85rem; cursor: pointer; font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#nav-signin-btn:hover {
  background: rgba(124,58,237,0.07);
  color: var(--text); border-color: rgba(124,58,237,0.3);
}

#nav-signup-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  border: none; border-radius: 9px;
  color: #fff; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
#nav-signup-btn:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); }

#nav-user-area { display: none; align-items: center; gap: 10px; }
#nav-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
#nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
#nav-user-name {
  font-size: 0.86rem; color: var(--text);
  max-width: 120px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
#nav-open-app-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  border: none; border-radius: 9px; color: #fff;
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: opacity 0.2s;
}
#nav-open-app-btn:hover { opacity: 0.88; }
#nav-signout-btn {
  padding: 8px 14px; background: transparent;
  border: 1px solid rgba(255,80,80,0.25); border-radius: 9px;
  color: rgba(255,120,120,0.8); font-size: 0.82rem; cursor: pointer;
  font-family: inherit; transition: background 0.2s, color 0.2s;
}
#nav-signout-btn:hover { background: rgba(255,80,80,0.08); color: #ff8080; }


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 40px 60px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 75% 25%, rgba(124,58,237,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(168,85,247,0.06) 0%, transparent 60%),
    var(--bg);
  transition: background 0.3s;
}

.hero-orb {
  display: none;
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
[data-theme="dark"] .hero-orb { display: block; }
.hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(100,58,237,0.14);
  top: -100px; right: -100px;
  animation: orb-float 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(168,85,247,0.1);
  bottom: -50px; left: 5%;
  animation: orb-float 16s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(124,58,237,0.07);
  top: 40%; right: 20%;
  animation: orb-float 10s ease-in-out infinite 3s;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.08); }
}

.hero-grid {
  display: none;
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}
[data-theme="dark"] .hero-grid { display: block; }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 64px;
}

.hero-content { flex: 0 0 auto; max-width: 520px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 20px; font-size: 0.77rem;
  color: var(--purple); font-weight: 500; margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 20px;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 36px; max-width: 440px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  border: none; border-radius: 11px; color: #fff;
  font-size: 0.97rem; font-weight: 700; cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(124,58,237,0.32);
}
.btn-primary:hover {
  opacity: 0.9; transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(124,58,237,0.44);
}
.btn-secondary {
  padding: 13px 24px; background: transparent;
  border: 1px solid var(--border); border-radius: 11px;
  color: var(--muted); font-size: 0.92rem; cursor: pointer;
  font-family: inherit; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(124,58,237,0.06); color: var(--text);
  border-color: rgba(124,58,237,0.3);
}

/* Pannellum viewer */
.hero-viewer { flex: 1; max-width: 580px; min-width: 0; }

.hero-viewer-frame {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.hero-viewer-frame:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 24px 70px rgba(124,58,237,0.12), 0 0 0 1px rgba(124,58,237,0.2);
}

.viewer-chrome {
  height: 38px; background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 10px;
  transition: background 0.25s, border-color 0.25s;
}
.viewer-chrome-dots { display: flex; gap: 6px; flex-shrink: 0; }
.viewer-chrome-dots span { width: 11px; height: 11px; border-radius: 50%; }
.viewer-chrome-dots span:nth-child(1) { background: #ff5f57; }
.viewer-chrome-dots span:nth-child(2) { background: #febc2e; }
.viewer-chrome-dots span:nth-child(3) { background: #28c840; }
.viewer-chrome-url {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 10px; font-size: 0.7rem; color: var(--muted);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#hero-pano {
  height: min(380px, 33vw);
  min-height: 220px;
  background: #0a0010;
}


/* ══════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════ */
#stats-bar {
  padding: 36px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  display: flex; justify-content: center;
  transition: background 0.25s;
}
.stats-inner {
  display: flex; align-items: center;
  max-width: 860px; width: 100%;
}
.stat-item {
  flex: 1; text-align: center; padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em; line-height: 1;
}
.stat-lbl {
  font-size: 0.77rem; color: var(--muted);
  margin-top: 5px; text-transform: uppercase;
  letter-spacing: 0.07em; font-weight: 500;
}


/* ══════════════════════════════════════
   SHARED SECTION STYLES
   ══════════════════════════════════════ */
.section-eyebrow {
  font-size: 0.73rem; font-weight: 700; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 16px; transition: color 0.25s;
}
.section-sub {
  font-size: 1rem; color: var(--muted); max-width: 480px;
  margin-bottom: 52px; line-height: 1.65;
}


/* ══════════════════════════════════════
   FEATURES
   ══════════════════════════════════════ */
#features {
  padding: 100px 40px;
  max-width: 1140px; margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.32);
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 16px;
}
.feature-title {
  font-size: 0.97rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.feature-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }


/* ══════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════ */
#how-it-works {
  padding: 80px 40px 100px;
  background: var(--bg2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); transition: background 0.25s;
}
.how-inner { max-width: 1000px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 36px; margin-top: 52px; position: relative;
}
.step-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.step-number {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  color: #fff; font-size: 0.95rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.32);
}
.step-title { font-size: 0.97rem; font-weight: 700; color: var(--text); }
.step-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }


/* ══════════════════════════════════════
   PRICING
   ══════════════════════════════════════ */
#pricing {
  padding: 100px 40px;
  max-width: 1140px; margin: 0 auto;
}
.pricing-grid--4 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 52px; align-items: start;
}
@media (max-width: 1100px) { .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pricing-grid--4 { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 22px 24px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.pricing-card--featured {
  border-color: rgba(124,58,237,0.38);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.15), 0 12px 36px rgba(124,58,237,0.1);
}
.pricing-card--featured:hover { border-color: rgba(124,58,237,0.55); }
.pricing-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  border-radius: 20px; font-size: 0.69rem; font-weight: 700; color: #fff;
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124,58,237,0.4);
}
.pricing-card-top { display: flex; flex-direction: column; gap: 10px; }
.pricing-tier-label {
  font-size: 0.71rem; font-weight: 800; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.pricing-price { display: flex; align-items: flex-end; gap: 4px; line-height: 1; }
.price-amount { font-size: 2.3rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.price-period { font-size: 0.82rem; color: var(--muted); padding-bottom: 5px; }
.pricing-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.pricing-features {
  list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.pricing-features li {
  font-size: 0.82rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features li svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--purple); }
.pricing-features li.no { opacity: 0.38; }
.pricing-features li.no svg { color: var(--muted); }
.pricing-cta {
  padding: 11px 0; border-radius: 10px;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.2s, transform 0.1s;
  text-align: center; margin-top: auto; width: 100%;
}
.pricing-cta--solid {
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  border: none; color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,0.28);
}
.pricing-cta--solid:hover { opacity: 0.88; transform: translateY(-1px); }
.pricing-cta--outline {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.pricing-cta--outline:hover {
  background: rgba(124,58,237,0.07); color: var(--text);
  border-color: rgba(124,58,237,0.3);
}
.pricing-note {
  text-align: center; font-size: 0.82rem; color: var(--muted);
  margin-top: 28px; opacity: 0.7;
}

/* Legacy aliases */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap:20px; margin-top:52px; align-items:start; }
.pricing-cta.solid  { background: linear-gradient(135deg,var(--purple-d),var(--purple-l)); border:none; color:#fff; }
.pricing-cta.solid:hover  { opacity:.88; transform:translateY(-1px); }
.pricing-cta.outline { background:transparent; border:1px solid var(--border); color:var(--muted); }
.pricing-cta.outline:hover { background:rgba(124,58,237,.07); color:var(--text); }


/* ══════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════ */
#cta-banner {
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  text-align: center; position: relative; overflow: hidden;
}
#cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 70%);
}
#cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff; letter-spacing: -0.03em;
  margin-bottom: 14px; position: relative;
}
#cta-banner p {
  font-size: 1rem; color: rgba(255,255,255,0.78);
  margin-bottom: 32px; position: relative;
}
#cta-banner .btn-primary {
  background: #fff; color: var(--purple-d);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2); position: relative;
}
#cta-banner .btn-primary:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.28); }


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
#landing-footer {
  padding: 56px 40px 32px;
  background: var(--bg2); border-top: 1px solid var(--border);
  transition: background 0.25s;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.84rem; color: var(--muted);
  margin-top: 12px; max-width: 240px; line-height: 1.65;
}
.footer-col-title {
  font-size: 0.73rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 8px;
}


/* ══════════════════════════════════════
   CHAT WIDGET
   ══════════════════════════════════════ */
#landing-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Panel — always dark regardless of page theme */
#widget-panel {
  width: 340px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #13102b;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.08);
  transform-origin: bottom right;
  animation: widget-pop 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes widget-pop {
  from { transform: scale(0.88) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

/* Header */
#widget-header {
  flex-shrink: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(168,85,247,0.1));
  border-bottom: 1px solid rgba(124,58,237,0.18);
}

.widget-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.widget-header-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #e4deff;
  letter-spacing: 0.01em;
}

#widget-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1; padding: 0;
}
#widget-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}


/* Body */
#widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#widget-body::-webkit-scrollbar { width: 4px; }
#widget-body::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 2px; }

/* Feedback message */
#widget-feedback-box {
  display: none;
  font-size: 0.81rem;
  line-height: 1.45;
  padding: 9px 12px;
  border-radius: 8px;
}
#widget-feedback-box.ok  {
  display: block;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.28);
  color: #6ee7b7;
}
#widget-feedback-box.err {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}

/* Inputs */
.w-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px;
  color: #e4deff;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  display: block;
}
.w-input::placeholder { color: rgba(255,255,255,0.22); }
.w-input:focus {
  border-color: rgba(168,85,247,0.6);
  background: rgba(255,255,255,0.07);
}
textarea.w-input { resize: vertical; min-height: 82px; }

/* Submit */
#w-submit {
  padding: 10px 0;
  width: 100%;
  background: linear-gradient(135deg, #5b21b6, #a855f7);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
  margin-top: 2px;
}
#w-submit:hover    { opacity: 0.9; transform: translateY(-1px); }
#w-submit:active   { transform: translateY(0); }
#w-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* FAB toggle button */
#widget-toggle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #a855f7);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
#widget-toggle:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(124,58,237,0.6);
}
#widget-toggle.active {
  background: linear-gradient(135deg, #3b0764, #7c3aed);
}
#widget-toggle svg { width: 22px; height: 22px; pointer-events: none; }


/* ══════════════════════════════════════
   PANNELLUM OVERRIDES (hide default UI)
   ══════════════════════════════════════ */
#hero-pano .pnlm-load-box      { display: none !important; }
#hero-pano .pnlm-about-msg     { display: none !important; }
#hero-pano .pnlm-compass       { display: none !important; }
#hero-pano .pnlm-orientation-button { display: none !important; }


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 960px) {
  #landing-nav { padding: 0 20px; }
  .nav-links    { display: none; }
  #hero         { padding: 90px 24px 60px; }
  .hero-inner   { flex-direction: column; gap: 36px; }
  .hero-content { max-width: 100%; }
  .hero-viewer  { max-width: 100%; width: 100%; }
  #hero-pano    { height: 260px; min-height: 200px; }
  #stats-bar    { padding: 28px 24px; }
  .stats-inner  { flex-wrap: wrap; }
  .stat-item    { flex: 0 0 50%; border-right: none; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  #features, #pricing { padding: 60px 24px; }
  #how-it-works { padding: 60px 24px 80px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta     { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }
  #widget-panel { width: calc(100vw - 48px); }
}
