:root {
  --bg: #ffffff;
  --ink: #07111f;
  --muted: #5d6b7a;
  --soft: #f7f9fc;
  --line: #e2e8f0;
  --gold: #b8943f;
  --gold-light: #d4af5a;
  --gold-glow: rgba(184, 148, 63, 0.18);
  --blue: #0b5cff;
  --blue-deep: #071b3a;
  --blue-light: #3d7dff;
  --verify: #1a56db;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.08);
  --shadow-gold: 0 20px 60px rgba(184, 148, 63, 0.12);
  --radius: 24px;
  --radius-lg: 36px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 60%, var(--gold));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow-gold);
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.navlinks a:hover { color: var(--blue); }
.lang { position: relative; }
.lang-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 240px;
  max-height: 380px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 200;
}
.lang:hover .lang-menu,
.lang:focus-within .lang-menu,
.lang-menu.open { display: grid; gap: 2px; }
.lang-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.lang-menu a:hover,
.lang-menu a.active { background: var(--soft); color: var(--blue); }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(184, 148, 63, 0.35);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.1;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  line-height: 1.7;
}
section { padding: 100px 0; }
section.alt { background: var(--soft); }
section.dark {
  background: linear-gradient(180deg, var(--blue-deep) 0%, #0a2540 100%);
  color: white;
}
section.dark .section-head p { color: rgba(255, 255, 255, 0.7); }
section.dark .section-label { color: var(--gold-light); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(11, 92, 255, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(184, 148, 63, 0.05), transparent),
    linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
  border-bottom: 1px solid var(--line);
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 600;
  margin: 20px 0;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero h1 .xi { color: var(--gold); }
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--blue-deep);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.35;
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-visual {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(247,249,252,0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.timeline-infinite {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}
.timeline-track {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--blue) 50%, var(--gold) 90%, transparent);
  border-radius: 2px;
  margin: 60px 0;
  overflow: visible;
}
.timeline-track::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-light) 30%, var(--blue-light) 50%, var(--gold-light) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: timeline-shimmer 8s linear infinite;
  border-radius: 2px;
  opacity: 0.6;
}
@keyframes timeline-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.timeline-event {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--blue), 0 4px 20px rgba(11, 92, 255, 0.4);
  animation: event-pulse 3s ease-in-out infinite;
}
.timeline-event.gold {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 4px 20px var(--gold-glow);
}
.timeline-event:nth-child(1) { left: 8%; animation-delay: 0s; }
.timeline-event:nth-child(2) { left: 22%; animation-delay: 0.5s; }
.timeline-event:nth-child(3) { left: 38%; animation-delay: 1s; }
.timeline-event:nth-child(4) { left: 55%; animation-delay: 1.5s; }
.timeline-event:nth-child(5) { left: 72%; animation-delay: 2s; }
.timeline-event:nth-child(6) { left: 88%; animation-delay: 2.5s; }
@keyframes event-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.85; }
}
.flow-particle {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  animation: flow-right 6s linear infinite;
  box-shadow: 0 0 12px var(--gold-glow);
}
.flow-particle.blue { background: var(--blue); box-shadow: 0 0 12px rgba(11, 92, 255, 0.4); }
.flow-particle:nth-child(7) { animation-delay: 0s; }
.flow-particle:nth-child(8) { animation-delay: 2s; }
.flow-particle:nth-child(9) { animation-delay: 4s; }
@keyframes flow-right {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.hero-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.hero-caption span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* Record Flow Engine */
.record-flow {
  position: relative;
  padding: 60px 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.flow-pipeline {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}
.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 24px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.flow-step.active {
  background: white;
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(11, 92, 255, 0.12);
  transform: translateY(-4px);
}
.flow-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: white;
  border: 1px solid var(--line);
}
.flow-step.active .flow-step-icon {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  border: none;
}
.flow-step h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.flow-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
  animation: arrow-pulse 2s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}
.flow-connector {
  position: absolute;
  bottom: -20px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--gold));
  border-radius: 2px;
  overflow: hidden;
}
.flow-connector::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 100%;
  background: white;
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.8);
  animation: connector-scan 4s linear infinite;
}
@keyframes connector-scan {
  0% { left: -40px; }
  100% { left: 100%; }
}

/* Memory Core */
.memory-core {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.core-hub {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  white-space: pre-line;
  line-height: 1.15;
  z-index: 10;
  box-shadow: 0 0 0 12px rgba(11, 92, 255, 0.08), 0 0 0 24px rgba(184, 148, 63, 0.06), var(--shadow);
  animation: hub-glow 4s ease-in-out infinite;
}
@keyframes hub-glow {
  0%, 100% { box-shadow: 0 0 0 12px rgba(11, 92, 255, 0.08), 0 0 0 24px rgba(184, 148, 63, 0.06), var(--shadow); }
  50% { box-shadow: 0 0 0 16px rgba(11, 92, 255, 0.12), 0 0 0 32px rgba(184, 148, 63, 0.1), var(--shadow-gold); }
}
.core-node {
  position: absolute;
  width: 130px;
  padding: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.core-node:hover { transform: scale(1.05); }
.core-node strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--blue-deep);
}
.core-node span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.core-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.core-node.n2 { top: 18%; right: 5%; }
.core-node.n3 { top: 50%; right: 0; transform: translateY(-50%); }
.core-node.n4 { bottom: 18%; right: 5%; }
.core-node.n5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.core-node.n6 { bottom: 18%; left: 5%; }
.core-node.n7 { top: 50%; left: 0; transform: translateY(-50%); }
.core-node.n8 { top: 18%; left: 5%; }
.core-line {
  position: absolute;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  height: 2px;
  transform-origin: left center;
  opacity: 0.3;
  z-index: 1;
}
.record-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 5;
  animation: pulse-to-center 3s linear infinite;
}
@keyframes pulse-to-center {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Record Explorer */
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.explorer-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.explorer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.explorer-card:hover,
.explorer-card.active {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(11, 92, 255, 0.1);
  transform: translateY(-2px);
}
.explorer-card:hover::before,
.explorer-card.active::before { transform: scaleX(1); }
.explorer-card .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.explorer-card.active .cat-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  border: none;
}
.explorer-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}
.explorer-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.explorer-detail {
  margin-top: 32px;
  padding: 32px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.explorer-detail h4 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 12px;
}
.explorer-records {
  display: grid;
  gap: 10px;
}
.record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  animation: record-appear 0.5s ease-out;
}
@keyframes record-appear {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.record-item .badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(11, 92, 255, 0.08);
  color: var(--blue);
  flex-shrink: 0;
}
.record-item .badge.gold {
  background: var(--gold-glow);
  color: var(--gold);
}

/* Digital History Engine */
.history-timeline {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}
.history-axis {
  position: relative;
  height: 120px;
  margin: 40px 0;
}
.history-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue) 50%, var(--gold));
  transform: translateY(-50%);
}
.history-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.history-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--blue);
  margin: 0 auto 10px;
  animation: history-glow 2s ease-in-out infinite;
}
.history-marker.gold .history-dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}
@keyframes history-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--blue), 0 0 12px rgba(11, 92, 255, 0.3); }
  50% { box-shadow: 0 0 0 2px var(--blue), 0 0 20px rgba(11, 92, 255, 0.5); }
}
.history-marker span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.history-marker .event-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.history-stream {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: history-flow 8s linear infinite;
  box-shadow: 0 0 10px var(--gold-glow);
}
@keyframes history-flow {
  0% { left: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.history-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.history-cat {
  text-align: center;
  padding: 20px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.history-cat .count {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--blue);
  display: block;
}
.history-cat.gold .count { color: var(--gold); }
.history-cat span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Trust Architecture */
.trust-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.trust-layer {
  width: 100%;
  padding: 28px 32px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.trust-layer h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
}
.trust-layer p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.trust-layer.primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: white;
  border: none;
  box-shadow: var(--shadow);
}
.trust-layer.primary p { color: rgba(255, 255, 255, 0.75); }
.trust-connector {
  width: 3px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  position: relative;
  overflow: hidden;
}
.trust-connector::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 12px;
  background: white;
  opacity: 0.6;
  animation: trust-flow 2s linear infinite;
}
@keyframes trust-flow {
  0% { top: -12px; }
  100% { top: 100%; }
}
.trust-desc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.trust-desc-item {
  text-align: center;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust-desc-item h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--blue-deep);
}
.trust-desc-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Knowledge Preservation */
.knowledge-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 48px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.knowledge-step {
  flex: 0 1 140px;
  text-align: center;
  padding: 24px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  animation: knowledge-breathe 4s ease-in-out infinite;
}
.knowledge-step:nth-child(1) { animation-delay: 0s; }
.knowledge-step:nth-child(3) { animation-delay: 0.8s; }
.knowledge-step:nth-child(5) { animation-delay: 1.6s; }
.knowledge-step:nth-child(7) { animation-delay: 2.4s; }
.knowledge-step:nth-child(9) { animation-delay: 3.2s; }
@keyframes knowledge-breathe {
  0%, 100% { border-color: var(--line); }
  50% { border-color: var(--blue); box-shadow: 0 4px 20px rgba(11, 92, 255, 0.1); }
}
.knowledge-step .k-icon {
  font-size: 24px;
  margin-bottom: 10px;
}
.knowledge-step h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}
.knowledge-step p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.knowledge-arrow {
  color: var(--gold);
  font-size: 22px;
  font-weight: 300;
}

/* Governance & Identity flows */
.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 28px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.3s;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 18px;
  z-index: 2;
}
.process-step:last-child::after { display: none; }
.process-step:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.process-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
  margin: 0 auto 12px;
}
.process-step h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px;
}
.process-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.identity-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.identity-step {
  padding: 32px 20px;
  background: linear-gradient(180deg, white, var(--soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.identity-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 2;
}
.identity-step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--blue-deep);
}
.identity-step p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Enterprise Records */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.enterprise-card {
  padding: 28px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}
.enterprise-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(11, 92, 255, 0.08);
}
.enterprise-card .e-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 92, 255, 0.08), rgba(184, 148, 63, 0.08));
  display: grid;
  place-items: center;
  font-size: 22px;
}
.enterprise-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
}
.enterprise-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Civilization Timeline */
.civ-timeline {
  position: relative;
  min-height: 400px;
  padding: 60px 0;
  overflow: hidden;
}
.civ-axis {
  position: relative;
  height: 200px;
}
.civ-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 33%, var(--gold) 66%, var(--blue) 100%);
  background-size: 300% 100%;
  animation: civ-gradient 12s linear infinite;
  border-radius: 2px;
  transform: translateY(-50%);
}
@keyframes civ-gradient {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}
.civ-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 20px;
}
.civ-zone.past { left: 0; width: 33%; }
.civ-zone.present { left: 33%; width: 34%; }
.civ-zone.future { right: 0; width: 33%; }
.civ-zone h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
}
.civ-zone.past h3 { color: var(--gold); }
.civ-zone.present h3 { color: var(--blue); }
.civ-zone.future h3 { color: var(--gold-light); }
.civ-zone p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 280px;
  margin-inline: auto;
}
.civ-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--blue), 0 0 30px rgba(11, 92, 255, 0.4);
  z-index: 5;
  animation: present-pulse 3s ease-in-out infinite;
}
@keyframes present-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--blue), 0 0 30px rgba(11, 92, 255, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(11, 92, 255, 0.2), 0 0 50px rgba(11, 92, 255, 0.6); }
}
.civ-records {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: civ-record-flow 10s linear infinite;
}
@keyframes civ-record-flow {
  0% { left: 5%; top: 48%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 95%; top: 52%; opacity: 0; }
}

/* System Hierarchy */
.hierarchy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hierarchy-card {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.hierarchy-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(184, 148, 63, 0.4);
}
.hierarchy-card.ledger {
  grid-column: span 4;
  text-align: center;
  background: linear-gradient(135deg, rgba(184, 148, 63, 0.15), rgba(11, 92, 255, 0.15));
  border-color: rgba(184, 148, 63, 0.35);
  padding: 36px;
}
.hierarchy-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}
.hierarchy-card.ledger strong {
  font-size: 32px;
  color: var(--gold-light);
}
.hierarchy-card span {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, #f8fafc, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow);
}
.contact-section h2 {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 0 0 16px;
  line-height: 1.1;
}
.contact-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 16px 40px rgba(7, 17, 31, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.contact-list { display: grid; gap: 12px; }
.contact-item {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Record portal app promo (main site) */
.app-promo {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.app-promo-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}
.install-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(7, 17, 31, 0.06);
}
.install-card .install-platform {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
}
.install-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.app-promo-note {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}
.app-promo-note a { color: var(--blue); font-weight: 700; }
@media (max-width: 768px) {
  .install-grid { grid-template-columns: 1fr; }
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot b { color: var(--ink); }

/* RTL */
[dir="rtl"] .flow-arrow,
[dir="rtl"] .knowledge-arrow { transform: scaleX(-1); }
[dir="rtl"] .process-step::after { content: '←'; right: auto; left: -18px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .explorer-grid { grid-template-columns: repeat(2, 1fr); }
  .explorer-detail { grid-template-columns: 1fr; }
  .history-categories { grid-template-columns: repeat(3, 1fr); }
  .enterprise-grid { grid-template-columns: repeat(3, 1fr); }
  .hierarchy { grid-template-columns: repeat(2, 1fr); }
  .hierarchy-card.ledger { grid-column: span 2; }
  .process-flow { grid-template-columns: repeat(3, 1fr); }
  .process-step::after { display: none; }
  .identity-flow { grid-template-columns: repeat(2, 1fr); }
  .identity-step::after { display: none; }
}
@media (max-width: 768px) {
  .navlinks { display: none; }
  .flow-pipeline { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; }
  .explorer-grid { grid-template-columns: 1fr; }
  .history-categories { grid-template-columns: repeat(2, 1fr); }
  .trust-desc { grid-template-columns: 1fr; }
  .knowledge-flow { flex-direction: column; }
  .knowledge-arrow { transform: rotate(90deg); }
  .enterprise-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: 1fr; }
  .identity-flow { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; padding: 36px; }
  .memory-core { min-height: 700px; }
  .core-node { width: 110px; padding: 12px; font-size: 11px; }
  section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .hero-caption { grid-template-columns: 1fr; }
  .enterprise-grid,
  .history-categories { grid-template-columns: 1fr; }
  .hierarchy { grid-template-columns: 1fr; }
  .hierarchy-card.ledger { grid-column: span 1; }
}
