:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --soft: #f8fafc;
  --paper: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #6d28d9;
  --accent-light: #8b5cf6;
  --accent-bg: #f5f3ff;
  --accent-border: #ddd6fe;
  --green: #059669;
  --green-light: #10b981;
  --green-bg: #ecfdf5;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --coral: #dc2626;
  --navy: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --max-w: 1200px;
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

p { margin: 0; }

code, pre {
  font-family: "Geist Mono", "SF Mono", "Fira Code", Consolas, monospace;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

h4 {
  font-size: 18px;
  font-weight: 650;
}

/* ─── Navigation ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
  height: 64px;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: 10px;
  font-weight: 800;
  margin-right: 16px;
}

.brand img {
  border-radius: 8px;
  height: 32px;
  width: 32px;
}

.brand span {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-menu {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  align-items: center;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  gap: 4px;
  padding: 6px 12px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item > button:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-chevron {
  height: 16px;
  width: 16px;
  transition: transform var(--transition);
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: none;
  left: 0;
  min-width: 520px;
  padding: 20px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  display: grid;
}

.nav-dropdown-cols {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.nav-dropdown-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.nav-dropdown-link {
  align-items: flex-start;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  transition: background var(--transition);
}

.nav-dropdown-link:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-dropdown-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.nav-dropdown-icon svg {
  height: 18px;
  width: 18px;
}

.nav-dropdown-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.nav-dropdown-text span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 36px;
  justify-content: center;
  margin-left: auto;
  width: 36px;
}

.nav-toggle svg {
  height: 20px;
  width: 20px;
}

/* ─── Buttons ─── */

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  transition: all var(--transition);
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: #1e293b;
  box-shadow: var(--shadow-md);
  color: var(--paper);
}

.button-secondary {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--soft);
  border-color: var(--ink);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--paper);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--paper);
}

.button-accent {
  background: var(--accent);
  color: var(--paper);
}

.button-accent:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-md);
  color: var(--paper);
}

.button-disabled {
  background: var(--soft);
  border-color: var(--line);
  color: var(--subtle);
  cursor: default;
}

.button-disabled:hover {
  transform: none;
}

.button-sm {
  font-size: 13px;
  min-height: 32px;
  padding: 4px 12px;
}

.button-lg {
  font-size: 16px;
  min-height: 48px;
  padding: 12px 28px;
}

.text-link {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 550;
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--ink);
}

/* ─── Hero ─── */

.hero {
  background: var(--ink);
  overflow: hidden;
  padding: 80px 24px 100px;
  position: relative;
}

.hero::before {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(109, 40, 217, 0.3), transparent);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--max-w);
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 16px;
}

.hero-badge-dot {
  background: var(--green-light);
  border-radius: var(--radius-full);
  height: 8px;
  width: 8px;
}

.hero h1 {
  color: var(--paper);
  margin: 0 auto;
  max-width: 900px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  margin: 24px auto 0;
  max-width: 680px;
}

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

.hero-social-proof {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  margin-top: 48px;
}

/* ─── Trusted logos strip ─── */

.logo-strip {
  border-bottom: 1px solid var(--line);
  padding: 40px 24px;
}

.logo-strip-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max-w);
  opacity: 0.5;
}

.logo-strip-inner svg {
  height: 24px;
  width: auto;
}

/* ─── Trust metrics ─── */

.trust-metrics {
  border-bottom: 1px solid var(--line);
  padding: 32px 24px;
}

.trust-metrics-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: var(--max-w);
  text-align: center;
}

.trust-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-metric-icon {
  color: var(--accent);
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.trust-metric-icon svg {
  height: 24px;
  width: 24px;
}

.trust-metric strong {
  font-size: 15px;
  font-weight: 700;
}

.trust-metric span {
  color: var(--muted);
  font-size: 13px;
}

/* ─── Sections ─── */

.section {
  padding: 96px 24px;
}

.section-alt {
  background: var(--soft);
}

.section-dark {
  background: var(--navy);
  color: #e2e8f0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--paper);
}

.section-dark .muted {
  color: #94a3b8;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max-w);
}

.section-header {
  margin-bottom: 56px;
  max-width: 720px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-top: 16px;
}

.section-dark .section-header p {
  color: #94a3b8;
}

.section-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ─── Grids ─── */

.grid {
  display: grid;
  gap: 20px;
}

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

/* ─── Feature cards ─── */

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.feature-icon svg {
  height: 22px;
  width: 22px;
}

.feature-icon.purple { background: var(--accent-bg); color: var(--accent); }
.feature-icon.green { background: var(--green-bg); color: var(--green); }
.feature-icon.blue { background: var(--blue-bg); color: var(--blue); }
.feature-icon.amber { background: var(--amber-bg); color: var(--amber); }

.feature-card h3 { margin-bottom: 8px; }

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Mode cards (visual showcase) ─── */

.mode-showcase {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.mode-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.mode-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
}

.mode-card-visual {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.mode-card-visual svg {
  height: auto;
  margin: 0 auto;
  width: 100%;
}

.mode-card-body {
  padding: 24px;
}

.mode-card-body h3 { margin-bottom: 8px; }

.mode-card-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ─── File type grid ─── */

.filetype-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.filetype-item {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 8px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filetype-item:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.filetype-item svg {
  height: 32px;
  width: 32px;
  color: var(--muted);
}

.filetype-item span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* ─── Industry cards ─── */

.industry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.industry-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.industry-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 10px;
  color: var(--ink-secondary);
  display: flex;
  flex-shrink: 0;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.industry-icon svg {
  height: 24px;
  width: 24px;
}

.industry-card h4 { margin-bottom: 4px; }

.industry-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Compliance logos ─── */

.compliance-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.compliance-item {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.compliance-item:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.compliance-item svg {
  height: 40px;
  width: 40px;
  color: var(--ink-secondary);
}

.compliance-item strong {
  font-size: 14px;
  font-weight: 700;
}

.compliance-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* ─── Architecture preview ─── */

.arch-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 40px;
}

.arch-preview svg {
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: 800px;
}

/* ─── Testimonials ─── */

.testimonials-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  color: var(--ink-secondary);
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
}

.testimonial-author {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  align-items: center;
  background: var(--accent-bg);
  border-radius: var(--radius-full);
  color: var(--accent);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 650;
}

.testimonial-role {
  color: var(--muted);
  font-size: 13px;
}

/* ─── Platform logos ─── */

.platform-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.platform-group h4 {
  margin-bottom: 16px;
}

.platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-logo {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 8px;
  padding: 10px 14px;
}

.platform-logo svg {
  height: 20px;
  width: 20px;
  color: var(--ink-secondary);
}

.platform-logo span {
  font-size: 13px;
  font-weight: 600;
}

/* ─── Pricing ─── */

.pricing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
}

.pricing-card.featured {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  background: var(--accent);
  border-radius: var(--radius-full);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  position: absolute;
  text-transform: uppercase;
  top: -12px;
  transform: translateX(-50%);
}

.price {
  align-items: baseline;
  display: flex;
  gap: 4px;
  margin-top: 16px;
}

.price strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.pricing-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
}

.pricing-card li {
  color: var(--ink-secondary);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.pricing-card li::before {
  color: var(--green);
  content: "\2713";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.pricing-card .button {
  margin-top: auto;
  width: 100%;
}

/* ─── CTA band ─── */

.cta-band {
  background: var(--ink);
  border-radius: var(--radius-xl);
  color: var(--paper);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 48px;
}

.cta-band h2 {
  color: var(--paper);
  font-size: clamp(24px, 3vw, 36px);
}

.cta-band p {
  color: #94a3b8;
  font-size: 16px;
  margin-top: 8px;
}

/* ─── Mermaid diagrams ─── */

.mermaid-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  padding: 28px;
}

.diagram-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.diagram-shell img {
  width: 100%;
}

/* ─── Footer ─── */

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 64px 24px 40px;
}

.footer-inner {
  margin: 0 auto;
  max-width: var(--max-w);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr repeat(4, 1fr);
}

.footer-brand p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-family {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.footer-family p {
  color: #64748b;
  font-size: 13px;
}

.gigantics-link {
  align-items: center;
  display: inline-flex;
}

.gigantics-logo {
  height: 22px;
  width: auto;
}

.footer-col h4 {
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col a {
  color: #94a3b8;
  display: block;
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
}

.footer-bottom p {
  color: #475569;
  font-size: 13px;
}

/* ─── Page hero (sub-pages) ─── */

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 80px 24px 60px;
}

.page-hero-inner {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: var(--max-w);
}

.page-hero p {
  color: var(--muted);
  font-size: 20px;
  max-width: 720px;
}

.breadcrumb {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Docs layout ─── */

.docs-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.docs-nav {
  position: sticky;
  top: 88px;
}

.docs-nav a {
  border-left: 2px solid transparent;
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 0 7px 14px;
  transition: all var(--transition);
}

.docs-nav a:hover {
  border-left-color: var(--accent);
  color: var(--accent);
}

.docs-content {
  display: grid;
  gap: 36px;
}

.doc-section {
  display: grid;
  gap: 16px;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
}

.doc-section ul,
.doc-section ol {
  margin: 0;
  padding-left: 24px;
}

.doc-search {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  padding: 16px;
}

.doc-search label {
  color: var(--ink);
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-search input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}

.doc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 6px;
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.doc-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.doc-card .tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-card p {
  color: var(--muted);
  font-size: 14px;
}

.doc-empty {
  color: var(--muted);
  padding: 20px;
}

/* ─── Article ─── */

.article {
  margin: 0 auto;
  max-width: 860px;
}

.article h2 {
  font-size: 32px;
  margin-top: 24px;
}

.article h3 {
  margin-top: 18px;
}

.article p,
.article li {
  color: var(--muted);
}

.article ul,
.article ol {
  padding-left: 24px;
}

.callout {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  color: #92400e;
  font-size: 15px;
  line-height: 1.6;
  padding: 20px;
}

/* ─── Download cards ─── */

.download-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.download-card p {
  color: var(--muted);
  margin-top: 8px;
}

.download-card .button {
  margin-top: 20px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  min-height: 32px;
  padding: 4px 14px;
}

/* ─── Command row ─── */

.command-row {
  align-items: stretch;
  background: #1e293b;
  border-radius: var(--radius-lg);
  color: #e2e8f0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.command-row pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}

.command-row button {
  background: #334155;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
  transition: background var(--transition);
}

.command-row button:hover {
  background: #475569;
}

/* ─── Timeline ─── */

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.timeline-item time {
  color: var(--accent);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* ─── Step cards ─── */

.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-card p {
  color: var(--muted);
  margin-top: 8px;
}

/* ─── Check list ─── */

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.check-list li {
  color: var(--ink-secondary);
  font-size: 15px;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  align-items: center;
  background: var(--green);
  border-radius: var(--radius-full);
  color: var(--paper);
  content: "\2713";
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 3px;
  width: 18px;
}

/* ─── Split layout ─── */

.split {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
}

.split-text {
  display: grid;
  gap: 16px;
}

.split-text p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ─── Architecture page ─── */

.arch-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.arch-card-header {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  padding: 24px 28px;
}

.arch-card-number {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius-full);
  color: var(--paper);
  display: flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.arch-card-header div h3 { margin-bottom: 4px; }

.arch-card-header div p {
  color: var(--muted);
  font-size: 14px;
}

.arch-card-body {
  padding: 28px;
}

/* ─── Compliance page ─── */

.compliance-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: grid;
  gap: 20px;
  padding: 32px;
}

.compliance-detail-header {
  align-items: center;
  display: flex;
  gap: 16px;
}

.compliance-detail-badge {
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius-lg);
  color: var(--ink-secondary);
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.compliance-detail-badge svg {
  height: 28px;
  width: 28px;
}

.compliance-detail p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.compliance-detail ul {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.compliance-detail li {
  color: var(--ink-secondary);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.compliance-detail li::before {
  color: var(--green);
  content: "\2713";
  font-weight: 800;
  left: 0;
  position: absolute;
}

/* ─── Utilities ─── */

.muted { color: var(--muted); }

[hidden] { display: none !important; }

.text-center { text-align: center; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .nav-menu {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 0;
    padding: 16px 24px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .nav-menu[data-open] {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-dropdown {
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 8px 0 8px 12px;
    position: static;
  }

  .nav-dropdown-cols {
    grid-template-columns: 1fr;
  }

  .nav-item:hover .nav-dropdown {
    display: none;
  }

  .nav-item.open .nav-dropdown {
    display: grid;
  }

  .nav-actions .text-link {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .testimonials-grid,
  .split,
  .platform-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-band .button {
    justify-self: center;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  body { font-size: 15px; }

  .section { padding: 64px 20px; }

  .page-hero { padding: 56px 20px 44px; }

  .hero { padding: 56px 20px 72px; }

  .grid-3,
  .grid-4,
  .mode-showcase {
    grid-template-columns: 1fr;
  }

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

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

  .filetype-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .trust-metrics-inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .feature-card,
  .pricing-card,
  .doc-card,
  .download-card,
  .step-card,
  .industry-card {
    padding: 20px;
  }

  .button { width: 100%; }
  .button-sm { width: auto; }

  .command-row {
    grid-template-columns: 1fr;
  }
}
