:root {
  --bg: #1d1a1a;
  --bg-soft: #2a2524;
  --panel: #131315;
  --panel-border: #c8a96a;
  --text: #f6f2e7;
  --muted: #c6b9a1;
  --ruby: #e61f2b;
  --crystal: #7ed6ff;
  --js: #f7df1e;
  --line: #c8a96a;
  --max: 1100px;
  --core-size: clamp(190px, 28vw, 285px);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(126, 214, 255, 0.16), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(230, 31, 43, 0.12), transparent 34%),
    linear-gradient(160deg, #161619 0%, #1f1d21 42%, #151418 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(circle, var(--line) 1.3px, transparent 1.3px);
  background-size: 14px 14px;
  z-index: -1;
}

body::before {
  top: 58px;
  right: -80px;
}

body::after {
  bottom: -110px;
  left: -100px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  border-bottom: 1px solid rgba(200, 169, 106, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: #fff;
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.92rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 72px;
  padding: 0 1rem;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  color: #e8dcc6;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav a:hover {
  color: #f3d4a0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.28) 100%);
  border-color: rgba(200, 169, 106, 0.15);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(200, 169, 106, 0.15), rgba(200, 169, 106, 0.92), rgba(200, 169, 106, 0.15));
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a.active {
  color: #f8e0ad;
  border-color: rgba(200, 169, 106, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.24) 100%);
}

.nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  text-align: center;
  padding: 3.1rem 0 0.8rem;
  position: relative;
  overflow: hidden;
}

.overline {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.77rem;
  margin-bottom: 1.35rem;
}

.burst {
  position: relative;
  width: min(730px, 100%);
  margin: 2.4rem auto 0;
  padding: 2.8rem 0 3.4rem;
  display: grid;
  place-items: center;
}

.rays {
  position: absolute;
  width: calc(var(--core-size) + 300px);
  height: calc(var(--core-size) + 300px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  animation: rays-rotate 42s linear infinite;
}

.rays i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 48%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(var(--rot));
  background: linear-gradient(to top, rgba(200, 169, 106, 0.06) 0%, rgba(200, 169, 106, 0.82) 35%, rgba(200, 169, 106, 0.07) 100%);
  opacity: 0.74;
  animation: ray-pulse 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

@keyframes rays-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ray-pulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes core-heartbeat {

  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }

  5% {
    transform: rotate(45deg) scale(1.045);
  }

  10% {
    transform: rotate(45deg) scale(1);
  }

  20% {
    transform: rotate(45deg) scale(1.065);
  }

  30% {
    transform: rotate(45deg) scale(1);
  }
}

.core {
  width: var(--core-size);
  height: var(--core-size);
  margin: 0;
  transform: rotate(45deg);
  border-radius: 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(320deg, #2f3136 0%, #111317 42%, #050608 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -16px 35px rgba(0, 0, 0, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.52),
    0 0 18px rgba(180, 205, 235, 0.18);
  position: relative;
  z-index: 2;
  animation: core-heartbeat 3s ease-in-out infinite;
}

.core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 0;
  border: 1px solid rgba(204, 224, 248, 0.34);
}

.core::after {
  content: "";
  position: absolute;
  inset: 18% 18% 18% 18%;
  border-radius: 0;
  transform: rotate(90deg);
  background: linear-gradient(180deg, rgba(167, 197, 235, 0.24) 0%, rgba(167, 197, 235, 0.04) 34%, rgba(255, 255, 255, 0) 100%);
  filter: blur(0.4px);
  pointer-events: none;
}

.core-inner {
  position: absolute;
  inset: 0;
  transform: rotate(-45deg);
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
}

.core small {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.69rem;
  opacity: 0.9;
}

.core h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.core p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-copy {
  width: min(700px, 100%);
  margin: 1.6rem auto 0;
  color: #e8dcc6;
  line-height: 1.6;
}

.hero-copy strong {
  color: #fff;
}

.actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.58rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, filter 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn.primary {
  color: #1d1a1a;
  background: var(--js);
  border-color: #bcae2f;
}

.btn.secondary {
  color: #f2e6d0;
  background: rgba(126, 214, 255, 0.1);
  border-color: rgba(126, 214, 255, 0.45);
}

.samples {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(200, 169, 106, 0.85);
  border-radius: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card code {
  display: block;
  white-space: pre;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #abb2bf;
  margin: 0;
  min-height: 260px;
}

.cmt {
  color: #5c6370;
  font-style: italic;
}

.kw {
  color: #c678dd;
}

.fn {
  color: #61afef;
}

.op {
  color: #56b6c2;
}

.str {
  color: #98c379;
}

.num {
  color: #d19a66;
}

.card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #d7c59f;
  font-size: 0.82rem;
}

.meta {
  position: static;
  text-align: center;
  margin: 1.1rem 0 0;
  padding: 0 1rem;
  color: #d8cab0;
  font-size: 0.94rem;
}

@media (min-width: 980px) and (min-height: 900px) {
  .home-body .wrap {
    padding-bottom: 5rem;
  }

  .home-body .meta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 4;
    margin-top: 0;
  }
}

.meta a {
  color: #f5e18e;
  text-decoration: none;
  font-weight: 700;
}

.install-wrap {
  padding-bottom: 3.2rem;
}

.install-page {
  padding: 2.4rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.install-hero {
  border: 1px solid rgba(200, 169, 106, 0.32);
  border-radius: 0;
  padding: 1.6rem;
  background: linear-gradient(145deg, rgba(200, 169, 106, 0.1) 0%, rgba(12, 13, 17, 0.84) 52%);
  box-shadow: var(--shadow);
}

.install-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.08;
}

.install-hero p {
  width: min(760px, 100%);
  margin: 0.9rem 0 0;
  color: #dfd1ba;
  line-height: 1.58;
}

.install-hero code {
  font-family: "JetBrains Mono", monospace;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0.08rem 0.35rem;
}

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

.channel-card {
  border: 1px solid rgba(126, 214, 255, 0.34);
  border-radius: 0;
  background: rgba(11, 14, 19, 0.85);
  padding: 1rem 1rem 0.95rem;
}

.channel-card h2 {
  margin: 0;
  font-size: 1.06rem;
}

.channel-card p {
  margin: 0.55rem 0 0;
  color: #d4c3a6;
  line-height: 1.45;
}

.channel-card span {
  margin-top: 0.8rem;
  display: inline-flex;
  padding: 0.24rem 0.65rem;
  border: 1px solid rgba(247, 223, 30, 0.5);
  border-radius: 0;
  color: #f7df1e;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install-panel {
  border: 1px solid rgba(200, 169, 106, 0.34);
  border-radius: 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.8) 0%, rgba(18, 17, 22, 0.96) 100%);
}

.platform-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.platform-tab {
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: 0;
  padding: 0.44rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  color: #e8dcc6;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.platform-tab.active {
  background: #f7df1e;
  color: #171718;
  border-color: #d2be39;
}

.platform-block {
  display: none;
}

.platform-block.active {
  display: block;
}

.platform-block h3 {
  margin: 0;
  font-size: 1.06rem;
}

.platform-block p {
  margin: 0.45rem 0 0;
  color: #d4c3a6;
}

.platform-block pre,
.verify-card pre {
  margin: 0.8rem 0 0;
  background: #090b0d;
  border: 1px solid rgba(126, 214, 255, 0.32);
  border-radius: 0;
  padding: 0.88rem;
  overflow-x: auto;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.platform-block code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  color: #d7effd;
  line-height: 1.58;
}

.verify-card code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  color: #abb2bf;
  line-height: 1.58;
}

.copy-btn {
  margin-top: 0.75rem;
  border: 1px solid rgba(247, 223, 30, 0.45);
  border-radius: 0;
  background: rgba(247, 223, 30, 0.12);
  color: #f5dfa6;
  font: inherit;
  font-weight: 700;
  padding: 0.38rem 0.82rem;
  cursor: pointer;
}

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

.verify-card {
  border: 1px solid rgba(126, 214, 255, 0.26);
  border-radius: 0;
  padding: 1rem;
  background: rgba(11, 14, 19, 0.74);
}

.verify-card h3 {
  margin: 0;
  font-size: 1rem;
}

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

  .channel-grid,
  .verify-grid {
    grid-template-columns: 1fr;
  }

  .card code {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 0.8rem 0;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .nav {
    position: static;
    transform: none;
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.86rem;
  }

  .nav a {
    height: auto;
    padding: 0.2rem 0.35rem;
    border-left: 0;
    border-right: 0;
  }

  .nav a::after {
    left: 0;
    right: 0;
  }

  .burst {
    margin-top: 1.3rem;
    padding-top: 1.9rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .install-page {
    padding-top: 1.5rem;
    gap: 1rem;
  }

  .install-hero,
  .install-panel,
  .verify-card,
  .channel-card {
    border-radius: 0;
  }

  .meta {
    padding: 0;
  }
}
