/* =====================================================
   AMECO TECH — LED Landing Page
   ===================================================== */

:root {
  --bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --teal: #04b4c9;
  --yellow: #fff33b;
  --orange: #f3903f;
  --red: #e93e3a;
  --font: 'Montserrat', sans-serif;
  --z-loader: 9999;
  --z-header: 100;
  --z-canvas: 1;
  --z-overlay: 2;
  --z-marquee: 3;
  --z-sections: 4;
}

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

html { background: var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* =====================================================
   LOADER
   ===================================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 160px;
  height: auto;
  opacity: 0.9;
}

.loader-track {
  width: 240px;
  height: 2px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--teal));
  border-radius: 2px;
  transition: width 0.1s ease;
}

#loader-percent {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 1.5rem 4vw;
  mix-blend-mode: normal;
}

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

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-cta {
  color: var(--teal) !important;
  border: 1px solid var(--teal);
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: #000 !important;
}

/* =====================================================
   HERO
   ===================================================== */
.hero-standalone {
  position: relative;
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  overflow: hidden;
  z-index: 10;
}

.hero-inner {
  max-width: 80vw;
}

.hero-label {
  display: block;
  margin-bottom: 2rem;
}

.hero-heading {
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.hero-heading .word {
  display: block;
  overflow: hidden;
}

.hero-heading .word span {
  display: block;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  max-width: 400px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scroll-hint {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  color: var(--teal);
  animation: bounceDown 2s ease-in-out infinite;
}

.scroll-arrow svg { width: 100%; height: 100%; }

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =====================================================
   CANVAS
   ===================================================== */
.canvas-wrap {
  position: fixed;
  top: 0;
  left: 33.333vw;
  right: 0;
  bottom: 0;
  z-index: var(--z-canvas);
  clip-path: circle(0% at 50% 50%);
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* =====================================================
   DARK OVERLAY
   ===================================================== */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-wrap {
  position: fixed;
  bottom: 6vh;
  left: 0;
  right: 0;
  z-index: var(--z-marquee);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-size: clamp(3.5rem, 10vw, 12vw);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.12);
  white-space: nowrap;
  will-change: transform;
}

/* =====================================================
   SCROLL CONTAINER
   ===================================================== */
#scroll-container {
  position: relative;
  height: 900vh;
}

/* =====================================================
   SCROLL SECTIONS
   ===================================================== */
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: var(--z-sections);
  padding: 4rem 0;
  pointer-events: none;
}

.scroll-section .section-inner,
.scroll-section .stats-grid {
  pointer-events: auto;
}

/* Side alignment */
.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 {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.section-heading {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.section-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-top: 1rem;
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.section-stats {
  left: 0;
  right: 0;
  padding: 4rem 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 4rem;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: clamp(1rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--teal);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #000;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(243, 144, 63, 0.35);
}

.cta-button svg {
  width: 16px;
  height: 16px;
  stroke: #000;
  transition: transform 0.3s;
}

.cta-button:hover svg { transform: translateX(4px); }

/* =====================================================
   GRADIENT ACCENT LINE — hero decoration
   ===================================================== */
.hero-standalone::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--yellow), var(--orange), transparent);
  opacity: 0.4;
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 768px) {
  #scroll-container { height: 600vh; }

  .canvas-wrap {
    left: 0;
  }

  /* Sections are fixed overlays on mobile — prevents cards scrolling over
     the fixed canvas, which creates a false "image shift" perception */
  .scroll-section {
    position: fixed !important;
    top: 50% !important;
  }

  .align-left,
  .align-right {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.55);
    padding: 1.5rem;
    border-left: 2px solid var(--teal);
  }

  .hero-heading { font-size: clamp(2.5rem, 13vw, 14rem); }
  .hero-tagline { max-width: 90vw; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .nav-links { display: none; }

  .marquee-text { font-size: 14vw; }
}
