/* ==========================================================================
   XPIR LANDING PAGE — GLOBAL STYLES & SECTION LAYOUTS
   ========================================================================== */

/* --- 1. Global Reset & Base Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, var(--bg-primary) 0%, var(--bg-void) 100%);
  overflow-x: hidden;
}

::selection {
  background: var(--brand-primary);
  color: var(--text-primary);
}

/* --- 2. Typography & Editorial Accents --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: var(--font-body);
}

@keyframes text-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-gradient {
  background: linear-gradient(90deg, #EE5F2B 0%, #FF8A5B 20%, var(--text-primary) 45%, var(--text-primary) 55%, #FF8A5B 80%, #EE5F2B 100%);
  background-size: 200% auto;
  animation: text-shimmer 6s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-silver {
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- 3. Layout Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.section-spacing {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(238, 95, 43, 0.1);
  border: 1px solid rgba(238, 95, 43, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  color: var(--brand-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: var(--font-h1);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* --- 4. Hero Section --- */
.hero-section {
  position: relative;
  padding-top: 170px;
  padding-bottom: 100px;
  text-align: center;
  overflow: visible;
}

.hero-badge-container {
  margin-bottom: 24px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero-pill-badge:hover {
  border-color: rgba(238, 95, 43, 0.4);
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 10px var(--brand-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(238, 95, 43, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(238, 95, 43, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(238, 95, 43, 0); }
}

.hero-title {
  font-size: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.qr-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.qr-code-img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--text-primary);
  padding: 2px;
}

.qr-text {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.qr-text strong {
  color: var(--text-primary);
  display: block;
}

/* --- 5. Two Pillars Section --- */
.pillar-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.pillar-info-col h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pillar-feature-list {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.pillar-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(238, 95, 43, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pillar-visual-col {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

/* --- 6. Pricing & Comparison Table --- */
.pricing-grid {
  display: flex;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.featured {
  border-color: rgba(238, 95, 43, 0.4);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(238, 95, 43, 0.15);
}

.featured-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(238, 95, 43, 0.4);
}

.pricing-plan-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 24px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.pricing-period {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-feature.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.check-icon {
  color: var(--status-green);
  font-weight: 700;
}

.cross-icon {
  color: var(--text-muted);
}

/* --- 7. Compliance & Legal Footer --- */
.footer-section {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  background: var(--bg-void);
  color: var(--text-secondary);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-col p {
  margin: 16px 0 24px;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-col-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}

/* --- 8. Responsive Media Queries --- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .bento-col-8 { grid-column: span 12; }
  .bento-col-4 { grid-column: span 12; }
  .bento-col-6 { grid-column: span 12; }
  .pillar-card-content { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-left-top { left: 0%; }
  .chip-right-top { right: 0%; }
  .chip-left-bottom { left: 0%; }
  .chip-right-bottom { right: 0%; }
}

@media (max-width: 768px) {
  .section-spacing { padding: 80px 0; }
  .hero-section { padding-top: 130px; }
.pricing-grid {
  display: flex;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
}
  .calculator-card { padding: 28px; }
  .spatial-stage { min-height: 560px; }
  .phone-mockup-frame { width: 270px; }
  .stage-pedestal-grid { width: 500px; height: 380px; }
  .stage-pedestal-glow { width: 320px; height: 120px; }
  .footer-top-grid { grid-template-columns: 1fr; }
  .spatial-chip {
    padding: 8px 12px;
    gap: 8px;
  }
  .chip-icon { width: 30px; height: 30px; font-size: 1rem; }
  .chip-title { font-size: 0.75rem; }
  .chip-meta { font-size: 0.65rem; }
  .chip-left-mid, .chip-right-mid { display: none; } /* Hide middle chips on tiny screens for cleaner layout */
}

/* ==========================================================================
   2026 UI MOTION & SCROLL ANIMATIONS
   ========================================================================== */

/* 1. Hero Load Animation (No Scroll needed, just on load) */
@keyframes hero-fade-up {
  0% { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-content h1 {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}

.hero-cta-group {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

/* 2. Scroll-Driven Reveal (Viewport Entry) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    
    @keyframes scroll-reveal-up {
      from {
        opacity: 0.1;
        transform: translateY(80px) scale(0.95);
        filter: blur(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
      }
    }

    .scroll-reveal {
      animation: scroll-reveal-up linear both;
      animation-timeline: view();
      /* Start animating 10% into view, finish animating when it's 30% into the viewport */
      animation-range: entry 5% cover 20%;
    }
    
    /* Staggered features */
    .scroll-reveal-stagger {
      animation: scroll-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}
