/* ============================================================
   LEGISJURIX - MASTER STYLESHEET
   Enterprise AI Media Intelligence & Execution System
   ============================================================ */

@import url('variables.css');
@import url('animations.css');
@import url('components.css');
@import url('product-ui.css');
@import url('responsive.css');

/* --- Reset & Baseline --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--ink-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Container Framework --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink-heading);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.display-hero {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: var(--ink-heading);
}

.display-section {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-heading);
}

.heading-lg {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.heading-md {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.subheadline {
  font-size: clamp(16px, 1.8vw, 19.5px);
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 680px;
}

.text-mono {
  font-family: var(--font-mono);
}

/* ============================================================
   NEW REFINED ENTERPRISE NAVIGATION BAR & MEGA-MENU
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--canvas-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: all var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(18, 18, 16, 0.04);
}

.nav-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Wordmark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(18, 18, 16, 0.2);
}

/* Navigation Links (Pill Style) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-body);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.nav-chevron {
  width: 9px;
  height: 9px;
  opacity: 0.55;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* --- REFINED MEGA-MENU DROPDOWNS --- */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-floating);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 1200;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-platform {
  width: 780px;
}

.mega-menu-intelligence {
  width: 860px;
}

.mega-menu-solutions {
  width: 740px;
}

.mega-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mega-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mega-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  background: transparent;
}

.mega-card:hover {
  background: var(--canvas-subtle);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.mega-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-card-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.mega-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.mega-card-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.mega-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.mega-footer-link {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition-fast);
}

.mega-footer-link:hover {
  gap: 8px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--canvas-subtle);
}

/* ============================================================
   MOBILE DRAWER NAVIGATION
   ============================================================ */

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 16, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  max-width: 420px;
  background: var(--canvas);
  border-left: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer.is-open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 12px;
  margin-bottom: 6px;
  padding-left: 8px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--transition-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
  background: var(--surface);
  color: var(--accent);
}

/* ============================================================
   SECTIONS & INFOGRAPHIC CONTAINERS
   ============================================================ */

.section {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  position: relative;
}

.section-subtle {
  background: var(--canvas-subtle);
}

.section-white {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header.text-left {
  text-align: left;
  align-items: flex-start;
  margin-left: 0;
}

.section-header p {
  margin-top: 16px;
}

/* Rich Infographic Visualization Box */
.vis-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Platform Integrations Strip */
.platform-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border);
  gap: 1px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-top: 28px;
}

.platform-pill-box {
  background: var(--surface);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition-fast);
  text-align: center;
}

.platform-pill-box:hover {
  background: var(--surface-raised);
}

.platform-pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.platform-pill-type {
  font-size: 10.5px;
  color: var(--ink-muted);
}

/* ============================================================
   SITE FOOTER (Clean, Compliant, Structured)
   ============================================================ */

.site-footer {
  background: #141412;
  color: #A3A39A;
  padding-top: 80px;
  padding-bottom: 40px;
  margin-top: auto;
  font-size: 13.5px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 290px;
  color: #A3A39A;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #A3A39A;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

.footer-address {
  font-style: normal;
  line-height: 1.6;
  color: #73736C;
}

.footer-copyright {
  color: #73736C;
}
