:root {
  --bg: #050505;
  --card-bg: #0f0f0f;
  --card-border: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  --accent: #f7931a;
  --surface-glow: rgba(247, 147, 26, 0.15);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 960px;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  animation: fadeIn 600ms ease-out;
}

.site-header {
  margin-bottom: 2.5rem;
}

.logo-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btc-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 147, 26, 0.08);
  border-radius: 999px;
  padding: 0.625rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--text-subtle);
  margin: 0 0 0.25rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.intro {
  margin: 0.75rem auto 0;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 2.5rem;
}

.tracker-card {
  position: relative;
  width: min(520px, 100%);
  margin-inline: auto;
}

.tracker-card__aura {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, var(--surface-glow), transparent 65%);
  border-radius: 28px;
  filter: blur(12px);
  opacity: 0.7;
}

.tracker-card__body {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 2px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.tracker-card__icon {
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.tracker-card__label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

.tracker-card__btc {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.9rem;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.tracker-card__btc-unit {
  font: inherit;
  color: inherit;
}

.divider {
  margin: 2rem auto;
  width: 160px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tracker-card__sub-label {
  color: var(--text-subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 0.35rem;
}

.tracker-card__usd {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  transition: color 200ms ease;
}

.tracker-card__usd.pulse {
  animation: pulse 400ms ease;
}

.site-footer {
  margin-top: 3rem;
  color: var(--text-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.impressum-link {
  cursor: help;
  border-bottom: 1px dotted var(--text-subtle);
  position: relative;
}

.impressum-link:hover {
  color: var(--text-primary);
}

.companies-section {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.companies-section__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.company-card {
  position: relative;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 18px;
  background: radial-gradient(
      120% 220% at 0% 0%,
      rgba(247, 147, 26, 0.16),
      transparent 55%
    ),
    #050505;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.company-card:hover,
.company-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(247, 147, 26, 0.6);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(247, 147, 26, 0.18);
  outline: none;
}

.company-card__name {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.company-card__btc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.company-card__btc {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.company-card__snb {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
}

.company-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.company-card__meta span strong {
  color: var(--text-primary);
  font-weight: 600;
}

.details-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.details-modal[hidden] {
  display: none;
}

.details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.details-modal__content {
  position: relative;
  max-width: 420px;
  width: calc(100% - 2.5rem);
  padding: 1.75rem 1.8rem 1.5rem;
  border-radius: 22px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  animation: fadeIn 180ms ease-out;
}

.details-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.details-modal__line {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.details-modal__line strong {
  color: var(--text-primary);
}

.details-modal__hint {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.details-modal__close {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.7rem;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 1.4rem;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .app {
    padding: 2rem 1.25rem;
  }

  .logo-cluster {
    gap: 0.75rem;
  }

  .tracker-card__body {
    padding: 2rem 1.5rem;
  }
}

