/* ============================================
   AGENTIC LAW — NetDocuments Enterprise Design System
   Premium, clean, enterprise SaaS stylesheet
   ============================================ */

/* -------- Google Fonts: Open Sans -------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

/* -------- CSS Variables -------- */
:root {
  /* Brand colours */
  --brand-blue: #016FF4;
  --navy-darkest: #0A1529;
  --navy-primary: #1B3A5C;
  --navy-mid: #2E5A88;
  --orange: #F36B21;
  --ai-purple: #B521E8;
  --gold: #FFAA00;
  --green: #05B07D;
  --white: #FFFFFF;
  --off-white: #F3F3F3;
  --light-blue-wash: #F0F4F8;
  --blue-tint: #CADFFA;
  --lavender: #E7DAEB;
  --border-grey: #E5E7EB;
  --text-dark: #1B3A5C;
  --text-body: #4A5568;
  --text-light: #8896A6;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(1, 111, 244, 0.06);
  --shadow-md: 0 2px 8px rgba(1, 111, 244, 0.08);
  --shadow-lg: 0 8px 24px rgba(1, 111, 244, 0.12);

  /* Radii */
  --radius-card: 8px;
  --radius-button: 6px;

  /* Layout */
  --max-width: 1200px;
  --section-spacing: 48px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 { color: var(--navy-primary); font-weight: 700; line-height: 1.3; }
h1 { font-size: 40px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--brand-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy-mid); }
ul, ol { margin-bottom: 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 600; color: var(--text-dark); }
em { font-style: italic; }

/* -------- Layout Helpers -------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-spacing) 0; }
.section-light { background: var(--white); }
.section-wash { background: var(--light-blue-wash); }
.section-dark { background: var(--navy-darkest); color: rgba(255,255,255,0.85); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

/* -------- Accent Bar -------- */
.accent-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.accent-bar.blue { background: var(--brand-blue); }
.accent-bar.orange { background: var(--orange); }
.accent-bar.purple { background: var(--ai-purple); }
.accent-bar.green { background: var(--green); }
.accent-bar.gold { background: var(--gold); }
.accent-bar.white { background: var(--white); }

/* -------- Section Header -------- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .accent-bar { margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 700px; margin: 0 auto; color: var(--text-body); font-size: 17px; }

/* -------- Navigation -------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  padding: 16px 0;
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}
.navbar.scrolled .nav-logo { color: var(--navy-primary); }
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo .logo-accent { color: var(--brand-blue); }
.navbar.scrolled .nav-logo .logo-accent { color: var(--brand-blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
  position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: var(--brand-blue); }
.nav-links a.active { color: var(--brand-blue); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}
.nav-cta {
  background: var(--brand-blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--navy-mid); color: var(--white) !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled .nav-toggle span { background: var(--navy-primary); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-secondary:hover {
  background: var(--brand-blue);
  color: var(--white);
}
.btn-light {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* -------- Hero Section -------- */
.hero {
  background: var(--navy-darkest);
  background-image: linear-gradient(135deg, #0A1529 0%, #0F2347 50%, #0A1529 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(1,111,244,0.15) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--navy-darkest));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero h1 {
  color: var(--white);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero .hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 620px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Trust badges in hero */
.hero-trust {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.hero-trust-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: none;
  margin-bottom: 12px;
}
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
.trust-badge-pill svg { width: 14px; height: 14px; opacity: 0.8; }

/* -------- Stats Bar -------- */
.stats-bar {
  background: var(--white);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}
.stat-item .stat-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.4;
}
.stat-item .stat-source {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: 4px;
}

/* -------- Feature Grid (cloud-native, etc.) -------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 32px 24px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-blue-wash);
  border-radius: 12px;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--brand-blue); }
.feature-item h3 { margin-bottom: 8px; font-size: 18px; }
.feature-item p { font-size: 14px; color: var(--text-body); margin: 0; }

/* -------- Context Graph -------- */
.context-graph-section { padding: 64px 0; }
.cg-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.cg-intro p { font-size: 17px; color: var(--text-body); }
.cg-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.cg-feature {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--ai-purple);
  transition: box-shadow 0.3s ease;
}
.cg-feature:hover { box-shadow: var(--shadow-md); }
.cg-feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--ai-purple);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.cg-feature h4 { margin-bottom: 8px; font-size: 16px; }
.cg-feature p { font-size: 14px; margin: 0; color: var(--text-body); }
.cg-feature-icon { width: 32px; height: 32px; margin-bottom: 12px; color: var(--ai-purple); }

/* Quote block */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}
.quote-block blockquote {
  font-size: 20px;
  font-style: italic;
  color: var(--navy-primary);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
}
.quote-block cite {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  font-style: normal;
}

/* -------- Comparison Table -------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table thead { background: var(--navy-primary); }
.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.comparison-table th:first-child { width: 30%; }
.comparison-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-grey);
}
.comparison-table tbody tr:nth-child(even) { background: var(--light-blue-wash); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--green); font-weight: 700; font-size: 18px; }
.comparison-table .cross { color: #E53E3E; font-weight: 700; font-size: 18px; }
.comparison-table .warn { color: var(--gold); font-weight: 700; font-size: 18px; }

/* -------- Services Section -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  border-left: 4px solid var(--brand-blue);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card.accent-purple { border-left-color: var(--ai-purple); }
.service-card.accent-orange { border-left-color: var(--orange); }
.service-card-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--brand-blue); }
.service-card.accent-purple .service-card-icon { color: var(--ai-purple); }
.service-card.accent-orange .service-card-icon { color: var(--orange); }
.service-card h3 { margin-bottom: 8px; font-size: 18px; }
.service-card p { font-size: 14px; margin-bottom: 16px; }
.service-card .service-expand {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.service-card:hover .service-expand { gap: 10px; }
.service-card .chevron {
  width: 16px; height: 16px;
  transition: transform 0.3s ease;
}
.service-card.expanded .chevron { transform: rotate(180deg); }

/* Service detail panel */
.service-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.service-card.expanded .service-detail { max-height: 2000px; }
.service-detail-inner { padding-top: 20px; border-top: 1px solid var(--border-grey); margin-top: 16px; }
.service-detail-inner h4 { font-size: 15px; margin-bottom: 10px; color: var(--navy-primary); }
.service-detail-inner ul { padding-left: 1rem; }
.service-detail-inner li { font-size: 14px; margin-bottom: 6px; color: var(--text-body); }
.service-detail-inner .detail-sub { margin-bottom: 20px; }
.service-detail-inner .detail-sub:last-child { margin-bottom: 0; }
.service-tag-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.service-tag {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--light-blue-wash);
  color: var(--navy-mid);
}

/* -------- Process Timeline -------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.phase-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.phase-card:hover { box-shadow: var(--shadow-md); }
.phase-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.phase-card h3 { font-size: 16px; margin-bottom: 4px; }
.phase-weeks {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 12px;
}
.phase-card .phase-body { font-size: 13px; color: var(--text-body); }
.phase-card .phase-body p { font-weight: 600; color: var(--text-dark); margin-bottom: 6px; font-size: 12px; }
.phase-card .phase-body ul { padding-left: 0.9rem; }
.phase-card .phase-body li { font-size: 12px; margin-bottom: 4px; line-height: 1.4; }
.phase-deliverables {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-grey);
}
.phase-deliverables p {
  font-size: 11px; font-weight: 700; color: var(--text-light);
  text-transform: none; margin-bottom: 4px;
}
.phase-deliverables li { font-size: 11px; color: var(--text-light); }

/* -------- Security Section -------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.security-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  border-top: 4px solid var(--orange);
  transition: box-shadow 0.3s ease;
}
.security-card:hover { box-shadow: var(--shadow-md); }
.security-card-icon { width: 36px; height: 36px; margin-bottom: 14px; color: var(--orange); }
.security-card h3 { font-size: 17px; margin-bottom: 10px; }
.security-card p, .security-card li { font-size: 14px; color: var(--text-body); }
.security-card ul { padding-left: 1rem; margin-bottom: 0; }
.security-card li { margin-bottom: 4px; }

/* Cert badges */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-button);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}
.cert-badge svg { width: 16px; height: 16px; color: var(--brand-blue); }

/* -------- Persona Cards -------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.persona-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  border-left: 4px solid var(--brand-blue);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.persona-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.persona-card.accent-orange { border-left-color: var(--orange); }
.persona-card.accent-purple { border-left-color: var(--ai-purple); }
.persona-card.accent-green { border-left-color: var(--green); }
.persona-card.accent-gold { border-left-color: var(--gold); }
.persona-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--brand-blue); }
.persona-card.accent-orange .persona-icon { color: var(--orange); }
.persona-card.accent-purple .persona-icon { color: var(--ai-purple); }
.persona-card.accent-green .persona-icon { color: var(--green); }
.persona-card.accent-gold .persona-icon { color: var(--gold); }
.persona-card h3 { font-size: 18px; margin-bottom: 8px; }
.persona-card .persona-cares {
  font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 14px;
}
.persona-card ul { padding-left: 1rem; margin-bottom: 16px; }
.persona-card li { font-size: 14px; margin-bottom: 6px; }
.persona-callout {
  background: var(--light-blue-wash);
  border-radius: var(--radius-button);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-primary);
}

/* -------- FAQ Accordion -------- */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-category { margin-bottom: 32px; }
.faq-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-tint);
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq-item.open .faq-question { background: var(--light-blue-wash); }
.faq-question .faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--brand-blue);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* -------- About Section -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p { font-size: 16px; margin-bottom: 1rem; }
.about-certifications {
  background: var(--light-blue-wash);
  border-radius: var(--radius-card);
  padding: 32px;
}
.about-certifications h3 { margin-bottom: 16px; }
.about-certifications ul { list-style: none; padding: 0; }
.about-certifications li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: 12px;
}
.about-certifications li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 1px; }

/* -------- Contact Section -------- */
.contact-section {
  background: var(--navy-darkest);
  background-image: linear-gradient(135deg, #0A1529 0%, #0F2347 100%);
  color: rgba(255,255,255,0.85);
  padding: 64px 0;
}
.contact-section h2 { color: var(--white); }
.contact-section p { color: rgba(255,255,255,0.7); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { color: var(--white); margin-bottom: 16px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.contact-info-item svg { width: 20px; height: 20px; color: var(--brand-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info-item span { color: rgba(255,255,255,0.8); }
.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 32px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-button);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: rgba(255,255,255,0.12);
}
.form-group select option { background: var(--navy-darkest); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.form-message.success { display: block; background: rgba(5,176,125,0.2); color: var(--green); border: 1px solid rgba(5,176,125,0.3); }
.form-message.error { display: block; background: rgba(229,62,62,0.2); color: #FC8181; border: 1px solid rgba(229,62,62,0.3); }

/* -------- Footer -------- */
.footer {
  background: var(--navy-darkest);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h4 {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 320px; }
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brand-blue); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); margin: 0 8px; }
.footer-bottom a:hover { color: var(--brand-blue); }

/* -------- Utility -------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.max-760 { max-width: 760px; margin-left: auto; margin-right: auto; }
.hide-mobile { display: block; }

/* -------- Social Proof -------- */
.social-proof-firms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.firm-badge {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}

/* -------- Platform Intro -------- */
.platform-intro { max-width: 800px; margin: 0 auto; }
.platform-intro p { font-size: 17px; margin-bottom: 1rem; }
.platform-intro .highlight-box {
  background: var(--lavender);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 24px 0;
}
.platform-intro .highlight-box p { margin: 0; font-size: 15px; color: var(--navy-primary); font-weight: 600; }

/* -------- Numbers Section -------- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.number-item { text-align: center; }
.number-item .num {
  font-size: 40px;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.number-item .num-label {
  font-size: 13px;
  color: var(--text-body);
}

/* -------- Migration Table -------- */
.migration-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.migration-table th {
  background: var(--navy-primary);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.migration-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-grey);
  vertical-align: top;
}
.migration-table tbody tr:nth-child(even) { background: var(--light-blue-wash); }
.migration-table .phase-num {
  font-weight: 800;
  color: var(--brand-blue);
}

/* Integration table - reuse migration-table style */

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open a { color: var(--text-dark); }
  .nav-links.mobile-open .nav-cta { text-align: center; }

  .hero h1 { font-size: 36px; }
  .hero .hero-sub { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item .stat-number { font-size: 40px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cg-features { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .section { padding: 32px 0; }
  .container { padding: 0 16px; }

  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .hide-mobile { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}
