/* ============================================================================
   Agent Audit — site stylesheet
   Drata-style: light, financial-services trustworthy.
   ============================================================================ */

:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-subtle:     #f7f9fc;
  --bg-elevated:   #ffffff;
  --bg-dark:       #0a1929;
  --bg-deep:       #061528;

  /* Text */
  --text:          #0a1929;
  --text-muted:    #4a5568;
  --text-quiet:    #718096;
  --text-on-dark:  #f0f4f8;

  /* Borders */
  --border:        #e2e8f0;
  --border-strong: #cbd5e0;

  /* Brand */
  --brand:         #1853c5;
  --brand-dark:    #143fa0;
  --brand-light:   #e8efff;
  --brand-soft:    #f2f6fe;

  /* Semantic */
  --success:       #00875a;
  --success-soft:  #e3f4ec;
  --warn:          #b76e00;
  --warn-soft:     #fff4e0;
  --danger:        #c53030;
  --danger-soft:   #fed7d7;

  /* Type */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  --font-serif: 'Source Serif Pro', Georgia, serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 25, 41, 0.05);
  --shadow:    0 4px 12px rgba(10, 25, 41, 0.06), 0 2px 4px rgba(10, 25, 41, 0.04);
  --shadow-lg: 0 20px 40px rgba(10, 25, 41, 0.10), 0 8px 16px rgba(10, 25, 41, 0.05);

  /* Type sizes */
  --t-display: clamp(2.75rem, 1.5rem + 4vw, 4.5rem);
  --t-h1:      clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --t-h2:      clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  --t-h3:      1.375rem;
  --t-h4:      1.125rem;
  --t-body:    1rem;
  --t-sm:      0.875rem;
  --t-xs:      0.75rem;

  --line-tight:  1.1;
  --line-snug:   1.3;
  --line-base:   1.55;
  --line-loose:  1.75;

  /* Layout */
  --max-w:    1240px;
  --max-w-narrow: 880px;
  --max-w-prose:  680px;

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   Reset
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--line-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: var(--line-tight);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.015em; }
h4 { font-size: var(--t-h4); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-md); color: var(--text-muted); line-height: var(--line-base); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

ul, ol { padding-left: 1.25rem; color: var(--text-muted); line-height: var(--line-base); }
li { margin-bottom: var(--space-sm); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-md);
  overflow-x: auto;
  line-height: 1.5;
}
:not(pre) > code {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 1px 6px;
  border-radius: 4px;
}

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

::selection { background: var(--brand-light); color: var(--brand-dark); }

/* ============================================================================
   Layout
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-lg); }
.container-prose  { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 var(--space-lg); }

.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark p { color: rgba(240, 244, 248, 0.78); }
.section-dark a { color: #93c5fd; }

.section-subtle { background: var(--bg-subtle); }
.section-brand-soft { background: var(--brand-soft); }

.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.quiet { color: var(--text-quiet); }
.mono  { font-family: var(--font-mono); }

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
}

/* ============================================================================
   Top nav
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .accent { color: var(--brand); }

.nav-links {
  display: flex;
  gap: var(--space-lg);
  margin-left: var(--space-lg);
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--brand); }

.nav-cta {
  margin-left: auto;
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

@media (max-width: 840px) {
  .nav-links { display: none; }
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover { background: var(--brand-dark); color: #ffffff; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-subtle); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-subtle); }

.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
  position: relative;
  padding: clamp(56px, 4vw + 48px, 112px) 0 clamp(56px, 4vw + 48px, 104px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--brand-soft) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  border: 1px solid var(--brand-light);
}
.hero h1 {
  font-size: var(--t-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--space-md);
}
.hero h1 .accent { color: var(--brand); }
.hero .lede { margin-bottom: var(--space-lg); max-width: 56ch; }
.hero-ctas { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.hero-meta { font-size: 0.85rem; color: var(--text-quiet); }
.hero-meta b { color: var(--text-muted); font-weight: 600; }

/* ============================================================================
   Eyebrows + section headers
   ============================================================================ */

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-md);
}
.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--space-2xl);
}
.section-head h2 { margin-bottom: var(--space-md); }
.section-head p  { font-size: 1.1rem; }

/* ============================================================================
   Logo bar
   ============================================================================ */

.logo-bar {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logo-bar-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-quiet);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  font-weight: 500;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
  filter: grayscale(1);
  opacity: 0.55;
}
.logo-row > * {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

/* ============================================================================
   Feature grids
   ============================================================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-xl);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: var(--space-sm); }
.card p  { margin-bottom: 0; color: var(--text-muted); font-size: 0.95rem; }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

/* ============================================================================
   Stats
   ============================================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stat-value {
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.section-dark .stat-value { color: #ffffff; }
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.section-dark .stat-label { color: rgba(240, 244, 248, 0.7); }

/* ============================================================================
   Quotes / testimonials
   ============================================================================ */

.quote {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
}
.quote blockquote {
  margin: 0 0 var(--space-md);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
}
.quote-attribution { font-size: 0.9rem; color: var(--text-muted); }
.quote-attribution b { color: var(--text); }

/* ============================================================================
   Pricing
   ============================================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  position: relative;
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 12px;
  border-radius: var(--r-full);
}
.price-card h3 { margin-bottom: var(--space-xs); }
.price-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--space-md) 0 var(--space-xs);
}
.price-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-card .price-cap {
  font-size: 0.9rem;
  color: var(--text-quiet);
  margin-bottom: var(--space-lg);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  flex: 1;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.93rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.price-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
@media (max-width: 840px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer .brand {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  color: #ffffff;
}
.footer .brand .accent { color: #5a8df0; }
.footer-tagline { color: rgba(240, 244, 248, 0.6); font-size: 0.9rem; margin-bottom: var(--space-md); }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.55);
  margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a {
  color: rgba(240, 244, 248, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-col a:hover { color: #ffffff; text-decoration: none; }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(240, 244, 248, 0.55);
}

/* ============================================================================
   Page header (non-home pages)
   ============================================================================ */

.page-header {
  padding: clamp(48px, 4vw + 32px, 80px) 0 clamp(40px, 3vw + 24px, 64px);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--brand-soft) 0%, transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  margin-bottom: var(--space-md);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.page-header p { max-width: 56ch; margin: 0 auto; }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-quiet);
  margin-bottom: var(--space-md);
}
.breadcrumbs a { color: var(--text-quiet); }
.breadcrumbs a:hover { color: var(--text); text-decoration: none; }

/* ============================================================================
   Misc
   ============================================================================ */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-brand   { background: var(--brand-soft);   color: var(--brand-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn    { background: var(--warn-soft);    color: var(--warn); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }

.cta-band {
  background: var(--bg-dark);
  color: #ffffff;
  padding: var(--space-3xl) 0;
  text-align: center;
}
.cta-band h2 { color: #ffffff; margin-bottom: var(--space-md); }
.cta-band p  { color: rgba(240, 244, 248, 0.75); max-width: 56ch; margin-inline: auto; margin-bottom: var(--space-lg); }

/* Article / blog */
.article {
  padding: var(--space-2xl) 0 var(--space-3xl);
}
.article h2 { margin: var(--space-2xl) 0 var(--space-md); }
.article h3 { margin: var(--space-xl) 0 var(--space-sm); }
.article p, .article ul, .article ol { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.article ul li, .article ol li { color: var(--text); }
.article-meta {
  display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap;
  color: var(--text-quiet); font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}
.article-cover {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--space-xl);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* List of posts */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.post-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-weight: 700;
  font-size: 1.15rem;
}
.post-body { padding: var(--space-lg); }
.post-body h3 { margin: 0 0 var(--space-sm); font-size: 1.15rem; color: var(--text); }
.post-body p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }
.post-meta { font-size: 0.8rem; color: var(--text-quiet); margin-top: var(--space-md); }
.post-card, .post-card:hover { text-decoration: none; color: inherit; }
