*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #08080a;
  --bg-surface: #0f0f12;
  --ember: #ff6b2b;
  --ember-glow: #ff8f5e;
  --molten: #e84118;
  --forge-gold: #d4a34a;
  --text-primary: #e8e2d9;
  --text-muted: #6b6872;
  --text-standard: #9a959e;
  --steel: #2a2a30;
  --steel-light: #3a3a42;
}

html {
  font-family: Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  color: inherit;
}

.spark-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.spark {
  position: absolute;
  bottom: -4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
  animation: rise linear infinite;
  box-shadow: 0 0 6px 2px rgba(255, 107, 43, 0.4);
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }

  10% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(var(--drift)) scale(0.2);
  }
}

.forge-glow {
  position: fixed;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(232, 65, 24, 0.08) 0%, rgba(255, 107, 43, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: "Oxanium", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}

.wordmark img {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--ember);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

main {
  position: relative;
  z-index: 10;
  flex: 1;
}

.page {
  position: relative;
  z-index: 10;
  width: min(1040px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 1rem;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  color: var(--text-primary);
  animation: title-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page h1 {
  margin-top: 1rem;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  color: var(--text-primary);
}

@keyframes title-reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-title .accent {
  color: var(--ember);
  text-shadow: 0 0 60px rgba(255, 107, 43, 0.3);
}

.hero-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  border: none;
  margin: 2rem 0;
  animation: rule-in 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rule-in {
  from {
    opacity: 0;
    width: 0;
  }

  to {
    opacity: 1;
    width: 80px;
  }
}

.hero-sub {
  max-width: 760px;
  font-size: clamp(1.02rem, 2.16vw, 1.32rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.6;
  animation: fade-up 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lede {
  max-width: 760px;
  margin: 2rem auto 0;
  font-size: clamp(1.02rem, 2.16vw, 1.32rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-badge {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--steel-light);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fade-up 1s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.3s ease;
}

.status-badge:hover {
  border-color: var(--ember);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(255, 107, 43, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.features {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--steel);
  margin: 0 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--steel);
  animation: fade-up 1s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature {
  min-width: 0;
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  transition: background 0.4s ease;
}

.feature:hover {
  background: #141418;
}

.install-tabs {
  position: relative;
  z-index: 10;
  width: min(1120px, calc(100% - 60px));
  margin: 0 auto;
  border: 1px solid var(--steel);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  animation: fade-up 1s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.install-tabs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-bottom: 1px solid var(--steel);
}

.install-tabs-header h2 {
  margin-top: 0.75rem;
  font-family: "Oxanium", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--forge-gold);
}

.tab-list {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(100%, 480px);
  border: 1px solid var(--steel-light);
  border-radius: 100px;
  background: #08080a;
  padding: 0.25rem;
}

.tab-button {
  min-height: 2.5rem;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.tab-button:hover {
  color: var(--ember);
}

.tab-button:focus-visible,
.copy-button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.tab-button.is-active {
  background: rgba(255, 107, 43, 0.12);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 43, 0.3);
}

.tab-panel {
  padding: 2rem;
}

.tab-panel[hidden] {
  display: none;
}

.code-panel {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--steel-light);
  border-radius: 8px;
  background: rgba(15, 15, 18, 0.92);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.copy-button:hover,
.copy-button.is-copied {
  border-color: var(--ember);
  color: var(--ember);
}

.copy-button.is-error {
  border-color: var(--molten);
  color: var(--molten);
}

.copy-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.source-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.source-note a {
  color: var(--forge-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.source-note a:hover {
  color: var(--ember);
}

.feature h2,
.feature h3,
.marketplace-files h2 {
  font-family: "Oxanium", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1rem;
  color: var(--forge-gold);
}

.feature p,
.marketplace-files p,
.panel p,
.panel li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-standard);
  line-height: 1.6;
}

.panel {
  border-top: 1px solid var(--steel);
  padding: 2rem 0;
}

.panel h2 {
  font-family: "Oxanium", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1rem;
  color: var(--forge-gold);
}

.panel ul {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.1rem;
}

.panel strong {
  color: var(--text-primary);
  font-weight: 600;
}

.panel a {
  color: var(--ember);
  text-decoration: none;
}

.panel a:hover {
  color: var(--ember-glow);
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.1rem 4rem 1.1rem 1.1rem;
  border: 1px solid var(--steel-light);
  border-radius: 8px;
  background: #08080a;
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.6;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.marketplace-files {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: block;
}

.marketplace-files h2 {
  margin-top: 0.75rem;
}

footer {
  position: relative;
  z-index: 10;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--ember);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .install-tabs-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tab-list {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem;
    align-items: flex-start;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
  }

  .hero {
    min-height: 54vh;
    padding: 3rem 1.5rem 4rem;
  }

  .features {
    margin: 0 1.5rem;
  }

  .install-tabs {
    width: calc(100% - 3rem);
  }

  .install-tabs-header,
  .tab-panel {
    padding: 1.5rem;
  }

  .tab-list {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .tab-button {
    border-radius: 6px;
  }

  .feature {
    padding: 2rem 1.5rem;
  }

  .marketplace-files {
    padding: 0 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
