/* ==========================================================================
   GLC Print - Design System & Custom Layer Effects
   Theme: Dark Graphite, Technical Precision, Cyan Laser Accents, CLI Terminal
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-surface: #0c1017;
  --bg-card: #111622;
  --bg-elevated: #182030;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 240, 255, 0.4);
  --cyan-primary: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --cyan-dim: rgba(0, 240, 255, 0.12);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}
.font-sans {
  font-family: var(--font-sans);
}

/* Terminal Cursor */
.terminal-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  vertical-align: -0.15em;
  background-color: var(--cyan-primary);
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 10px var(--cyan-glow);
}

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

/* Cyan Glows & Borders */
.glow-cyan {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}
.glow-cyan-sm {
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}
.glow-cyan-text {
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.border-technical {
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.border-technical:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

/* Technical Corner Brackets */
.tech-bracket-container {
  position: relative;
}
.tech-bracket-container::before,
.tech-bracket-container::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--cyan-primary);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}
.tech-bracket-container::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid var(--cyan-primary);
  border-left: 1.5px solid var(--cyan-primary);
}
.tech-bracket-container::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid var(--cyan-primary);
  border-right: 1.5px solid var(--cyan-primary);
}
.tech-bracket-container:hover::before,
.tech-bracket-container:hover::after {
  width: 14px;
  height: 14px;
  opacity: 1;
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* ==========================================================================
   LAYER BY LAYER MENU (Efeito de fatias / stacking ao abrir)
   ========================================================================== */
#layer-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#layer-menu.hidden-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#layer-menu.open-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* As fatias do menu que sobem em camadas */
.menu-layer-slice {
  position: relative;
  transform: translateY(24px) scaleY(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 2px solid transparent;
}
#layer-menu.open-menu .menu-layer-slice:nth-child(1) {
  transition-delay: 0.06s;
  transform: translateY(0) scaleY(1);
  opacity: 1;
}
#layer-menu.open-menu .menu-layer-slice:nth-child(2) {
  transition-delay: 0.12s;
  transform: translateY(0) scaleY(1);
  opacity: 1;
}
#layer-menu.open-menu .menu-layer-slice:nth-child(3) {
  transition-delay: 0.18s;
  transform: translateY(0) scaleY(1);
  opacity: 1;
}
#layer-menu.open-menu .menu-layer-slice:nth-child(4) {
  transition-delay: 0.24s;
  transform: translateY(0) scaleY(1);
  opacity: 1;
}
#layer-menu.open-menu .menu-layer-slice:nth-child(5) {
  transition-delay: 0.30s;
  transform: translateY(0) scaleY(1);
  opacity: 1;
}
#layer-menu.open-menu .menu-layer-slice:nth-child(6) {
  transition-delay: 0.36s;
  transform: translateY(0) scaleY(1);
  opacity: 1;
}

.menu-layer-slice:hover {
  border-left-color: var(--cyan-primary);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, transparent 80%);
  padding-left: 1.25rem;
}

/* Scanline Overlay for Technical Terminal Look */
.scanline {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.25)
  );
  background-size: 100% 4px;
}

/* Laser sweep line animation */
@keyframes laserSweep {
  0% {
    top: 0%;
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    top: 100%;
    opacity: 0.2;
  }
}

.laser-scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan-primary) 50%, transparent 100%);
  box-shadow: 0 0 15px var(--cyan-primary);
  animation: laserSweep 4s ease-in-out infinite;
  pointer-events: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .laser-scan-line {
    display: none;
  }
}

/* 3D Canvas Container - Natural floating composition without heavy framing */
#hero-canvas-container {
  position: relative;
  width: 100%;
  height: 540px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.hero-glow-backdrop {
  position: absolute;
  width: 520px;
  height: 520px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.10) 0%, rgba(0, 240, 255, 0.02) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  #hero-canvas-container {
    height: 440px;
  }
}

@media (max-width: 640px) {
  #hero-canvas-container {
    height: 360px;
  }
}

/* Terminal line highlight */
.cmd-box {
  background: #090c12;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

/* Subtle pulse for online indicator */
@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}
.status-dot {
  animation: statusPulse 2s infinite ease-in-out;
}

/* ==========================================================================
   GLC RHYTHM: ALTERNATING DARK PREMIUM & LIGHT CLEAN SECTIONS
   ========================================================================== */

/* Dark Hero Background with subtle navy / graphite / cyan fusion */
.hero-gradient-dark {
  background: radial-gradient(circle at 70% 35%, rgba(0, 240, 255, 0.08) 0%, rgba(15, 23, 42, 0.75) 40%, #07090e 85%);
}

/* Seamless transition between Hero and Catalog */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #090d15);
  pointer-events: none;
}

/* Technical Hairline Divider with cyan node */
.section-hairline-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(0, 240, 255, 0.3) 50%, rgba(255, 255, 255, 0.08) 80%, transparent 100%);
}

/* Subtle Premium Graphite Surface (Replaces raw white jarring block) */
.section-light {
  background-color: #090d15;
  color: #f1f5f9;
}

.section-pure-white {
  background-color: #0b0f19;
  color: #f1f5f9;
}

/* Cards styled for dark premium depth */
.card-clean-white {
  background: rgba(16, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.card-clean-white:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -4px rgba(0, 240, 255, 0.12), 0 4px 12px rgba(0,0,0,0.4);
}

/* Product Tag Pill */
.badge-clean-cyan {
  background-color: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #38bdf8;
}

/* Form input in technical sections */
.input-clean-light {
  background: rgba(11, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-clean-light:focus {
  border-color: #00f0ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2);
}

/* Accessibility: Consistent keyboard focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan-primary) !important;
  outline-offset: 2px !important;
}

/* Ensure no horizontal scroll blowout on small viewports */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

