/* REDSITE Design System - JWT Decoder Stylesheet */
:root {
  /* Brand Core Colors */
  --ink: #0a0a0a;          /* Raven Black — Headings, brand accents, dark sections */
  --ink-soft: #24272e;     /* Raven Soft — Card titles, deep borders */
  --red: #e11d48;          /* Poppy Red — Primary brand accent, primary CTA gradient, highlights */
  --red-hover: #be123c;    /* Deep Crimson — Button hover and active state */
  --blue: #b0e0e6;         /* Powder Blue — Privacy badges, dark-band highlights, symbols */
  --blue-accent: #0284c7;  /* Sky Blue — Focus rings, selection indicators, active links */

  /* Neutral Backgrounds & Surfaces */
  --paper: #ffffff;        /* Canvas Paper — Main page and card background */
  --paper-warm: #fafbfc;   /* Warm Surface — Toolbar, steps, footer backgrounds */
  --paper-panel: #f8fafc;  /* Panel Gray — Pane headers, eyebrow backgrounds */

  /* Borders & Dividers */
  --line: #e2e8f0;         /* Standard Border — Crisp 1px structure */
  --line-light: #f1f5f9;   /* Subtle Divider — Internal card borders */

  /* Typography Colors */
  --muted: #5e636e;        /* Secondary Text — Descriptions, metadata, secondary links */
  --muted-light: #8e939e;  /* Hints / Watermarks — Placeholders, shortcut hints */

  /* Semantic Feedback Tints */
  --red-soft: #fff1f2;     /* Error Banner Background */
  --red-border: #fecdd3;   /* Error Border */
  --green: #10b981;        /* Success / Active Live Dot */
  --green-soft: #ecfdf5;   /* Success Banner Background */
  --green-border: #a7f3d0; /* Success Border */
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  /* JWT Syntax Highlights */
  --jwt-header: #e11d48;
  --jwt-header-bg: #fff1f2;
  --jwt-payload: #0284c7;
  --jwt-payload-bg: #f0f9ff;
  --jwt-signature: #10b981;
  --jwt-signature-bg: #ecfdf5;

  /* Typography Families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px -12px rgba(10, 10, 10, 0.08);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--red);
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────
   1. TOPBAR NAVIGATION
   ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.product-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-byline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-byline b {
  color: var(--red);
  font-weight: 800;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  transition: all 0.15s ease;
}

.back-link:hover {
  border-color: var(--ink);
  background: var(--paper);
}

/* ─────────────────────────────────────────────────────────────
   2. HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 16px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row b {
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   3. THE SIGNATURE WORKBENCH
   ───────────────────────────────────────────────────────────── */
.workbench-section {
  padding-bottom: 60px;
}

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

/* Workbench Toolbar */
.workbench-toolbar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.custom-select {
  height: 34px;
  padding: 0 28px 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e636e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.custom-select:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Action Buttons */
.primary-btn {
  height: 36px;
  padding: 0 16px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a080c 45%, #e11d48 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
  transition: all 0.15s ease;
}

.primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.primary-btn:active {
  transform: translateY(0);
}

.btn-pill {
  height: 34px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill:hover {
  background: var(--paper-warm);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-pill svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* Status Bar */
.status-bar {
  padding: 10px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper-panel);
  transition: all 0.2s ease;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.status-bar.valid {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: #065f46;
}

.status-bar.valid .status-badge {
  background: #d1fae5;
  color: #047857;
}

.status-bar.invalid {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: #9f1239;
}

.status-bar.invalid .status-badge {
  background: #ffe4e6;
  color: #be123c;
}

.status-bar.idle {
  background: var(--paper-panel);
  color: var(--muted);
}

.status-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Dual Pane Grid */
.workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pane-left {
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.pane-header {
  padding: 12px 20px;
  background: var(--paper-panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.pane-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pane-header-title .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--line-light);
  color: var(--muted);
}

.pane-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Encoded Token Container */
.encoded-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.encoded-textarea {
  width: 100%;
  flex: 1;
  min-height: 380px;
  padding: 18px 20px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  word-break: break-all;
  white-space: pre-wrap;
}

.encoded-textarea:focus {
  background: #ffffff;
}

/* Live Colored Token Preview Box */
.token-colored-display {
  padding: 14px 20px;
  border-top: 1px dashed var(--line);
  background: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
}

.token-colored-display .seg-header {
  color: var(--jwt-header);
  font-weight: 600;
}

.token-colored-display .seg-payload {
  color: var(--jwt-payload);
  font-weight: 600;
}

.token-colored-display .seg-sig {
  color: var(--jwt-signature);
  font-weight: 600;
}

.token-colored-display .seg-dot {
  color: var(--muted-light);
  font-weight: 700;
  padding: 0 1px;
}

.token-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper-panel);
  font-size: 12px;
  font-family: var(--font-mono);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.legend-dot.header { background: var(--jwt-header); }
.legend-dot.payload { background: var(--jwt-payload); }
.legend-dot.signature { background: var(--jwt-signature); }

/* Right Pane: Decoded Tabs & Panels */
.pane-right {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  overflow-y: auto;
}

.decoded-section {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.decoded-header-bar {
  padding: 12px 20px;
  background: var(--paper-panel);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.decoded-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.decoded-title.header-title { color: var(--jwt-header); }
.decoded-title.payload-title { color: var(--jwt-payload); }
.decoded-title.sig-title { color: var(--jwt-signature); }

.code-editor-wrapper {
  position: relative;
}

.code-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 20px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  tab-size: 2;
}

.code-textarea:focus {
  background: #ffffff;
}

/* Claims Inspector Box */
.claims-inspector {
  padding: 16px 20px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}

.claims-inspector-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.claim-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.claim-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.claim-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-accent);
}

.claim-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.claim-pill.active {
  background: var(--green-soft);
  color: #065f46;
  border: 1px solid var(--green-border);
}

.claim-pill.expired {
  background: var(--red-soft);
  color: #9f1239;
  border: 1px solid var(--red-border);
}

.claim-desc {
  font-size: 11px;
  color: var(--muted);
}

.claim-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
  font-weight: 600;
}

/* Signature Verification Section */
.signature-box {
  padding: 18px 20px;
  background: var(--paper);
}

.sig-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  width: 100%;
  margin-bottom: 16px;
}

.sig-status-badge.verified {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: #065f46;
}

.sig-status-badge.invalid {
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  color: #9f1239;
}

.sig-status-badge.unverified {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.secret-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.secret-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  background: var(--paper-warm);
  transition: all 0.15s ease;
}

.secret-input:focus {
  border-color: var(--blue-accent);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.secret-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

/* ─────────────────────────────────────────────────────────────
   4. CODE SNIPPETS EXPORTER
   ───────────────────────────────────────────────────────────── */
.code-export-section {
  padding: 70px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.lang-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.lang-tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-tab:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.lang-tab.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.code-display-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  background: #0f1117;
  border: 1px solid #232733;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-card-header {
  padding: 10px 16px;
  background: #171923;
  border-bottom: 1px solid #232733;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-card-title {
  color: #94a3b8;
  font-size: 12px;
  font-family: var(--font-mono);
}

.code-card-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
}

.code-card-btn:hover {
  background: #334155;
  color: #ffffff;
}

.code-snippet-box {
  padding: 18px 20px;
  overflow-x: auto;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   5. JWT CLAIMS ANATOMY & REFERENCE GUIDE
   ───────────────────────────────────────────────────────────── */
.guide-section {
  padding: 80px 0;
}

.claims-table-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  margin-top: 24px;
}

.claims-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.claims-table th {
  background: var(--paper-panel);
  padding: 12px 18px;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.claims-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-light);
  color: var(--muted);
  vertical-align: top;
}

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

.claims-table code {
  color: var(--red);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   6. FEATURES GRID
   ───────────────────────────────────────────────────────────── */
.features-section {
  padding: 80px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}

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

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s ease;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--red);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   7. SIGNATURE PRIVACY BAND
   ───────────────────────────────────────────────────────────── */
.privacy-band {
  background: #0a0a0a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px max(calc((100vw - 1240px) / 2), 24px);
  margin-top: 40px;
  margin-bottom: 80px;
}

.privacy-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.privacy-symbol {
  font-size: 42px;
  color: #b0e0e6;
  flex-shrink: 0;
}

.privacy-content .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #b0e0e6;
  margin-bottom: 10px;
}

.privacy-band h2 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 8px;
}

.privacy-band h2 em {
  color: #b0e0e6;
}

.privacy-band p {
  color: #94a3b8;
  max-width: 680px;
  font-size: 14px;
}

.privacy-tag {
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #b0e0e6;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   8. HOW-TO GUIDE
   ───────────────────────────────────────────────────────────── */
.howto-section {
  padding-bottom: 80px;
}

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

.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────
   9. FAQ ACCORDION (2-Column)
   ───────────────────────────────────────────────────────────── */
.faq-section {
  padding-bottom: 90px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.faq-sticky {
  position: sticky;
  top: 100px;
}

.faq-sticky h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--ink-soft);
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-indicator {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--red);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-indicator {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
}

.faq-content code {
  color: var(--red);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   10. RELATED DEVELOPER TOOLS & ECOSYSTEM SHOWCASE
   ───────────────────────────────────────────────────────────── */
.ecosystem-section {
  padding: 80px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.eco-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

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

.eco-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eco-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.eco-meta {
  display: flex;
  flex-direction: column;
}

.eco-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.eco-badge {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-mono);
}

.eco-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.eco-link-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eco-card:hover .eco-link-text {
  color: var(--red);
}

/* ─────────────────────────────────────────────────────────────
   11. FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

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

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--muted-light);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ─────────────────────────────────────────────────────────────
   12. TOAST NOTIFICATION
   ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0a0a0a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid #262626;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   13. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .workbench-grid {
    grid-template-columns: 1fr;
  }

  .pane-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .encoded-textarea {
    min-height: 240px;
  }

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

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

  .faq-sticky {
    position: static;
  }

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

  .privacy-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 64px;
  }

  nav.nav-links a:not(.back-link) {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .trust-row {
    gap: 14px;
    font-size: 12px;
  }

  .features-grid,
  .steps-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

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

  .workbench-toolbar {
    padding: 10px 14px;
  }

  .toolbar-left, .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

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

