:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --bg-softer: #11182a;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.2);
  --accent-strong: #2563eb;
  --card: #0f172a;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-mute: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-xl: 1.5rem;
}

[data-theme="light"] {
  --bg: #f5f3f0;
  --bg-soft: #ebe8e4;
  --bg-softer: #ddd9d4;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent-strong: #0f766e;
  --card: #faf9f7;
  --border-subtle: rgba(60, 50, 40, 0.2);
  --text-main: #3c3228;
  --text-soft: #5c5248;
  --text-mute: #7a6f64;
  --danger: #b91c1c;
  --success: #0f766e;
  --shadow-soft: 0 18px 45px rgba(60, 50, 40, 0.12);
}

/* Light mode specific overrides */
[data-theme="light"] body {
  background: linear-gradient(135deg, #f5f3f0 0%, #ebe8e4 50%, #f8f6f3 100%);
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
}

[data-theme="light"] body::after {
  opacity: 0.02;
}

[data-theme="light"] .nav {
  background: linear-gradient(to bottom, rgba(250, 249, 247, 0.98), rgba(250, 249, 247, 0.9));
  border-bottom-color: rgba(60, 50, 40, 0.15);
  box-shadow: 0 4px 20px rgba(60, 50, 40, 0.08);
}

[data-theme="light"] .brand-logo {
  background: radial-gradient(circle at 30% 0, #5eead4, #0d9488, #0f766e);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

[data-theme="light"] .nav-chip {
  border-color: rgba(139, 90, 43, 0.4);
  background: rgba(139, 90, 43, 0.1);
  color: #8b5a2b;
}

[data-theme="light"] .nav-chip-dot {
  background: #a0522d;
  box-shadow: 0 0 8px rgba(160, 82, 45, 0.5);
}

[data-theme="light"] .hero-eyebrow > span:not(.pill) {
  border-color: rgba(60, 50, 40, 0.25);
  background: rgba(13, 148, 136, 0.08);
  color: var(--text-soft);
}

[data-theme="light"] .hero-eyebrow .pill {
  border-color: rgba(139, 90, 43, 0.4);
  background: rgba(139, 90, 43, 0.1);
  color: #8b5a2b;
}

[data-theme="light"] .hero-title span.accent {
  background: linear-gradient(120deg, #0d9488, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .hero-feature {
  background: rgba(250, 249, 247, 0.8);
  border-color: rgba(60, 50, 40, 0.15);
}

[data-theme="light"] .hero-feature:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(250, 249, 247, 0.95);
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.1);
}

[data-theme="light"] .card {
  background: linear-gradient(135deg, rgba(250, 249, 247, 0.98), rgba(245, 243, 240, 0.95));
  border-color: rgba(60, 50, 40, 0.15);
}

[data-theme="light"] .card::before {
  background: radial-gradient(circle at top, rgba(13, 148, 136, 0.04), transparent 55%);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 22px 55px rgba(60, 50, 40, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
}

[data-theme="light"] .card-tag {
  background: rgba(139, 90, 43, 0.1);
  border-color: rgba(139, 90, 43, 0.35);
  color: #8b5a2b;
}

[data-theme="light"] .fieldset {
  border-color: rgba(60, 50, 40, 0.15);
  background: linear-gradient(135deg, rgba(245, 243, 240, 0.9), rgba(240, 236, 231, 0.95));
}

[data-theme="light"] .fieldset::after {
  background: linear-gradient(to right, transparent, rgba(60, 50, 40, 0.12), transparent);
}

[data-theme="light"] .field-input-shell {
  background: rgba(252, 251, 249, 0.95);
  border-color: rgba(60, 50, 40, 0.2);
}

[data-theme="light"] .field-input-shell:focus-within {
  border-color: rgba(13, 148, 136, 0.5);
  background: rgba(252, 251, 249, 1);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

[data-theme="light"] input::placeholder {
  color: #7a6f64;
}

[data-theme="light"] .field-suffix-pill {
  background: rgba(240, 236, 231, 0.9);
  border-color: rgba(60, 50, 40, 0.15);
}

[data-theme="light"] .field-label {
  color: #3c3228;
}

[data-theme="light"] .toggle-label-main {
  color: #3c3228;
}

[data-theme="light"] .slider {
  background-color: rgba(240, 236, 231, 0.9);
  border-color: rgba(60, 50, 40, 0.25);
}

[data-theme="light"] .slider:before {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

[data-theme="light"] .switch input:checked + .slider {
  background-color: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.45);
}

[data-theme="light"] .pill-option {
  border-color: rgba(60, 50, 40, 0.2);
  background: rgba(252, 251, 249, 0.8);
  color: #5c5248;
}

[data-theme="light"] .pill-option:hover {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.1);
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.12);
}

[data-theme="light"] .pill-option--active {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(13, 148, 136, 0.15);
  color: #0f766e;
}

[data-theme="light"] .metric-card {
  border-color: rgba(60, 50, 40, 0.15);
  background: linear-gradient(135deg, rgba(250, 249, 247, 0.95), rgba(245, 243, 240, 0.98));
}

[data-theme="light"] .metric-card:hover {
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.25);
}

[data-theme="light"] .metric-row-label {
  color: #5c5248;
}

[data-theme="light"] .metric-row-value {
  color: #3c3228;
}

[data-theme="light"] .metric-row-value.negative {
  color: #b91c1c;
}

[data-theme="light"] .metric-row-value.positive {
  color: #0f766e;
}

[data-theme="light"] .metric-divider {
  background: linear-gradient(to right, transparent, rgba(60, 50, 40, 0.15), transparent);
}

[data-theme="light"] .badge-accent {
  border-color: rgba(139, 90, 43, 0.4);
  background: rgba(139, 90, 43, 0.1);
  color: #8b5a2b;
}

[data-theme="light"] .badge-soft {
  border-color: rgba(60, 50, 40, 0.2);
  color: #7a6f64;
}

[data-theme="light"] .dot-warning {
  background: #92400e;
}

[data-theme="light"] .info-card {
  background: linear-gradient(135deg, rgba(250, 249, 247, 0.95), rgba(245, 243, 240, 0.98));
  border-color: rgba(60, 50, 40, 0.15);
}

[data-theme="light"] .info-card:hover {
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.25);
}

[data-theme="light"] .footer {
  border-top-color: rgba(60, 50, 40, 0.12);
  background: linear-gradient(135deg, rgba(250, 249, 247, 0.98), rgba(245, 243, 240, 0.95));
  box-shadow: 0 -4px 20px rgba(60, 50, 40, 0.06);
}

[data-theme="light"] .footer-link:hover {
  color: #3c3228;
}

[data-theme="light"] .card-title,
[data-theme="light"] .metric-title,
[data-theme="light"] .info-title {
  color: #3c3228;
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: var(--text-soft);
  transition: fill 0.3s ease;
}

.theme-toggle:hover svg {
  fill: var(--accent);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(71, 85, 105, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.6)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #bfdbfe, #3b82f6, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.75);
}

.brand-text-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.brand-text-sub {
  font-size: 0.76rem;
  color: var(--text-soft);
}

.nav-chip {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(6, 95, 70, 0.2);
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

main {
  flex: 1;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem 2rem;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
}

.hero-eyebrow > span:not(.pill) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(
    circle at 0 0,
    rgba(59, 130, 246, 0.35),
    transparent
  );
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-eyebrow strong {
  color: #e5e7eb;
}

.hero-eyebrow .pill {
  border-color: rgba(52, 211, 153, 0.5);
  background: radial-gradient(
    circle at 0 0,
    rgba(6, 95, 70, 0.4),
    rgba(6, 95, 70, 0.2)
  );
  color: #a7f3d0;
  font-weight: 500;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 1.7rem;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.hero-title span.accent {
  background: linear-gradient(120deg, #60a5fa, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 42rem;
  line-height: 1.5;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding: 0;
  align-items: stretch;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 0.9rem;
  transition: all 0.25s ease;
  min-height: 100%;
}

.hero-feature:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(11, 16, 32, 0.9);
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.1),
    inset 0 0 30px rgba(59, 130, 246, 0.03);
}

.hero-feature-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.hero-feature-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-feature-desc {
  font-size: 0.77rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.76rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: radial-gradient(
    circle at 0 0,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.3)
  );
}

.pill-icon {
  font-size: 0.85rem;
}

.layout-main {
  background: transparent;
}

.layout-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.card {
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.96), #020617);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.4rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.1),
    transparent 55%
  );
  opacity: 0.9;
}

.card:hover {
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.98),
    0 0 40px rgba(59, 130, 246, 0.15),
    inset 0 0 60px rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.card-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 600;
}

.fieldset {
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 1.1rem;
  padding: 1.1rem 1rem 1.15rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.98)
  );
  position: relative;
}

.fieldset::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.15),
    transparent
  );
}

.fieldset:last-of-type::after {
  display: none;
}

.fieldset legend {
  padding: 0 0.45rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.field-label {
  font-size: 0.9rem;
  color: #e5e7eb;
  font-weight: 500;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-mute);
}

.field-input-shell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: radial-gradient(
    circle at 0 0,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
  border-radius: 0.85rem;
  border: 1px solid rgba(51, 65, 85, 0.95);
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
}

.field-input-shell:focus-within {
  border-color: rgba(34, 197, 94, 0.6);
  background: radial-gradient(
    circle at 0 0,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.field-input-prefix {
  font-size: 0.8rem;
  color: var(--text-mute);
}

input[type="number"],
input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus {
  transform: scale(1.01);
}

input::placeholder {
  color: #4b5563;
}

.field-suffix-pill {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-soft);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.toggle-label-main {
  font-size: 1rem;
  font-weight: 500;
}

.toggle-label-sub {
  font-size: 0.9rem;
  color: var(--text-mute);
}

.switch {
  position: relative;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.4);
}

.slider:hover:before {
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.6);
}

.switch input:checked + .slider {
  background-color: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
}

.switch input:checked + .slider:before {
  transform: translate(18px, -50%);
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.pill-option {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-option:hover {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.pill-option--active {
  border-color: rgba(34, 197, 94, 0.8);
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  font-weight: 600;
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .card:last-of-type {
    position: sticky;
    top: 90px;
  }
}

.metric-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: radial-gradient(
    circle at 0 0,
    rgba(15, 23, 42, 0.96),
    rgba(2, 6, 23, 0.98)
  );
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: all 0.3s ease;
}

.metric-card:hover {
  box-shadow:
    0 0 30px rgba(59, 130, 246, 0.12),
    inset 0 0 40px rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.3);
}

.metric-card .metric-row-value {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.metric-title {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.metric-subtitle {
  font-size: 0.74rem;
  color: var(--text-mute);
}

.metric-value-main {
  font-size: 1.3rem;
  font-weight: 700;
}

.metric-pill {
  font-size: 0.7rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.95);
  color: var(--text-mute);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.metric-row-label {
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.metric-row-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-row-value.negative {
  color: #ff8888;
}

.metric-row-value.positive {
  color: #86efac;
  font-weight: 700;
}

.metric-divider {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(55, 65, 81, 0.9),
    transparent
  );
  margin: 0.4rem 0;
}

.badge-accent {
  font-size: 0.7rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: rgba(8, 47, 73, 0.9);
  color: #e0f2fe;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-soft {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.footnote {
  margin-top: 1.3rem;
  font-size: 0.75rem;
  color: var(--text-mute);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.dot-warning {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #facc15;
  margin-top: 0.25rem;
}

.info-section {
  max-width: 1200px;
  margin: 0 auto 2.2rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.info-card {
  background: radial-gradient(
    circle at 0 0,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94)
  );
  border-radius: 1.3rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  padding: 1rem 1.1rem 1.1rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow:
    0 0 30px rgba(34, 197, 94, 0.12),
    inset 0 0 40px rgba(34, 197, 94, 0.03);
  border-color: rgba(34, 197, 94, 0.3);
}

.info-title {
  font-size: 1rem;
  margin: 0 0 0.6rem 0;
  font-weight: 600;
}

.info-text {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.info-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.1rem 1.25rem 1.4rem;
  background: radial-gradient(
    circle at 0 0,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.96)
  );
  color: var(--text-mute);
  font-size: 0.8rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.footer-link:hover {
  color: #e5e7eb;
}

.footer-badge {
  font-size: 0.75rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

@media (max-width: 880px) {
  .hero-grid,
  .layout-grid,
  .info-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-grid {
    padding-bottom: 2.25rem;
  }

  .results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-features {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding-inline: 1rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  .layout-grid {
    padding-inline: 1rem;
  }

  .info-section {
    padding-inline: 1rem;
  }

  .card {
    padding-inline: 1.1rem;
  }
}
