/* ===================================================================
   THE HARDWARE CUSTODY REVIEW - DESIGN SYSTEM & STYLESHEET
   Independent Security & Hardware Custody Publication
   100% Custom CSS - Dark High-Tech Aesthetic
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-canvas: #090d16;
  --bg-card: #101626;
  --bg-card-hover: #151d32;
  --bg-elevated: #18223a;
  --bg-highlight: rgba(56, 189, 248, 0.05);

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-card: rgba(99, 130, 200, 0.18);
  --border-glow: rgba(6, 182, 212, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #e2e8f0;

  --accent-cyan: #06b6d4;
  --accent-cyan-light: #67e8f9;
  --accent-sky: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-teal: #14b8a6;

  --status-danger: #f43f5e;
  --status-danger-bg: rgba(244, 63, 94, 0.08);
  --status-danger-border: rgba(244, 63, 94, 0.25);

  --status-warn: #f59e0b;
  --status-warn-bg: rgba(245, 158, 11, 0.08);
  --status-warn-border: rgba(245, 158, 11, 0.25);

  --status-success: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.08);
  --status-success-border: rgba(16, 185, 129, 0.25);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 28px rgba(6, 182, 212, 0.18);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-quick: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(30, 58, 138, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 25%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Links */
a {
  color: var(--accent-sky);
  text-decoration: none;
  transition: color var(--transition-quick);
}
a:hover {
  color: var(--accent-cyan-light);
}
a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  color: var(--accent-cyan-light);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

/* Layout Container */
.hcr-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Disclaimer Bar */
.hcr-topbar {
  background: linear-gradient(90deg, rgba(16, 22, 38, 0.95), rgba(24, 34, 58, 0.95));
  border-bottom: 1px solid var(--border-subtle);
  padding: 9px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}
.hcr-topbar strong {
  color: var(--accent-sky);
  font-weight: 700;
}
.hcr-topbar a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sticky Header */
.hcr-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.hcr-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
}

/* Required Brand Title Format */
.csj-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}
.csj-brand-title::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.csj-brand-title span {
  color: var(--accent-cyan);
}

.hcr-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.hcr-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-quick);
  position: relative;
  padding: 4px 0;
}
.hcr-menu a:hover, .hcr-menu a.active {
  color: var(--text-main);
}
.hcr-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}
.hcr-menu .hcr-btn-nav {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.hcr-menu .hcr-btn-nav:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* Article Hero Header */
.hcr-hero {
  padding: 56px 0 32px;
  position: relative;
}
.hcr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 20px;
}
.hcr-hero-badge--alert {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: var(--status-danger-border);
}

.hcr-hero h1 {
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hcr-hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hcr-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.hcr-meta-strip strong {
  color: var(--accent-cyan);
  font-weight: 600;
}
.hcr-meta-strip span.sep {
  color: var(--border-subtle);
}

/* Article Content & Typography */
article.hcr-content {
  padding-top: 12px;
}

article.hcr-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin: 52px 0 16px;
  padding-left: 16px;
  position: relative;
}
article.hcr-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo));
}

article.hcr-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 12px;
}

article.hcr-content p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1rem;
}
article.hcr-content strong {
  color: var(--text-main);
  font-weight: 700;
}
article.hcr-content em {
  color: var(--accent-cyan-light);
  font-style: italic;
}

article.hcr-content ul, article.hcr-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--text-muted);
}
article.hcr-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}
article.hcr-content li strong {
  color: var(--text-main);
}

/* Table of Contents */
.hcr-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hcr-toc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-sky), var(--accent-indigo));
}
.hcr-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.hcr-toc ol {
  list-style: none;
  counter-reset: hcr-toc;
  padding-left: 0;
  margin-bottom: 0;
}
.hcr-toc li {
  counter-increment: hcr-toc;
  margin-bottom: 8px;
  font-size: 0.94rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hcr-toc li::before {
  content: counter(hcr-toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.hcr-toc a {
  color: var(--text-muted);
  transition: color var(--transition-quick);
}
.hcr-toc a:hover {
  color: var(--accent-cyan-light);
}

/* Misconception Myth vs Reality Cards Grid */
.hcr-myths-grid {
  display: grid;
  gap: 16px;
  margin: 26px 0 34px;
}
.hcr-myth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}
.hcr-myth-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.hcr-myth-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--status-danger);
  margin-bottom: 8px;
}
.hcr-myth-header .badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid var(--status-danger-border);
}
.hcr-reality {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  padding-left: 2px;
}
.hcr-reality strong {
  color: var(--status-success);
}

/* Feature Grid Cards */
.hcr-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.hcr-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: background var(--transition-quick), border-color var(--transition-quick);
}
.hcr-feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.4);
}
.hcr-feature-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcr-feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Architecture Comparison: Device vs App Box */
.hcr-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.hcr-split-col {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.hcr-split-col h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcr-split-col.device-vault h3 {
  color: var(--accent-cyan);
}
.hcr-split-col.app-desk h3 {
  color: var(--accent-sky);
}
.hcr-split-col ul {
  margin-bottom: 0;
  padding-left: 20px;
}
.hcr-split-col li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

/* Callout Modules */
.hcr-callout {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 30px 0;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left-width: 4px;
}
.hcr-callout--info {
  border-left-color: var(--accent-cyan);
}
.hcr-callout--warn {
  border-left-color: var(--status-warn);
  background: var(--status-warn-bg);
  border-color: var(--status-warn-border);
  border-left-color: var(--status-warn);
}
.hcr-callout--danger {
  border-left-color: var(--status-danger);
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  border-left-color: var(--status-danger);
}
.hcr-callout--verified {
  border-left-color: var(--status-success);
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  border-left-color: var(--status-success);
}

.hcr-callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 8px;
}
.hcr-callout--warn .hcr-callout-header { color: var(--status-warn); }
.hcr-callout--danger .hcr-callout-header { color: var(--status-danger); }
.hcr-callout--verified .hcr-callout-header { color: var(--status-success); }
.hcr-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.hcr-callout p + p {
  margin-top: 10px;
}

/* Official Action / Conversion Card */
.hcr-action-banner {
  background: linear-gradient(135deg, #10192e 0%, #15223e 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  margin: 36px 0;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.hcr-action-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-sky), var(--accent-indigo));
}
.hcr-action-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}
.hcr-action-banner p {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 22px;
}
.hcr-action-banner small {
  display: block;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Buttons */
.hcr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-sky));
  color: #090d16;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-quick), box-shadow var(--transition-quick);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}
.hcr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45);
  color: #090d16;
  text-decoration: none;
}

/* Step-by-Step Timeline Component */
.hcr-steps-timeline {
  list-style: none;
  padding: 0;
  margin: 28px 0 34px;
  position: relative;
}
.hcr-steps-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 15px;
  bottom: 25px;
  width: 2px;
  background: var(--border-card);
}
.hcr-step-item {
  position: relative;
  padding: 0 0 24px 56px;
}
.hcr-step-number {
  position: absolute;
  left: 3px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}
.hcr-step-content strong {
  display: block;
  font-size: 1.02rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.hcr-step-content p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Tables */
.hcr-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.hcr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}
.hcr-table thead {
  background: var(--bg-elevated);
}
.hcr-table th {
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-card);
}
.hcr-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: top;
}
.hcr-table tbody tr:last-child td {
  border-bottom: none;
}
.hcr-table tbody tr:hover td {
  background: var(--bg-highlight);
}

/* FAQ Accordions */
.hcr-faq-group {
  margin: 28px 0;
}
.hcr-faq-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-quick);
}
.hcr-faq-item:hover {
  border-color: rgba(6, 182, 212, 0.35);
}
.hcr-faq-item[open] {
  border-color: var(--accent-cyan);
}
.hcr-faq-question {
  cursor: pointer;
  padding: 16px 22px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition-quick);
}
.hcr-faq-question::-webkit-details-marker {
  display: none;
}
.hcr-faq-question:hover {
  background: var(--bg-card-hover);
}
.hcr-faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform var(--transition-quick), color var(--transition-quick);
  line-height: 1;
}
.hcr-faq-item[open] .hcr-faq-icon {
  transform: rotate(45deg);
  color: var(--accent-cyan);
}
.hcr-faq-answer {
  padding: 0 22px 18px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Red Flags Alert Block */
.hcr-red-flags {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 30px 0;
}
.hcr-red-flags h4 {
  color: var(--status-danger);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcr-red-flags ul {
  margin: 0;
  padding-left: 20px;
}
.hcr-red-flags li {
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.hcr-red-flags li::marker {
  color: var(--status-danger);
}

/* Site Footer */
.hcr-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.95);
  margin-top: 80px;
  padding: 48px 0 56px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.hcr-footer strong {
  color: var(--text-muted);
}
.hcr-footer p {
  margin-bottom: 14px;
}
.hcr-footer a {
  color: var(--accent-sky);
}
.hcr-footer-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.hcr-footer-links a {
  color: var(--text-muted);
  font-weight: 600;
}
.hcr-footer-links a:hover {
  color: var(--accent-cyan);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hcr-hero h1 {
    font-size: 1.95rem;
  }
  .hcr-features-grid, .hcr-split-grid {
    grid-template-columns: 1fr;
  }
  .hcr-header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hcr-menu {
    flex-wrap: wrap;
    gap: 14px;
  }
  .hcr-steps-timeline::before {
    left: 17px;
  }
  .hcr-step-item {
    padding-left: 48px;
  }
  .hcr-step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hcr-hero h1 {
    font-size: 1.6rem;
  }
  .hcr-container {
    padding: 0 16px;
  }
  .hcr-action-banner {
    padding: 24px 18px;
  }
}
