/* ==========================================================================
   Design System Tokens & Root Variables
   ========================================================================== */
:root {
  --bg: #07090e;
  --bg-subtle: #0d121f;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-bg-elevated: rgba(20, 30, 52, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(56, 189, 248, 0.35);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.2);
  --primary-hover: #7dd3fc;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --mono-font: 'Cascadia Code', Consolas, 'SFMono-Regular', Menlo, Monaco, monospace;
  --sans-font: 'Aptos', 'Segoe UI', Tahoma, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--sans-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Atmospheric Glow & Grid */
.bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100vw);
  height: 600px;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #040914;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  border-color: var(--card-border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  color: var(--primary);
  transform: translateY(-1px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.6;
}

.pricing-note a {
  color: inherit;
  text-decoration: underline;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.88);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-icon-img {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  z-index: 102;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer-item {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero h1 span.highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-credo-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  width: 100%;
}

.hero-credo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-credo-icon {
  color: var(--accent);
}

/* ==========================================================================
   Interactive Verification Terminal / Console
   ========================================================================== */
.terminal-card {
  position: relative;
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--card-border);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.terminal-status.is-passed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.terminal-status.is-active {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.terminal-tabs {
  display: flex;
  background: rgba(11, 16, 29, 0.95);
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
}

.drill-stage-tab {
  padding: 10px 16px;
  background: none;
  border: none;
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drill-stage-tab:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.drill-stage-tab.is-active {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
  background: rgba(56, 189, 248, 0.05);
}

.drill-progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  width: 100%;
  position: relative;
}

.drill-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.2s ease-out;
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono-font);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-main);
  min-height: 290px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.terminal-stage-header {
  color: var(--primary);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.term-line {
  margin-bottom: 4px;
  word-break: break-word;
}

.term-time {
  color: var(--text-faint);
  margin-right: 8px;
}

.term-badge {
  font-weight: 700;
  margin-right: 8px;
}

.term-pass { color: #34d399; }
.term-info { color: #7dd3fc; }
.term-warn { color: #fbbf24; }
.term-dim { color: var(--text-faint); }

.term-summary-line {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(11, 16, 29, 0.95);
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.btn-console {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-console-run {
  background: var(--primary);
  color: #040914;
}

.btn-console-run:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-console-run:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-console-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.btn-console-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--card-border-hover);
}

.btn-console-copy.is-success {
  border-color: var(--accent);
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(4, 9, 20, 0.3);
  border-radius: 50%;
  border-top-color: #040914;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Proof Strip (Real Lab Metrics)
   ========================================================================== */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 6rem;
  box-sizing: border-box;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.proof-item:not(:last-child) {
  border-right: 1px solid var(--card-border);
}

.proof-val {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--mono-font);
  color: var(--primary);
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   4-Step Validation Lifecycle (How It Works)
   ========================================================================== */
.lifecycle-section {
  margin-bottom: 6rem;
}

.lifecycle-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.lifecycle-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-fast);
}

.lifecycle-step:hover {
  border-color: var(--card-border-hover);
}

.step-number {
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.step-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  line-height: 1.35;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-badge {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono-font);
  font-size: 0.725rem;
  color: var(--accent);
}

/* Interactive 5-Step Pipeline Stepper & Panels */
.pipeline-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 2rem 0 1.5rem;
}

.pipeline-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  font: inherit;
}

.pipeline-step:hover {
  background: var(--card-bg-elevated);
  border-color: var(--card-border-hover);
}

.pipeline-step.is-active {
  background: rgba(20, 30, 52, 0.95);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.step-num {
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.step-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.step-subtext {
  font-size: 11px;
  color: var(--text-faint);
}

.pipeline-panels {
  position: relative;
  margin-top: 1rem;
}

.pipeline-panel {
  display: none;
  background: var(--card-bg-elevated);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: fadeIn 0.3s ease;
}

.pipeline-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.panel-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.panel-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.panel-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-main);
}

.spec-check {
  color: #34d399;
  font-weight: 800;
  margin-top: 1px;
}

.panel-code-box {
  background: #060910;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--mono-font);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 700;
}

/* ==========================================================================
   Architectural Comparison: PBS Verify vs CertiStack
   ========================================================================== */
.comparison-section {
  margin-bottom: 6rem;
}

.table-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
}

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

.comp-table th, .comp-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--card-border);
}

.comp-table tbody tr:last-child td {
  border-bottom: none;
}

.comp-table th {
  background: #0b101c;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comp-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  width: 28%;
}

.comp-table td:nth-child(2) {
  color: var(--text-muted);
  width: 36%;
}

.comp-table td:nth-child(3) {
  color: #e2e8f0;
  width: 36%;
}

.comp-table .feature-positive {
  color: var(--primary);
  font-weight: 600;
}

.comp-callout {
  background: rgba(14, 28, 48, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.comp-callout strong {
  color: var(--text-main);
}

/* ==========================================================================
   Real Lab Evidence Showcase
   ========================================================================== */
.evidence-section {
  margin-bottom: 6rem;
}

.evidence-viewer {
  background: #080c16;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  max-width: 100%;
  min-width: 0;
}

.evidence-header {
  background: #0c1220;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.evidence-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.evidence-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--sans-font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.evidence-tab-btn:hover {
  color: var(--text-main);
}

.evidence-tab-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.evidence-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-copy {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--mono-font);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.evidence-body {
  padding: 1.5rem;
  font-family: var(--mono-font);
  font-size: 0.825rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #060910;
  max-width: 100%;
  box-sizing: border-box;
}

.evidence-pane {
  display: none;
  max-width: 100%;
  min-width: 0;
}

.evidence-pane.active {
  display: block;
}

.evidence-pane pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
}

.evidence-pane code {
  display: block;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}

.evidence-pane div {
  white-space: pre-wrap;
  word-break: break-all;
}

/* Certificate View Pane */
.cert-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: var(--sans-font);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.cert-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cert-item {
  background: rgba(8, 12, 22, 0.7);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  min-width: 0;
}

.cert-item span {
  display: block;
  font-size: 0.725rem;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cert-item strong {
  font-size: 0.875rem;
  color: var(--text-main);
  font-family: var(--mono-font);
  word-break: break-word;
}

.cert-sig-box {
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.cert-sig-box .label {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
}

/* JSON Highlighting */
.json-key { color: #38bdf8; font-weight: 600; }
.json-string { color: #34d399; }
.json-number { color: #fbbf24; }
.json-boolean { color: #c084fc; font-weight: 600; }
.json-null { color: #f87171; }

/* ==========================================================================
   Documentation Showcase Section
   ========================================================================== */
.docs-showcase-section {
  margin-bottom: 6rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.doc-card:hover {
  border-color: var(--primary);
  background: rgba(20, 30, 52, 0.6);
  transform: translateY(-2px);
}

.doc-category {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.doc-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.doc-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.doc-card .doc-link-arrow {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.docs-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(13, 27, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.docs-banner-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.docs-banner-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ==========================================================================
   Licensing & Stripe Support Section
   ========================================================================== */
.licensing-section {
  margin-bottom: 6rem;
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.billing-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.billing-label.active {
  color: var(--text-main);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffff;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.discount-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card.tier-col-2 {
  grid-column: span 2;
}

.pricing-card.tier-col-3 {
  grid-column: span 3;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-fast);
}

.pricing-card:hover {
  border-color: var(--card-border-hover);
}

.pricing-card.featured {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.15);
}

.tier-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.tier-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.tier-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 2.6rem;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--mono-font);
  color: var(--text-main);
  margin-bottom: 1.75rem;
  line-height: 1;
}

.tier-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--sans-font);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.tier-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

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

/* ==========================================================================
   Modals
   ========================================================================== */
.cs-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.cs-modal {
  background: #0d1322;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.cs-modal-wide {
  max-width: 820px;
}

.cs-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.cs-modal-close:hover {
  color: var(--text-main);
}

.cs-modal-header {
  margin-bottom: 1.5rem;
}

.cs-modal-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.cs-modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.cs-modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cs-form-group {
  margin-bottom: 1.25rem;
}

.cs-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.cs-form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.925rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.cs-form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.cs-modal-summary {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
}

.cs-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.cs-summary-row:last-child {
  margin-bottom: 0;
}

.cs-summary-row strong, .cs-summary-row span:last-child {
  color: var(--text-main);
}

.cs-modal-actions {
  margin-bottom: 1rem;
}

.cs-modal-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  margin-top: 4rem;
  background: rgba(5, 7, 12, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   Responsive Breakpoints (Placed Strictly at the End)
   ========================================================================== */
@media (max-width: 1024px) {
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .proof-item:nth-child(2) {
    border-right: none;
  }
  .lifecycle-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
  .pricing-card.tier-col-2,
  .pricing-card.tier-col-3 {
    grid-column: span 1;
  }
  .pricing-card.tier-col-3:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 1rem;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .nav-inner {
    padding: 0.85rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-desktop-btn {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    z-index: 99;
    box-sizing: border-box;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-drawer-item {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-drawer-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    color: #040914 !important;
    background: var(--primary) !important;
    font-weight: 700 !important;
  }

  .hero {
    padding: 3rem 0 2.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    line-height: 1.15;
    word-break: normal;
  }

  .hero-subtitle {
    font-size: 1.025rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-credo-pills {
    gap: 8px 16px;
  }

  .pipeline-stepper {
    grid-template-columns: 1fr;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
    margin-bottom: 4rem;
  }
  .proof-item {
    border-right: none !important;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
  }
  .proof-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .lifecycle-section {
    margin-bottom: 4rem;
  }

  .lifecycle-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .comparison-section {
    margin-bottom: 4rem;
  }

  .evidence-section {
    margin-bottom: 4rem;
  }

  .evidence-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .evidence-actions {
    justify-content: flex-end;
  }

  .evidence-body {
    padding: 1rem 0.85rem;
    font-size: 0.75rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .docs-showcase-section {
    margin-bottom: 4rem;
  }

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

  .docs-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .pricing-card.tier-col-2,
  .pricing-card.tier-col-3,
  .pricing-card.tier-col-3:last-child {
    grid-column: span 1;
  }

  .pricing-section,
  .licensing-section {
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-links {
    justify-content: center;
    gap: 1rem;
  }
}

/* Toast Notification for Mailto Fallback */
.email-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  animation: toastSlideUp 0.3s ease;
  max-width: min(440px, 90vw);
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.email-toast-icon {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.email-toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.email-toast-title {
  font-weight: 700;
  color: var(--text-main);
}

.email-toast-desc {
  color: var(--text-muted);
  font-size: 12px;
}

.email-toast-desc a {
  color: var(--primary);
  text-decoration: underline;
}
