/* PixxelAI - Modern Neumorphic & Glacier Glass Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --bg-primary: #eef2f6;
  --bg-surface: #eef2f6;
  --bg-surface-elevated: #f8fafc;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: #e0e7ff;
  --color-secondary: #818cf8;
  --color-accent-blue: #7dd3fc;
  --color-accent-purple: #c8a0f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --shadow-light: #ffffff;
  --shadow-dark: #cbd5e1;
  --shadow-dark-intense: #b4c2d3;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
}

/* Material Symbols Outlined default */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Neumorphic Elevations */
.neu-flat, .neo-panel, .neo-surface {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: 10px 10px 22px var(--shadow-dark), -10px -10px 22px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.neu-flat-sm {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.neu-flat-hover:hover, .neo-surface-hover:hover {
  transform: translateY(-3px);
  box-shadow: 14px 14px 28px var(--shadow-dark-intense), -14px -14px 28px var(--shadow-light);
}

.neu-pressed, .neo-pressed, .neo-inset, .neo-panel-inset {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.neu-pressed-sm {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

/* Buttons */
.btn-primary, .neo-button-primary {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.75rem;
  box-shadow: 6px 6px 14px rgba(99, 102, 241, 0.35), -6px -6px 14px rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover, .neo-button-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 4px 4px 10px rgba(99, 102, 241, 0.45), -4px -4px 10px rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.btn-primary:active, .neo-button-primary:active {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.btn-secondary, .neo-button {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.75rem;
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover, .neo-button:hover {
  color: var(--color-primary);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  transform: translateY(-1px);
}

.btn-secondary:active, .neo-button:active {
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  transform: translateY(1px);
}

/* Glassmorphism / Glacier Highlights */
.glacier-card {
  background: rgba(238, 242, 246, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 12px 12px 24px rgba(203, 213, 225, 0.6), -12px -12px 24px rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
}

.glacier-nav {
  background: rgba(238, 242, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px -5px rgba(203, 213, 225, 0.5);
}

/* Grids & Backgrounds */
.soft-grid-bg {
  background-size: 36px 36px;
  background-image: 
      linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
}

.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(238, 242, 246, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* Pulse Animations */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.1); }
}

.pulse-dot {
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Custom Range Input */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: #e2e8f0;
  box-shadow: inset 2px 2px 5px #cbd5e1, inset -2px -2px 5px #ffffff;
  border-radius: 9999px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, background 0.15s ease;
  margin-top: -6px;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #4f46e5;
}

input[type=range]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2px solid #ffffff;
}

/* ==========================================================================
   Sticky Stacked Card Showcase (Sector Mockups)
   ========================================================================== */
.sticky-showcase-container {
  position: relative;
  width: 100%;
}

.sticky-showcase-card {
  position: sticky;
  top: 85px;
  width: 100%;
  min-height: calc(100vh - 110px);
  border-radius: 2rem;
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: 0 25px 65px -20px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}

@media (max-width: 768px) {
  .sticky-showcase-card {
    position: relative;
    top: 0;
    min-height: auto;
    flex-direction: column;
  }
}

/* Phone Mockup Frame */
.phone-mockup {
  width: 240px;
  height: 470px;
  background: #ffffff;
  border-radius: 36px;
  border: 8px solid #1e293b;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.phone-mockup-center {
  width: 260px;
  height: 500px;
  z-index: 20;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
}

.phone-mockup-left {
  transform: rotate(-5deg) scale(0.92);
  opacity: 0.9;
}

.phone-mockup-right {
  transform: rotate(5deg) scale(0.92);
  opacity: 0.9;
}

.phone-mockup:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 25;
}

/* Phone Notch/Camera cutout */
.phone-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #0f172a;
  border-radius: 50%;
  z-index: 30;
  border: 2px solid #334155;
}

/* Phone Screen Header */
.phone-status-bar {
  height: 28px;
  padding: 6px 14px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  z-index: 10;
}

/* Shimmer Animation for Showcase Buttons */
@keyframes shimmer-sweep {
  0% { transform: translateX(-150%) skewX(-25deg); }
  100% { transform: translateX(350%) skewX(-25deg); }
}

.animate-shimmer-sweep {
  animation: shimmer-sweep 3s infinite linear;
}

/* ==========================================================================
   Vertical Infinite Scrolling Marquee for Hero Sectors List
   ========================================================================== */
@keyframes scrollUpContinuous {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.marquee-vertical-wrapper {
  position: relative;
  height: 540px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent);
}

.marquee-vertical-track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: scrollUpContinuous 24s linear infinite;
}

.marquee-vertical-wrapper:hover .marquee-vertical-track {
  animation-play-state: paused;
}

/* Hero Sector Card inside Scrolling List */
.sector-scroll-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  position: relative;
}

.sector-scroll-item:hover {
  transform: translateX(8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 12px 12px 28px var(--shadow-dark-intense), -12px -12px 28px var(--shadow-light);
}

.sector-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

/* Branching node decorative connector line */
.circuit-line-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}


/* Dialog / Modal Styling */
dialog.custom-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  width: 580px;
  margin: auto;
}

dialog.custom-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

dialog.custom-modal[open]::backdrop {
  opacity: 1;
}

dialog.custom-modal[open] {
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Badge & Tag Helpers */
.tag-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Nav Active Link indicator (Zero Width Shift) */
.nav-link {
  position: relative;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: var(--color-primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 9999px;
}

/* Cat Video Brand Colorization System */
.cat-video-wrapper {
  mix-blend-mode: multiply;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.cat-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.overlay-pixxel-brand {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #06b6d4 100%);
  opacity: 1;
}

.overlay-cyan {
  background: linear-gradient(135deg, #0369a1 0%, #06b6d4 100%);
  opacity: 1;
}

.overlay-electric-blue {
  background: #4338ca;
  opacity: 1;
}

.overlay-monochrome {
  opacity: 0;
}

.cat-raster-glacier {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, rgba(238, 242, 246, 0.95) 75%);
}

/* Horizontal Scroll Utilities for Capability Cards */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cap-slide-indicator {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimalist Underlined Form Inputs (No Outer Boxes) */
#homeInquiryForm input,
#homeInquiryForm select,
#homeInquiryForm textarea {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid #cbd5e1 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

#homeInquiryForm input:focus,
#homeInquiryForm select:focus,
#homeInquiryForm textarea:focus {
  border-bottom-color: #4f46e5 !important;
  outline: none !important;
  box-shadow: none !important;
}

