/* 
  NeoAR Concept - Premium Design System & UI Styling
  Derived from DESIGN.md design tokens
*/

:root {
  /* Colors */
  --colors-primary: #7c3aed;
  --colors-secondary: #0f172a;
  --colors-tertiary: #38bdf8;
  --colors-background: #121212;
  --colors-surface: #0f172a;
  --colors-surface-elevated: #172554;
  --colors-on-surface: #eff6ff;
  --colors-on-surface-muted: #cbd5e1;
  --colors-neutral: #94a3b8;
  --colors-border: rgba(255, 255, 255, 0.12); /* #ffffff1f equivalent */
  --colors-error: #ef4444;

  /* Typography */
  --font-family: "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rounded Corners */
  --rounded-none: 0px;
  --rounded-sm: 10px;
  --rounded-md: 18px;
  --rounded-lg: 24px;
  --rounded-xl: 30px;
  --rounded-full: 999px;

  /* Spacing */
  --spacing-xs: 2px;
  --spacing-sm: 10px;
  --spacing-md: 18px;
  --spacing-lg: 22px;
  --spacing-xl: 30px;

  /* Shadows & Glows */
  --shadow-button-primary: rgba(79, 70, 229, 0.3) 0px 16px 34px 0px, rgba(124, 58, 237, 0.18) 0px 0px 30px 0px;
  --shadow-card: rgba(15, 23, 42, 0.08) 0px 14px 28px 0px;
  --shadow-glow-purple: 0 0 25px rgba(124, 58, 237, 0.25);
  --shadow-glow-cyan: 0 0 25px rgba(56, 189, 248, 0.25);
  
  /* Transition durations */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
}

/* Reset & Global styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--colors-background);
  color: var(--colors-on-surface);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body {
  background-color: var(--colors-background);
  color: var(--colors-on-surface);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--colors-background);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--rounded-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--colors-primary);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Typography Classes matching DESIGN.md specification */
.headline-display {
  font-size: 56.7px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -2.268px;
}

.headline-lg {
  font-size: 37.8px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.134px;
}

.headline-md {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0px;
}

.body-lg {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.74;
  letter-spacing: 0px;
}

.body-md {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0px;
}

.body-sm {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0px;
}

.label-lg {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0px;
}

.label-md {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0px;
}

.label-sm {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  outline: none;
  gap: var(--spacing-sm);
  user-select: none;
}

.btn-primary {
  background-color: var(--colors-primary);
  color: #ffffff;
  border: 1px solid #a78bfa3d;
  border-radius: var(--rounded-full);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  min-width: 143px;
  min-height: 46px;
  text-decoration: none;
  box-shadow: var(--shadow-button-primary);
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0px 20px 40px rgba(124, 58, 237, 0.4), 0 0 35px rgba(124, 58, 237, 0.3);
  background-color: #8b5cf6;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: var(--colors-surface);
  color: #ffffff;
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-full);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  min-width: 143px;
  min-height: 46px;
  text-decoration: none;
  box-shadow: none;
  font-family: inherit;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-link {
  background-color: transparent;
  color: var(--colors-on-surface);
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
  min-height: 0;
  text-decoration: underline;
  box-shadow: none;
  font-family: inherit;
}

.btn-link:hover {
  color: var(--colors-tertiary);
}

/* Cards */
.card {
  background-color: var(--colors-surface);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  color: var(--colors-on-surface);
  transition: all var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-4px);
}

/* Badges & Chips */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--rounded-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.chip-cyan {
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--colors-tertiary);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.chip-purple {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--colors-primary);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.chip-muted {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--colors-on-surface-muted);
  border: 1px solid var(--colors-border);
}

/* Background Glowing Elements */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.glow-purple {
  background: var(--colors-primary);
  width: 400px;
  height: 400px;
}

.glow-cyan {
  background: var(--colors-tertiary);
  width: 350px;
  height: 350px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--colors-border);
  padding: var(--spacing-md) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--colors-primary);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--colors-tertiary);
  border-radius: var(--rounded-full);
  display: inline-block;
  animation: pulse-glow 2s infinite alternate;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-link {
  color: var(--colors-on-surface-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--colors-on-surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 102;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast) ease;
}

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--colors-secondary);
  border-left: 1px solid var(--colors-border);
  padding: 80px var(--spacing-xl) var(--spacing-xl);
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0px 40px rgba(0, 0, 0, 0.5);
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-drawer-menu .nav-link {
  font-size: 18px;
  padding: 8px 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.hero-headline {
  margin-top: var(--spacing-sm);
  color: var(--colors-on-surface);
}

.hero-headline span.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, var(--colors-primary) 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--colors-on-surface-muted);
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.hero-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--colors-border);
  padding-top: var(--spacing-lg);
  width: 100%;
}

.hero-feature-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--colors-neutral);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-feature-chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--colors-tertiary);
}

.hero-helper-note {
  color: var(--colors-neutral);
  font-size: 12px;
  margin-top: var(--spacing-xs);
}

/* Hero Media Panel / Visualizer Mockup */
.hero-media {
  position: relative;
  z-index: 1;
}

.media-panel-container {
  position: relative;
  border-radius: var(--rounded-xl);
  border: 1px solid var(--colors-border);
  background-color: var(--colors-surface);
  overflow: hidden;
  box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow-purple);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.media-panel-container:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--colors-primary);
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.media-panel-container:hover .media-image {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, rgba(15, 23, 42, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-xl);
  opacity: 1;
  transition: opacity var(--transition-normal) ease;
}

.media-overlay-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.media-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.media-title {
  color: #ffffff;
  font-weight: 700;
}

.media-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--colors-tertiary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.media-play-btn {
  background-color: var(--colors-primary);
  border: none;
  width: 54px;
  height: 54px;
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-button-primary);
  cursor: pointer;
  transition: all var(--transition-normal) ease;
}

.media-play-btn:hover {
  transform: scale(1.1);
  background-color: #8b5cf6;
}

.media-play-btn svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* QR Scanner Box hover element */
.media-qr-hover {
  position: absolute;
  top: var(--spacing-xl);
  right: var(--spacing-xl);
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--colors-border);
  padding: 12px;
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.media-panel-container:hover .media-qr-hover {
  transform: translateY(0);
  opacity: 1;
}

.qr-code-mini {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  padding: 4px;
  border-radius: var(--rounded-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-mini svg {
  width: 100%;
  height: 100%;
}

.qr-text {
  display: flex;
  flex-direction: column;
}

.qr-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.qr-desc {
  font-size: 10px;
  color: var(--colors-neutral);
}

/* Stats Strip - Two Columns */
.stats-section {
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--colors-surface);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-lg);
  padding: 45px var(--spacing-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--colors-tertiary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-value {
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, var(--colors-on-surface-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-sm);
}

.stat-card:hover .stat-value {
  background: linear-gradient(135deg, #ffffff 0%, var(--colors-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--colors-neutral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Interactive Product Showcase Section */
.showcase-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 50px;
  text-align: left;
}

.section-eyebrow {
  color: var(--colors-primary);
  margin-bottom: var(--spacing-sm);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.product-card {
  position: relative;
  background-color: var(--colors-surface);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow-purple);
}

.product-card.active {
  border-color: var(--colors-primary);
  box-shadow: var(--shadow-glow-purple);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #080d1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 2;
}

.product-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex-grow: 1;
}

.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-title {
  color: #ffffff;
  font-weight: 700;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--colors-tertiary);
}

.product-description {
  color: var(--colors-on-surface-muted);
  font-size: 13px;
  min-height: 42px;
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.product-actions .btn {
  flex: 1;
}

/* Feature/Comparison Section */
.features-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.full-width-panel {
  background-color: var(--colors-surface);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-lg);
  padding: 50px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.full-width-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.panel-content {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-top: 40px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.feature-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-md);
  background-color: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colors-primary);
  flex-shrink: 0;
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-title {
  color: #ffffff;
}

.feature-desc {
  color: var(--colors-on-surface-muted);
}

/* Comparison Table */
.comparison-container {
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-md);
  padding: 30px;
}

.comparison-title {
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--colors-border);
}

.comparison-table th {
  color: var(--colors-neutral);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding-bottom: 16px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #ffffff;
}

.comparison-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--rounded-sm);
  font-size: 11px;
  font-weight: 700;
}

.comparison-tag.yes {
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--colors-tertiary);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.comparison-tag.no {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--colors-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* CTA Elevated Panel Section */
.cta-section {
  padding: 60px 0 100px 0;
  position: relative;
  z-index: 1;
}

.cta-panel {
  background: linear-gradient(135deg, var(--colors-surface-elevated) 0%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--rounded-xl);
  padding: 60px 80px;
  text-align: center;
  box-shadow: 0px 40px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-panel-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.cta-headline {
  color: #ffffff;
}

.cta-description {
  color: var(--colors-on-surface-muted);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.cta-footer-note {
  font-size: 12px;
  color: var(--colors-neutral);
}

/* Interactive AR Simulator Modal */
.ar-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 13, 26, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ar-modal.open {
  display: flex;
  opacity: 1;
}

.ar-modal-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  width: 100%;
  max-width: 900px;
  background-color: var(--colors-secondary);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  box-shadow: 0px 40px 100px rgba(0, 0, 0, 0.8);
  height: calc(100vh - 40px);
  max-height: 700px;
  animation: slide-up-modal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ar-simulator-view {
  position: relative;
  background-color: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

/* Close Modal Button */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-full);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast) ease;
}

.modal-close-btn:hover {
  background-color: var(--colors-error);
  border-color: var(--colors-error);
  transform: rotate(90deg);
}

/* Smartphone Mockup Frame inside modal */
.phone-frame {
  width: 290px;
  height: 560px;
  border-radius: 40px;
  background-color: #1e293b;
  border: 8px solid #0f172a;
  box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Speaker Notch */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background-color: #0f172a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-camera {
  width: 6px;
  height: 6px;
  background-color: #1e293b;
  border-radius: 50%;
  margin-right: 8px;
}

.phone-speaker {
  width: 35px;
  height: 3px;
  background-color: #334155;
  border-radius: 3px;
}

/* Camera screen (mock camera background) */
.phone-screen {
  width: 100%;
  height: 100%;
  background-image: url('assets/room_background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 16px 16px;
}

/* Phone UI Overlay */
.phone-header-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.phone-ar-status {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: var(--rounded-full);
  font-size: 10px;
  color: var(--colors-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.phone-center-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 120px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--rounded-md);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.phone-center-target::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--colors-tertiary);
  border-top: 2px solid var(--colors-tertiary);
  position: absolute;
  top: -2px;
  left: -2px;
}
.phone-center-target::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--colors-tertiary);
  border-bottom: 2px solid var(--colors-tertiary);
  position: absolute;
  bottom: -2px;
  right: -2px;
}

/* Floor Grid Overlay */
.phone-floor-grid {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) rotateX(65deg);
  width: 220px;
  height: 220px;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  transform-origin: bottom center;
  opacity: 0.6;
  pointer-events: none;
  animation: grid-pulse-anim 4s infinite alternate;
}

/* Interactive furniture element inside phone screen */
.phone-furniture-object {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.0) rotate(0deg);
  width: 170px;
  height: 170px;
  z-index: 3;
  cursor: grab;
  filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 0.65));
  transition: filter var(--transition-fast) ease;
  touch-action: none;
}

.phone-furniture-object:active {
  cursor: grabbing;
  filter: drop-shadow(0px 25px 25px rgba(0, 0, 0, 0.5)) brightness(1.05);
}

.phone-furniture-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Scan line animation overlay */
.phone-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, transparent, var(--colors-tertiary), transparent);
  box-shadow: 0 0 10px var(--colors-tertiary);
  opacity: 0.7;
  pointer-events: none;
  z-index: 4;
  animation: scan-line-anim 6s infinite linear;
}

/* Bottom Controls UI */
.phone-bottom-ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 4;
}

.phone-controls-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.phone-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--rounded-full);
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--colors-border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--transition-fast) ease;
}

.phone-circle-btn:hover {
  background-color: var(--colors-primary);
  border-color: var(--colors-primary);
}

.phone-circle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.phone-btn-place {
  background-color: var(--colors-primary);
  border: 1px solid #a78bfa3d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: var(--rounded-full);
  flex-grow: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transition: all var(--transition-fast) ease;
}

.phone-btn-place:hover {
  background-color: #8b5cf6;
}

.phone-btn-place.placed {
  background-color: var(--colors-tertiary);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.phone-home-indicator {
  width: 80px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  margin: 0 auto;
}

/* Sidebar Details inside modal */
.ar-modal-sidebar {
  padding: 30px;
  background-color: var(--colors-secondary);
  border-left: 1px solid var(--colors-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.sidebar-title {
  color: #ffffff;
  margin-top: var(--spacing-xs);
}

.sidebar-specs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  border-top: 1px solid var(--colors-border);
  padding-top: var(--spacing-md);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.spec-label {
  color: var(--colors-neutral);
}

.spec-val {
  color: #ffffff;
  font-weight: 600;
}

/* Simulator Instructions Info */
.sidebar-instructions {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-sm);
  padding: var(--spacing-md);
  font-size: 13px;
  color: var(--colors-on-surface-muted);
}

.instruction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--spacing-sm);
}

.instruction-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instruction-list li::before {
  content: "•";
  color: var(--colors-tertiary);
  font-size: 18px;
  line-height: 1;
}

/* Modal Selector Row */
.sidebar-product-switcher {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.switcher-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--colors-neutral);
  letter-spacing: 0.05em;
}

.switcher-items {
  display: flex;
  gap: var(--spacing-sm);
}

.switcher-btn {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--colors-border);
  border-radius: var(--rounded-sm);
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast) ease;
}

.switcher-btn:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.switcher-btn.active {
  background-color: rgba(124, 58, 237, 0.1);
  border-color: var(--colors-primary);
}

.switcher-thumbnail {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
}

.switcher-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--colors-on-surface-muted);
}

.switcher-btn.active .switcher-name {
  color: #ffffff;
}

/* Footer Section */
.site-footer {
  background-color: #090d16;
  border-top: 1px solid var(--colors-border);
  padding: 60px 0 40px 0;
  position: relative;
  z-index: 1;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-brand-desc {
  color: var(--colors-neutral);
  font-size: 14px;
  max-width: 280px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer-links-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  color: var(--colors-neutral);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast) ease;
}

.footer-links a:hover {
  color: var(--colors-on-surface);
}

.footer-bottom {
  border-top: 1px solid var(--colors-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--colors-neutral);
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social-link {
  color: var(--colors-neutral);
  transition: color var(--transition-fast) ease;
}

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

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Animations */
@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

@keyframes grid-pulse-anim {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
  100% {
    opacity: 0.4;
  }
}

@keyframes scan-line-anim {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

@keyframes slide-up-modal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 600px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-feature-chips {
    justify-content: center;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .headline-display {
    font-size: 38px;
    letter-spacing: -1.2px;
  }

  .headline-lg {
    font-size: 28px;
    letter-spacing: -0.6px;
  }

  .nav-menu, .nav-actions .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card {
    padding: 30px var(--spacing-md);
  }

  .stat-value {
    font-size: 48px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .full-width-panel {
    padding: 30px 20px;
  }

  .comparison-container {
    padding: 15px;
    overflow-x: auto;
  }

  .cta-panel {
    padding: 40px 20px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }

  .cta-actions .btn {
    width: 100%;
  }

  .ar-modal-container {
    grid-template-columns: 1fr;
    height: 100%;
    max-height: none;
  }

  .ar-modal-sidebar {
    height: 350px;
    border-left: none;
    border-top: 1px solid var(--colors-border);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .headline-display {
    font-size: 32px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .phone-frame {
    width: 260px;
    height: 500px;
  }
}
