@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Infant:ital,wght@0,500;0,600;0,700;1,600&family=Dela+Gothic+One&family=Geologica:wght@400;500;600;700;800&family=Golos+Text:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&family=Onest:wght@400;500;600;700&family=Unbounded:wght@400;600;700;800;900&display=swap');
@import url('./tokens.css');

/* Zero Horizontal Overflow on Mobile */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

/* Base typography classes (Strictly NO JetBrains Mono) */
.font-unbounded { font-family: 'Unbounded', sans-serif; }
.font-manrope { font-family: 'Manrope', sans-serif; }
.font-geologica { font-family: 'Geologica', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }
.font-bebas { font-family: 'Bebas Neue', cursive, sans-serif; }
.font-golos { font-family: 'Golos Text', sans-serif; }
.font-onest { font-family: 'Onest', sans-serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-dela { font-family: 'Dela Gothic One', cursive, sans-serif; }
.font-cormorant { font-family: 'Cormorant Infant', serif; }

/* Custom Scrollbar - Baikal Ultramarine */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #051329;
}
::-webkit-scrollbar-thumb {
  background: #0B2246;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38BDF8;
}

/* Subtle transitions for cards */
.header-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.header-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.service-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px -8px rgba(3, 12, 26, 0.8), 0 0 24px -4px rgba(56, 189, 248, 0.25);
}

/* Selected Header Card Highlight */
.header-card.is-selected {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4), 0 20px 40px -15px rgba(3, 12, 26, 0.9);
}

/* Dropdown Menu animation with Invisible Hover Bridge */
.has-dropdown {
  position: relative;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

/* Hero background image blend styles - Full-bleed top-to-bottom stretch with zero top gap */
.hero-bg-overlay {
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumb-nav a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.breadcrumb-nav a:hover {
  color: #38BDF8;
}
.breadcrumb-separator {
  color: var(--text-dim);
}

/* Active Nav Item */
.nav-link.active {
  color: #38BDF8 !important;
  font-weight: 600;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #38BDF8;
  border-radius: 2px;
}

/* Data Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table th {
  background: #081D3C;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  font-family: 'Geologica', sans-serif;
  letter-spacing: 0.02em;
}
.spec-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  color: var(--text-muted);
}
.spec-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
  color: var(--text-primary);
}

/* Toast notification */
#toast {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Custom Modal */
.modal-backdrop {
  background: rgba(3, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#tz-modal.hidden,
#license-modal.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Studio Polish & Tactile Micro-Interactions */
button, .btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
button:active, .btn:active {
  transform: scale(0.975);
}

/* Subtle focus-visible ring for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

/* Cinematic Edge Dissolve Mask */
.mask-cinematic-b {
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.mask-cinematic-r {
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

/* Ambient Card Glow */
.glow-card {
  position: relative;
}
.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Typography Scale & Anti-AI-Slop Legibility Enhancements */
.text-\[9px\] {
  font-size: 0.75rem !important; /* 12px instead of 9px */
  line-height: 1.15rem !important;
  letter-spacing: 0.025em;
}

.text-\[10px\] {
  font-size: 0.8125rem !important; /* 13px instead of 10px */
  line-height: 1.25rem !important;
  letter-spacing: 0.02em;
}

.text-\[11px\] {
  font-size: 0.875rem !important; /* 14px instead of 11px */
  line-height: 1.35rem !important;
}

.text-xs {
  font-size: 0.9375rem !important; /* 15px instead of 12px */
  line-height: 1.45rem !important;
}

/* Nav links legibility */
.nav-link {
  font-size: 0.875rem !important; /* 14px */
  letter-spacing: 0.01em;
}
.nav-dropdown a {
  font-size: 0.875rem !important; /* 14px */
}

/* Brand logo sub-descriptor */
.brand-descriptor {
  font-size: 0.6875rem !important; /* 11px */
  line-height: 1.25 !important;
  letter-spacing: 0.05em;
}


/* Button tactile sizing */
button, .btn {
  min-height: 40px;
  cursor: pointer;
}

/* Mobile Dropdown Slide Animation */
#mobile-menu {
  animation: mobileDropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scoped mobile menu hidden states (never override global Tailwind .hidden) */
#mobile-menu.hidden,
#mobile-menu-backdrop.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 1024px) {
  #mobile-menu,
  #mobile-menu-backdrop {
    display: none !important;
  }
}

#mobile-menu-close-btn,
#mobile-menu-toggle,
.mobile-dropdown-toggle {
  -webkit-tap-highlight-color: rgba(56, 189, 248, 0.2);
  touch-action: manipulation;
  cursor: pointer;
}


@keyframes mobileDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

