﻿/*
 * Multiuniversal â€” New Design
 * ============================
 */

/* --- Custom Properties --- */
:root {
  --bg-primary:   #0a0a0f;
  --bg-secondary: #101018;
  --bg-tertiary:  #1a1a24;
  --bg-elevated:  #22222e;
  --bg-surface:   #2a2a38;

  --accent-primary:       #EE3D43;
  --accent-primary-hover: #F55B60;
  --accent-primary-glow:  rgba(238, 61, 67, 0.25);
  --accent-blue:          #4A8FCA;
  --accent-blue-hover:    #6aaad9;
  --accent-orange:        #F5871F;
  --accent-green:         #7DC242;
  --accent-magenta:       #C8378B;
  --accent-red:           #EE3D43;

  --text-primary:   #E8ECF7;
  --text-secondary: #B8BFD2;
  --text-muted:     #6B7388;

  --border-subtle: rgba(125, 211, 252, 0.12);
  --border-hover:  rgba(125, 211, 252, 0.25);
  --card-bg:       rgba(255, 255, 255, 0.02);

  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility Classes --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

@keyframes mu-blink {
  50% { opacity: 0; }
}

@keyframes mu-dash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -12; }
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

ul { list-style: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-secondary); }

.txt-center { text-align: center; }
.txt-center .vc-eyebrow { justify-content: center; margin-bottom: 20px; }

/* Inner-page CTA section */
.page-cta-heading { margin-bottom: 16px; }
.page-cta-sub     { max-width: 520px; margin: 0 auto 32px; }

/* --- Grid --- */
.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  color: #fff;
  box-shadow: 0 0 40px var(--accent-primary-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--card-bg);
  border-color: var(--accent-orange);
  color: var(--text-primary);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-glow:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px var(--accent-primary-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta { margin-left: auto; }
.nav-cta a {
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
}
.nav-cta a::after { display: none !important; }
.nav-cta a:hover { color: #fff; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Gradient accent line */
.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-green), var(--accent-blue));
}

/* --- New Design Utility Classes --- */

/* Grid overlay texture */
.vc-grid {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Eyebrow label â€” monospace uppercase with pulsing red dot */
.vc-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 99px;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: mu-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* Decorative corner accents */
.vc-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-orange);
}

.vc-corner-tl { top: 12px;    left: 12px;  border-right: 0; border-bottom: 0; }
.vc-corner-tr { top: 12px;    right: 12px; border-left: 0;  border-bottom: 0; }
.vc-corner-bl { bottom: 12px; left: 12px;  border-right: 0; border-top: 0;    }
.vc-corner-br { bottom: 12px; right: 12px; border-left: 0;  border-top: 0;    }

/* Section header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero > .container {
  position: relative;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 70%);
}

.hero-headline-wrap {
  position: relative;
  margin-bottom: 52px;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* Hero two-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-headline {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  white-space: nowrap;
}

.hero-left {
  padding-top: 4px;
}

/* Accent colour spans â€” use classes, never inline styles (CSP blocks style="...") */
.accent-blue {
  color: var(--accent-blue);
  text-shadow: 0 0 30px rgba(74, 143, 202, 0.4);
}

.accent-magenta {
  color: var(--accent-magenta);
}

.hero-left .hero-eyebrow {
  margin-bottom: 20px;
}

.hero-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.hero-left .hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-left .hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Picker card */
.picker-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 28px;
  min-width: 0;
  overflow: visible;
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.picker-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Industry dropdown */
.industry-dropdown {
  position: relative;
  margin-bottom: 20px;
}

.industry-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--transition);
  text-align: left;
  min-height: 52px;
}

.industry-trigger:hover,
.industry-trigger.open {
  border-color: var(--accent-orange);
}

.industry-trigger-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.industry-trigger-value {
  flex: 1;
  text-align: left;
}
.industry-trigger-value.selected {
  color: var(--text-primary);
}

.industry-trigger-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-orange);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.industry-trigger.open .industry-trigger-arrow {
  transform: rotate(180deg);
}

.industry-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 6px;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #4a4a55 rgba(255,255,255,0.04);
}

.industry-menu.open {
  display: block;
}

.industry-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
  min-height: 44px;
}

.industry-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.industry-option.active {
  background: rgba(245, 135, 31, 0.10);
  color: var(--accent-orange);
}

/* Teams meta row */
.teams-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Teams horizontal scroller */
.teams-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #4a4a55 rgba(255,255,255,0.04);
  -webkit-overflow-scrolling: touch;
}

.teams-scroller::-webkit-scrollbar        { height: 6px; }
.teams-scroller::-webkit-scrollbar-track  { background: rgba(255,255,255,0.04); border-radius: 99px; }
.teams-scroller::-webkit-scrollbar-thumb  { background: #4a4a55; border-radius: 99px; min-width: 40px; }

.team-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--accent, #4A8FCA) 25%, transparent);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.team-card:hover {
  border-color: var(--accent, #4A8FCA);
  background: color-mix(in srgb, var(--accent, #4A8FCA) 6%, var(--card-bg));
}

.teams-empty {
  flex: 0 0 100%;
  padding: 24px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-agents-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.team-dept {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.team-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(14px * 1.5 * 3);
}

.team-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-saved {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #4A8FCA);
}

.team-preview {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Node Graph Section --- */
.node-graph-section {
  padding: 24px 0 56px;
}

.node-graph-wrap {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  padding: 24px;
  overflow: hidden;
}

.node-graph-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.node-graph-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.node-graph-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
}

.node-graph-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: mu-pulse 1.6s ease-in-out infinite;
}

.node-graph-svg {
  width: 100%;
  height: auto;
  position: relative;
}

/* --- Before/After Section --- */
.ba-section {
  padding: 80px 0;
}

.ba-intro {
  margin-bottom: 36px;
}

.ba-heading {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.ba-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}

.ba-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ba-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  min-height: 44px;
  min-width: 220px;
  text-align: left;
}

.ba-nav-btn:hover {
  border-color: var(--accent-orange);
  color: var(--text-primary);
}

.ba-nav-btn.right { justify-content: flex-end; text-align: right; }

.ba-nav-arrow { color: var(--accent-orange); font-size: 14px; flex-shrink: 0; }

.ba-nav-label { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.ba-nav-btn.right .ba-nav-label { align-items: flex-end; }
.ba-nav-label-hint { font-size: 14px; color: var(--text-muted); }
.ba-nav-label-title { font-size: 14px; text-transform: none; letter-spacing: 0; }

.ba-nav-center { flex: 1; text-align: center; }

.ba-use-case-counter {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.ba-use-case-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Dot pagination */
.ba-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border-subtle);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
  min-height: 8px;
}

.ba-dot.active {
  width: 24px;
  background: var(--accent-orange);
}

/* Before/after columns container */
.ba-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  padding: 24px;
}

.ba-col-manual {
  padding: 4px 20px 4px 4px;
  border-right: 1px dashed var(--border-subtle);
}

.ba-col-auto {
  padding: 4px 4px 4px 20px;
}

/* Column header */
.ba-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ba-col-header.manual { color: var(--text-muted); flex-direction: row; }
.ba-col-header.auto   { color: var(--text-muted); flex-direction: row-reverse; }

.ba-col-header.manual .ba-col-header-line { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.ba-col-header.auto   .ba-col-header-line { flex: 1; height: 1px; background: rgba(125,211,252,0.18); }

.ba-col-summary.auto { color: var(--accent-orange); font-weight: 600; }
.ba-col-summary.manual { color: var(--text-muted); font-weight: 600; }

/* Before/after rows */
.ba-rows { display: flex; flex-direction: column; gap: 6px; }

.ba-row {
  display: grid;
  align-items: center;
  gap: 24px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 14px;
}

.ba-row.manual {
  grid-template-columns: 70px 90px 1fr;
  background: rgba(255,255,255,0.015);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.ba-row.auto {
  grid-template-columns: 1fr 56px 24px;
  background: linear-gradient(to right, rgba(245,135,31,0.10), transparent);
  border-color: rgba(125,211,252,0.18);
  color: var(--text-primary);
}

.ba-row-time {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
}

.ba-row-time.auto { text-align: right; color: var(--accent-orange); }
.ba-row-time.manual { color: var(--text-muted); }

.ba-row-who {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-row-who.human { color: var(--text-primary); font-weight: 600; }

.ba-row-task.auto { text-align: right; padding-right: 32px; }

/* Agent avatar SVG */
.agent-avatar { display: block; }

/* --- Agent Terminal Section --- */
.terminal-section {
  padding: 56px 0;
  background: var(--bg-secondary);
}

.terminal-wrap {
  background: #070709;
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(125,211,252,0.08), 0 30px 80px rgba(0,0,0,0.6);
  max-width: 640px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.15);
  background: rgba(125, 211, 252, 0.04);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #1f2a44;
  flex-shrink: 0;
}

.terminal-title { margin-left: 8px; text-transform: uppercase; }

.terminal-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
}

.terminal-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent-primary);
  animation: mu-pulse 1.6s ease-in-out infinite;
}

.terminal-body {
  padding: 18px 18px 22px;
  min-height: 260px;
}

.terminal-section-label {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.terminal-task-line {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.terminal-task-prompt { color: var(--accent-primary); margin-right: 8px; }

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-primary);
  margin-left: 2px;
  vertical-align: middle;
  animation: mu-blink 1s steps(2) infinite;
}

.terminal-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.terminal-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.terminal-step.past { opacity: 0.65; }

.terminal-step-dot {
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  flex-shrink: 0;
  background: var(--text-muted);
}

.terminal-step-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(238,61,67,0.2);
  animation: mu-pulse 1.4s ease-in-out infinite;
}

.terminal-step-dot.done { background: var(--accent-primary); }

.terminal-step-text.done {
  color: var(--accent-primary);
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-block {
  position: relative;
  padding: 72px 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-primary);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  overflow: hidden;
}

.cta-block .cta-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.cta-block .cta-content { position: relative; max-width: 720px; }

.cta-block .vc-eyebrow { margin-bottom: 24px; }

.cta-block h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cta-block .cta-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.55;
  max-width: 560px;
}

.cta-block .cta-btns {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

footer .gradient-line { height: 3px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}

.footer-col-heading {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 0;
    border-left: 1px solid var(--border-subtle);
    transition: right var(--transition);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    padding: 16px 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }

  .nav-cta .btn { width: 100%; justify-content: center; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  .nav-overlay.active { display: block; }
}

@media (max-width: 768px) {
  body { padding-top: 65px; }

  .navbar .container { height: 65px; }

  .hero { padding: 48px 0 56px; }

  .section { padding: 56px 0; }

  /* Hero stacks to single column on mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-headline {
    font-size: 2.2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }

  .hero-left .hero-btns {
    flex-direction: column;
  }

  .hero-left .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .picker-card { padding: 20px; }

  .team-card { flex: 0 0 220px; }

  /* Before/after stacks on mobile */
  .ba-columns {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .ba-col-manual {
    padding: 4px 4px 16px;
    border-right: none;
    border-bottom: 1px dashed var(--border-subtle);
    margin-bottom: 12px;
  }

  .ba-col-auto { padding: 4px; }

  .ba-nav-btn { min-width: 0; flex: 1; }

  /* CTA corners smaller on mobile */
  .vc-corner { width: 6px; height: 6px; }

  .cta-block { padding: 40px 24px; }

  .cta-block h2 { font-size: 2rem; }

  /* Footer collapses to single column */
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .content-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .hero-btns .btn { width: 100%; }

  .cta-block .cta-btns .btn { width: 100%; }
}


/* ============================================================
   FLOATING CHAT WIDGET
   ============================================================ */

.chat-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-primary-glow), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  color: #fff;
  touch-action: none;
  user-select: none;
}

.chat-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px var(--accent-primary-glow), 0 4px 16px rgba(0,0,0,0.5);
}

.chat-widget-btn.dragging {
  transform: scale(1.1);
  cursor: grabbing;
}

.chat-widget-btn svg { pointer-events: none; flex-shrink: 0; }

/* Unread badge */
.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  display: none;
}

.chat-badge.visible { display: block; }

/* Chat panel */
.chat-panel {
  position: fixed;
  z-index: 7999;
  width: 520px;
  height: 700px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0;
  transform: translateY(8px);
}

.chat-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  animation: ledBlink 1.5s infinite ease-in-out;
}

.chat-panel.is-processing .chat-status-dot {
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: ledBlink 0.6s infinite ease-in-out;
}

.chat-panel.locked { border-left-color: var(--accent-red); }
.chat-panel.locked .chat-submit { opacity: 0.4; }

.chat-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-panel-close:hover { color: var(--text-primary); }

.chat-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(74, 143, 202, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.chat-area::-webkit-scrollbar       { width: 4px; }
.chat-area::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 2px; }

.chat-msg {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.agent-msg { color: #00ff41; text-shadow: 0 0 5px rgba(0,255,65,0.2); }
.chat-msg.user-msg  { color: #ffffff; }
.chat-msg.system-msg { color: #00f2ff; text-transform: uppercase; font-size: 14px; opacity: 0.9; }

.chat-msg .msg-header { font-weight: 700; margin-right: 5px; }

/* Markdown content inside chat */
.chat-msg .msg-content p,
.chat-msg .msg-content ul,
.chat-msg .msg-content ol,
.chat-msg .msg-content li {
  color: inherit;
  font-family: inherit;
  margin: 0;
}

.chat-msg .msg-content ul,
.chat-msg .msg-content ol {
  display: block;
  margin: 6px 0 6px 18px;
}

.chat-msg .msg-content strong { color: #fff; font-weight: 700; }

.chat-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #00ff41;
  margin-left: 3px;
  vertical-align: middle;
  animation: ledBlink 0.8s infinite;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chat-input-prompt {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: bold;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.chat-input:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-submit {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  min-height: 32px;
  flex-shrink: 0;
}

.chat-submit:hover  { background: var(--accent-primary-hover); }
.chat-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Mobile: full-width panel at bottom */
@media (max-width: 768px) {
  .chat-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 60vh !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    border-left: none !important;
    border-top: 4px solid var(--accent-blue) !important;
  }
}


/* ============================================================
   CONTACT FORM (AJAX)
   ============================================================ */

.contact-form-section { padding: 60px 0; }

.form-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 40px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-refined {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 48px;
  max-width: 850px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.10em;
}

.mono-label::before { content: "[ "; }
.mono-label::after  { content: " ]"; }

.form-refined input,
.form-refined select,
.form-refined textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 14px;
  font-family: var(--font);
  font-size: 16px;
  transition: border-color var(--transition), background var(--transition);
}

.form-refined input:focus,
.form-refined select:focus,
.form-refined textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.form-refined textarea {
  min-height: 150px;
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.form-group .error-text {
  color: var(--accent-red);
  font-size: 14px;
  margin-top: 6px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--accent-red);
}

/* Contact form success box */
.enquiry-success-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease-out;
}

.enquiry-success-icon   { font-size: 52px; color: var(--accent-green); margin-bottom: 20px; line-height: 1; }
.enquiry-success-box h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }

.enquiry-success-lead {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.enquiry-success-details {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
}

.enquiry-success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 14px;
}

.enquiry-success-row:last-child { border-bottom: none; }
.enquiry-success-label  { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.enquiry-success-value  { color: var(--text-primary); font-weight: 600; }

.enquiry-success-note { color: var(--text-muted); font-size: 14px; margin: 0; }
.enquiry-success-note a { color: var(--accent-primary); text-decoration: none; }
.enquiry-success-note a:hover { text-decoration: underline; }

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  animation: fadeInUp 0.3s ease-out;
}

.toast-success { background: var(--accent-green); color: var(--bg-primary); }
.toast-error   { background: var(--accent-red); color: #fff; }

@media (max-width: 768px) {
  .form-refined { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-header-bar { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   CONTENT PAGE LAYOUT
   ============================================================ */

.page-hero {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.page-hero h1      { margin-bottom: 8px; }
.page-hero .subtitle { color: var(--text-secondary); font-size: 1.1rem; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding-bottom: 80px;
}

.content-main {
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-main h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.content-main p   { margin-bottom: 16px; }

.content-main a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-sidebar { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* --- Side Navigation --- */
.side-nav {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.side-nav .side-nav-title {
  padding: 20px 24px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.side-nav .side-nav-title h3 {
  font-size: 1rem;
  color: var(--accent-blue);
  margin: 0;
}

.side-nav-group {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.side-nav-group:last-child { border-bottom: none; }

.side-nav-group h4 { font-size: 0.875rem; margin-bottom: 12px; }

.side-nav-group h4 a { text-decoration: none; }

.side-nav-group.primary h4 a { color: var(--accent-primary); }
.side-nav-group.red     h4 a { color: var(--accent-red); }
.side-nav-group.blue    h4 a { color: var(--accent-blue); }
.side-nav-group.gold    h4 a { color: var(--accent-primary); }

.side-nav-group ul li { padding: 4px 0; }

.side-nav-group ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.side-nav-group ul li a:hover { color: var(--text-primary); }

.side-nav-group ul li a i {
  color: inherit;
  font-size: 0.875rem;
  opacity: 0.5;
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}

.stats .stat h3 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.stats .stat p { font-size: 0.95rem; color: var(--text-muted); }

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


/* ============================================================
   404 TERMINAL ERROR PAGE
   ============================================================ */

.error-terminal {
  max-width: 700px;
  margin: 80px auto;
  padding: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

.error-terminal h1    { color: var(--accent-red); font-size: 36px; margin-bottom: 24px; }
.error-terminal p     { color: var(--text-secondary); margin-bottom: 12px; font-size: 14px; }
.error-terminal a     { color: var(--accent-blue); }
.error-terminal .error-path  { color: var(--accent-primary); }
.error-terminal .error-trace { color: var(--text-muted); }


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-section    { padding: 60px 0; }
.about-section h2 { color: var(--accent-primary); margin-bottom: 24px; }

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.principle-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition);
}

.principle-card:hover   { border-color: var(--accent-primary); }
.principle-card h3      { color: var(--accent-primary); margin-bottom: 12px; font-size: 18px; }
.principle-card p       { color: var(--text-secondary); font-size: 15px; }

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


/* ============================================================
   SOLUTIONS PAGE
   ============================================================ */

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.solution-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.solution-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.solution-card h3 { color: var(--accent-primary); margin-bottom: 12px; }
.solution-card p  { color: var(--text-secondary); font-size: 15px; }

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.solution-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.solution-item h3 { margin-bottom: 8px; font-size: 1.1rem; }

.solution-item ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
  padding: 4px 0;
}

.solution-item ul li a:hover { color: var(--accent-primary); }
.solution-item ul li a i { font-size: 0.875rem; }

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.666% + 16px);
  right: calc(16.666% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-blue) 50%, var(--accent-primary) 100%);
  opacity: 0.4;
}

.process-step { padding: 32px 24px; text-align: center; position: relative; }

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.process-step h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.process-step p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; gap: 8px; }
  .process-steps::before { display: none; }
  .process-step {
    border-left: 2px solid var(--accent-primary);
    border-radius: 0;
    text-align: left;
    padding: 24px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }
  .process-step-number { flex-shrink: 0; width: 48px; height: 48px; font-size: 16px; margin-bottom: 0; }
  .process-step-content { flex: 1; }
}


/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-list { max-width: 800px; margin: 40px auto 0; }

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open]        { border-color: var(--accent-primary); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  user-select: none;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-primary); }

.faq-answer {
  padding: 16px 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
}


/* ============================================================
   QUIZ / ASSESSMENT PAGE
   ============================================================ */

.quiz-page { min-height: calc(100vh - 80px); padding: 80px 0; }

.quiz-hero { text-align: center; margin-bottom: 60px; }

.quiz-hero .label { display: inline-block; margin-bottom: 16px; }

.quiz-hero h1   { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }

.quiz-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.quiz-wrapper { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Progress */
.quiz-progress { margin-bottom: 40px; }

.quiz-progress-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.quiz-progress-track {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-blue));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Question card */
.quiz-question {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 48px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz-question.leaving  { opacity: 0; transform: translateY(-12px); }
.quiz-question.entering { opacity: 0; transform: translateY(12px); }

.quiz-q-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.10em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.quiz-q-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 36px;
}

/* Options */
.quiz-options { display: flex; flex-direction: column; gap: 12px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-secondary);
  transition: all var(--transition);
  width: 100%;
  min-height: 56px;
}

.quiz-option:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--accent-primary);
  background: rgba(238, 61, 67, 0.08);
  color: var(--text-primary);
}

.quiz-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-hover);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}

.quiz-option:hover .quiz-option-letter,
.quiz-option.selected .quiz-option-letter {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(238, 61, 67, 0.10);
}

/* Results */
.quiz-results         { display: none; text-align: center; }
.quiz-results.visible { display: block; animation: fadeInUp 0.5s ease-out; }

.quiz-score-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 56px 48px 48px;
  margin-bottom: 32px;
}

.quiz-score-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.quiz-score-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.quiz-score-number {
  font-size: clamp(72px, 15vw, 112px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.quiz-score-denom { font-size: 28px; font-weight: 400; color: var(--text-muted); }

.quiz-score-tier {
  display: inline-block;
  background: rgba(238, 61, 67, 0.10);
  border: 1px solid rgba(238, 61, 67, 0.30);
  border-radius: 4px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.quiz-score-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

.quiz-score-track {
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  margin: 20px auto 28px;
  max-width: 400px;
  overflow: hidden;
}

.quiz-score-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent-primary);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Recommendations */
.quiz-recs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

.quiz-rec-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.quiz-rec-card i { color: var(--accent-blue); font-size: 18px; margin-bottom: 10px; display: block; }
.quiz-rec-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Lead capture */
.quiz-lead-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  text-align: center;
}

.quiz-lead-card h3  { font-size: 1.4rem; margin-bottom: 8px; }
.quiz-lead-card > p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }

.quiz-lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.quiz-lead-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.quiz-lead-input::placeholder { color: var(--text-muted); }
.quiz-lead-input:focus         { border-color: var(--accent-primary); }

.quiz-lead-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
}

.quiz-lead-submit:hover    { background: var(--accent-primary-hover); box-shadow: 0 0 30px var(--accent-primary-glow); }
.quiz-lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.quiz-share {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.quiz-share-label { font-size: 14px; color: var(--text-secondary); margin: 0 0 14px; }
.quiz-share-label span { color: var(--text-muted); font-size: 14px; }

.quiz-share-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.quiz-share-row .quiz-lead-input { flex: 1; margin: 0; }

.quiz-share-remove {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-share-remove:hover { border-color: var(--accent-red); color: var(--accent-red); }

.quiz-share-add {
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.quiz-share-add:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.quiz-lead-note   { font-size: 14px; color: var(--text-muted); margin-top: 14px; }

.quiz-lead-success {
  display: none;
  padding: 20px;
  background: rgba(125, 194, 66, 0.08);
  border: 1px solid rgba(125, 194, 66, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-size: 15px;
}

.quiz-retake {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  font-family: var(--font);
}

.quiz-retake:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .quiz-question { padding: 28px 24px; }
  .quiz-lead-card { padding: 28px 24px; }
  .quiz-score-card { padding: 36px 24px 32px; }
  .quiz-lead-fields { grid-template-columns: 1fr; }
  .quiz-q-text { font-size: 1.15rem; }
}


/* â”€â”€ Page utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.content-narrow { max-width: 800px; margin: 0 auto; }
.content-wide   { max-width: 860px; margin: 0 auto; }
.content-padded { padding: 60px 0; }

.highlight  { color: var(--accent-primary); }
.text-red   { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.text-sec   { color: var(--text-secondary); }
.h2-gold    { color: var(--accent-primary); margin-bottom: 20px; }
.text-gold  { color: var(--accent-primary); }

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.subtitle-mono {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
}

.subtitle-mono-sm {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.10em;
  margin-bottom: 16px;
}

.subtitle-mono-red {
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.10em;
  margin-bottom: 12px;
}

.doc-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 32px;
}

.mono-tag    { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }
.mono-status { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }

.error-title {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 22px;
  margin-bottom: 32px;
}

.error-actions { margin-top: 32px; display: flex; gap: 16px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table tr       { border-bottom: 1px solid var(--bg-tertiary); }
.data-table th       { text-align: left; padding: 10px 12px; color: var(--accent-primary); }
.data-table td       { padding: 10px 12px; }
.data-table td.col-label  { width: 35%; color: var(--text-muted); }
.data-table td.col-value  { font-style: italic; color: var(--text-muted); }
.data-table td.col-muted  { color: var(--text-muted); }

#quiz-progress-fill,
#quiz-score-bar     { width: 0%; }
#quiz-lead-success  { display: none; }

.mt-2rem            { margin-top: 2rem; }
.text-center-spaced { text-align: center; margin-top: 32px; }
.quiz-subtitle-hint { max-width: 600px; margin: 16px auto 0; }

/* ── Kit preview modal ─────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }
.kit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.kit-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.kit-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  transform: translateY(14px);
  transition: transform 0.2s;
  scrollbar-width: thin;
  scrollbar-color: #4a4a55 rgba(255,255,255,0.04);
}
.kit-modal-overlay.open .kit-modal-box {
  transform: translateY(0);
}
.kit-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.kit-modal-header-text { flex: 1; min-width: 0; }
.kit-modal-industry {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.kit-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}
.kit-modal-close {
  background: none;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}
.kit-modal-close:hover {
  border-color: var(--accent-orange);
  color: var(--text-primary);
}
.kit-modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 22px;
}
.kit-modal-agents-header {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.kit-modal-agents { display: flex; flex-direction: column; gap: 7px; }
.kit-modal-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.kit-modal-agent.lead {
  border-color: color-mix(in srgb, var(--accent, #4A8FCA) 35%, transparent);
}
.kit-modal-agent-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #383848;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  opacity: 0.9;
}
.kit-modal-agent.lead .kit-modal-agent-avatar {
  background: var(--accent, #4A8FCA);
}
.kit-modal-agent-info { flex: 1; min-width: 0; }
.kit-modal-agent-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kit-modal-agent-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kit-modal-lead-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(245,135,31,0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(245,135,31,0.28);
  flex-shrink: 0;
}

