/* ==========================================================================
   DSPIP - Digital Signing of Physical Items Protocol
   Consolidated Stylesheet for CSP Compliance (no inline styles)
   ========================================================================== */

/* ==========================================================================
   1. BASE STYLES - Reset, Variables, Body
   ========================================================================== */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg-dark: #0f0f23;
  --bg-card: #1a1a2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */

nav {
  background: rgba(15, 15, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo img {
  height: 32px;
  width: 32px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ==========================================================================
   3. CONTAINER & LAYOUT
   ========================================================================== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.container-wide {
  max-width: 1000px;
}

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

/* ==========================================================================
   4. HEADINGS
   ========================================================================== */

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   5. SUBTITLE
   ========================================================================== */

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ==========================================================================
   6. CARD COMPONENT
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.card h2 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.card h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.card ul {
  color: var(--text-muted);
  line-height: 1.8;
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.card li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   7. CODE BLOCK COMPONENT
   ========================================================================== */

.code-block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.6;
}

.code-block .comment {
  color: #6b7280;
}

.code-block .key {
  color: var(--accent);
}

.code-block .string {
  color: var(--success);
}

.code-block .required {
  color: var(--warning);
}

.code-block .label {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.code-block .value {
  color: var(--accent);
  word-break: break-all;
}

.code-block-pre {
  white-space: pre;
}

.code-block-wrap {
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   9. UTILITY CLASSES - Margins
   ========================================================================== */

.mt-0 { margin-top: 0; }
.mt-0-5 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-0-5 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.ml-1-5 { margin-left: 1.5rem; }

/* ==========================================================================
   10. UTILITY CLASSES - Text
   ========================================================================== */

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

.text-muted-lg {
  color: var(--text-muted);
  line-height: 1.7;
}

.text-accent {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

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

.font-size-09 {
  font-size: 0.9rem;
}

.line-height-1-6 {
  line-height: 1.6;
}

.line-height-1-7 {
  line-height: 1.7;
}

.line-height-1-8 {
  line-height: 1.8;
}

.line-height-2 {
  line-height: 2;
}

/* ==========================================================================
   11. UTILITY CLASSES - Links
   ========================================================================== */

.link-accent {
  color: var(--accent);
  text-decoration: none;
}

.link-accent:hover {
  text-decoration: underline;
}

.link-inherit {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   12. RESPONSIVE - Base
   ========================================================================== */

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

  h1 {
    font-size: 2rem;
  }

  .code-block {
    font-size: 0.7rem;
    padding: 1rem;
  }
}

/* ==========================================================================
   INDEX PAGE STYLES
   ========================================================================== */

/* Logo Section */
.logo {
  margin-bottom: 2rem;
}

.logo-img {
  width: 128px;
  height: 128px;
  margin-bottom: 1rem;
}

.logo-text {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.tagline {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Index-specific subtitle override */
.index-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Status Badge */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Video Container */
.video-container {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Infographic Container */
.infographic-container {
  margin: 2rem 0;
  text-align: center;
}

.infographic-container img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.infographic-container a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.infographic-container a:hover {
  text-decoration: underline;
}

/* Envelope Diagram */
.envelope-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.envelope-part {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
}

.envelope-part.public {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
}

.envelope-part.signature {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.envelope-part.private {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.3);
}

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

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  margin-top: 0;
}

.feature p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Title */
.section-title {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

/* Compliance Grid */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.compliance-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.compliance-card h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.compliance-card .level {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.compliance-card ul {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 1rem;
  line-height: 1.6;
}

/* Tech Specs Grid */
.tech-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tech-spec {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.tech-spec .label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tech-spec .value {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA Buttons */
.cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta a {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.cta a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.cta-secondary {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Resources Grid */
.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.resource-link {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.resource-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.resource-link .label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.resource-link .value {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Index Page Responsive */
@media (max-width: 600px) {
  .logo-text {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .cta {
    flex-direction: column;
    align-items: center;
  }

  .cta a {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   HOW IT WORKS PAGE STYLES
   ========================================================================== */

/* Protocol Flow Diagram */
.flow-diagram {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content {
  flex: 1;
}

.step-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.step-actor {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.step-actor.scanner {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent);
}

.step-actor.recipient {
  background: rgba(244, 114, 182, 0.2);
  border-color: rgba(244, 114, 182, 0.3);
  color: #f472b6;
}

/* Envelope Section */
.envelope-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.envelope-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.envelope-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.layer-label {
  width: 120px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.layer-content {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.layer-item {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.layer-item.public {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
}

.layer-item.signature {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.layer-item.private {
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.3);
  color: #f472b6;
}

/* QR Structure */
.qr-structure {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.qr-format {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  overflow-x: auto;
  margin: 1rem 0;
}

.qr-fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.qr-field {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.field-name {
  flex-shrink: 0;
  width: 140px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.field-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* How It Works Responsive */
@media (max-width: 768px) {
  .layer-label {
    width: 80px;
    font-size: 0.75rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   USE CASES PAGE STYLES
   ========================================================================== */

/* Use Case Cards */
.use-case-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.use-case-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
}

.use-case-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.use-case-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.use-case-title {
  flex: 1;
}

.use-case-title h3 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.use-case-title .industry {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.use-case-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.use-case-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  color: var(--success);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.benefit-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Privacy Mode Badges */
.privacy-modes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.privacy-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.privacy-badge.standard {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.privacy-badge.encrypted {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
}

.privacy-badge.split-key {
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.3);
  color: #f472b6;
}

/* Stats Section */
.stats-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-section h2 {
  margin-top: 0;
  color: var(--text);
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Use Cases Responsive */
@media (max-width: 768px) {
  .use-case-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-value {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   TECHNICAL SPECS PAGE STYLES
   ========================================================================== */

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-table th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-table td {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spec-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

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

/* DNS Record Example */
.dns-record {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  overflow-x: auto;
  margin: 1rem 0;
}

/* Tag List */
.tag-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.tag-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tag-name {
  flex-shrink: 0;
  width: 60px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.tag-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tag-required {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.tag-optional {
  display: inline-block;
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

/* Compliance Levels for Tech Specs */
.compliance-level {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.compliance-name {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.compliance-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.compliance-reqs {
  list-style: none;
}

.compliance-reqs li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.compliance-reqs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.compliance-reqs li.must::before {
  background: var(--success);
}

.compliance-reqs li.should::before {
  background: var(--warning);
}

.compliance-reqs li.may::before {
  background: var(--text-muted);
}

/* Requirement Legend */
.req-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.req-legend span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.req-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.req-legend .dot.must { background: var(--success); }
.req-legend .dot.should { background: var(--warning); }
.req-legend .dot.may { background: var(--text-muted); }

/* Tech Specs Responsive */
@media (max-width: 768px) {
  .spec-table {
    font-size: 0.85rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.5rem;
  }
}

/* ==========================================================================
   SECURITY PAGE STYLES
   ========================================================================== */

/* Threat Grid */
.threat-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.threat-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.threat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.threat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.threat-icon.protected {
  background: rgba(34, 197, 94, 0.2);
}

.threat-icon.warning {
  background: rgba(245, 158, 11, 0.2);
}

.threat-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.threat-status {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.threat-status.mitigated {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.threat-status.partial {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

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

.threat-mitigation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.threat-mitigation-label {
  color: var(--success);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.threat-mitigation-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Key Management Section */
.key-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.key-practice {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.key-practice:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.key-practice-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.key-practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-practice-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.key-practice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.key-practice-list li.must::before {
  background: var(--success);
}

.key-practice-list li.should::before {
  background: var(--warning);
}

/* Privacy Grid for Security Page */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.privacy-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-title-icon {
  font-size: 1.25rem;
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy-list li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.privacy-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Warning Box */
.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.warning-box-title {
  color: var(--warning);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-box-content {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Warning Box Danger Variant */
.warning-box-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.warning-box-danger .warning-box-title {
  color: var(--danger);
}

/* DNS Example (Security Page) */
.dns-example {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  overflow-x: auto;
  margin: 1rem 0;
}

.dns-example-wrap {
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Security Page Responsive */
@media (max-width: 768px) {
  .threat-header {
    flex-wrap: wrap;
  }

  .threat-status {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   INTEGRATION PAGE STYLES
   ========================================================================== */

/* Integration Header */
.integration-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.integration-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(99, 102, 241, 0.2);
}

.integration-title {
  flex: 1;
}

.integration-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
}

.integration-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.feature-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Blockchain Grid */
.blockchain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.blockchain-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.blockchain-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.blockchain-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.blockchain-status {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
}

.blockchain-status.native {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.blockchain-status.compatible {
  background: rgba(34, 211, 238, 0.2);
  color: var(--accent);
}

/* Custody Event */
.custody-event {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin: 1rem 0;
  line-height: 1.6;
}

.custody-event .key {
  color: var(--accent);
}

.custody-event .value {
  color: var(--success);
}

.custody-event .comment {
  color: #6b7280;
}

/* Approach Grid */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.approach-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.approach-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.approach-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.approach-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Integration Page Responsive */
@media (max-width: 768px) {
  .integration-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   FAQ PAGE STYLES
   ========================================================================== */

/* Category Tabs */
.faq-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tab {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.category-tab.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--accent);
}

/* FAQ Section */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section-title {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-section-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* FAQ Items */
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
}

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

.faq-answer-content p {
  margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.faq-answer-content li {
  margin-bottom: 0.5rem;
}

.faq-answer-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85em;
  color: var(--accent);
}

.faq-answer-content a {
  color: var(--accent);
  text-decoration: none;
}

.faq-answer-content a:hover {
  text-decoration: underline;
}

.faq-answer-content strong {
  color: var(--text);
}

/* Quick Links Box */
.quick-links {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.quick-links h4 {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.quick-links-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-links-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quick-links-list a:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.contact-section h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.contact-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-link:hover {
  text-decoration: underline;
}

/* FAQ Page Responsive */
@media (max-width: 768px) {
  .faq-question {
    padding: 1rem;
  }

  .faq-answer-content {
    padding: 0 1rem 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   DEVELOPERS PAGE STYLES
   ========================================================================== */

/* SDK Grid */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.sdk-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

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

.sdk-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sdk-package {
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

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

.tool-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.tool-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.tool-url {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  display: block;
}

/* Test Vector Section */
.test-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.test-section h3 {
  margin-top: 0;
}

.test-item {
  margin-bottom: 1.5rem;
}

.test-item:last-child {
  margin-bottom: 0;
}

.test-label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Developers Code Block Overrides */
.developers-code {
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre;
}

/* Community Grid */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.community-link {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s;
}

.community-link:hover {
  border-color: var(--accent);
}

.community-link-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.community-link-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.community-link-url {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
