:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-sunken: #f1f5f9;
  --bg-dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --signal-green: #16a34a;
  --signal-amber: #d97706;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-icon {
  background: var(--text-main);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

nav.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.925rem;
  font-weight: 500;
}

nav.main-nav a {
  color: var(--text-muted);
}

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

/* Hero Section */
.hero {
  background: #090d16;
  color: #ffffff;
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid #1e293b;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 25ch;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 65ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* BLUF Box (Bottom Line Up Front - GEO AI Search) */
.bluf-box {
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.bluf-box strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.bluf-box p {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--signal-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  background: #15803d;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-dark {
  background: #ffffff;
  color: var(--text-main);
}

.btn-dark:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: #f8fafc;
}

/* Video Showcase Box */
.video-showcase {
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2.5rem 0;
  border: 1px solid #334155;
}

.video-header {
  background: #1e293b;
  color: #f8fafc;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #000;
  display: flex;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-surface-sunken);
  font-weight: 700;
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item details summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

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

.faq-item details summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-muted);
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sticky Download Bar / Funnel CTA */
.funnel-cta-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 3.5rem 0;
  text-align: center;
  border: 1px solid #334155;
  box-shadow: var(--shadow-lg);
}

.funnel-cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.funnel-cta-box p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto 2rem;
}

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

/* Print Styles for Legal Templates */
@media print {
  header, footer, .hero, .btn, .video-showcase, .funnel-cta-box, .faq-section {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .printable-document {
    border: 2px solid #000 !important;
    padding: 20px !important;
  }
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

footer a {
  color: #cbd5e1;
}

footer a:hover {
  color: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
