body {
  font-family: system-ui, sans-serif;
}

a {
  color: #ff8c1a;
}
a:hover {
  color: #ffc94a;
}

.page-header {
  text-align: center;
  padding: 0 1.5rem;
}
@media (max-width: 700px) {
  .page-header {
    padding: 0 1rem;
  }
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3rem);
  background: linear-gradient(135deg, #ffc94a, #ff8c1a, #ff3d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  margin-inline: auto;
}
.page-header p {
  color: #a8a8a8;
  font-size: clamp(1rem, 4vw, 1.15rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}

.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(8px);
}
@media (max-width: 700px) {
  .card {
    padding: 1.15rem;
  }
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 5vw, 1.4rem);
}
.card p {
  line-height: 1.5;
}
.card .button {
  margin: 0.5rem 0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card-title img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-featured {
  border-color: rgba(255, 140, 26, 0.5);
  box-shadow: 0 0 40px rgba(255, 140, 26, 0.12);
}

.note {
  color: #a8a8a8;
  font-size: 0.95rem;
}

code {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease, background-color 0.25s ease, color 0.25s ease;
}
.button:hover, .button:focus-visible {
  transform: translateY(-3px) scale(1.04);
}
.button:focus-visible {
  outline: 2px solid #ffc94a;
  outline-offset: 3px;
}

.button-primary {
  color: #000000;
  background: linear-gradient(120deg, #ffc94a, #ff8c1a, #ff3d00, #ff8c1a, #ffc94a);
  background-size: 250% 100%;
  background-position: 0% 50%;
}
.button-primary:hover, .button-primary:focus-visible {
  color: #000000;
  background-position: 100% 50%;
  box-shadow: 0 8px 30px rgba(255, 140, 26, 0.45);
}

.button-secondary {
  color: #eeeeee;
  border: 2px solid #ff8c1a;
  padding: calc(0.75rem - 2px) calc(1.75rem - 2px);
}
.button-secondary:hover, .button-secondary:focus-visible {
  color: #ffc94a;
  background-color: rgba(255, 140, 26, 0.12);
  box-shadow: 0 8px 30px rgba(255, 140, 26, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
  .button:hover, .button:focus-visible {
    transform: none;
  }
}
#platform-tabs {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
}
.js #platform-tabs {
  display: flex;
}
#platform-tabs button {
  padding: 0.6rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: #eeeeee;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
@media (max-width: 700px) {
  #platform-tabs button {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}
#platform-tabs button:hover {
  border-color: #ff8c1a;
}
#platform-tabs button:focus-visible {
  outline: 2px solid #ffc94a;
  outline-offset: 3px;
}
#platform-tabs button[aria-selected=true] {
  border-color: #ff8c1a;
  background-color: rgba(255, 140, 26, 0.15);
  color: #ffc94a;
}

#platforms {
  max-width: 1000px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}
@media (max-width: 700px) {
  #platforms {
    margin: 1.5rem auto 1rem;
    padding: 0 1rem;
  }
}

.platform {
  margin-bottom: 3rem;
  animation: panel-in 0.35s ease both;
}
.js .platform .platform-title {
  display: none;
}
.js .platform {
  margin-bottom: 0;
}

.platform-title {
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
}

.hint {
  display: block;
  margin: -0.5rem 0 0.75rem;
  color: #a8a8a8;
  font-size: 0.85rem;
}

pre {
  position: relative;
  margin: 0.75rem 0;
  padding: 0.9rem 4.5rem 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #0b0b0b;
  overflow-x: auto;
}
@media (max-width: 700px) {
  pre {
    font-size: 0.85rem;
  }
}
pre code {
  padding: 0;
  background: none;
  white-space: pre;
}

.copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #1a1a1a;
  color: #eeeeee;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.copy:hover, .copy:focus-visible {
  border-color: #ff8c1a;
  color: #ff8c1a;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform {
    animation: none;
  }
  #platform-tabs button {
    transition: none;
  }
  #platform-tabs button:hover, #platform-tabs button:focus-visible {
    transform: none;
  }
}
