/* ============================================
   INSPRIZE — Premium AI Showroom Service
   ============================================ */

/* --- Variables --- */
:root {
  --white: #FFFFFF;
  --ebony: #0A0A0A;
  --gold: #A0522D;
  --gold-dim: rgba(160, 82, 45, 0.15);
  --linen: #D4C5A9;
  --oak: #7A6652;
  --ivory: #F5F2ED;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ebony);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
em { font-family: var(--font-display); font-style: italic; color: var(--gold); }

/* --- Loader --- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { width: 140px; margin: 0 auto 32px; }
.loader-bar-track {
  width: 200px; height: 2px;
  background: var(--ivory);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto 12px;
}
.loader-bar {
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 0.15s linear;
}
.loader-percent {
  font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--oak); font-weight: 500;
}

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-nav {
  max-width: 1400px; margin: 0 auto;
  height: 100%; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo img { height: 28px; width: auto; }
.header-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em; color: var(--ebony);
  position: relative; transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--oak); }
.nav-link:hover::after { width: 100%; }

/* CTA Button */
.btn-cta {
  display: inline-block; padding: 12px 28px;
  background: var(--ebony); color: var(--white);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.04em; border-radius: 6px;
  transition: background 0.3s, transform 0.3s;
}
.btn-cta:hover { background: var(--gold); transform: translateY(-1px); }

/* Mobile Menu */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ebony); transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white); padding: 32px 40px;
  flex-direction: column; gap: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }

/* --- Hero Standalone --- */
.hero-standalone {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: var(--header-h) 40px 40px 5vw;
  z-index: 4;
}
.hero-text { max-width: 520px; position: relative; z-index: 2; }
.hero-label {
  display: inline-block; font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800; line-height: 1.0;
  color: var(--ebony); margin-bottom: 24px;
}
.hero-heading em { font-weight: 700; }
.hero-line { display: block; }
.hero-tagline {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--oak); font-weight: 300;
  max-width: 480px; margin-bottom: 36px;
}
.hero-cta { font-size: 0.9rem; padding: 16px 36px; }
.hero-icon { display: none; }
.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 5vw;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--oak); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Hero Image (right side) --- */
.hero-image-wrap {
  position: absolute; top: 0; right: 0;
  width: 62vw; height: 100vh;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-image-wrap img {
  max-width: 88%; max-height: 88%;
  object-fit: contain;
}

/* --- Scroll Container --- */

/* --- Feature Sections (fixed left column, fade only) --- */
.scroll-section {
  position: fixed; top: 0; left: 0;
  width: 38vw; height: 100vh;
  display: flex; align-items: center;
  padding-left: 5vw; padding-right: 3vw;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
  transition: opacity 0.4s ease;
}
.scroll-section .section-inner {
  pointer-events: auto;
  max-width: 460px;
}

/* Section inner styling */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--oak); margin-bottom: 16px;
}
.label-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; line-height: 1.1;
  color: var(--ebony); margin-bottom: 16px;
}
.section-body {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--oak); font-weight: 300;
}
.feature-cta { margin-top: 20px; }

/* --- Demo Section --- */
.section-demo {
  position: relative; z-index: 5;
  background: var(--ivory);
  padding: 120px 40px;
}
.demo-inner {
  max-width: 1000px; margin: 0 auto;
  text-align: center;
}
.center-label { justify-content: center; }
.section-title-large {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
  color: var(--ebony); margin-bottom: 16px;
}
.demo-subtitle {
  font-size: 1rem; color: var(--oak);
  font-weight: 300; max-width: 540px;
  margin: 0 auto 48px; line-height: 1.7;
}
.demo-video-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16/9; border-radius: 12px;
  overflow: hidden; background: var(--ebony);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.demo-video-wrap:hover {
  transform: scale(1.01);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
#demo-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.demo-video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; color: var(--linen);
  background: rgba(0,0,0,0.3);
  transition: opacity 0.4s;
  cursor: pointer;
}
.demo-video-overlay.hidden { opacity: 0; pointer-events: none; }
.play-button {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, color 0.3s;
}
.play-button:hover { transform: scale(1.1); color: var(--gold); }
.play-label {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.demo-cta { margin-top: 80px; display: block; width: fit-content; margin-left: auto; margin-right: auto; font-size: 1rem; padding: 18px 40px; }

/* --- Logos Section --- */
.section-logos {
  position: relative; z-index: 5;
  background: var(--white);
  padding: 80px 40px;
}
.logos-inner {
  max-width: 1100px; margin: 0 auto;
}
.testimonial-layout {
  display: grid; grid-template-columns: auto 1fr;
  gap: 64px; align-items: center;
}
.testimonial-logo img {
  height: 100px; width: auto;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem; font-style: italic;
  line-height: 1.8; color: var(--ebony);
  margin: 16px 0 24px;
}
.testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.author-name {
  font-size: 0.9rem; font-weight: 600;
  color: var(--ebony);
}
.author-detail {
  font-size: 0.8rem; color: var(--oak);
  font-weight: 300;
}

/* --- Metrics Section --- */
.section-metrics {
  position: relative; z-index: 5;
  background: var(--ebony);
  padding: 120px 40px;
}
.metrics-inner { max-width: 1100px; margin: 0 auto; }
.metrics-header { text-align: center; margin-bottom: 64px; }
.light-label { color: var(--linen); }
.gold-dot { background: var(--gold); }
.light-title { color: var(--white); }
.metrics-subtitle {
  font-size: 1rem; color: var(--linen);
  font-weight: 300; max-width: 480px;
  margin: 12px auto 0; line-height: 1.7;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.metric-card {
  text-align: center; padding: 32px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.metric-card:hover { border-color: var(--gold); }
.stat-prefix {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--gold);
  font-weight: 700;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 800; color: var(--gold);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--gold);
  font-weight: 700;
}
.stat-label {
  display: block; margin-top: 12px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--white);
}
.stat-desc {
  display: block; margin-top: 6px;
  font-size: 0.75rem; color: var(--linen);
  font-weight: 300;
}

/* --- Booking Section --- */
.section-booking {
  position: relative; z-index: 5;
  background: var(--ivory);
  padding: 120px 40px;
}
.booking-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.booking-subtitle {
  font-size: 1rem; color: var(--oak);
  font-weight: 300; line-height: 1.7;
  margin-bottom: 36px;
}
.booking-features { display: flex; flex-direction: column; gap: 20px; }
.booking-feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.feature-number {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  color: var(--gold); font-weight: 600;
  font-size: 0.85rem; border-radius: 50%;
}
.booking-feature strong {
  display: block; font-size: 0.9rem;
  font-weight: 600; color: var(--ebony);
  margin-bottom: 4px;
}
.booking-feature p {
  font-size: 0.82rem; color: var(--oak);
  font-weight: 300; line-height: 1.6;
}
.calendly-inline-widget {
  border-radius: 12px;
  overflow: hidden;
}

/* --- About Section --- */
.section-about {
  position: relative; z-index: 5;
  background: var(--white);
  padding: 120px 40px;
}
.about-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: center;
}
.about-photo img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
}
.about-body {
  font-size: 1rem; line-height: 1.8;
  color: var(--oak); font-weight: 300;
  margin-bottom: 16px;
}
.about-signature { margin-top: 24px; }
.signature-name {
  font-family: var(--font-display);
  font-size: 1rem; font-style: italic;
  color: var(--gold);
}

/* --- Footer --- */
.site-footer {
  background: var(--ebony);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
}
.footer-logo { height: 22px; filter: brightness(0) invert(1); }
.footer-copy {
  font-size: 0.75rem; color: var(--linen);
  font-weight: 300;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 2rem; color: var(--white);
  cursor: pointer; z-index: 201;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-content {
  width: 90vw; max-width: 1100px;
  aspect-ratio: 16/9;
}
#lightbox-video {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: #000;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --header-h: 60px; }

  .header-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-standalone {
    flex-direction: column; text-align: center;
    padding: 100px 24px 40px;
    min-height: auto;
  }
  .hero-heading { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-tagline { margin: 0 auto 28px; }
  .hero-scroll-hint { display: none; }
  .hero-icon {
    display: block; width: 180px; height: auto;
    margin: 0 auto 24px;
  }

  .hero-image-wrap { display: none; }

  .section-demo, .section-logos, .section-metrics,
  .section-booking, .section-about { padding: 80px 24px; }

  .booking-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 300px; margin: 0 auto; }

  .metrics-grid {
    grid-template-columns: repeat(5, 1fr); gap: 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .metric-card {
    min-width: 140px; padding: 20px 12px;
  }
  .stat-number { font-size: 2rem !important; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .testimonial-layout { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .testimonial-logo img { height: 72px; margin: 0 auto; }
}
