:root {
  --bg-dark: #0b0d12;
  --bg-deep: #05070a;
  --bg-elev: #111827;

  --accent: #38bdf8;
  --accent-2: #60a5fa;
  --accent-glow: rgba(56, 189, 248, 0.38);
  --secondary: #7c3aed;

  --text-main: #f8fafc;
  --text-soft: #e2e8f0;
  --text-muted: #94a3b8;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.10);

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.14);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.06), transparent 28%),
    linear-gradient(180deg, #0b0d12 0%, #090b10 45%, #06080c 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- NOISE TEXTURE REMOVED --- */
.noise-overlay {
  display: none;
}

/* --- AMBIENT BACKGROUND --- */
.ambient-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(8, 10, 14, 0.62), rgba(8, 10, 14, 0.86)),
    url('images/restore-bg.webp') center/cover no-repeat;
}

.ambient-mesh::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 40%, rgba(56, 189, 248, 0.08), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.10), transparent 26%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.03), transparent 20%);
  filter: blur(40px);
  z-index: 1;
}

.ambient-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
}
@keyframes pulse-bg {
  0% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

.scanlines {
  display: none;
}

/* Tech Borders Removed */
.glass-panel, .bento-item, .gallery-card, .video-container {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 24px -1px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.glass-panel:hover, .bento-item:hover, .gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 40px -4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translateY(-4px);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.5;
}

.loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-content {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.loader-bar {
  width: 100%;
  height: 100%;
  background: var(--text-main);
  transform: translateX(-100%);
  animation: load 1.2s var(--ease-out) forwards;
}

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

/* --- NAVIGATION --- */
.floating-nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 18px;
  gap: 40px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(6, 8, 12, 0.72);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  width: max-content;
  max-width: 92vw;
}

.nav-logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.nav-logo svg {
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.3));
}

.nav-logo:hover svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.8));
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0,0,0,0.2) 0%, 
    rgba(0,0,0,0.5) 60%, 
    var(--bg-dark) 100%
  );
  z-index: 1;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
  padding: 0 20px;
  margin-top: -60px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.glitch-text {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  color: var(--text-main);
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255,255,255,0.10),
    0 0 50px rgba(56,189,248,0.10),
    0 12px 40px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 540px;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 1px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(8px); opacity: 0; }
}

/* Buttons */
.btn-cyber {
  position: relative;
  padding: 16px 36px;
  background: var(--text-main);
  color: #000;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transition: left 0.5s;
}

.btn-cyber:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-cyber:hover::before {
  left: 100%;
}

.btn-outline {
  padding: 16px 36px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* Hero Visual (Video) */
.hero-visual {
  position: relative;
  height: 400px;
  width: 100%;
}

.video-container {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  background: transparent;
  border: 1px solid var(--glass-border);
}

.trailer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.5s;
}

.video-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  pointer-events: none;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.1);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- BENTO GRID --- */
.bento-section {
  padding: 100px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header .accent {
  color: var(--accent);
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.8;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
}

.bento-item {
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bento-item::after {
  content: attr(data-index);
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.medium {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item.wide {
  grid-column: span 2;
  grid-row: span 1;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}

.bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transition: transform 0.7s var(--ease-out), opacity 0.3s;
  z-index: 0;
  mix-blend-mode: overlay;
}

.bento-item:hover .bento-bg {
  transform: scale(1.05);
  opacity: 0.6;
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat .lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-3d {
  font-size: 48px;
  margin-bottom: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@media (max-width: 968px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-item.large, .bento-item.wide {
    grid-column: span 1;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    height: 300px; /* Reduced height for mobile */
  }
}

/* --- GALLERY (MARQUEE SLIDER) --- */
.gallery-section {
  padding: 100px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  width: 100%;
  display: flex;
  overflow: hidden;
  /* Mask for smooth fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 24px;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

/* Pause on hover for better UX */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); } /* Shift by half width + half gap */
}

.gallery-card {
  width: 300px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  flex-shrink: 0; /* Prevent squishing */
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.3s;
  opacity: 0.8;
}

.gallery-card:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
}

.gallery-card:hover .card-caption {
  transform: translateY(0);
  opacity: 1;
}

/* --- CTA --- */
.final-cta {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px 140px;
}

.cta-container {
  padding: 100px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.4));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-container h2 {
  font-family: var(--font-display);
  font-size: 56px;
  margin-bottom: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cta-container p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
}

/* --- FOOTER --- */
.site-footer {
  background: #000;
  padding: 80px 20px 40px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 100px;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 48px;
  width: 48px;
  margin-bottom: 24px;
  opacity: 0.9;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.link-group h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.link-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

/* Spotlight Effect */
.bento-item, .glass-panel {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.bento-item::before, .glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.06), 
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.bento-item:hover::before, .glass-panel:hover::before {
  opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .large, .wide {
    grid-column: span 1;
    grid-row: auto;
  }
  
  .stat-row {
    justify-content: center; /* Center stats on mobile */
  }
  
  .nav-links {
    display: none;
  }
  
  .floating-nav {
    width: 90%;
    justify-content: space-between;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .cta-container {
    padding: 60px 20px;
  }
  
  .cta-container h2 {
    font-size: 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- LENIS RECOMMENDED CSS --- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
