html {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(247, 147, 30, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.14), transparent 26%),
    linear-gradient(180deg, #07101b 0%, #0f1b2a 26%, #f7f3eb 100%);
  color: #0f172a;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 32%),
    radial-gradient(circle at left center, rgba(247, 147, 30, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(8, 17, 30, 0.98), rgba(16, 30, 47, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(3, 10, 20, 0.32);
  color: #f8fafc;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.language-switcher__label {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.95rem;
}

.language-switcher__select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-switcher__select option {
  color: #111827;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7b955;
}

.hero .eyebrow {
  max-width: 10ch;
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2.15rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #f8fafc;
  text-wrap: balance;
}

.eyebrow--dark {
  color: #b46910;
}

.hero h1,
.panel h2,
.method-list h3,
.supply-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.15rem, 4.6vw, 3.7rem);
  line-height: 1;
  text-wrap: balance;
}

.hero h1:empty {
  display: none;
}

.hero h1:empty + .hero__text {
  margin-top: 18px;
}

.hero__text {
  max-width: 36rem;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.84);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.button--primary {
  background: linear-gradient(135deg, #f7931a, #ffd145);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(247, 147, 30, 0.28);
}

.refresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.refresh-chip__label {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.8);
}

.refresh-chip__value {
  font-weight: 700;
  color: #fff;
}

.hero__spotlight,
.panel {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero__spotlight {
  padding: 26px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  background:
    radial-gradient(circle at top left, rgba(247, 147, 30, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 255, 255, 0.9));
  color: #0f172a;
}

.spotlight__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a5a14;
}

.spotlight__value {
  margin: 10px 0 6px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #111827;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

.spotlight__caption {
  margin: 0;
  max-width: 26rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #475569;
  text-wrap: pretty;
}

.spotlight__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.spotlight__meta div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
}

.spotlight__meta span,
.comparison-row span,
.field span,
.method-list p,
.supply-card__text,
.live-block__label,
.live-block__hint,
.updated-at {
  color: #64748b;
}

.spotlight__meta strong,
.comparison-row strong,
.scenario-result strong {
  display: block;
  margin-top: 6px;
  font-size: 1.12rem;
  color: #0f172a;
}

.layout {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.panel {
  padding: 24px;
  overflow: hidden;
}

.panel--about {
  order: 96;
}

.panel--market-pulse {
  order: 97;
}

.panel--faq {
  order: 98;
}

.panel--share {
  order: 99;
}

.panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #0f172a;
}

.hero h1,
.hero__text,
.panel h2,
.panel h3,
.spotlight__label,
.spotlight__caption,
.stat-card__label,
.stat-card__hint,
.supply-card__text,
.supply-detail__hint,
.live-block__label,
.live-block__hint,
.comparison-row span,
.comparison-row strong,
.chart-card__head strong,
.chart-card__head span,
.method-list p,
.footer span,
.footer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stats-grid,
.supply-grid,
.scenario-grid,
.split {
  display: grid;
  gap: 16px;
}

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

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

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

.stats-grid > *,
.supply-grid > *,
.comparison-list > *,
.scenario-result > *,
.method-list > *,
.chart-card > * {
  min-width: 0;
}

.stat-card,
.supply-card,
.comparison-row,
.scenario-result,
.method-list article {
  border-radius: 22px;
}

.stat-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.stat-card--btc {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.94));
}

.stat-card--gold {
  background: linear-gradient(180deg, rgba(255, 252, 235, 0.98), rgba(255, 255, 255, 0.94));
}

.stat-card__label,
.supply-card__top,
.pill,
.stat-card__hint {
  display: block;
}

.stat-card__label {
  color: #475569;
  font-size: 0.95rem;
}

.stat-card__value {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.05;
  color: #0f172a;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

.stat-card__hint {
  margin-top: 10px;
  color: #64748b;
}

.supply-card {
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.supply-card--btc {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.95));
}

.supply-card--gold {
  background: linear-gradient(180deg, rgba(255, 252, 235, 0.98), rgba(255, 255, 255, 0.95));
}

.supply-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.84rem;
}

.supply-card__value {
  display: block;
  margin-top: 18px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.7rem, 2.9vw, 2.55rem);
  line-height: 1.08;
  color: #0f172a;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.inline-meter {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.inline-meter__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7931a, #ffd145);
}

.live-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.supply-detail {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.supply-detail__label {
  display: block;
  color: #64748b;
}

.supply-detail__value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.18;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.supply-detail__hint,
.supply-note {
  display: block;
  margin-top: 8px;
  color: #64748b;
}

.live-block__value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.18;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.comparison-list,
.method-list,
.share-grid {
  display: grid;
  gap: 14px;
}

.comparison-row,
.method-list article,
.scenario-result {
  padding: 18px;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field {
  display: grid;
  gap: 10px;
}

.field input {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 1);
  background: #fff;
  color: #0f172a;
}

.field input:focus {
  outline: 2px solid rgba(247, 147, 30, 0.32);
  border-color: #f7931a;
}

.scenario-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 251, 249, 0.98), rgba(247, 250, 252, 0.92));
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.chart-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-card__head strong,
.footer a {
  color: #0f172a;
}

.chart-card__head span,
.chart-card__note,
.footer span {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.chart-card__note:empty {
  display: none;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #475569;
  font-size: 0.92rem;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 999px;
}

.legend-swatch--btc {
  background: #f7931a;
}

.legend-swatch--gold {
  background: #c59a12;
}

.legend-swatch--oil {
  background: #0f172a;
}

.legend-swatch--sp500 {
  background: #22c55e;
}

.legend-swatch--management {
  background: #7c3aed;
}

.legend-swatch--world {
  background: #2563eb;
}

.history-chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.chart-crosshair {
  pointer-events: none;
}

.chart-crosshair__line {
  stroke: rgba(15, 23, 42, 0.46);
  stroke-width: 1.35;
  stroke-dasharray: 4 4;
}

.chart-crosshair__axis-label rect,
.chart-crosshair__tooltip rect {
  fill: rgba(15, 23, 42, 0.92);
}

.chart-crosshair__axis-label text,
.chart-crosshair__tooltip text {
  fill: #f8fafc;
  font-size: 12px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.chart-crosshair__tooltip rect {
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.18));
}

.chart-hit-area {
  cursor: crosshair;
}

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

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.share-button--facebook {
  background: #1877f2;
}

.share-button--x {
  background: #111827;
}

.share-button--reddit {
  background: #ff4500;
}

.share-button--whatsapp {
  background: #25d366;
}

.share-button--telegram {
  background: #229ed9;
}

.share-button--messenger {
  background: #0084ff;
}

.share-button--copy {
  background: linear-gradient(135deg, #f7931a, #ffd145);
  color: #111827;
}

.chart-card--pulse {
  margin-top: 10px;
}

.chart-card--world-cap {
  margin-top: 20px;
}

.world-cap-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.world-cap-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.world-cap-summary small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-cap-summary strong {
  color: #0f172a;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.market-pulse-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.instrument-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.92));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

.instrument-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
}

.instrument-card--bitcoin::before {
  background: #f7931a;
}

.instrument-card--gold::before {
  background: #c59a12;
}

.instrument-card--oil::before {
  background: #0f172a;
}

.instrument-card--sp500::before {
  background: #22c55e;
}

.instrument-card--management::before {
  background: #7c3aed;
}

.instrument-card__eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.instrument-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.instrument-card__swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.instrument-card__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.instrument-card__value {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.instrument-card__changes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.instrument-card__change {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.instrument-card__change--up {
  color: #15803d;
}

.instrument-card__change--down {
  color: #dc2626;
}

.instrument-card__change--flat {
  color: #64748b;
}

.instrument-card__metric {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #64748b;
}

.instrument-card__cap {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.supply-note {
  margin: 16px 0 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 8px 0;
}

.footer__contact {
  min-width: 0;
}

.footer__meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer a {
  text-decoration: none;
  font-weight: 700;
}

.copyright-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.copyright-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  line-height: 1;
  flex: 0 0 auto;
}

.footer__powered {
  display: grid;
  justify-items: end;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero,
  .split,
  .stats-grid,
  .supply-grid,
  .market-pulse-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 28px;
  }

  .hero,
  .panel {
    border-radius: 24px;
    padding: 18px;
  }

  .spotlight__value {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .stat-card__value {
    font-size: clamp(1.45rem, 5vw, 2rem);
  }

  .supply-card__value {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .spotlight__meta,
  .scenario-result,
  .world-cap-summary,
  .share-grid {
    grid-template-columns: 1fr;
  }

  .panel__head,
  .supply-card__top,
  .comparison-row,
  .chart-card__head,
  .footer {
    align-items: start;
    flex-direction: column;
  }

  .footer__meta {
    justify-items: start;
  }

  .footer__powered {
    justify-items: start;
  }

  .copyright-badge {
    white-space: normal;
  }
}
