/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px solid var(--gold);
  height: var(--nav-height);
}

.navbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.navbar-brand .brand-accent {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--bg-alt);
  border-top: 3px solid var(--gold);
  min-width: 280px;
  padding: 8px 0;
  margin-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text-light);
  border-left-color: var(--gold);
  background: rgba(245, 158, 11, 0.06);
}

.nav-dropdown-menu .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Mobile Burger */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-light);
  padding: 8px;
}

.nav-burger svg { width: 24px; height: 24px; }

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    width: 300px;
    max-width: 80vw;
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-burger { display: inline-flex; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-top: 0;
    padding: 8px 0 0 0;
    margin: 0;
    min-width: 0;
  }
  .nav-dropdown-menu a { padding-left: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--text-dark);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--text-light); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-secondary:hover { background: var(--gold); color: var(--text-dark); }

.btn-ai {
  background: var(--ai);
  color: var(--text-light);
}
.btn-ai:hover { background: var(--ai-deep); }

/* ============================================================
   MODULE BADGE
   ============================================================ */
.module-badge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.theme-light .module-badge-label { color: var(--text-muted-dark); }

.module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--text-dark);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 1px;
  padding: 8px 16px;
  min-width: 64px;
}

.module-badge.ai-badge {
  background: var(--ai);
  color: var(--text-light);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  position: relative;
  padding: 22px 22px 22px 28px;
  transition: all 0.2s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold);
}

.feature-card[data-color="cyan"]::before { background: var(--cyan); }
.feature-card[data-color="violet"]::before { background: var(--violet); }
.feature-card[data-color="emerald"]::before { background: var(--emerald); }
.feature-card[data-color="rose"]::before { background: var(--rose); }
.feature-card[data-color="blue"]::before { background: var(--blue); }
.feature-card[data-color="yellow"]::before { background: var(--yellow); }
.feature-card[data-color="ai"]::before { background: var(--ai); }

.theme-dark .feature-card,
.feature-card.dark {
  background: var(--bg-alt);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.theme-dark .feature-card:hover,
.feature-card.dark:hover {
  background: #182032;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.theme-light .feature-card,
.feature-card.light {
  background: var(--bg-panel);
  border: 0.75px solid var(--panel-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.theme-light .feature-card:hover,
.feature-card.light:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.feature-card .card-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}

.feature-card[data-color="cyan"] .card-icon { color: var(--cyan); }
.feature-card[data-color="violet"] .card-icon { color: var(--violet); }
.feature-card[data-color="emerald"] .card-icon { color: var(--emerald); }
.feature-card[data-color="rose"] .card-icon { color: var(--rose); }
.feature-card[data-color="blue"] .card-icon { color: var(--blue); }
.feature-card[data-color="yellow"] .card-icon { color: var(--yellow); }
.feature-card[data-color="ai"] .card-icon { color: var(--ai); }

.feature-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.theme-light .feature-card .card-title,
.feature-card.light .card-title { color: var(--text-dark); }

.feature-card .card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.theme-light .feature-card .card-desc,
.feature-card.light .card-desc { color: var(--text-body); }

/* ============================================================
   SECTION DIVIDER (giant background number)
   ============================================================ */
.section-divider {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.section-divider .container { position: relative; z-index: 2; }

.section-divider .bg-number {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(180px, 30vw, 360px);
  font-weight: 800;
  color: #1E293B;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-head);
}

.section-divider .side-bar {
  display: inline-block;
  width: 7px;
  height: 48px;
  background: var(--gold);
  margin-right: 14px;
  vertical-align: middle;
}

.section-divider[data-color="ai"] .side-bar { background: var(--ai); }
.section-divider[data-color="cyan"] .side-bar { background: var(--cyan); }
.section-divider[data-color="violet"] .side-bar { background: var(--violet); }
.section-divider[data-color="emerald"] .side-bar { background: var(--emerald); }
.section-divider[data-color="rose"] .side-bar { background: var(--rose); }
.section-divider[data-color="blue"] .side-bar { background: var(--blue); }
.section-divider[data-color="yellow"] .side-bar { background: var(--yellow); }

.section-divider .overline {
  display: inline-block;
  vertical-align: middle;
}
.section-divider[data-color="ai"] .overline { color: var(--ai); }
.section-divider[data-color="cyan"] .overline { color: var(--cyan); }
.section-divider[data-color="violet"] .overline { color: var(--violet); }
.section-divider[data-color="emerald"] .overline { color: var(--emerald); }
.section-divider[data-color="rose"] .overline { color: var(--rose); }
.section-divider[data-color="blue"] .overline { color: var(--blue); }
.section-divider[data-color="yellow"] .overline { color: var(--yellow); }

.section-divider .title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-light);
  max-width: 60%;
  margin-top: 14px;
}

.section-divider .subtitle {
  font-size: 16px;
  color: var(--silver);
  max-width: 55%;
  line-height: 1.5;
  margin-top: 16px;
  font-style: italic;
}

/* ============================================================
   PRINCIPLE CARD (2x2 grid hero)
   ============================================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.principle-card {
  background: var(--bg-alt);
  border-left: 10px solid var(--gold);
  padding: 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}

.principle-card[data-color="cyan"]    { border-left-color: var(--cyan); }
.principle-card[data-color="violet"]  { border-left-color: var(--violet); }
.principle-card[data-color="emerald"] { border-left-color: var(--emerald); }
.principle-card[data-color="ai"]      { border-left-color: var(--ai); }

.principle-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.principle-card[data-color="cyan"] .principle-icon    { border-color: var(--cyan); }
.principle-card[data-color="violet"] .principle-icon  { border-color: var(--violet); }
.principle-card[data-color="emerald"] .principle-icon { border-color: var(--emerald); }
.principle-card[data-color="ai"] .principle-icon      { border-color: var(--ai); }

.principle-icon svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}
.principle-card[data-color="cyan"] .principle-icon svg    { color: var(--cyan); }
.principle-card[data-color="violet"] .principle-icon svg  { color: var(--violet); }
.principle-card[data-color="emerald"] .principle-icon svg { color: var(--emerald); }
.principle-card[data-color="ai"] .principle-icon svg      { color: var(--ai); }

.principle-card .p-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.principle-card .p-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { grid-template-columns: 64px 1fr; padding: 24px; }
}

/* ============================================================
   MODULE MAP (overview grid)
   ============================================================ */
.module-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.map-card {
  background: var(--bg-alt);
  padding: 24px 20px;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  cursor: pointer;
}

.map-card[data-color="cyan"]    { border-top-color: var(--cyan); }
.map-card[data-color="violet"]  { border-top-color: var(--violet); }
.map-card[data-color="emerald"] { border-top-color: var(--emerald); }
.map-card[data-color="rose"]    { border-top-color: var(--rose); }
.map-card[data-color="blue"]    { border-top-color: var(--blue); }
.map-card[data-color="yellow"]  { border-top-color: var(--yellow); }
.map-card[data-color="ai"]      { border-top-color: var(--ai); }

.map-card:hover {
  background: #182032;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.map-card .map-overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.map-card[data-color="cyan"] .map-overline    { color: var(--cyan); }
.map-card[data-color="violet"] .map-overline  { color: var(--violet); }
.map-card[data-color="emerald"] .map-overline { color: var(--emerald); }
.map-card[data-color="rose"] .map-overline    { color: var(--rose); }
.map-card[data-color="blue"] .map-overline    { color: var(--blue); }
.map-card[data-color="yellow"] .map-overline  { color: var(--yellow); }
.map-card[data-color="ai"] .map-overline      { color: var(--ai); }

.module-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex: 1;
}

.module-tag {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  background: var(--bg);
  border: 0.5px solid var(--gold);
  padding: 4px 8px;
  gap: 6px;
}

.map-card[data-color="cyan"] .module-tag    { border-color: var(--cyan); }
.map-card[data-color="violet"] .module-tag  { border-color: var(--violet); }
.map-card[data-color="emerald"] .module-tag { border-color: var(--emerald); }
.map-card[data-color="rose"] .module-tag    { border-color: var(--rose); }
.map-card[data-color="blue"] .module-tag    { border-color: var(--blue); }
.map-card[data-color="yellow"] .module-tag  { border-color: var(--yellow); }
.map-card[data-color="ai"] .module-tag      { border-color: var(--ai); }

.module-tag .code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
}

.map-card[data-color="cyan"] .module-tag .code    { color: var(--cyan); }
.map-card[data-color="violet"] .module-tag .code  { color: var(--violet); }
.map-card[data-color="emerald"] .module-tag .code { color: var(--emerald); }
.map-card[data-color="rose"] .module-tag .code    { color: var(--rose); }
.map-card[data-color="blue"] .module-tag .code    { color: var(--blue); }
.map-card[data-color="yellow"] .module-tag .code  { color: var(--yellow); }
.map-card[data-color="ai"] .module-tag .code      { color: var(--ai); }

.module-tag .name {
  font-size: 10px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .module-map { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .module-map { grid-template-columns: 1fr; }
}

/* ============================================================
   MODULE DETAIL ROW (two-column layout)
   ============================================================ */
.module-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 60px;
  padding: 80px 0;
  border-bottom: 2px solid var(--bg-card);
}

.theme-light .module-row { border-bottom-color: var(--panel-border); }

.module-row:last-child { border-bottom: 0; }

.module-row-left h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 14px 0 8px 0;
  color: inherit;
}

.module-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}

@media (max-width: 900px) {
  .module-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .module-features { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.pricing-card {
  border-top: 12px solid var(--gold);
  padding: 36px 28px;
  background: var(--bg-panel);
  border-left: 0.75px solid var(--panel-border);
  border-right: 0.75px solid var(--panel-border);
  border-bottom: 0.75px solid var(--panel-border);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: var(--bg);
  color: var(--text-light);
  transform: translateY(-12px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  border: 0;
  border-top: 12px solid var(--gold);
}

.pricing-card .edition-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted-dark);
  margin-bottom: 8px;
}

.pricing-card.featured .edition-label { color: var(--gold); }

.pricing-card .edition-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .edition-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted-dark);
  margin-bottom: 24px;
}
.pricing-card.featured .edition-code { color: var(--silver); }

.pricing-card .edition-users {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.pricing-card.featured .edition-users { color: var(--gold); }

.pricing-card .edition-users-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 24px;
}
.pricing-card.featured .edition-users-label { color: var(--text-muted); }

.pricing-card ul.features {
  flex: 1;
  margin: 0 0 32px 0;
}

.pricing-card ul.features li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 10px;
}

.pricing-card.featured ul.features li { color: var(--silver); }

.pricing-card ul.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ============================================================
   CHAT MOCKUP (VISIOai)
   ============================================================ */
.chat-container {
  background: var(--bg-alt);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.chat-header {
  background: var(--bg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bg-card);
}

.window-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green  { background: #10B981; }

.chat-title {
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.chat-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.chat-bubble-user {
  background: var(--ai);
  color: var(--text-light);
  padding: 12px 16px;
  margin-left: auto;
  max-width: 75%;
  font-size: 14px;
  line-height: 1.4;
}

.chat-bubble-bot {
  background: var(--bg-card);
  color: var(--silver);
  padding: 12px 16px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble-bot strong { color: var(--text-light); }

/* ============================================================
   HERO STAT PILLARS
   ============================================================ */
.stat-pillars {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 48px;
  margin-top: 40px;
}

.stat-pillar .stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-pillar .stat-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .stat-pillars { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================
   CROSS-LINKS (related modules)
   ============================================================ */
.cross-links {
  background: var(--bg-alt);
  padding: 32px 0;
}

.cross-links-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cross-links-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 12px;
}

.cross-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 14px;
  border: 1px solid var(--bg-card);
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.cross-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--bg-card);
  padding: 48px 0 0 0;
}

.site-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.18s ease;
}

.site-footer a:hover { color: var(--gold); }

.site-footer .brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.site-footer .brand-row .brand-accent { color: var(--gold); }

.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 340px;
}

@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}
