:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #0077e6;
  --secondary: #1a1a2e;
  --accent: #FF2A3A;
  --accent-hover: #d91e2d;
  --background: #0d1117;
  --surface: #161b22;
  --surface-light: #21262d;
  --surface-hover: #30363d;
  --text: #f0f6fc;
  --text-muted: #8b949e;
  --text-secondary: #c9d1d9;
  --border: #30363d;
  --success: #3fb950;
  --gradient: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
  --gradient-warm: linear-gradient(135deg, #0066cc 0%, #0099cc 50%, #00d4ff 100%);
  --shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 102, 204, 0.2);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  scroll-snap-type: y proximity;
  background: #0D0D0D;
}

section[data-scroll-section] {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Hero fills viewport but doesn't snap */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: none;
}

.reviews, .faq {
  scroll-snap-align: none;
}

.cta[data-scroll-section] {
  min-height: 60vh;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Header on non-home pages */
body:not(.home-page) .header {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.nav-desktop {
  display: none;
  gap: 8px;
}

.nav-desktop a {
  padding: 10px 18px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--text);
  background: var(--surface-light);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 10px;
  border-radius: var(--radius);
}

.nav-toggle:hover {
  background: var(--surface-light);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-mobile.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  padding: 14px 18px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-mobile a:hover {
  background: var(--surface-light);
  color: var(--text);
}

/* Hero Section (overlaid on 3D canvas) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 42, 58, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 42, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 102, 204, 0.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-devices {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-device {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 60px;
  transition: all 0.3s ease;
}

.hero-device:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-device img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features Section */
.features {
  background: var(--surface);
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.feature-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-card h4 {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

/* Pricing Section */
.pricing-preview {
  background: var(--background);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(0, 102, 204, 0.08) 100%);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e74c3c;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.price .original {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-right: 8px;
  font-weight: 500;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.price-note {
  text-align: center;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* Reviews Section */
.reviews {
  background: var(--surface);
  overflow: hidden;
  padding: 80px 0;
}

.reviews h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.reviews-slider {
  overflow: hidden;
  padding: 20px 0;
}

.reviews-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 20px 0;
  will-change: transform;
}

@keyframes scroll-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 320px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.review-device {
  width: 180px;
  height: 380px;
  background: var(--background);
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--surface-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.review-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.review-placeholder {
  font-size: 3rem;
  opacity: 0.2;
}

.review-content {
  text-align: center;
}

.review-stars {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.review-author {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Devices Section */
.devices {
  background: var(--background);
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.device-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.device-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.device-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.device-icon-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.device-card h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text);
}

.device-card h5 {
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.device-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: background 0.2s ease;
}

.faq-item summary:hover {
  background: var(--surface-hover);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  font-weight: 400;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  text-align: center;
  min-height: 60vh;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 42, 58, 0.12) 0%, transparent 60%),
    #0D0D0D;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Contact CTA Button (placeholder for future use) */

/* Blog Page */
.blog-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--surface);
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 60px 0;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-light);
}

.blog-card-content {
  padding: 24px;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-link {
  gap: 10px;
  color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    gap: 4px;
  }

  .nav-toggle {
    display: none;
  }

  .hero-stats {
    gap: 70px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .pricing-card.featured {
    order: -1;
  }

  .review-card {
    flex: 0 0 280px;
  }

  .container {
    padding: 0 20px;
  }

  section .container > *:not(.pricing-grid):not(.features-grid):not(.reviews-slider) {
    text-align: center;
  }

  section .container h1,
  section .container h2,
  section .container p {
    text-align: center;
  }

  .hero p {
    text-align: center;
    max-width: 100%;
  }

  .features-grid,
  .pricing-grid {
    text-align: center;
  }

  .pricing-card {
    text-align: left;
  }

  .features h2,
  .pricing h2,
  .reviews h2,
  .blog-hero h1,
  .blog-hero p {
    text-align: center;
  }

  .features p,
  .pricing p,
  .blog-hero p {
    text-align: center;
    max-width: 100%;
  }

  .footer {
    text-align: center;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Showcase Section */
.showcase-section {
  padding: 80px 0;
  background: var(--surface);
}

.showcase-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.showcase-intro h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.showcase-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.showcase-carousel {
  overflow: hidden;
  margin-bottom: 40px;
  padding: 20px 0;
}

.showcase-carousel .carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.showcase-carousel .carousel-track img {
  width: 200px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-carousel {
  overflow: hidden;
  padding: 20px 0;
}

.brand-carousel .carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  will-change: transform;
}

.brand-carousel .carousel-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.brand-carousel .carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollBrand {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .showcase-intro h2 {
    font-size: 1.6rem;
  }
  .showcase-intro p {
    font-size: 0.95rem;
  }
  .showcase-carousel .carousel-track img {
    width: 150px;
    height: 90px;
  }
  .brand-carousel .carousel-track img {
    height: 30px;
  }
}

/* ============== Full-page 3D Background ============== */

#bg-3d-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* All content sections stack above noise overlay */
.header, .hero, section, main, footer {
  position: relative;
  z-index: 5;
}

/* Footer always on top */
.footer {
  z-index: 10 !important;
  position: relative !important;
}

/* Gradient vignette overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, transparent 0%, rgba(13, 17, 23, 0.4) 100%);
}

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============== 3D & Animation Helpers ============== */

/* Perspective wrapper for 3D card effects */
.perspective-wrap {
  perspective: 1200px;
}

.perspective-wrap > * {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Glass-morphism */
.glass {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-strong {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 30px rgba(0, 102, 204, 0.15), 0 0 60px rgba(0, 102, 204, 0.05);
}

.glow-text {
  text-shadow: 0 0 40px rgba(0, 102, 204, 0.3);
}

/* Hero canvas takes full section */
.hero #hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

/* Pricing card 3D hover baseline */
.pricing-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Blog card 3D hover baseline */
.blog-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Feature card hover enhancement */
.feature-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Device card hover depth */
.device-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* CTA magnetic button */
.cta .btn {
  will-change: transform;
  position: relative;
  z-index: 1;
}

/* FAQ animation-safe overflow */
.faq-item p {
  overflow: hidden;
}

/* Showcase 3D carousel canvas */
.showcase-3d-canvas {
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .showcase-3d-canvas {
    height: 260px;
  }
}

/* Reviews hover depth */
.review-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Page hero subpage animation base */
.blog-hero, .install-hero {
  overflow: hidden;
}

/* Installation tab transitions */
.install-panel {
  overflow: hidden;
}

/* Loading shimmer for blog cards */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.blog-card .blog-card-image {
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

/* Section reveal base */
section {
  overflow: hidden;
}

/* Device floating icons */
.device-icon-img {
  will-change: transform;
}

/* Fix for Three.js canvas layering */
.cta .container {
  position: relative;
  z-index: 1;
}

/* Smooth scrollbar for the whole page */
html {
  scroll-behavior: smooth;
}

/* 404 Three.js canvas */
.error-404 {
  position: relative;
}

.error-404 canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.error-404 > * {
  position: relative;
  z-index: 1;
}

/* Ensure text is readable above hero canvas */
.hero h1, .hero-subtitle, .hero-buttons, .hero-devices, .hero-stats {
  position: relative;
  z-index: 2;
}

/* ── News / WC 2026 Programmatic Styles ── */
.wc-hero { padding: 120px 0 60px; text-align: center; }
.wc-hero h1 { font-size: 2.8rem; margin-bottom: 16px; letter-spacing: -0.5px; }
.wc-hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.wc-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }
.wc-stages { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }
.wc-stage { margin-bottom: 40px; }
.wc-stage h2 { font-size: 1.6rem; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.wc-stage h2 .count { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all 0.3s ease; display: flex; flex-direction: column; gap: 8px; }
.wc-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.wc-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.wc-card-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wc-card-team { font-size: 0.9rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.wc-card-vs { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.wc-card-info { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px; }
.wc-card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-light); font-size: 0.8rem; font-weight: 600; margin-top: 4px; }
.wc-card:hover .wc-card-link { gap: 8px; }

.match-header { text-align: center; margin-bottom: 40px; }
.match-flags { font-size: 4rem; display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 16px; line-height: 1; }
.match-vs { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; }
.match-title { font-size: 1.8rem; line-height: 1.3; margin-bottom: 8px; color: var(--text); }
.match-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.match-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 32px; font-size: 0.9rem; color: var(--text-secondary); }
.match-meta-item { display: flex; align-items: center; gap: 8px; }
.stage-label { display: inline-block; background: var(--surface-light); color: var(--text-muted); padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; margin-bottom: 16px; }

.prob-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 40px; }
.prob-block h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--text); text-align: center; }
.prob-bars { display: flex; flex-direction: column; gap: 16px; }
.prob-row { display: flex; align-items: center; gap: 12px; }
.prob-team { width: 120px; font-size: 0.9rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.prob-bar-wrap { flex: 1; height: 28px; background: var(--surface-light); border-radius: 14px; overflow: hidden; position: relative; }
.prob-bar { height: 100%; border-radius: 14px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 0.75rem; font-weight: 700; color: #fff; transition: width 0.6s ease; min-width: 28px; }
.prob-bar-home { background: linear-gradient(90deg, var(--primary), #0099ff); }
.prob-bar-away { background: linear-gradient(90deg, #ff4444, var(--accent)); }
.prob-bar-draw { background: linear-gradient(90deg, var(--text-muted), #666); justify-content: center; padding-right: 0; }
.prob-value { font-size: 0.85rem; font-weight: 700; color: var(--text); width: 40px; text-align: right; flex-shrink: 0; }

.broadcast-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.broadcast-table th, .broadcast-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.broadcast-table th { background: var(--surface); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }
.broadcast-table td { color: var(--text-secondary); }
.broadcast-table tr.sveadigital td { background: rgba(0,102,204,0.06); font-weight: 600; color: var(--text); }
.broadcast-table .check { color: var(--success); }
.broadcast-table .cross { color: var(--accent); opacity: 0.6; }

.upsell-box { background: linear-gradient(135deg, rgba(0,102,204,0.08) 0%, rgba(255,42,58,0.06) 100%); border: 1px solid rgba(255,42,58,0.2); border-radius: var(--radius-lg); padding: 32px; margin: 40px 0; text-align: center; }
.upsell-box h3 { font-size: 1.4rem; margin-bottom: 12px; background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.upsell-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.upsell-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; text-align: left; max-width: 600px; margin-left: auto; margin-right: auto; }
.upsell-feature { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.upsell-feature::before { content: '\2713'; color: var(--success); font-weight: 700; }
.upsell-plans { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.upsell-plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; text-align: center; min-width: 100px; }
.upsell-plan-name { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.upsell-plan-price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.upsell-plan-period { font-size: 0.7rem; color: var(--text-muted); }
.upsell-plan.featured { border-color: var(--primary); background: rgba(0,102,204,0.08); }
.upsell-plan.featured .upsell-plan-name { color: var(--primary-light); }

.seo-meta { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 40px; }

