/* ═══════════════════════════════════════════════════
   WINDOWS OFFICE KEYS — Scroll-Driven Premium Site
   Aesthetic: Dark luxury tech · Editorial typography
   ═══════════════════════════════════════════════════ */

:root {
  --bg-light: #0c0e14;
  --bg-dark: #060810;
  --bg-accent: #0a1628;
  --text-on-dark: #e8e4df;
  --text-on-light: #e8e4df;
  --text-muted: #6b7080;
  --accent-blue: #3b82f6;
  --accent-glow: #60a5fa;
  --accent-cyan: #22d3ee;
  --accent-purple: #a78bfa;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

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

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg-light);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ LOADER ═══ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #060810;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-brand {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.loader-accent {
  color: var(--accent-blue);
  margin-left: 0.3em;
}
.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 1rem;
}
#loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 999px;
  transition: width 0.15s linear;
}
#loader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ═══ HEADER ═══ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(6,8,16,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.nav-logo span { color: var(--accent-blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-cta {
  padding: 0.55rem 1.4rem !important;
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 6px;
  color: var(--accent-blue) !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--accent-blue) !important;
  color: #fff !important;
  box-shadow: 0 0 30px rgba(59,130,246,0.2);
}

/* ═══ HERO ═══ */
.hero-standalone {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 6vw;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(6,8,16,0.8) 0%, rgba(6,8,16,0) 100%);
  overflow: hidden;
}
.hero-standalone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-standalone .section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(15deg);
  margin-right: 0.2em;
}
.hero-heading .word.accent {
  color: var(--accent-blue);
  font-style: italic;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(10px);
}
.scroll-indicator svg {
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══ CANVAS ═══ */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ═══ DARK OVERLAY ═══ */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ═══ MARQUEE ═══ */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: -10%;
  z-index: 9;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  will-change: opacity;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 14vw;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  will-change: transform;
  user-select: none;
}

/* ═══ SCROLL CONTAINER ═══ */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 10;
}

/* ═══ SCROLL SECTIONS ═══ */
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.scroll-section > * { pointer-events: auto; }

.section-inner {
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(6,8,16,0.82) 0%, rgba(6,8,16,0.6) 100%);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Side alignment — product in canvas occupies center */
.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
}
.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
}
.align-left .section-inner,
.align-right .section-inner {
  max-width: 40vw;
}

/* ═══ SECTION TYPOGRAPHY ═══ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1.2rem;
  display: block;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.5);
}
.section-heading em {
  color: var(--accent-blue);
  font-style: italic;
}
.section-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: #c0c4d0;
  max-width: 420px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.6);
}
.section-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* ═══ STATS ═══ */
.section-stats {
  justify-content: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 5vw;
  text-align: center;
  background: rgba(6,8,16,0.88);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.04);
}
.stat { opacity: 1; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--text-on-dark);
  display: inline;
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--accent-blue);
  margin-left: 0.1em;
  font-style: italic;
}
.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ═══ CTA ═══ */
.section-cta {
  justify-content: center;
  text-align: center;
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: rgba(6,8,16,0.88);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.04);
}
.cta-inner .section-heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
  text-shadow: none;
}
.cta-inner .section-body {
  max-width: 100%;
  text-align: center;
  margin: 0 auto 2rem;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 10;
}
.cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 8px 30px rgba(59,130,246,0.5), 0 0 60px rgba(59,130,246,0.3);
  color: #ffffff;
}

/* ═══ GRAIN OVERLAY ═══ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
  .hero-heading { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-standalone { padding: 0 5vw; }

  .nav-links a:not(.nav-cta) { display: none; }

  #scroll-container { height: 600vh; }

  .align-left,
  .align-right {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
  }
  .scroll-section.section-content {
    background: rgba(6,8,16,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0;
  }
  .section-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .marquee-text { font-size: 25vw; }
  .cta-inner .section-heading { font-size: clamp(2.5rem, 10vw, 4rem); }
}

/* ═══ SELECTION ═══ */
::selection {
  background: rgba(59,130,246,0.25);
  color: #fff;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.4); }
