:root {
  --paper: #f4efe7;
  --paper-deep: #e8dfd2;
  --paper-light: #fbf8f3;
  --ink: #10233a;
  --ink-soft: #29425b;
  --blue: #286088;
  --blue-dark: #183c5e;
  --coral: #ef6d55;
  --coral-dark: #c84f3e;
  --lime: #d9e86f;
  --lime-dark: #8b9c2b;
  --yellow: #f3d986;
  --yellow-dark: #9c7b1e;
  --muted: #667487;
  --line: rgba(16, 35, 58, 0.16);
  --line-light: rgba(244, 239, 231, 0.24);
  --shadow: 0 20px 48px rgba(16, 35, 58, 0.10);
  --shadow-sm: 0 6px 18px rgba(16, 35, 58, 0.06);
  --shell: min(1180px, calc(100% - 48px));
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  color: var(--paper-light);
  background: var(--coral);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.skip-link:focus {
  transform: translateY(0);
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 231, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark i {
  color: var(--coral);
  font-style: normal;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 10px;
  letter-spacing: 0;
  transform: rotate(-6deg);
}

.top-nav {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  transition: color 150ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--coral-dark);
}

.edition-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 109, 85, 0.2);
}

/* TYPOGRAPHY HELPERS */
.eyebrow,
.section-kicker,
.mini-label,
.toolbar-label,
.column-tag,
.column-badge,
.silence-label,
.silence-badge,
.diag-header {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--coral-dark);
}

.eyebrow span,
.section-kicker span {
  padding: 0 6px;
  color: var(--ink);
  opacity: 0.38;
}

h1, h2, h3, p, dl, blockquote, ul {
  margin-top: 0;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 0.98;
  margin-bottom: 12px;
}

h1 em, h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

/* HERO SECTION */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 84px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(16, 35, 58, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 35, 58, 0.04) 1px, transparent 1px);
  background-position: center center;
  background-size: 42px 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 56px;
}

.hero-subtitle {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.25;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 660px;
  margin-bottom: 30px;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 160ms ease;
}

.button-coral {
  color: var(--paper-light);
  background: var(--coral);
}

.button-coral:hover,
.button-coral:focus-visible {
  background: var(--coral-dark);
}

.button-ink {
  color: var(--paper-light);
  background: var(--ink);
}

.button-ink:hover,
.button-ink:focus-visible {
  background: var(--blue-dark);
}

.text-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--coral);
  transition: color 150ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral-dark);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-fact dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 26px;
}

.hero-fact dd {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-fact dd small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-fact--alert dt {
  color: var(--coral-dark);
}

.hero-fact-zero {
  color: var(--coral-dark) !important;
}

/* HERO SIDEBAR / SILENCE METER */
.hero-sidebar {
  position: relative;
}

.silence-meter {
  background: var(--paper-light);
  border: 1px solid var(--line);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.silence-meter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--coral);
}

.silence-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.silence-label {
  color: var(--coral-dark);
}

.silence-badge {
  color: var(--muted);
}

.silence-headline {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.silence-ratio-box {
  background: var(--ink);
  color: var(--paper-light);
  padding: 20px;
  margin-bottom: 22px;
  text-align: center;
}

.silence-ratio-number {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--coral);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 6px;
}

.silence-ratio-caption {
  font-size: 11px;
  color: rgba(244, 239, 231, 0.76);
  line-height: 1.35;
}

.silence-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.silence-pillars li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.silence-pillars li:last-child {
  border-bottom: none;
}

.silence-pillars strong {
  color: var(--ink);
}

.silence-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px rgba(239, 109, 85, 0.7); }
  100% { transform: scale(0.95); opacity: 0.6; }
}

/* SIGNAL STRIP */
.signal-strip {
  color: var(--paper-light);
  background: var(--ink);
}

.signal-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.signal-inner::-webkit-scrollbar {
  display: none;
}

.signal-word {
  color: rgba(244, 239, 231, 0.58);
  white-space: nowrap;
}

.signal-word--active {
  color: var(--lime);
}

.signal-line {
  width: 32px;
  height: 1px;
  background: rgba(244, 239, 231, 0.25);
  flex-shrink: 0;
}

/* SECTIONS GENERAL */
.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 48px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 56px;
}

.section-kicker {
  color: var(--coral-dark);
}

.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 0.96;
}

.section-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.section-intro--wide {
  max-width: 760px;
  margin-top: 20px;
}

/* SECTION 1: TENSIUNEA */
.tension-section {
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.tension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.tension-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.tension-card--tension {
  background: #fcf6ef;
  border-left: 3px solid var(--coral);
}

.tension-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 11px;
}

.tension-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tension-tag--contract {
  color: var(--blue-dark);
}

.tension-tag--block {
  color: var(--coral-dark);
}

.tension-date, .tension-status {
  color: var(--muted);
  font-size: 11px;
}

.tension-status {
  color: var(--coral-dark);
  font-weight: 700;
}

.tension-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tension-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.feature-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 800;
}

.tension-highlight {
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(239, 109, 85, 0.08);
  border-left: 2px solid var(--coral);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}

.card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.source-chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  transition: all 120ms ease;
}

.source-chip:hover {
  background: var(--ink);
  color: var(--paper-light);
}

/* SECTION 2: SIMULATOR INTERACTIV */
.simulator-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.scenario-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 160ms ease;
}

.scenario-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.scenario-pill.is-active {
  background: var(--ink);
  color: var(--paper-light);
  border-color: var(--ink);
}

.scenario-pill.is-active .scenario-icon {
  transform: scale(1.15);
}

.simulator-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.stage-column {
  display: flex;
  flex-direction: column;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.column-tag--receipt {
  color: var(--blue-dark);
}

.column-tag--blackout {
  color: var(--coral-dark);
}

.column-badge {
  color: var(--muted);
  font-size: 9.5px;
}

.column-badge--danger {
  color: var(--coral-dark);
  font-weight: 800;
}

/* DIGITAL RECEIPT */
.digital-receipt {
  position: relative;
  background: #fffdf9;
  border: 1px solid rgba(16, 35, 58, 0.2);
  padding: 36px 30px 28px;
  box-shadow: var(--shadow);
  font-family: Inter, sans-serif;
}

.receipt-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(217, 232, 111, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.receipt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.receipt-gov-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.receipt-sub-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

.receipt-stamp-badge {
  border: 2px dashed var(--coral);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--coral-dark);
  text-align: center;
  line-height: 1.15;
  transform: rotate(4deg);
}

.receipt-divider {
  height: 1px;
  border-top: 1px dashed var(--line);
  margin: 18px 0;
}

.receipt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  background: rgba(16, 35, 58, 0.03);
  padding: 10px 12px;
  border: 1px solid rgba(16, 35, 58, 0.06);
}

.meta-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.meta-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-dark);
}

.meta-text {
  font-size: 13px;
  color: var(--ink);
}

.meta-strong {
  font-size: 14px;
  color: var(--ink);
}

.meta-subtext {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.meta-highlight {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
}

.receipt-row {
  margin-bottom: 14px;
}

.accessed-data-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.accessed-data-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(16, 35, 58, 0.06);
  flex-wrap: wrap;
}

.accessed-data-item.is-sensitive {
  background: rgba(239, 109, 85, 0.07);
}

.field-label {
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 100px;
}

.field-val {
  color: var(--ink);
  font-family: var(--font-mono);
}

.field-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--coral);
  color: #fff;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: auto;
}

.channels-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.channel-chip {
  font-size: 11.5px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 3px 8px;
}

.receipt-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.receipt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.receipt-action-btn:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.receipt-action-btn--alert {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.receipt-action-btn--alert:hover {
  background: var(--coral-dark);
  color: #fff;
}

.copy-feedback {
  margin-top: 10px;
  font-size: 12px;
  color: #1b633b;
  font-weight: 700;
  background: #e8f5e9;
  padding: 6px 10px;
  border: 1px solid #c8e6c9;
}

/* TERMINAL SCREEN (BLACKOUT) */
.terminal-screen {
  background: #091019;
  color: #e3edf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #111a24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-lights {
  display: flex;
  gap: 6px;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.led-red { background: #ff4757; box-shadow: 0 0 6px #ff4757; }
.led-amber { background: #ffa502; }
.led-off { background: #2f3542; }

.terminal-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(227, 237, 247, 0.65);
}

.terminal-display {
  padding: 28px 24px 22px;
}

.blackout-hero-metric {
  text-align: center;
  padding: 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 22px;
  background: rgba(255, 71, 87, 0.04);
}

.metric-giant {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #ff4757;
  text-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.metric-desc {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(227, 237, 247, 0.7);
  margin-top: 6px;
}

.terminal-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.status-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

.status-cell-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(227, 237, 247, 0.45);
  margin-bottom: 3px;
}

.status-cell-val {
  font-size: 13px;
  font-weight: 800;
}

.status-cell-val--zero {
  color: #ff6b81;
}

.terminal-diag {
  background: rgba(255, 165, 2, 0.04);
  border: 1px solid rgba(255, 165, 2, 0.2);
  padding: 16px;
  margin-bottom: 20px;
}

.diag-header {
  color: #ffa502;
  margin-bottom: 10px;
}

.diag-summary {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f2f6;
  margin-bottom: 10px;
  line-height: 1.45;
}

.diag-details {
  font-size: 12px;
  color: rgba(227, 237, 247, 0.75);
  line-height: 1.55;
  margin: 0;
}

.terminal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  font-size: 10px;
  color: rgba(227, 237, 247, 0.4);
}

/* SECTION 3: REGISTRUL CELOR 136 DE APLICAȚII */
.registry-section {
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.registry-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.stat-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.stat-pill-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-pill-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.25;
}

.stat-pill--total .stat-pill-num { color: var(--ink); }
.stat-pill--unconnected .stat-pill-num { color: var(--coral-dark); }
.stat-pill--migrating .stat-pill-num { color: #b7791f; }
.stat-pill--planned .stat-pill-num { color: var(--muted); }
.stat-pill--connected .stat-pill-num { color: #2e7d32; }

.registry-toolbar {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  outline: none;
  transition: border-color 140ms ease;
}

.search-box input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 35, 58, 0.08);
}

.filter-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  flex: 1 1 200px;
}

.filter-group select {
  flex: 1;
  padding: 9px 12px;
  font-size: 12.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  cursor: pointer;
  outline: none;
}

.filter-group select:focus {
  border-color: var(--ink);
}

.registry-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
  padding: 0 4px;
}

.reset-filter-btn {
  background: none;
  border: none;
  color: var(--coral-dark);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 140ms ease, box-shadow 140ms ease;
  position: relative;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.app-card.status-tag--unconnected {
  border-left: 4px solid var(--coral);
}

.app-card.status-tag--migrating {
  border-left: 4px solid #d99b26;
}

.app-card.status-tag--planned {
  border-left: 4px solid #a0aec0;
}

.app-card.status-tag--connected {
  border-left: 4px solid #38a169;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.app-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: var(--ink);
  color: var(--paper-light);
  padding: 3px 6px;
}

.sensitivity-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 5px;
}

.sensitivity-tag--critică {
  background: rgba(239, 109, 85, 0.16);
  color: var(--coral-dark);
}

.sensitivity-tag--înaltă {
  background: rgba(217, 155, 38, 0.16);
  color: #a36f0a;
}

.sensitivity-tag--medie {
  background: rgba(102, 116, 135, 0.14);
  color: var(--muted);
}

.status-badge {
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.status-tag--unconnected {
  color: var(--coral-dark);
}
.status-badge.status-tag--unconnected .status-indicator-dot { background: var(--coral); }

.status-badge.status-tag--migrating {
  color: #b7791f;
}
.status-badge.status-tag--migrating .status-indicator-dot { background: #d99b26; }

.status-badge.status-tag--planned {
  color: var(--muted);
}
.status-badge.status-tag--planned .status-indicator-dot { background: #a0aec0; }

.status-badge.status-tag--connected {
  color: #2e7d32;
}
.status-badge.status-tag--connected .status-indicator-dot { background: #38a169; }

.app-title {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.app-institution {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.app-datatypes {
  margin-bottom: 14px;
}

.datatypes-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.datatypes-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.data-chip {
  font-size: 10.5px;
  background: rgba(16, 35, 58, 0.05);
  padding: 2px 6px;
  color: var(--ink-soft);
}

.app-meta-row {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  margin-top: auto;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.migrator-label {
  color: var(--muted);
  margin-right: 4px;
}

.migrator-name {
  font-weight: 700;
}

.app-expand-btn {
  width: 100%;
  padding: 8px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 120ms ease;
  text-align: center;
}

.app-expand-btn:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.app-blocker-sheet {
  margin-top: 12px;
  padding: 12px;
  background: #fdf5f2;
  border: 1px solid rgba(239, 109, 85, 0.25);
  font-size: 12px;
  line-height: 1.5;
}

.blocker-sheet-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--coral-dark);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.blocker-sheet-text {
  margin: 0;
  color: var(--ink);
}

.registry-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--paper);
  border: 1px dashed var(--line);
}

.registry-empty p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* SECTION 4: MONEY & SUBCONTRACTS */
.money-section {
  background: var(--ink);
  color: var(--paper-light);
}

.section-heading--light h2 {
  color: var(--paper-light);
}

.section-heading--light .section-intro {
  color: rgba(244, 239, 231, 0.75);
}

.money-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.money-card {
  background: #182c44;
  border: 1px solid rgba(244, 239, 231, 0.12);
  padding: 28px 24px;
  position: relative;
}

.money-card--accent {
  border-top: 4px solid var(--lime);
}

.money-card--featured {
  border-top: 4px solid var(--coral);
}

.money-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 231, 0.6);
  margin-bottom: 12px;
}

.money-value {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--paper-light);
  margin-bottom: 8px;
}

.money-value span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(244, 239, 231, 0.7);
}

.money-label {
  font-size: 13px;
  color: rgba(244, 239, 231, 0.75);
  margin: 0;
}

.money-marker {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(244, 239, 231, 0.2);
}

.money-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(239, 109, 85, 0.12);
  border: 1px solid rgba(239, 109, 85, 0.35);
  padding: 16px 20px;
  margin-bottom: 48px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--paper-light);
}

.warning-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

.subcontracts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 28px;
  margin-bottom: 36px;
}

.subcontract-browser {
  background: #182c44;
  border: 1px solid rgba(244, 239, 231, 0.12);
}

.browser-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(244, 239, 231, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-label {
  color: rgba(244, 239, 231, 0.65);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.sort-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 239, 231, 0.75);
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.sort-button:hover,
.sort-button.is-active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

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

.subcontract-row {
  border-bottom: 1px solid rgba(244, 239, 231, 0.07);
}

.subcontract-row.is-selected {
  background: rgba(217, 232, 111, 0.1);
}

.subcontract-button {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: none;
  border: none;
  color: var(--paper-light);
  cursor: pointer;
  text-align: left;
}

.subcontract-button:hover {
  background: rgba(255, 255, 255, 0.04);
}

.subcontract-order {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 239, 231, 0.5);
}

.subcontract-winners {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subcontract-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--lime);
  font-weight: 700;
}

.subcontract-detail {
  background: #182c44;
  border: 1px solid rgba(244, 239, 231, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.detail-order {
  font-size: 11px;
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-top: 8px;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--paper-light);
  margin-bottom: 16px;
  line-height: 1;
}

.detail-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(244, 239, 231, 0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.detail-winners {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper-light);
  line-height: 1.35;
  margin-bottom: 20px;
}

.detail-rule {
  height: 1px;
  background: rgba(244, 239, 231, 0.1);
  margin: 16px 0;
}

.detail-caveat {
  font-size: 11.5px;
  color: rgba(244, 239, 231, 0.6);
  line-height: 1.5;
  margin-bottom: 20px;
}

.subcontract-detail .text-link {
  color: var(--lime);
  text-decoration-color: var(--lime);
  font-size: 12.5px;
}

.winner-summary {
  background: #182c44;
  border: 1px solid rgba(244, 239, 231, 0.12);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.summary-headline {
  font-size: 22px;
  font-weight: 800;
  color: var(--paper-light);
  margin: 4px 0 6px;
}

.summary-copy {
  font-size: 13px;
  color: rgba(244, 239, 231, 0.65);
  margin: 0;
}

.summary-stat {
  text-align: right;
}

.summary-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--coral);
  line-height: 1;
}

.summary-stat span {
  font-size: 12px;
  color: rgba(244, 239, 231, 0.7);
  display: block;
  margin-top: 4px;
}

/* SECTION 5: MEANING & QUESTIONS */
.meaning-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.meaning-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  padding: 28px 24px;
}

.meaning-card--coral {
  border-top: 3px solid var(--coral);
}

.meaning-card--lime {
  border-top: 3px solid var(--lime-dark);
}

.meaning-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.meaning-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.meaning-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.unknowns-panel {
  background: var(--paper-light);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.unknowns-panel h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-top: 8px;
}

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

.unknowns-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

.unknowns-list li:last-child {
  border-bottom: none;
}

.unknowns-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--coral-dark);
  font-weight: 800;
  font-family: Georgia, serif;
  font-size: 18px;
  top: 10px;
}

/* SECTION 6: METHOD */
.method-section {
  background: var(--paper-light);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
}

.method-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.source-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: all 140ms ease;
}

.source-list a:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.source-list a span {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--line);
  padding: 2px 6px;
  color: var(--ink);
}

.source-list a:hover span {
  background: var(--coral);
  color: #fff;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-mark {
  font-weight: 800;
  color: var(--ink);
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: var(--ink);
  font-weight: 700;
}

.noscript-message {
  padding: 16px;
  background: #ffebee;
  color: #c62828;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid #ffcdd2;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .simulator-stage {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .money-rail {
    grid-template-columns: 1fr;
  }

  .subcontracts-layout {
    grid-template-columns: 1fr;
  }

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

  .unknowns-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .registry-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .section {
    padding: 64px 0;
  }

  .digital-receipt {
    padding: 24px 18px;
  }

  .receipt-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .registry-stats-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    font-size: 11px;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }

  .terminal-status-grid {
    grid-template-columns: 1fr;
  }

  .accessed-data-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-tag {
    margin-left: 0;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
