/* ================================================================
   MXend.com — Global Design System
   ID-Verified Email · Zero-Trust Architecture
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ================================================================
   1. Custom Properties
   ================================================================ */
:root {
  /* Colors — refined enterprise palette */
  --bg-primary:      #0a0e1a;
  --bg-secondary:    #111827;
  --bg-card:         rgba(17, 24, 39, 0.85);
  --bg-card-hover:   rgba(24, 32, 50, 0.95);

  --accent:          #6366f1;
  --accent-light:    #818cf8;
  --accent-dark:     #4f46e5;
  --accent-muted:    rgba(99, 102, 241, 0.12);
  --accent-glow:     0 0 40px rgba(99, 102, 241, 0.1);

  --success:         #34d399;
  --success-muted:   rgba(52, 211, 153, 0.1);

  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;

  --border:          rgba(148, 163, 184, 0.08);
  --border-hover:    rgba(148, 163, 184, 0.15);
  --border-accent:   rgba(99, 102, 241, 0.2);

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.25rem;
  --fs-5xl:  4rem;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: 120px;

  /* Layout */
  --max-width:     1200px;
  --header-height: 64px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --radius-full:   9999px;

  /* Transitions */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --duration:  0.25s;
}

/* ================================================================
   2. Reset
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }

/* ================================================================
   3. Typography
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: var(--fs-3xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

code, pre, .mono { font-family: var(--font-mono); }

code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent-light);
}

pre {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.8;
}

pre code { padding: 0; background: none; }
strong { font-weight: 600; color: var(--text-primary); }

/* ================================================================
   4. Utilities
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ================================================================
   5. Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: var(--fs-base);
}

.btn-block { width: 100%; }

/* ================================================================
   6. Animations (minimal, professional)
   ================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.antigravity {
  animation: float-gentle 7s ease-in-out infinite;
}

/* ================================================================
   7. Site Header / Navigation
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--duration) ease, box-shadow var(--duration) ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav */
.main-nav { margin-left: auto; margin-right: var(--space-xl); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  transition: color var(--duration) ease, background var(--duration) ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-actions .btn { padding: 0.45rem 1.2rem; font-size: var(--fs-sm); }

/* Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  z-index: 1001;
  padding: 0;
  background: none;
  border: none;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.nav-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 999;
  background: var(--bg-primary);
  flex-direction: column;
  padding: var(--space-2xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration);
}

.nav-open .mobile-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav-link {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  transition: color var(--duration) ease, background var(--duration) ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* ================================================================
   8. Hero Section
   ================================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 var(--space-4xl);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.35rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--fs-5xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-visual img {
  max-width: 480px;
  width: 100%;
  filter: drop-shadow(0 0 80px rgba(99, 102, 241, 0.08));
}

/* Trust Badges */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding-top: var(--space-3xl);
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--border);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.trust-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ================================================================
   9. Sections
   ================================================================ */
.section {
  position: relative;
  padding: var(--space-section) 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.section-description {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ================================================================
   10. Feature Cards
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) ease, transform var(--duration) ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  margin-bottom: var(--space-lg);
  color: var(--accent-light);
  font-size: var(--fs-xl);
}

.feature-card h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   11. Differentiator Cards
   ================================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.diff-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) ease;
}

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

.diff-card .diff-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-xl);
  color: var(--accent-light);
}

.diff-card h4 { margin-bottom: var(--space-sm); }
.diff-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* ================================================================
   12. Stats / Metrics
   ================================================================ */
.metrics {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.metric-value {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ================================================================
   13. Steps / How It Works
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.step-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent-light);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: var(--space-lg);
}

.step-card h4 { margin-bottom: var(--space-sm); }
.step-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* ================================================================
   14. CTA Banner
   ================================================================ */
.cta-section {
  padding: var(--space-section) 0;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
}

.cta-inner h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

.cta-inner p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto var(--space-2xl);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ================================================================
   15. Footer
   ================================================================ */
.site-footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand { max-width: 260px; }
.footer-brand .logo { margin-bottom: var(--space-lg); }

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--duration) ease;
  padding: 2px 0;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright { font-size: var(--fs-xs); color: var(--text-muted); }
.footer-bottom-tagline { font-size: var(--fs-xs); color: var(--text-muted); }

/* ================================================================
   16. Security Page
   ================================================================ */

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.principle-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) ease;
}

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

.principle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-xl);
  color: var(--accent-light);
}

.principle-card h4 { margin-bottom: var(--space-sm); }
.principle-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* Identity Pipeline */
.pipeline {
  position: relative;
  padding-left: var(--space-3xl);
  max-width: 700px;
  margin: 0 auto;
}

.pipeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.pipeline-step {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.pipeline-step:last-child { padding-bottom: 0; }

.pipeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 8px);
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  z-index: 1;
}

.pipeline-marker::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.pipeline-step h4 { margin-bottom: var(--space-xs); }
.pipeline-step p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* Encryption Cards */
.encryption-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.encryption-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) ease;
}

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

.encryption-card h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--accent-light);
}

.encryption-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.encryption-card ul li {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: var(--space-md);
  position: relative;
}

.encryption-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 700;
}

.tech-specs {
  padding: var(--space-md);
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
}

.tech-specs code {
  font-size: var(--fs-xs);
  color: var(--accent-light);
  display: block;
  line-height: 1.9;
  background: transparent;
  padding: 0;
}

/* mTLS Section */
.mtls-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.mtls-description p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.mtls-description p strong { color: var(--text-primary); }

.handshake-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.handshake-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) ease;
}

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

.handshake-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--accent-light);
  flex-shrink: 0;
}

.handshake-label { font-size: var(--fs-sm); font-weight: 500; }
.handshake-label span { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

/* Code Block */
.code-block {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: var(--space-xl);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.6rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--duration) ease, border-color var(--duration) ease;
}

.code-copy-btn:hover { color: var(--accent-light); border-color: var(--border-accent); }
.code-copy-btn.copied { color: var(--success); border-color: rgba(52, 211, 153, 0.3); }

.code-block pre { margin: 0; border: none; border-radius: 0; }

/* Compliance Grid */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.compliance-badge {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--duration) ease;
}

.compliance-badge:hover { border-color: var(--border-hover); }

.compliance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--success-muted);
  font-size: var(--fs-lg);
  color: var(--success);
}

.compliance-badge h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 2px; }
.compliance-badge p { font-size: var(--fs-xs); color: var(--text-muted); }

/* Infrastructure */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.infra-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) ease;
}

.infra-card:hover { border-color: var(--border-hover); }
.infra-card h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--space-sm); }
.infra-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* ================================================================
   17. Pricing Page
   ================================================================ */

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.billing-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration) ease;
  cursor: pointer;
}

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

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border-accent);
  cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform var(--duration) var(--ease);
}

.toggle-switch.annual::after { transform: translateX(22px); }

.save-badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--success);
  background: var(--success-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) ease;
}

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

.pricing-card--featured {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

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

.popular-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pricing-card .plan-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.price-display { margin-bottom: var(--space-xl); min-height: 60px; }

.price-amount {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: opacity var(--duration) ease, transform var(--duration) ease;
}

.price-amount .currency { font-size: var(--fs-xl); font-weight: 700; vertical-align: super; margin-right: 2px; }
.price-amount .period { font-size: var(--fs-sm); font-weight: 400; color: var(--text-muted); }

.price-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--space-xs); }
.price-custom { font-size: var(--fs-2xl); font-weight: 800; color: var(--accent-light); }
.price-custom-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-xs); }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan-feature .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

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

/* Comparison Table */
.comparison-section { border-top: 1px solid var(--border); }

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
}

.comparison-table thead th {
  padding: var(--space-lg);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.comparison-table thead th:not(:first-child) { text-align: center; }
.comparison-table thead th.col-featured { color: var(--accent-light); }

.comparison-table tbody td {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody td:not(:first-child) { text-align: center; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(99, 102, 241, 0.02); }

.comparison-table .category-row td {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.1);
}

.table-check { color: var(--success); font-weight: 700; }
.table-dash { color: var(--text-muted); }
.table-value { color: var(--text-primary); font-weight: 500; }

/* FAQ (using details/summary) */
.faq-section { border-top: 1px solid var(--border); }

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration) ease;
}

.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: var(--border-accent); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--duration) ease;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item[open] summary::after { content: '−'; color: var(--accent-light); }

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Trust Badges (pricing page) */
.trust-section { border-top: 1px solid var(--border); }

.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.trust-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  color: var(--accent-light);
}

.trust-item span {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================================================================
   18. Responsive
   ================================================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  :root { --space-section: 80px; }

  h1 { font-size: var(--fs-4xl); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 320px; }

  .features-grid,
  .diff-grid,
  .encryption-grid,
  .infra-grid { grid-template-columns: repeat(2, 1fr); }

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

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

  .mtls-content { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  :root { --space-section: 64px; }

  .container { padding: 0 var(--space-lg); }

  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }

  /* Navigation */
  .main-nav,
  .header-actions { display: none; }

  .mobile-menu-toggle { display: flex; }

  /* Hero */
  .hero { padding-top: calc(var(--header-height) + 40px); }
  .hero-visual img { max-width: 240px; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  /* Grids → single column */
  .features-grid,
  .diff-grid,
  .pricing-grid,
  .steps-grid,
  .encryption-grid,
  .infra-grid { grid-template-columns: 1fr; }

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

  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

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

  .trust-row { flex-direction: column; gap: var(--space-md); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .pricing-card--featured { order: -1; }
}

/* Small: 480px */
@media (max-width: 480px) {
  :root { --space-section: 48px; }

  .container { padding: 0 var(--space-md); }

  h1 { font-size: var(--fs-2xl); }

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

/* ================================================================
   19. Accessibility
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .antigravity { animation: none !important; }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--duration) ease;
}

.skip-link:focus { top: var(--space-md); }

/* ================================================================
   20. Misc
   ================================================================ */
::selection {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

/* Price toggle visibility */
[data-billing="annual"] { display: none; }
body.annual-billing [data-billing="annual"] { display: block; }
body.annual-billing [data-billing="monthly"] { display: none; }
