/* ═══════════════════════════════════════
   Aipolis — AI Legal Compliance Agents
   ═══════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:   #ffffff;
  --bg-secondary: #f7f6f3;
  --bg-tertiary:  #f2f1ee;
  --text-primary: #1a1a18;
  --text-secondary: #6b6b67;
  --border-light:  rgba(0,0,0,0.08);
  --border-medium: rgba(0,0,0,0.15);
  --teal-50:  #E1F5EE;
  --teal-100: #9FE1CB;
  --teal-400: #1D9E75;
  --teal-600: #0F6E56;
  --blue-50:  #E6F1FB;
  --blue-200: #85B7EB;
  --blue-400: #378ADD;
  --blue-600: #185FA5;
  --amber-400: #BA7517;
  --amber-50:  #FAEEDA;
  --amber-100: #F5D49A;
  --pink-400: #D4537E;
  --pink-50:  #FBEAF0;
  --navy:     #0C1E3C;
  --r:    8px;
  --r-lg: 14px;
  --ff-serif: 'Playfair Display', serif;
  --ff-sans:  'DM Sans', sans-serif;
}

body {
  font-family: var(--ff-sans);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT UTILITIES ── */
.container {
  max-width: 1060px;
  margin: 0 auto;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}
.logo span { color: var(--teal-400); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; font-weight: 400; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 14px; font-weight: 500;
  padding: 9px 22px;
  border: 1px solid var(--border-medium);
  border-radius: var(--r);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--bg-secondary); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy);
  padding: 0.7rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 7px;
  letter-spacing: 0.01em;
}
.trust-item strong { color: #fff; font-weight: 500; }
.trust-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── HERO ── */
.hero {
  padding: 8rem 2rem 7rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  border: 1px solid var(--teal-100);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 2.25rem;
  background: var(--teal-50);
}

.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero-title em { font-style: italic; color: var(--teal-400); }

.hero-sub {
  font-size: 18px; font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-actions {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-base {
  padding: 13px 30px;
  border-radius: var(--r);
  font-size: 15px;
  cursor: pointer; font-family: var(--ff-sans);
  text-decoration: none; display: inline-block;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--teal-400); color: #fff;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-medium); font-weight: 400;
}
.btn-secondary:hover { background: var(--bg-secondary); }

/* ── STATS ── */
.stats-wrap.container {
  padding: 0 2rem 5.5rem;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border-light);
  gap: 1px;
}
.stat {
  background: var(--bg-primary);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.stat:hover { background: var(--bg-secondary); }
.stat-num {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1; margin-bottom: 10px;
}
.stat-label {
  font-size: 13px; color: var(--text-secondary);
  font-weight: 300; line-height: 1.55;
}

/* ── SECTION ── */
.section {
  padding: 5.5rem 2rem;
}
.section.container,
.section { max-width: 1060px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.75px; margin-bottom: 1rem;
  color: var(--text-primary); max-width: 620px;
}

.section-sub {
  font-size: 15.5px; color: var(--text-secondary);
  font-weight: 300; line-height: 1.8;
  max-width: 560px; margin-bottom: 3rem;
}

/* ── AGENTS GRID ── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border-light);
  gap: 1px;
}

.agent-card {
  background: var(--bg-primary);
  padding: 2rem; position: relative;
  transition: background 0.2s;
}
.agent-card:hover { background: var(--bg-secondary); }
.agent-card.featured { background: var(--bg-primary); }

.agent-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}

.agent-badge {
  display: inline-block; font-size: 10.5px; font-weight: 500;
  padding: 4px 11px; border-radius: 100px; margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
}
.badge-live  { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.badge-blue  { background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-200); }
.badge-amber { background: var(--amber-50); color: var(--amber-400); border: 1px solid var(--amber-100); }
.badge-pink  { background: var(--pink-50); color: var(--pink-400); border: 1px solid #f0b8cc; }
.badge-soon  { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-light); }

.agent-name {
  font-family: var(--ff-serif);
  font-size: 36px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 4px; line-height: 1;
}
.n-teal  { color: var(--teal-400); }
.n-blue  { color: var(--blue-600); }
.n-amber { color: var(--amber-400); }
.n-pink  { color: var(--pink-400); }

.agent-reg {
  font-size: 10.5px; font-weight: 500;
  color: var(--text-secondary); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.agent-desc {
  font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 1.25rem; font-weight: 300;
}
.agent-review {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem; margin-bottom: 1.25rem;
}
.review-pip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal-400); flex-shrink: 0; margin-top: 4px;
}
.agent-link {
  font-size: 13px; font-weight: 500;
  color: var(--teal-400); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 0.2s;
}
.agent-link:hover { opacity: 0.7; }
.agent-link.muted { color: var(--text-secondary); cursor: default; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border-light); margin: 0 2rem; }

/* ── BUILT BY HUMANS ── */
.built-by {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.built-by-inner {
  max-width: 1060px; margin: 0 auto;
  padding: 5.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.built-by-title {
  font-family: var(--ff-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.built-by-title em { font-style: italic; color: var(--teal-400); }
.built-by-body {
  font-size: 14.5px; font-weight: 300;
  color: var(--text-secondary); line-height: 1.85;
}
.built-by-body strong { font-weight: 500; color: var(--text-primary); }

.cred-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 1.5rem; margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.cred-card:hover { border-color: var(--border-medium); background: var(--bg-tertiary); }

.cred-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 0.5rem;
}
.cred-name {
  font-family: var(--ff-serif);
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.4rem;
}
.cred-desc {
  font-size: 13px; font-weight: 300;
  color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 10.5px; font-weight: 400;
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  background: var(--bg-primary);
}

/* ── MACHINE VS HUMAN ── */
.mvh {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-tertiary);
}
.mvh-inner {
  max-width: 1060px; margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem; align-items: start;
}
.mvh-line { background: var(--border-light); align-self: stretch; }
.mvh-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 0.7rem;
}
.mvh-title {
  font-family: var(--ff-serif);
  font-size: 19px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}
.mvh-desc {
  font-size: 13.5px; font-weight: 300;
  color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.25rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11px; padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border-light);
  gap: 1px;
}
.how-step {
  padding: 2.25rem 1.75rem;
  background: var(--bg-primary);
  transition: background 0.2s;
}
.how-step:hover { background: var(--bg-secondary); }
.step-num {
  font-family: var(--ff-serif);
  font-size: 46px; font-weight: 700;
  color: rgba(0,0,0,0.07);
  margin-bottom: 1rem; line-height: 1;
}
.step-title { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }

/* ── CTA ── */
.cta-band {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 7rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, var(--teal-50) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--ff-serif);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 1.1rem; line-height: 1.12;
  color: var(--text-primary);
}
.cta-sub {
  font-size: 16px; color: var(--text-secondary);
  font-weight: 300; margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  line-height: 1.8;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 3rem;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--ff-serif);
  font-size: 18px; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}
.footer-logo span { color: var(--teal-400); }
.footer-links { display: flex; gap: 1.75rem; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-secondary); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .built-by-inner { grid-template-columns: 1fr; gap: 3rem; }
  .mvh-inner { grid-template-columns: 1fr; }
  .mvh-line { display: none; }
}
@media (max-width: 860px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .section { padding: 3.5rem 1.25rem; }
  .stats-wrap.container { padding: 0 1.25rem 3.5rem; }
  .divider { margin: 0 1.25rem; }
  .trust-bar { padding: 0.6rem 1.25rem; gap: 0.75rem; }
  .trust-sep { display: none; }
  .built-by-inner { padding: 3.5rem 1.25rem; }
  .mvh-inner { padding: 3rem 1.25rem; }
  footer { padding: 2rem 1.25rem; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .how-grid { grid-template-columns: 1fr; }
}
