/* Maxlegal.AI — Visual Design */

:root {
  --navy: #0A1628;
  --navy-light: #0E1B30;
  --navy-mid: #132240;
  --navy-surface: #162847;
  --gold: #C9A96E;
  --gold-light: #D4BA85;
  --gold-dim: rgba(201, 169, 110, 0.12);
  --gold-glow: rgba(201, 169, 110, 0.06);
  --text-primary: #F0EDE8;
  --text-secondary: #8A919C;
  --text-tertiary: #7B8494;
  --risk-red: #924040;
  --risk-red-text: #E8A0A0;
  --risk-bg: rgba(146, 64, 64, 0.08);
  --advantage-green-text: #A0D8B8;
  --advantage-bg: rgba(59, 107, 79, 0.08);
  --border-subtle: rgba(201, 169, 110, 0.06);
  --border-card: rgba(201, 169, 110, 0.08);
  --border-hover: rgba(201, 169, 110, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--navy);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  padding: 0 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle), 0 8px 32px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-logo span {
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
}

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

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-trigger:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

.lang-globe-icon {
  font-size: 14px;
}

.lang-chevron {
  font-size: 10px;
  transition: transform 0.25s;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(14, 27, 48, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 10px;
  padding: 0.35rem;
  list-style: none;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 200;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, background 0.15s;
}

.lang-option:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.lang-option.active {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.25s;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-icon {
  font-size: 15px;
  opacity: 0.7;
  transition: opacity 0.25s;
  flex-shrink: 0;
  color: var(--gold);
}

.nav-links a:hover .nav-icon { opacity: 1; }

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

.nav-portal-link {
  color: var(--gold) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  opacity: 0.8;
  transition: opacity 0.25s !important;
}

.nav-portal-link:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* ========== HERO ========== */
.hero {
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 169, 110, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(30, 60, 114, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 169, 110, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(201, 169, 110, 0.18);
  top: 10%;
  left: 20%;
  animation: orb-drift-1 16s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(30, 60, 140, 0.25);
  bottom: 0;
  right: 10%;
  animation: orb-drift-2 22s ease-in-out infinite;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: rgba(201, 169, 110, 0.12);
  top: 50%;
  left: 50%;
  animation: orb-drift-3 14s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  33% { transform: translate(80px, -50px) scale(1.15); opacity: 0.7; }
  66% { transform: translate(-40px, 40px) scale(0.9); opacity: 1; }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(-70px, -50px) scale(1.2); opacity: 0.6; }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  40% { transform: translate(-60px, 30px) scale(1.1); opacity: 0.7; }
  70% { transform: translate(50px, -60px) scale(0.85); opacity: 1; }
}

/* Stars canvas */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  z-index: 1;
  animation: grid-breathe 8s ease-in-out infinite;
}

@keyframes grid-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero h1 .gold {
  background: linear-gradient(135deg, #C9A96E 0%, #E8D5A8 50%, #C9A96E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #C9A96E, #B8944F);
  color: var(--navy);
  padding: 0.95rem 2.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.25);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--gold);
  padding: 0.95rem 2.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.btn-secondary:hover {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
section {
  padding: 5.5rem 2rem;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: var(--gold-dim);
  padding: 0.35rem 1rem;
  border-radius: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 580px;
  line-height: 1.7;
  font-weight: 400;
}

.section-subtitle.centered { margin: 0 auto; }

/* Section divider glow */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), rgba(201, 169, 110, 0.12), var(--gold-dim), transparent);
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.card {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, rgba(201, 169, 110, 0.03), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

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

.card:hover::after { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Problem cards — red accent */
.card.risk {
  border-left: 3px solid var(--risk-red);
}

.card.risk .card-icon {
  background: var(--risk-bg);
  color: var(--risk-red-text);
}

/* ========== SOLUTION ========== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.solution-card {
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 110, 0.2), transparent);
}

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

.solution-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ========== PRODUCT ========== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 3.5rem;
}

.product-image {
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(201, 169, 110, 0.05) 0%, transparent 70%), linear-gradient(145deg, var(--navy-mid), var(--navy-light));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(145deg, rgba(201, 169, 110, 0.15), transparent 50%, rgba(201, 169, 110, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.product-img.active {
  opacity: 1;
}

.product-img-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.product-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

.product-dot:hover {
  border-color: var(--gold);
}

.product-specs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.product-specs h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.product-specs ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.product-specs li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.product-specs li:last-child { border-bottom: none; }

.product-specs li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
}

.product-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #C9A96E, #E8D5A8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== COMPARISON TABLE ========== */
.comparison-wrapper {
  overflow-x: auto;
  margin-top: 3.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th {
  padding: 1.4rem 1.75rem;
  text-align: left;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1rem;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th:first-child { color: var(--text-secondary); }
.comparison-table th.cloud { color: var(--risk-red-text); }
.comparison-table th.maxlegal { color: var(--gold); }

.comparison-table td {
  padding: 1.1rem 1.75rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  transition: background 0.2s;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.01); }
.comparison-table td:first-child { color: var(--text-primary); font-weight: 500; }

.comparison-table td.cloud {
  color: var(--risk-red-text);
  background: var(--risk-bg);
}

.comparison-table td.maxlegal {
  color: var(--advantage-green-text);
  background: var(--advantage-bg);
}

.comparison-table tr:hover td.cloud { background: rgba(146, 64, 64, 0.12); }
.comparison-table tr:hover td.maxlegal { background: rgba(59, 107, 79, 0.12); }

/* ========== USE CASES ========== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.usecase-card {
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position: relative;
}

.usecase-card::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 2rem;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

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

.usecase-card h3 {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
  margin-top: 0.75rem;
}

.usecase-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ========== MODEL CAPABILITIES ========== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.metric-card {
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.35s, transform 0.35s;
}

.metric-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.metric-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.75rem;
  line-height: 1;
  background: linear-gradient(135deg, #C9A96E 0%, #E8D5A8 50%, #C9A96E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.metric-label {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.metric-detail {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* Benchmark bars */
.benchmark-section {
  margin-top: 3.5rem;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.benchmark-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  text-align: center;
}

.benchmark-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bench-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.bench-name {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.bench-row.highlight .bench-name {
  color: var(--gold-light);
  font-weight: 500;
}

.bench-tag {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.bench-track {
  height: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bench-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bench-fill.gold {
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.3), rgba(201, 169, 110, 0.6));
  box-shadow: inset 0 0 12px rgba(201, 169, 110, 0.15);
}

.bench-fill.neutral {
  background: rgba(255, 255, 255, 0.06);
}

.bench-score {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  font-family: 'DM Sans', sans-serif;
}

.bench-row.highlight .bench-score {
  color: var(--gold);
}

.benchmark-cite {
  display: block;
  margin-top: 1.75rem;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-style: normal;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Training highlights */
.training-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.training-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.35s;
}

.training-card:hover {
  border-color: var(--border-hover);
}

.training-card .nav-icon {
  font-size: 20px;
  margin-top: 0.15rem;
  opacity: 1;
}

.training-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.training-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* Responsive for capabilities */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .training-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bench-row {
    grid-template-columns: 100px 1fr 50px;
    gap: 0.5rem;
  }
  .bench-name {
    font-size: 0.78rem;
  }
  .benchmark-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bench-row {
    grid-template-columns: 80px 1fr 45px;
  }
}

/* ========== ARCHITECTURE ========== */
.arch-section {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.arch-section::before { display: none; }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.arch-card {
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-surface));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.arch-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

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

.arch-card:hover::after { opacity: 0.5; }

.arch-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.arch-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ========== TRUST ========== */
.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.trust-item {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--gold);
  padding: 2rem 2.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color 0.35s, transform 0.35s;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  border-left-color: var(--gold);
}

.trust-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.trust-item cite {
  display: block;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ========== CTA SECTION ========== */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before { display: none; }

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-inner {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-social a {
  color: var(--text-tertiary);
  transition: color 0.25s, background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 18px;
}

.footer-social a:hover {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: rgba(201, 169, 110, 0.15);
}

.footer-col h4 {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 3.5rem auto 0;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.75rem;
}

.footer-legal-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.25s;
}

.footer-legal-links a:hover { color: var(--text-secondary); }

.footer-disclaimer-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.footer-disclaimer-bar p {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger animation for cards in grids */
.cards-grid .fade-in:nth-child(2),
.solution-grid .fade-in:nth-child(2),
.arch-grid .fade-in:nth-child(2),
.usecases-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }

.cards-grid .fade-in:nth-child(3),
.solution-grid .fade-in:nth-child(3),
.arch-grid .fade-in:nth-child(3),
.usecases-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

.usecases-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(14, 27, 48, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-subtle);
  }

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

  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .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); }

  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  section { padding: 4rem 1.5rem; }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

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

  .cards-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }
}

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ========== DEMO PAGE ========== */
.demo-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-form-wrapper {
  max-width: 580px;
  width: 100%;
}

.demo-form-wrapper h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.demo-form-wrapper > p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 400;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--navy-light);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-submit { margin-top: 1.75rem; }

.form-submit .btn-primary {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* ========== SKIP TO CONTENT ========== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.15);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ========== MOBILE BACKDROP ========== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  pointer-events: none;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ========== TOUCH FEEDBACK ========== */
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ========== FORM SUCCESS STATE ========== */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.form-success h2 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.form-success p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ========== LEGAL PAGES (Privacy & Terms) ========== */
.legal-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.legal-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.legal-wrapper h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-card);
}

.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.legal-body ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

.legal-body ul.contact-list li::before {
  display: none;
}

.legal-body ul.contact-list li {
  padding-left: 0;
}

.legal-body a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s;
}

.legal-body a:hover {
  color: var(--gold-light);
}

.legal-body strong {
  color: var(--text-primary);
}

/* ========== DATA FLYWHEEL ========== */
.flywheel-visual {
  margin-top: 3.5rem;
}

.flywheel-steps {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  justify-content: center;
}

.flywheel-step {
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  flex: 1;
  max-width: 240px;
  transition: border-color 0.35s, transform 0.35s;
}

.flywheel-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.flywheel-step-num {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.flywheel-step h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.flywheel-step p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

.flywheel-arrow {
  color: var(--gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  opacity: 0.4;
}

.flywheel-timeline {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.timeline-item {
  flex: 1;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-top: 2px solid rgba(201, 169, 110, 0.15);
  transition: border-color 0.35s;
}

.timeline-item.active {
  border-top-color: var(--gold);
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-surface));
}

.timeline-period {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.timeline-item.active .timeline-desc {
  color: var(--text-primary);
}

/* ========== ABA COMPLIANCE ========== */
.compliance-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.compliance-item {
  display: grid;
  grid-template-columns: 160px 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  transition: border-color 0.35s;
}

.compliance-item:hover {
  border-color: var(--border-hover);
}

.compliance-rule {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
  color: var(--gold);
}

.compliance-duty {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
}

.compliance-how {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ========== RESPONSIVE — NEW SECTIONS ========== */
@media (max-width: 1024px) {
  .flywheel-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .flywheel-arrow {
    display: none;
  }
  .flywheel-step {
    max-width: none;
    flex: 1 1 calc(50% - 0.5rem);
  }
  .flywheel-timeline {
    flex-wrap: wrap;
  }
  .timeline-item {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 768px) {
  .compliance-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .flywheel-step {
    flex: 1 1 100%;
  }
  .flywheel-timeline {
    flex-direction: column;
  }
  .legal-page {
    padding: 6rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .compliance-grid {
    margin-top: 2rem;
  }
}
