/**
 * Visioneer Tech — Premium homepage base
 * Scoped to .is-premium-home so other routes stay untouched.
 */

.is-premium-home {
  background-color: var(--vt-bg);
  background-image: url("../../images/grid.svg");
  background-size: 90px 90px;
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--vt-text);
  font-family: var(--vt-font-body);
  /* clip keeps sticky working; hidden creates a scroll container and kills sticky */
  overflow-x: clip;
}

body.gl-site.is-premium-home,
.gl-site.is-premium-home {
  overflow-x: clip;
  background-color: var(--vt-bg);
  background-image: url("../../images/grid.svg");
  background-size: 90px 90px;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* Hide scrollbar — scroll still works via Lenis / wheel */
html.vt-premium-html,
html.vt-premium-html body,
body.is-premium-home {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.vt-premium-html::-webkit-scrollbar,
html.vt-premium-html body::-webkit-scrollbar,
body.is-premium-home::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.is-premium-home .gl-main {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Hide legacy home chrome that conflicts with premium experience */
.is-premium-home .gt-back-to-top,
.is-premium-home .mouseCursor,
.is-premium-home .gl-footer,
.is-premium-home .cta-strip,
.is-premium-home .gl-cta-strip {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Layout utilities                                                     */
/* ------------------------------------------------------------------ */

.vt-container {
  width: min(100% - (var(--vt-gutter) * 2), var(--vt-container));
  margin-inline: auto;
}

.vt-section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.vt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vt-accent);
}

.vt-display {
  font-family: var(--vt-font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--vt-text);
}

@media (min-width: 992px) {
  .is-premium-home .vt-display,
  .is-premium-home .vt-clients__heading,
  .is-premium-home .vt-projects__title,
  .is-premium-home .vt-stats__heading,
  .is-premium-home .vt-why__title,
  .is-premium-home .vt-faq__title,
  .is-premium-home .vt-cta__title,
  .is-premium-home .vt-belief__line,
  .is-premium-home .vt-process__headline {
    font-size: clamp(100px, 8vw, 140px);
  }

  .is-premium-home .vt-hero__title {
    font-size: 70px;
  }
}

.vt-muted {
  color: var(--vt-muted);
}

.vt-glass {
  background: var(--vt-glass);
  border: 1px solid var(--vt-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vt-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--vt-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s var(--vt-ease-out), box-shadow 0.45s var(--vt-ease-out),
    background 0.45s var(--vt-ease-out), color 0.45s var(--vt-ease-out),
    border-color 0.45s var(--vt-ease-out);
  will-change: transform;
}

.vt-btn--primary {
  background: linear-gradient(135deg, #01dbff, #0199b8);
  color: #041018;
  box-shadow: 0 0 0 1px rgba(1, 219, 255, 0.25), 0 12px 40px rgba(1, 219, 255, 0.22);
}

.vt-btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(1, 219, 255, 0.4), 0 18px 50px rgba(1, 219, 255, 0.35);
  color: #041018;
}

.vt-btn--ghost {
  background: transparent;
  color: var(--vt-text);
  border-color: var(--vt-border-strong);
}

.vt-btn--ghost:hover {
  border-color: var(--vt-accent);
  color: var(--vt-accent);
  box-shadow: 0 0 24px var(--vt-accent-dim);
}

/* ------------------------------------------------------------------ */
/* Noise overlay                                                        */
/* ------------------------------------------------------------------ */

.vt-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: var(--vt-z-noise);
  opacity: var(--vt-noise-opacity);
  mix-blend-mode: overlay;
  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");
  background-size: 180px 180px;
}

/* ------------------------------------------------------------------ */
/* Custom cursor shells (activated in Task 2)                           */
/* ------------------------------------------------------------------ */

.vt-cursor,
.vt-cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .is-premium-home {
    cursor: none;
  }

  .is-premium-home a,
  .is-premium-home button,
  .is-premium-home .vt-magnetic {
    cursor: none;
  }

  .vt-cursor,
  .vt-cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--vt-z-cursor);
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, width, height, opacity;
  }

  .vt-cursor {
    width: 8px;
    height: 8px;
    background: var(--vt-accent);
    box-shadow: 0 0 18px var(--vt-accent-glow);
  }

  .vt-cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(1, 219, 255, 0.55);
    background: transparent;
    transition: width 0.35s var(--vt-ease-out), height 0.35s var(--vt-ease-out),
      background 0.35s var(--vt-ease-out), border-color 0.35s var(--vt-ease-out);
  }

  .is-premium-home.vt-cursor-hover .vt-cursor {
    mix-blend-mode: difference;
    background: #fff;
  }

  .is-premium-home.vt-cursor-view .vt-cursor-ring {
    width: 88px;
    height: 88px;
    background: rgba(1, 219, 255, 0.12);
    border-color: var(--vt-accent);
  }

  .is-premium-home.vt-cursor-view .vt-cursor-ring::after {
    content: "View";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vt-accent);
  }
}

/* ------------------------------------------------------------------ */
/* Header soft restyle (expanded in Task 17)                            */
/* ------------------------------------------------------------------ */

.is-premium-home .gl-header {
  background: rgba(11, 14, 19, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vt-border);
}

.is-premium-home .gl-header .theme-btn {
  background: linear-gradient(135deg, #01dbff, #0199b8);
  color: #041018;
  border: none;
  box-shadow: 0 8px 28px rgba(1, 219, 255, 0.22);
}

/* ------------------------------------------------------------------ */
/* Section landmark placeholders                                        */
/* ------------------------------------------------------------------ */

.vt-shell-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vt-muted);
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .is-premium-home *,
  .is-premium-home *::before,
  .is-premium-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Header polish (Task 17)
   ========================================================================== */

.is-premium-home .gl-header {
  transition: background 0.4s var(--vt-ease-out), border-color 0.4s var(--vt-ease-out),
    backdrop-filter 0.4s ease;
}

.is-premium-home .gl-header.vt-header-scrolled {
  background: rgba(11, 14, 19, 0.82) !important;
  border-bottom-color: rgba(1, 219, 255, 0.12);
}

.is-premium-home .gl-header .header-logo img {
  display: block;
  width: 180px;
  height: auto;
  max-width: 180px;
  max-height: 48px;
  object-fit: contain;
}

.is-premium-home .gl-nav-list > li > a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.is-premium-home .gl-nav-list > li > a:hover,
.is-premium-home .gl-nav-list > li.active > a {
  color: var(--vt-accent) !important;
}

.is-premium-home .submenu.gl-submenu {
  background: rgba(15, 20, 28, 0.95) !important;
  border: 1px solid var(--vt-border);
  backdrop-filter: blur(16px);
}

@media (max-width: 991px) {
  .is-premium-home .vt-hero {
    padding-top: calc(var(--vt-header-h) + 1rem);
  }

  .is-premium-home .vt-services__pin,
  .is-premium-home .vt-projects__pin,
  .is-premium-home .vt-process__pin {
    min-height: auto;
  }
}
