/* ═══════════════════════════════════════════════
   MIRRORSHADES STUDIO - Main Stylesheet
   Luxury Tech Theme
   ═══════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg-deep:      #000000;
  --bg-surface:   #05050a;
  --bg-card:      rgba(255, 255, 255, 0.02);
  --bg-card-hover:rgba(255, 255, 255, 0.04);

  --accent:       #00e5ff;
  --accent-dim:   rgba(0, 229, 255, 0.1);
  --accent-glow:  rgba(0, 229, 255, 0.2);
  --accent-warm:  #ff3c7f;

  --text-primary: #ffffff;
  --text-secondary:#a0a0b5;
  --text-muted:   #66667a;

  --border:       rgba(255, 255, 255, 0.05);
  --border-accent:rgba(0, 229, 255, 0.15);

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --radius:       12px;
  --radius-lg:    24px;
  --max-width:    1200px;
}

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

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

/* ═══════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 320px;
  padding: 0 24px;
}

.preloader-brand {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.progress-bar-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.1s ease;
}

.progress-text {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at -20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 120% 50%, rgba(255, 60, 127, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.7; }

/* ─── CUSTOM CURSOR ─── */
@media (hover: hover) {
  body, body * { cursor: none !important; }
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}

#custom-cursor.hovering {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── UTILITIES ─── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  opacity: 1;
  text-decoration: none;
}
.nav-brand span {
  font-weight: 300;
  color: var(--text-secondary);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 101;
}

.mobile-menu-btn.is-active svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  transform-origin: center;
}
.mobile-menu-btn.is-active svg line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.is-active svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  transform-origin: center;
}
.mobile-menu-btn svg line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
#hero {
  position: relative;
}

.hero-scroll-track {
  height: 300vh;
  position: relative;
}

.hero-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  /* Gradient mask to fade video into the background color below */
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: var(--bg-deep);
}

.cyber-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.03), transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.2;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

.hero-text-left {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text-right {
  text-align: right;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-mark {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-title span {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 420px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

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

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.4; height: 25px; }
}

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

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
#about {
  padding: 140px 0 100px;
  position: relative;
}

.about-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-body {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
  margin-bottom: 80px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: background 0.4s, border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.value-icon {
  margin-bottom: 24px;
  color: var(--text-primary);
  display: inline-flex;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   PRODUCT
   ═══════════════════════════════════════════════ */
#product {
  padding: 100px 0 120px;
  position: relative;
}

#product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.product-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.product-hero {
  display: flex;
  gap: 100px;
  align-items: center;
}

@media (min-width: 769px) {
  .product-hero-reverse {
    flex-direction: row-reverse;
  }
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
}

.product-description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.feature-pill {
  font-size: 12px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

/* ─── CTAs ─── */
.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  pointer-events: auto;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: rgba(255,255,255,0.8);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
}

/* ─── PHONE MOCKUP ─── */
.product-visual {
  flex-shrink: 0;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-surface);
  padding: 12px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-deep);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #050508;
  position: relative;
}

.mock-app {
  padding: 44px 20px 20px;
  height: 100%;
}

.mock-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}

.mock-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-section-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.mock-tool-hero {
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.mock-tool-row {
  display: flex;
  gap: 8px;
}

.mock-tool-small {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mock-tool-sm {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ═══════════════════════════════════════════════
   COMING SOON
   ═══════════════════════════════════════════════ */
#coming-soon {
  padding: 120px 0;
  position: relative;
}

#coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.coming-soon-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}


.coming-soon-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.coming-soon-body {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-mark {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  opacity: 0.5;
}

.footer-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}
.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #custom-cursor {
    display: none !important;
  }

  .nav-inner {
    padding: 12px 24px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    gap: 32px;
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 100;
  }

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

  .nav-links a {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    width: 100%;
  }
  .hero-text-right {
    text-align: left;
    width: 100%;
  }
  .hero-subtitle {
    max-width: 100%;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .product-hero {
    flex-direction: column;
    gap: 60px;
  }
  .product-cta {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Screen reader only utility for SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
  border-radius: 50px;
  padding: 12px 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.toast-content svg {
  color: #00e5ff;
}
