:root {
  --bg: #070707;
  --panel: #121212;
  --text: #f3f3f3;
  --muted: #b3b3b3;
  --accent: #ff2a2a;
  --line: #2a2a2a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  filter: blur(54px) saturate(120%);
  transform-origin: 50% 50%;
}

body::before {
  background:
    radial-gradient(46% 34% at 18% 24%, rgba(255, 36, 36, 0.36), transparent 72%),
    radial-gradient(42% 32% at 78% 16%, rgba(255, 72, 72, 0.3), transparent 74%),
    radial-gradient(40% 35% at 62% 82%, rgba(140, 0, 0, 0.28), transparent 75%);
  animation: auroraDriftA 12s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(38% 32% at 10% 76%, rgba(255, 20, 20, 0.25), transparent 74%),
    radial-gradient(44% 36% at 90% 66%, rgba(200, 12, 12, 0.28), transparent 76%),
    radial-gradient(30% 28% at 54% 12%, rgba(255, 110, 110, 0.22), transparent 75%);
  animation: auroraDriftB 16s ease-in-out infinite alternate;
}

.hero {
  padding: 22px clamp(16px, 4vw, 48px) 48px;
  border-bottom: 1px solid var(--line);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  height: 42px;
  width: auto;
  border-radius: 8px;
}
.hero-content {
  margin-top: 36px;
  max-width: 860px;
}
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.06;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #3a2a2a;
  background: rgba(255, 42, 42, 0.08);
  color: #f3d9d9;
  font-size: .82rem;
  font-weight: 600;
}

main { padding: 28px clamp(16px, 4vw, 48px) 54px; }
.section { margin-top: 18px; }
.section h2 { font-size: clamp(21px, 3vw, 34px); margin: 0 0 14px; }

.code-stats {
  text-align: center;
  padding: 22px 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.code-kicker {
  margin: 0 0 8px;
  color: #c8c8c8;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}

.code-stats h2 {
  margin: 0;
}

.accent-number {
  color: #ff5b5b;
}

.code-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.codebase-wrap {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 14px;
}

.codebase-center {
  min-width: 0;
}

.stingray-shell {
  display: grid;
  place-items: center;
}

/* From Uiverse.io by ZacharyCrespin */
.stingray-shell .loader {
  position: relative;
  width: 96px;
  height: 96px;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(255, 90, 90, 0.16));
}

.stingray-shell .loader-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: 2px;
  border-radius: 0;
  background: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: square-animation 10s ease-in-out infinite both;
}

.stingray-shell .loader-square:nth-of-type(1) {
  animation-delay: -1.4285714286s;
}

.stingray-shell .loader-square:nth-of-type(2) {
  animation-delay: -2.8571428571s;
}

.stingray-shell .loader-square:nth-of-type(3) {
  animation-delay: -4.2857142857s;
}

.stingray-shell .loader-square:nth-of-type(4) {
  animation-delay: -5.7142857143s;
}

.stingray-shell .loader-square:nth-of-type(5) {
  animation-delay: -7.1428571429s;
}

.stingray-shell .loader-square:nth-of-type(6) {
  animation-delay: -8.5714285714s;
}

.stingray-shell .loader-square:nth-of-type(7) {
  animation-delay: -10s;
}

.lang-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.lang-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  justify-content: space-between;
  padding: 10px 14px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101010;
}

.lang-pill::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.lang-pill.js::before { background: #f7df1e; }
.lang-pill.json::before { background: #80deea; }
.lang-pill.css::before { background: #42a5f5; }
.lang-pill.html::before { background: #ff8a65; }
.lang-pill.python::before { background: #3776ab; }

.lang-name {
  color: #ececec;
  font-weight: 600;
}

.lang-lines {
  color: #d0d0d0;
  font-variant-numeric: tabular-nums;
}

.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,42,42,.08), rgba(255,42,42,.03));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff5858, #ff2020);
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 240ms ease;
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card:hover {
  transform: translateY(-5px);
  border-color: #5e2b2b;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 58, 58, 0.14);
}
.card:hover::before { transform: scaleY(1); }

.ui-walkthrough {
  display: grid;
  gap: 14px;
}

.ui-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,42,42,.06), rgba(255,42,42,.02));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ui-row:hover {
  transform: translateY(-3px);
  border-color: #5e2b2b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 58, 58, 0.08);
}

.ui-media {
  flex: 0 0 420px;
  max-width: 420px;
  margin: 0;
  background: #0d0d0d;
  border-right: 1px solid var(--line);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: unset;
  display: block;
  border-radius: 10px;
  background: #080808;
}

.ui-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 18px 18px 2px;
  align-self: center;
}

.ui-copy h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.ui-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.ui-copy p:last-child {
  margin-bottom: 0;
}

.features h2 {
  margin-bottom: 12px;
}

.feature-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,42,42,.08), rgba(255,42,42,.03));
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-panel h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.12;
}

.feature-panel:hover {
  transform: translateY(-3px);
  border-color: #5e2b2b;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(255, 58, 58, 0.1);
}

.feature-intro {
  margin: 10px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
  line-height: 1.45;
}

.feature-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: #e5e7eb;
  font-size: .98rem;
  line-height: 1.45;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 700;
}

.feature-cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #151515;
  color: #f4f4f5;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .92rem;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.feature-cta:hover {
  transform: translateY(-2px);
  border-color: #5e2b2b;
  box-shadow: 0 8px 20px rgba(16, 17, 19, 0.2);
}

.release-status {
  margin-top: 14px;
  display: grid;
  gap: 2px;
  width: fit-content;
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.release-status strong {
  color: #dcdcdc;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.release-status span {
  color: #ffffff;
  font-weight: 700;
}

.release-status small {
  color: var(--muted);
}

.install {
  margin-top: 28px;
}

.install-lead {
  margin: 4px 0 16px;
  color: #d2d2d2;
}

.changelog {
  margin-top: 28px;
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-lead {
  margin: 6px 0 14px;
  color: var(--muted);
}

.changelog-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.changelog-card {
  background: linear-gradient(180deg, rgba(255,42,42,.07), rgba(255,42,42,.02));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.changelog-card:hover {
  transform: translateY(-2px);
  border-color: #5e2b2b;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 58, 58, 0.08);
}

.changelog-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.changelog-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.changelog-card header span {
  color: #cfcfcf;
  font-size: .84rem;
}

.changelog-card ul {
  margin: 0;
  padding-left: 18px;
  color: #e4e4e4;
  line-height: 1.45;
}

.changelog-card li + li {
  margin-top: 6px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(255, 42, 42, 0.15), rgba(255, 42, 42, 0.04) 55%, rgba(255, 255, 255, 0.02));
  border: 1px solid #493131;
  border-radius: 12px;
  padding: 14px 14px 46px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4a4a, #ff7b7b);
  opacity: .7;
}

.support-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.support-card p {
  margin: 8px 0 0;
  color: #d6d6d6;
  line-height: 1.45;
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: #c04747;
  background: linear-gradient(160deg, rgba(255, 42, 42, 0.22), rgba(255, 42, 42, 0.08) 55%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(255, 70, 70, 0.18);
}

.support-cta {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff4343, #da1f1f);
  border: 1px solid #ff6a6a;
  box-shadow: 0 6px 16px rgba(255, 60, 60, 0.35);
}

.support-cta::after {
  content: "→";
  font-size: .95rem;
  line-height: 1;
}

.support-card:hover .support-cta {
  transform: translateX(2px);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes square-animation {
  0% { left: 0; top: 0; }
  10.5% { left: 0; top: 0; }
  12.5% { left: 32px; top: 0; }
  23% { left: 32px; top: 0; }
  25% { left: 64px; top: 0; }
  35.5% { left: 64px; top: 0; }
  37.5% { left: 64px; top: 32px; }
  48% { left: 64px; top: 32px; }
  50% { left: 32px; top: 32px; }
  60.5% { left: 32px; top: 32px; }
  62.5% { left: 32px; top: 64px; }
  73% { left: 32px; top: 64px; }
  75% { left: 0; top: 64px; }
  85.5% { left: 0; top: 64px; }
  87.5% { left: 0; top: 32px; }
  98% { left: 0; top: 32px; }
  100% { left: 0; top: 0; }
}

.guide-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  counter-reset: step;
}

.guide-list li {
  position: relative;
  min-height: 116px;
  padding: 16px 16px 16px 54px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,42,42,.07), rgba(255,42,42,.02));
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guide-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff4a4a, #e21f1f);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255,42,42,.35);
}

.guide-list li:hover {
  transform: translateY(-3px);
  border-color: #5e2b2b;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(255, 58, 58, 0.1);
}

pre {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  overflow-x: auto;
}
code { color: #ff9f9f; }

.cta-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: #151515;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: #5e2b2b;
}
.btn.primary {
  background: linear-gradient(180deg, #ff3a3a, #e21f1f);
  border-color: #ff3a3a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,42,42,.35);
}
.btn.ghost { background: transparent; }

.footer {
  border-top: 1px solid var(--line);
  padding: 16px clamp(16px, 4vw, 48px);
  color: var(--muted);
}

@keyframes auroraDriftA {
  0% { transform: translate3d(-2%, -2%, 0) rotate(-3deg) scale(1.02); opacity: 0.94; }
  50% { transform: translate3d(3%, 2%, 0) rotate(2deg) scale(1.14); opacity: 1; }
  100% { transform: translate3d(-3%, 3%, 0) rotate(4deg) scale(1.08); opacity: 0.9; }
}

@keyframes auroraDriftB {
  0% { transform: translate3d(3%, -3%, 0) rotate(4deg) scale(1.05); opacity: 0.88; }
  50% { transform: translate3d(-2%, 3%, 0) rotate(-3deg) scale(1.14); opacity: 0.98; }
  100% { transform: translate3d(2.5%, -2%, 0) rotate(2deg) scale(1.08); opacity: 0.86; }
}

@media (max-width: 900px) {
  .ui-row {
    gap: 12px;
  }

  .ui-media {
    flex-basis: 340px;
    max-width: 340px;
  }

  .feature-stack {
    grid-template-columns: 1fr;
  }

  .changelog-grid {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .codebase-wrap {
    grid-template-columns: 1fr;
  }

  .stingray-shell {
    display: none;
  }
}

@media (max-width: 640px) {
  .guide-list {
    grid-template-columns: 1fr;
  }

  .ui-row {
    display: block;
  }

  .ui-media {
    max-width: none;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ui-media img {
    max-height: 240px;
  }

  .ui-copy {
    padding: 14px 14px 16px;
  }

  .lang-pill {
    min-width: 150px;
    width: calc(50% - 8px);
  }

  .feature-panel { padding: 16px 14px; }
}
