:root {
  /* ── Surface (RGB channels for dynamic opacity) ── */
  --surface-rgb: 17, 25, 32;
  --surface-alt-rgb: 14, 22, 29;
  --surface-deep-rgb: 10, 15, 20;

  /* ── Borders ── */
  --border-rgb: 71, 85, 105;
  --border-soft-rgb: 51, 65, 85;
  --border-light-rgb: 148, 163, 184;

  /* ── Accent (emerald) ── */
  --accent-rgb: 16, 185, 129;
  --accent: #10b981;
  --accent-soft: rgba(var(--accent-rgb), 0.16);
  --accent-strong: #059669;
  --accent-hover: #34d399;
  --accent-light: #6ee7b7;
  --accent-lighter: #a7f3d0;

  /* ── Gold / warm ── */
  --gold-rgb: 240, 210, 154;
  --gold-border-rgb: 176, 122, 60;
  --gold-bg-rgb: 86, 55, 22;
  --gold-text: #e7c58f;
  --gold-dot: #d4a24c;

  /* ── Semantic ── */
  --positive: #6ee7b7;
  --negative: #fca5a5;

  /* ── Base ── */
  --bg: #0a0f14;
  --bg-soft: #111920;
  --bg-softer: #19232d;
  --card: #0e161d;
  --border-subtle: rgba(var(--border-light-rgb), 0.20);
  --text-main: #e8eaed;
  --text-soft: #9ca3af;
  --text-mute: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --radius-xl: 1.5rem;

  /* ── Resource card accents ── */
  --rc-1-rgb: 16, 185, 129;
  --rc-1-text: #6ee7b7;
  --rc-2-rgb: 251, 191, 36;
  --rc-2-text: #fcd34d;
  --rc-3-rgb: 129, 140, 248;
  --rc-3-text: #a5b4fc;
  --rc-4-rgb: 244, 114, 182;
  --rc-4-text: #f9a8d4;
}

[data-theme="light"] {
  --surface-rgb: 250, 249, 247;
  --surface-alt-rgb: 245, 243, 240;
  --surface-deep-rgb: 240, 236, 231;

  --border-rgb: 60, 50, 40;
  --border-soft-rgb: 60, 50, 40;
  --border-light-rgb: 60, 50, 40;

  --accent-rgb: 5, 150, 105;
  --accent: #059669;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-strong: #047857;
  --accent-hover: #10b981;
  --accent-light: #059669;
  --accent-lighter: #047857;

  --gold-rgb: 139, 90, 43;
  --gold-border-rgb: 139, 90, 43;
  --gold-bg-rgb: 139, 90, 43;
  --gold-text: #8b5a2b;
  --gold-dot: #a0522d;

  --positive: #047857;
  --negative: #b91c1c;

  --bg: #f5f3f0;
  --bg-soft: #ebe8e4;
  --bg-softer: #ddd9d4;
  --card: #faf9f7;
  --border-subtle: rgba(var(--border-rgb), 0.2);
  --text-main: #3c3228;
  --text-soft: #5c5248;
  --text-mute: #7a6f64;
  --danger: #b91c1c;
  --success: #059669;
  --shadow-soft: 0 18px 45px rgba(var(--border-rgb), 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(var(--surface-rgb), 0.98), rgba(var(--surface-rgb), 0.9));
  border-bottom-color: rgba(var(--border-rgb), 0.15);
  box-shadow: 0 4px 20px rgba(var(--border-rgb), 0.08);
}

[data-theme="light"] .brand-logo {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 248, 220, 0.95), rgba(255, 248, 220, 0.25) 24%, transparent 42%),
    linear-gradient(135deg, #047857, #10b981);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(var(--accent-rgb), 0.24);
}

[data-theme="light"] .nav-chip {
  border-color: rgba(var(--gold-rgb), 0.4);
  background: rgba(var(--gold-rgb), 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(var(--border-rgb), 0.25);
  background: rgba(13, 148, 136, 0.08);
  color: var(--text-soft);
}

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

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

[data-theme="light"] .hero-feature {
  background: rgba(var(--surface-rgb), 0.8);
  border-color: rgba(var(--border-rgb), 0.15);
}

[data-theme="light"] .hero-feature:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--surface-rgb), 0.95);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.1);
}

[data-theme="light"] .hero-panel,
[data-theme="light"] .advanced-panel {
  background: rgba(var(--surface-rgb), 0.88);
  border-color: rgba(var(--border-rgb), 0.15);
}

[data-theme="light"] .hero-action {
  border-color: rgba(var(--border-rgb), 0.18);
  background: rgba(var(--surface-rgb), 0.8);
  color: #3c3228;
}

[data-theme="light"] .hero-action:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}

[data-theme="light"] .hero-action--primary {
  background: linear-gradient(135deg, #047857, #059669);
  border-color: rgba(var(--gold-rgb), 0.18);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(var(--accent-rgb), 0.18);
}

[data-theme="light"] .card {
  background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.98), rgba(var(--surface-alt-rgb), 0.95));
  border-color: rgba(var(--border-rgb), 0.15);
}

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

[data-theme="light"] .card:hover {
  box-shadow: 0 22px 55px rgba(var(--border-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.3);
}

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

[data-theme="light"] .fieldset {
  border-color: rgba(var(--border-rgb), 0.15);
  background: linear-gradient(135deg, rgba(var(--surface-alt-rgb), 0.9), rgba(var(--surface-deep-rgb), 0.95));
}

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

[data-theme="light"] .field-input-shell {
  background: rgba(var(--surface-rgb), 0.95);
  border-color: rgba(var(--border-rgb), 0.2);
}

[data-theme="light"] .field-input-shell:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--surface-rgb), 1);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

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

[data-theme="light"] .field-suffix-pill {
  background: rgba(var(--surface-deep-rgb), 0.9);
  border-color: rgba(var(--border-rgb), 0.15);
}

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

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

[data-theme="light"] .slider {
  background-color: rgba(var(--surface-deep-rgb), 0.9);
  border-color: rgba(var(--border-rgb), 0.25);
}

[data-theme="light"] .slider:before {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.25);
}

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

[data-theme="light"] .pill-option {
  border-color: rgba(var(--border-rgb), 0.2);
  background: rgba(var(--surface-rgb), 0.8);
  color: #5c5248;
}

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

[data-theme="light"] .pill-option--active {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.15);
  color: #047857;
}

[data-theme="light"] .metric-card {
  border-color: rgba(var(--border-rgb), 0.15);
  background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.95), rgba(var(--surface-alt-rgb), 0.98));
}

[data-theme="light"] .metric-card:hover {
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 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: #047857;
}

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

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

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

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

[data-theme="light"] .info-card {
  background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.95), rgba(var(--surface-alt-rgb), 0.98));
  border-color: rgba(var(--border-rgb), 0.15);
}

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

[data-theme="light"] .footer {
  border-top-color: rgba(var(--border-rgb), 0.12);
  background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.98), rgba(var(--surface-alt-rgb), 0.95));
  box-shadow: 0 -4px 20px rgba(var(--border-rgb), 0.06);
}

[data-theme="light"] .footer::before {
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--accent-rgb), 0.2),
    transparent
  );
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(var(--border-rgb), 0.1);
}

[data-theme="light"] .footer-link:hover {
  color: var(--accent-strong);
}

[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(var(--border-light-rgb), 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(var(--border-rgb), 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: linear-gradient(160deg, #0a0f14 0%, #0d1318 40%, #080c10 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(var(--surface-alt-rgb), 0.96),
    rgba(var(--surface-alt-rgb), 0.65)
  );
  border-bottom: 1px solid rgba(var(--border-light-rgb), 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.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;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(var(--gold-rgb), 0.85), rgba(var(--gold-rgb), 0.22) 24%, transparent 42%),
    linear-gradient(135deg, #059669, #10b981);
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8eaed;
  font-size: 1.1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 30px rgba(var(--accent-rgb), 0.24);
}

.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(var(--gold-border-rgb), 0.35);
  background: rgba(var(--gold-bg-rgb), 0.2);
  color: #e7c58f;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d4a24c;
  box-shadow: 0 0 14px rgba(212, 162, 76, 0.7);
}

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(var(--border-light-rgb), 0.32);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--accent-rgb), 0.2),
    transparent
  );
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

.hero-eyebrow .pill {
  border-color: rgba(var(--gold-border-rgb), 0.4);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--gold-bg-rgb), 0.32),
    rgba(var(--gold-bg-rgb), 0.14)
  );
  color: #e7c58f;
  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, #f0d29a, #34d399);
  -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-panel {
  padding: 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(var(--border-soft-rgb), 0.55);
  background: rgba(var(--surface-alt-rgb), 0.7);
  box-shadow: inset 0 0 40px rgba(var(--accent-rgb), 0.04);
}

.hero-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-list li + li {
  margin-top: 0.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(var(--border-light-rgb), 0.20);
  background: rgba(var(--surface-alt-rgb), 0.65);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.hero-action:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  transform: translateY(-1px);
}

.hero-action--primary {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: rgba(var(--gold-rgb), 0.14);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 26px rgba(var(--accent-rgb), 0.2);
}

.hero-note {
  margin: 0.9rem 0 0;
  color: var(--text-mute);
  font-size: 0.8rem;
  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(var(--surface-alt-rgb), 0.6);
  border: 1px solid rgba(var(--border-soft-rgb), 0.45);
  border-radius: 0.9rem;
  transition: all 0.25s ease;
  min-height: 100%;
}

.hero-feature:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--surface-alt-rgb), 0.9);
  box-shadow:
    0 0 25px rgba(var(--accent-rgb), 0.08),
    inset 0 0 30px rgba(var(--accent-rgb), 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(var(--border-light-rgb), 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(var(--surface-rgb), 0.9),
    rgba(var(--surface-rgb), 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(var(--surface-rgb), 0.96), rgba(var(--surface-deep-rgb), 0.98));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--border-rgb), 0.5);
  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(var(--accent-rgb), 0.06),
    transparent 55%
  );
  opacity: 0.9;
}

.card:hover {
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(var(--accent-rgb), 0.08),
    inset 0 0 60px rgba(var(--accent-rgb), 0.03);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.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(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 600;
}

.fieldset {
  border: 1px solid rgba(var(--border-rgb), 0.45);
  border-radius: 1.1rem;
  padding: 1.1rem 1rem 1.15rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(
    135deg,
    rgba(var(--surface-rgb), 0.95),
    rgba(var(--surface-deep-rgb), 0.98)
  );
  position: relative;
}

.fieldset::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--border-light-rgb), 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;
}

.advanced-panel {
  margin-bottom: 1.3rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(var(--border-rgb), 0.45);
  background: linear-gradient(
    135deg,
    rgba(var(--surface-rgb), 0.92),
    rgba(var(--surface-deep-rgb), 0.98)
  );
}

.advanced-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 1rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.advanced-summary-meta {
  color: var(--text-mute);
  font-size: 0.78rem;
  font-weight: 500;
}

.advanced-content {
  padding: 0 1rem 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(var(--surface-rgb), 0.9),
    rgba(var(--surface-alt-rgb), 0.7)
  );
  border-radius: 0.85rem;
  border: 1px solid rgba(var(--border-rgb), 0.55);
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
}

.field-input-shell:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--surface-rgb), 0.95),
    rgba(var(--surface-alt-rgb), 0.8)
  );
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

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

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

select {
  appearance: none;
  cursor: pointer;
}

select option {
  background: var(--card);
  color: var(--text-main);
}

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(var(--surface-rgb), 0.9);
  border: 1px solid rgba(var(--border-rgb), 0.5);
  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(var(--surface-rgb), 0.9);
  border-radius: 999px;
  border: 1px solid rgba(var(--border-rgb), 0.55);
  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, #10b981, #059669);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.35);
}

.slider:hover:before {
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.5);
}

.switch input:checked + .slider {
  background-color: rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.5);
}

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

.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(var(--border-rgb), 0.5);
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  background: rgba(var(--surface-rgb), 0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-option:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2);
}

.pill-option--active {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.18);
  color: #a7f3d0;
  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(var(--border-rgb), 0.45);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--surface-rgb), 0.96),
    rgba(var(--surface-deep-rgb), 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(var(--accent-rgb), 0.08),
    inset 0 0 40px rgba(var(--accent-rgb), 0.03);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.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: #fca5a5;
}

.metric-row-value.positive {
  color: #6ee7b7;
  font-weight: 700;
}

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

.badge-accent {
  font-size: 0.7rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.55);
  background: rgba(var(--gold-bg-rgb), 0.35);
  color: #f2d7aa;
  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(var(--surface-rgb), 0.96),
    rgba(var(--surface-alt-rgb), 0.94)
  );
  border-radius: 1.3rem;
  border: 1px solid rgba(var(--border-rgb), 0.45);
  padding: 1rem 1.1rem 1.1rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow:
    0 0 30px rgba(var(--accent-rgb), 0.08),
    inset 0 0 40px rgba(var(--accent-rgb), 0.03);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.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;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding-top: 0.8rem;
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-question {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.faq-answer {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.resource-section {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--text-mute);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.section-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42rem;
}

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

.resource-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(var(--border-rgb), 0.4);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--surface-rgb), 0.96),
    rgba(var(--surface-deep-rgb), 0.98)
  );
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(var(--accent-rgb), 0.06);
}

/* Distinct accent colors per resource card */
.resource-card:nth-child(1):hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.resource-card:nth-child(2):hover {
  border-color: rgba(var(--rc-2-rgb), 0.4);
}
.resource-card:nth-child(3):hover {
  border-color: rgba(var(--rc-3-rgb), 0.4);
}
.resource-card:nth-child(4):hover {
  border-color: rgba(var(--rc-4-rgb), 0.4);
}

.resource-card:nth-child(1) .resource-card-eyebrow {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  color: #6ee7b7;
}
.resource-card:nth-child(2) .resource-card-eyebrow {
  border-color: rgba(var(--rc-2-rgb), 0.35);
  background: rgba(var(--rc-2-rgb), 0.12);
  color: #fcd34d;
}
.resource-card:nth-child(3) .resource-card-eyebrow {
  border-color: rgba(var(--rc-3-rgb), 0.35);
  background: rgba(var(--rc-3-rgb), 0.12);
  color: #a5b4fc;
}
.resource-card:nth-child(4) .resource-card-eyebrow {
  border-color: rgba(var(--rc-4-rgb), 0.35);
  background: rgba(var(--rc-4-rgb), 0.12);
  color: #f9a8d4;
}

.resource-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--border-light-rgb), 0.3);
  background: rgba(var(--border-rgb), 0.15);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.resource-card-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

.resource-card-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.page-main {
  flex: 1;
}

.page-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2rem;
}

.page-hero-card {
  padding: 1.45rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--border-rgb), 0.45);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--surface-rgb), 0.97),
    rgba(var(--surface-deep-rgb), 0.98)
  );
  box-shadow: var(--shadow-soft);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-border-rgb), 0.32);
  background: rgba(var(--gold-bg-rgb), 0.16);
  color: #e7c58f;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0.95rem 0 0.65rem;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.05;
}

.page-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 48rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--border-light-rgb), 0.24);
  background: rgba(var(--surface-alt-rgb), 0.45);
  color: var(--text-soft);
  font-size: 0.8rem;
}

.content-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.content-card {
  padding: 1.25rem 1.2rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(var(--border-rgb), 0.45);
  background: radial-gradient(
    circle at 0 0,
    rgba(var(--surface-rgb), 0.96),
    rgba(var(--surface-deep-rgb), 0.98)
  );
  box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
  margin-top: 1rem;
}

.content-sidebar {
  position: sticky;
  top: 5.5rem;
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
}

.content-prose p,
.content-prose ul,
.content-prose ol {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.94rem;
}

.content-prose ul,
.content-prose ol {
  padding-left: 1.2rem;
}

.content-prose li + li {
  margin-top: 0.45rem;
}

.content-prose strong {
  color: var(--text-main);
}

.content-prose hr {
  border: 0;
  height: 1px;
  margin: 1.2rem 0;
  background: linear-gradient(to right, transparent, rgba(var(--border-light-rgb), 0.18), transparent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--border-rgb), 0.4);
  background: rgba(var(--surface-rgb), 0.4);
}

.stat-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.link-list {
  display: grid;
  gap: 0.7rem;
}

.link-item {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(var(--border-rgb), 0.4);
  background: rgba(var(--surface-rgb), 0.36);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.link-item:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  transform: translateY(-1px);
}

.link-item-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.link-item-text {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.table-shell {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.84);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(var(--surface-deep-rgb), 0.68);
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.62);
  font-size: 0.88rem;
}

.data-table th {
  color: var(--text-main);
  background: rgba(var(--surface-rgb), 0.48);
  font-weight: 600;
}

.data-table td {
  color: var(--text-soft);
}

.table-note {
  margin: 0.8rem 0 0;
  color: var(--text-mute);
  font-size: 0.8rem;
  line-height: 1.55;
}

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

.tool-results {
  display: grid;
  gap: 1rem;
}

.hourly-tool-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.hourly-converter-card h2 {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(var(--border-soft-rgb), 0.25);
}

.hourly-converter-card .fieldset {
  margin-bottom: 0;
}

.hourly-converter-card .metric-card {
  min-height: 100%;
  padding: 1.15rem 1.15rem 1.2rem;
}

.footer {
  border-top: 1px solid rgba(var(--border-soft-rgb), 0.35);
  background: rgba(var(--surface-deep-rgb), 0.96);
  color: var(--text-mute);
  font-size: 0.85rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--accent-rgb), 0.25),
    transparent
  );
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.8rem;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  font-size: 0.76rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.footer-brand-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 28rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-link {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s ease;
  line-height: 1.6;
}

.footer-link:hover {
  color: var(--accent-light, #6ee7b7);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(var(--border-soft-rgb), 0.2);
  font-size: 0.78rem;
  color: var(--text-mute);
}

.footer-bottom-note {
  opacity: 0.7;
  font-style: italic;
}

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

@media (max-width: 880px) {
  .hero-grid,
  .layout-grid,
  .info-section,
  .resource-grid,
  .content-layout,
  .tool-grid,
  .hourly-tool-grid {
    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;
  }

  .hero-panel {
    margin-top: 0;
  }

  .content-sidebar {
    position: static;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

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

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

  .hero {
    padding-inline: 1rem;
  }

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

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

  .resource-section,
  .page-hero,
  .content-layout {
    padding-inline: 1rem;
  }

  .card {
    padding-inline: 1.1rem;
  }

  .advanced-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero-card,
  .content-card,
  .resource-card {
    padding-inline: 1rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}

/* ===========================================
   ANIMATIONS
   =========================================== */

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Page load animations */
.nav {
  animation: fadeInDown 0.6s ease-out;
}

.hero-eyebrow {
  animation: fadeIn 0.5s ease-out 0.1s both;
}

.hero-title {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-feature {
  animation: scaleIn 0.5s ease-out both;
}

.hero-feature:nth-child(1) { animation-delay: 0.3s; }
.hero-feature:nth-child(2) { animation-delay: 0.4s; }
.hero-feature:nth-child(3) { animation-delay: 0.5s; }
.hero-feature:nth-child(4) { animation-delay: 0.6s; }

/* Scroll animations - initial state */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for cards */
.layout-grid .card {
  animation: fadeInUp 0.7s ease-out both;
}

.layout-grid .card:first-child {
  animation-delay: 0.4s;
}

.layout-grid .card:last-child {
  animation-delay: 0.5s;
}

/* Info cards scroll animation */
.info-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.info-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.info-card:nth-child(1).animated {
  transition-delay: 0s;
}

.info-card:nth-child(2).animated {
  transition-delay: 0.15s;
}

/* Enhanced hover transitions */
.hero-feature,
.card,
.metric-card,
.info-card,
.pill-option,
.theme-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button press effect */
.pill-option:active,
.theme-toggle:active {
  transform: scale(0.95);
}

/* Input focus animation */
.field-input-shell {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Value update animation */
@keyframes valueUpdate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.value-updated {
  animation: valueUpdate 0.3s ease-out;
}

/* Footer animation */
.footer {
  animation: fadeIn 0.6s ease-out 0.8s both;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
