/*
  Project: Service Eye
  Project Name: Business X
  Design & Development: Binary Shastra (https://www.binaryshastra.com/)
  Expertise: Architecture-First Engineering | Scalable Digital Systems | Modern Web Experiences
  Motto: "Changing The ERA Of Digitalization"

  This attribution is intentional project metadata. Do not remove or rewrite it
  without explicit approval from the project owner. If these styles are moved
  into another design system or build pipeline, carry this notice forward.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

body {
  background: #060a12;
  color: white;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

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

html {
  scroll-behavior: smooth;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

a,
p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

select {
  max-width: 100%;
}

select option {
  background: #0B1120;
  color: white;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: #3B82F6;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- NAVIGATION --- */
.site-header {
  gap: 1rem;
  min-height: 4.5rem;
}

.site-header > div {
  min-width: 0;
}

.site-header img {
  max-width: min(11rem, 55vw);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: fixed;
  z-index: 70;
  top: 4.5rem;
  left: 50vw;
  width: min(58rem, calc(100vw - 3rem));
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  background: rgba(7, 12, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: -1rem;
  right: -1rem;
  top: 100%;
  height: 1rem;
}

.nav-dropdown.is-open .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown:hover .nav-dropdown-panel {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-link {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  color: #CBD5E1;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus {
  color: white;
  background: rgba(59, 130, 246, 0.12);
}

.nav-dropdown-link span {
  display: block;
  color: #94A3B8;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.nav-mega-group {
  min-width: 0;
  border-radius: 0.9rem;
  padding: 0.4rem;
}

.nav-mega-title {
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
  padding: 0 0.65rem;
  text-transform: uppercase;
}

.nav-mega-description {
  color: #94A3B8;
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0 0 0.45rem;
  padding: 0 0.65rem;
}

.carousel-dots button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-dots button span {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-dots button.is-active {
  width: 2.5rem;
  background: #3B82F6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.mobile-menu-button {
  display: none;
}

.mobile-menu-panel {
  display: none;
}

@media (max-width: 1023px) {
  .site-header {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header > div:first-child > a {
    min-width: 0;
  }

  .site-header nav {
    display: none !important;
  }

  .site-header > div:nth-of-type(2) {
    display: none !important;
  }

  .site-header > div:has(> a[href="book_a_demo.html"]) {
    display: none !important;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: white;
  }

  .mobile-menu-panel {
    display: block;
    position: fixed;
    top: 4.75rem;
    left: 1rem;
    right: 1rem;
    z-index: 60;
    background: rgba(7, 12, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-menu-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel a,
  .mobile-menu-panel button,
  .mobile-menu-panel summary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.9rem;
    border-radius: 0.75rem;
    color: #CBD5E1;
    text-align: left;
  }

  .mobile-menu-panel a:hover,
  .mobile-menu-panel button:hover,
  .mobile-menu-panel summary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-menu-eyebrow {
    color: #60A5FA;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0.75rem 0 0.35rem;
    padding: 0 0.9rem;
    text-transform: uppercase;
  }

  .mobile-nav-group {
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0.55rem;
    overflow: hidden;
  }

  .mobile-nav-group summary {
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-group summary strong,
  .mobile-nav-group summary small {
    display: block;
  }

  .mobile-nav-group summary strong {
    color: white;
    font-size: 0.95rem;
  }

  .mobile-nav-group summary small {
    color: #94A3B8;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.2rem;
  }

  .mobile-nav-group[open] summary {
    background: rgba(59, 130, 246, 0.1);
  }

  .mobile-nav-group[open] summary > span:last-child {
    transform: rotate(180deg);
  }

  .mobile-nav-group-links {
    padding: 0.35rem;
  }

  .mobile-nav-group-links a {
    padding-left: 1rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-button,
  .mobile-menu-panel {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .blog-filter-tabs {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    margin-left: -1rem;
    margin-right: -1rem;
    overflow-x: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: none;
  }

  .blog-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .blog-filter-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  main h1 {
    font-size: clamp(2.15rem, 10vw, 3rem) !important;
    line-height: 1.08 !important;
  }

  main h2 {
    font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }

  section,
  article {
    min-width: 0;
  }

  .hero-glow {
    overflow: hidden;
  }

  .glass-card,
  .empty-state,
  .ux-message {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .mobile-menu-panel {
    left: 0.75rem;
    right: 0.75rem;
  }
}

@media (hover: none) {
  .glass-card:hover {
    box-shadow: none;
    transform: none;
  }
}

/* --- ANIMATIONS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes slow-pulse {
  0% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
  100% { opacity: 0.4; transform: scale(1); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- GLOW EFFECTS --- */
.hero-glow {
  background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15) 0%, rgba(11, 17, 32, 0) 60%);
  position: relative;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  animation: slow-pulse 8s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

/* --- GLASS COMPONENTS --- */
.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.2);
  transform: translateY(-5px);
}

.glass-card.no-hover:hover {
  box-shadow: none;
  transform: none;
}

.glass-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.glass-input:focus {
  outline: none;
  border-color: #3B82F6;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* --- INTERACTIVE ELEMENTS --- */
.play-button {
  background: rgba(59, 130, 246, 0.8);
  backdrop-filter: blur(4px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .play-button {
  background: rgba(59, 130, 246, 1);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.sitemap-link {
  position: relative;
  display: inline-block;
}

.sitemap-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #3B82F6;
  transition: width 0.3s ease;
}

.sitemap-link:hover::after {
  width: 100%;
}

.step-number {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}

.tab-active {
  color: white;
  border-bottom: 2px solid #3B82F6;
}

.tab-inactive {
  color: #94A3B8;
  border-bottom: 2px solid transparent;
}

.is-hidden-by-filter {
  display: none !important;
}

.ux-message {
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
  color: #BBF7D0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.ux-message.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #FECACA;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.faq-content.is-open {
  max-height: 24rem;
  padding-bottom: 1.25rem;
}

/* --- DOCUMENTATION MOBILE NAV --- */
.docs-mobile-nav {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 1rem;
  padding: 0.85rem;
}

.docs-mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: white;
}

.docs-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.docs-mobile-nav summary span {
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-mobile-nav summary strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(59, 130, 246, 0.08);
  line-height: 1.25;
}

.docs-mobile-nav summary strong::after {
  content: '⌄';
  flex: 0 0 auto;
  color: #94A3B8;
  font-size: 1rem;
}

.docs-mobile-nav[open] summary strong::after {
  transform: rotate(180deg);
}

.docs-mobile-link-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
  max-height: min(60vh, 26rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.docs-mobile-link {
  display: grid;
  gap: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  line-height: 1.25;
}

.docs-mobile-link small {
  color: #94A3B8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-mobile-link.is-active {
  border-color: rgba(59, 130, 246, 0.75);
  background: rgba(59, 130, 246, 0.18);
  color: #BFDBFE;
}

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

/* --- TYPOGRAPHY --- */
.legal-content, .job-content {
  color: #94A3B8;
  line-height: 1.8;
}
.legal-content h2, .job-content h2, .job-content h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-content p, .job-content p {
  margin-bottom: 1.25rem;
}
.legal-content ul, .job-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-content li, .job-content li {
  margin-bottom: 0.5rem;
}
