:root {
  --bg-primary: #020616;
  --bg-elevated: rgba(8, 18, 48, 0.92);
  --bg-floating: rgba(8, 18, 48, 0.78);
  --panel-deep: rgba(8, 20, 52, 0.95);
  --panel-soft: rgba(9, 28, 70, 0.72);
  --accent: #3fa9ff;
  --accent-strong: #66c7ff;
  --accent-hot: #75f3ff;
  --text-primary: #edf4ff;
  --text-secondary: #92addf;
  --grid-size: clamp(120px, 18vw, 220px);
  --page-max: min(1200px, 100% - 3rem);
  --transition: 220ms ease;
  --shadow-soft: 0 48px 120px rgba(6, 12, 42, 0.48);
  --shadow-intense: 0 60px 140px rgba(27, 73, 163, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(
      circle at 12% -18%,
      rgba(70, 118, 255, 0.38),
      transparent 55%
    ),
    radial-gradient(circle at 90% 8%, rgba(47, 206, 255, 0.32), transparent 58%),
    radial-gradient(ellipse at bottom, rgba(8, 26, 72, 0.45), transparent 70%),
    linear-gradient(180deg, #030b21 0%, #020513 55%, #01020b 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      ellipse at 20% 10%,
      rgba(52, 115, 255, 0.18) 0%,
      rgba(52, 115, 255, 0.03) 45%,
      transparent 65%
    ),
    radial-gradient(
      ellipse at 80% -5%,
      rgba(80, 198, 255, 0.24) 0%,
      rgba(24, 117, 255, 0.08) 38%,
      transparent 70%
    );
  filter: blur(0.3px);
  z-index: -3;
  opacity: 0.85;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(36, 80, 162, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(36, 80, 162, 0.18) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.4;
  z-index: -2;
  mix-blend-mode: screen;
}

main {
  margin-top: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.pages-wrapper {
  display: flex;
  width: 300vw;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page {
  width: 100vw;
  height: 100%;
  overflow-y: auto;
  padding-top: 94px;
  flex-shrink: 0;
  scrollbar-width: none;
}

#page-catgirls {
  overflow: hidden;
}

#page-catgirls .section {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.catgirl-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.catgirl-single {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  min-height: 0;
  width: 100%;
  flex: 1;
}

.catgirl-single img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.nav-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.loading-text {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-style: italic;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.site-header.is-floating {
  width: var(--page-max);
  top: 18px;
  background: rgba(55, 85, 161, 0.37);
  border-radius: 50px;
  border: 1px solid rgba(88, 178, 255, 0.24);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(135%);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 14px clamp(1.5rem, 4vw, 3.2rem);
}

.brand-mark {
  width: 45px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.primary-nav {
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.primary-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: color var(--transition), transform var(--transition);
}

.primary-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.discord-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #54cbff, #3f8cff 55%, #326bff 100%);
  color: #010409;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 22px 48px rgba(63, 170, 255, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(80, 189, 255, 0.48);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 10vw, 7rem) clamp(2rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem);
  /* overflow: hidden; removed to prevent glow cutoff */
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 4.2rem);
  width: min(1180px, 100%);
}

.hero-text {
  max-width: 540px;
  animation: floatRise 820ms ease 120ms both;
}

.eyebrow {
  letter-spacing: 0.18em;
  font-size: 1rem;
  color: var(--accent-hot);
  margin: 0 0 1.3rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  margin: 0 0 1.3 rem !important;
  line-height: 1.05;
  font-family: "Space Grotesk", sans-serif;
}

.hero p {
  margin: 0 0 2.2rem;
  color: rgba(208, 225, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.primary-cta {
  background: linear-gradient(135deg, #3fa9ff, #60cbff);
  color: #04182e;
}

.primary-cta:hover {
  transform: translateY(-1px);
}

.secondary-cta {
  border: 1px solid rgba(92, 163, 255, 0.5);
  color: var(--text-primary);
  background: rgba(15, 35, 82, 0.6);
  box-shadow: inset 0 0 0 1px rgba(110, 174, 255, 0.25);
}

.secondary-cta:hover {
  color: var(--accent-hot);
  border-color: rgba(122, 204, 255, 0.7);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  width: clamp(420px, 60vw, 690px);
  justify-self: center;
  perspective: 800px;
}

/* .hero-glow removed */

.hero-ide {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(6, 15, 37, 0.92),
    rgba(9, 23, 58, 0.92)
  );
  border-radius: 22px;
  border: 1px solid rgba(88, 168, 255, 0.28);
  box-shadow: var(--shadow-intense);
  padding: 1.2rem 1.6rem 1.6rem;
  backdrop-filter: blur(10px);
}

.hero-ide--image {
  padding: 0;
  transform: rotateY(-24deg) rotateX(0deg) rotateZ(0deg);
  transform-origin: center;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-ide--image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.94;
  transform: translateZ(0);
}

.hero-ide::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 214, 255, 0.65),
    rgba(55, 109, 255, 0.3)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

.hero-ide__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.hero-ide__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(197, 225, 255, 0.72);
}

.hero-ide__actions {
  display: inline-flex;
  gap: 0.4rem;
}

.hero-ide__actions span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(90, 142, 255, 0.6);
}

.hero-ide__actions span:nth-child(2) {
  background: rgba(69, 185, 255, 0.6);
}

.hero-ide__actions span:nth-child(3) {
  background: rgba(174, 233, 255, 0.7);
}

.hero-ide__tabs {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(151, 192, 255, 0.45);
}

.hero-ide__tabs span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 44, 92, 0.55);
  border: 1px solid transparent;
}

.hero-ide__tabs .is-active {
  background: rgba(78, 158, 255, 0.25);
  border-color: rgba(138, 198, 255, 0.35);
  color: #e9f3ff;
}

.hero-ide__code {
  margin: 0;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(9, 20, 52, 0.92),
    rgba(6, 14, 37, 0.92)
  );
  padding: 1.4rem 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(64, 130, 255, 0.18);
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: none;
}

.hero-ide__code::-webkit-scrollbar {
  display: none;
}

.hero-ide__code code {
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(191, 218, 255, 0.88);
}

.section {
  padding: clamp(4rem, 10vw, 6.4rem) clamp(2rem, 8vw, 6rem);
  position: relative;
}

.content-narrow {
  max-width: 620px;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.spacer {
  padding: clamp(3rem, 8vw, 4.6rem);
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 8vw, 4rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.copy-block {
  max-width: 560px;
}

.esp-panel {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.imgui-window {
  background: #1a1b20;
  border: 1px solid #2e3038;
  border-radius: 8px;
  width: 300px;
  flex-shrink: 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: "Fira Code", monospace;
}

.window-bar {
  background: #23242a;
  padding: 0.5px 12px;
  font-size: 12px;
  color: #a0a0a0;
  text-align: center;
  border-bottom: 1px solid #2e3038;
}

.window-body {
  display: flex;
  min-height: 280px;
}

.window-sidebar {
  width: 80px;
  background: #1f2026;
  border-right: 1px solid #2e3038;
  padding-top: 10px;
}

.sidebar-item {
  padding: 0px 12px;
  font-size: 13px;
  color: #4caf50;
  cursor: pointer;
  position: relative;
}

.sidebar-item.is-active {
  background: #3b8fd467;
  color: #4caf50;
}

.sidebar-item:not(.is-active) {
  color: #4caf50;
}

.window-content {
  flex: 1;
  padding: 16px;
  background: #1a1b20;
}

.cheat-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #e0e0e0;
  user-select: none;
  margin-bottom: 12px;
}

.cheat-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 14px;
  width: 14px;
  background-color: #2a2b33;
  border: 1px solid #3e404a;
  border-radius: 2px;
  position: relative;
}

.cheat-checkbox:hover input ~ .checkmark {
  background-color: #32333d;
}

.cheat-checkbox input:checked ~ .checkmark {
  background-color: #2a2b33;
}

.cheat-checkbox input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #3fa9ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feature-group {
  margin-left: 0;
  margin-top: 8px;
}

.cheat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cheat-row .cheat-checkbox {
  margin-bottom: 0;
}

.cheat-color {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cheat-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.cheat-color::-webkit-color-swatch {
  border: 1px solid #3e404a;
  border-radius: 4px;
}

.cheat-color::-moz-color-swatch {
  border: 1px solid #3e404a;
  border-radius: 4px;
}

.preview-stage {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
}

.character-reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 44px rgba(20, 71, 148, 0.48));
  pointer-events: none;
  user-select: none;
  opacity: 0;
}

canvas {
  display: block;
  width: 320px;
  height: 480px;
  border: 1px solid rgba(98, 176, 255, 0.32);
  border-radius: 8px;
  background: rgba(4, 12, 30, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 420ms ease, transform 640ms cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes floatRise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-text {
    justify-self: center;
  }

  .hero-visual {
    max-width: 420px;
    margin: 2.6rem auto 0;
  }
}

@media (max-width: 900px) {
  .site-header.is-floating {
    margin: 12px;
    width: calc(100% - 24px);
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 6.5rem;
    min-height: 72vh;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    gap: 1rem;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .discord-btn {
    order: 2;
  }

  main {
    margin-top: 112px;
  }

  .hero {
    padding-inline: 1.4rem;
  }

  .section {
    padding-inline: 1.4rem;
  }
}

:root {
  --bg-primary: #020616;
  --bg-elevated: rgba(8, 18, 48, 0.92);
  --bg-floating: rgba(8, 18, 48, 0.78);
  --panel-deep: rgba(8, 20, 52, 0.95);
  --panel-soft: rgba(9, 28, 70, 0.72);
  --accent: #3fa9ff;
  --accent-strong: #66c7ff;
  --accent-hot: #75f3ff;
  --text-primary: #edf4ff;
  --text-secondary: #92addf;
  --grid-size: clamp(120px, 18vw, 220px);
  --page-max: min(1200px, 100% - 3rem);
  --transition: 220ms ease;
  --shadow-soft: 0 48px 120px rgba(6, 12, 42, 0.48);
  --shadow-intense: 0 60px 140px rgba(27, 73, 163, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(
      circle at 12% -18%,
      rgba(70, 118, 255, 0.38),
      transparent 55%
    ),
    radial-gradient(circle at 90% 8%, rgba(47, 206, 255, 0.32), transparent 58%),
    radial-gradient(ellipse at bottom, rgba(8, 26, 72, 0.45), transparent 70%),
    linear-gradient(180deg, #030b21 0%, #020513 55%, #01020b 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      ellipse at 20% 10%,
      rgba(52, 115, 255, 0.18) 0%,
      rgba(52, 115, 255, 0.03) 45%,
      transparent 65%
    ),
    radial-gradient(
      ellipse at 80% -5%,
      rgba(80, 198, 255, 0.24) 0%,
      rgba(24, 117, 255, 0.08) 38%,
      transparent 70%
    );
  filter: blur(0.3px);
  z-index: -3;
  opacity: 0.85;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(36, 80, 162, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(36, 80, 162, 0.18) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.4;
  z-index: -2;
  mix-blend-mode: screen;
}

main {
  margin-top: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.pages-wrapper {
  display: flex;
  width: 300vw;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page {
  width: 100vw;
  height: 100%;
  overflow-y: auto;
  padding-top: 94px;
  flex-shrink: 0;
  scrollbar-width: none;
}

#page-catgirls {
  overflow: hidden;
}

#page-catgirls .section {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.catgirl-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.catgirl-single {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  min-height: 0;
  width: 100%;
  flex: 1;
}

.catgirl-single img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.nav-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.loading-text {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-style: italic;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.site-header.is-floating {
  width: var(--page-max);
  top: 18px;
  background: rgba(55, 85, 161, 0.37);
  border-radius: 50px;
  border: 1px solid rgba(88, 178, 255, 0.24);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(135%);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 14px clamp(1.5rem, 4vw, 3.2rem);
}

.brand-mark {
  width: 45px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.primary-nav {
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.primary-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: color var(--transition), transform var(--transition);
}

.primary-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.discord-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #54cbff, #3f8cff 55%, #326bff 100%);
  color: #010409;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 22px 48px rgba(63, 170, 255, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(80, 189, 255, 0.48);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 10vw, 7rem) clamp(2rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem);
  /* overflow: hidden; removed to prevent glow cutoff */
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 4.2rem);
  width: min(1180px, 100%);
}

.hero-text {
  max-width: 540px;
  animation: floatRise 820ms ease 120ms both;
}

.eyebrow {
  letter-spacing: 0.18em;
  font-size: 1rem;
  color: var(--accent-hot);
  margin: 0 0 1.3rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  margin: 0 0 1.3 rem !important;
  line-height: 1.05;
  font-family: "Space Grotesk", sans-serif;
}

.hero p {
  margin: 0 0 2.2rem;
  color: rgba(208, 225, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.primary-cta {
  background: linear-gradient(135deg, #3fa9ff, #60cbff);
  color: #04182e;
}

.primary-cta:hover {
  transform: translateY(-1px);
}

.secondary-cta {
  border: 1px solid rgba(92, 163, 255, 0.5);
  color: var(--text-primary);
  background: rgba(15, 35, 82, 0.6);
  box-shadow: inset 0 0 0 1px rgba(110, 174, 255, 0.25);
}

.secondary-cta:hover {
  color: var(--accent-hot);
  border-color: rgba(122, 204, 255, 0.7);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  width: clamp(420px, 60vw, 690px);
  justify-self: center;
  perspective: 800px;
}

/* .hero-glow removed */

.hero-ide {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(6, 15, 37, 0.92),
    rgba(9, 23, 58, 0.92)
  );
  border-radius: 22px;
  border: 1px solid rgba(88, 168, 255, 0.28);
  box-shadow: var(--shadow-intense);
  padding: 1.2rem 1.6rem 1.6rem;
  backdrop-filter: blur(10px);
}

.hero-ide--image {
  padding: 0;
  transform: rotateY(-24deg) rotateX(0deg) rotateZ(0deg);
  transform-origin: center;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-ide--image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.94;
  transform: translateZ(0);
}

.hero-ide::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 214, 255, 0.65),
    rgba(55, 109, 255, 0.3)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

.hero-ide__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.hero-ide__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(197, 225, 255, 0.72);
}

.hero-ide__actions {
  display: inline-flex;
  gap: 0.4rem;
}

.hero-ide__actions span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(90, 142, 255, 0.6);
}

.hero-ide__actions span:nth-child(2) {
  background: rgba(69, 185, 255, 0.6);
}

.hero-ide__actions span:nth-child(3) {
  background: rgba(174, 233, 255, 0.7);
}

.hero-ide__tabs {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(151, 192, 255, 0.45);
}

.hero-ide__tabs span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 44, 92, 0.55);
  border: 1px solid transparent;
}

.hero-ide__tabs .is-active {
  background: rgba(78, 158, 255, 0.25);
  border-color: rgba(138, 198, 255, 0.35);
  color: #e9f3ff;
}

.hero-ide__code {
  margin: 0;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(9, 20, 52, 0.92),
    rgba(6, 14, 37, 0.92)
  );
  padding: 1.4rem 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(64, 130, 255, 0.18);
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: none;
}

.hero-ide__code::-webkit-scrollbar {
  display: none;
}

.hero-ide__code code {
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(191, 218, 255, 0.88);
}

.section {
  padding: clamp(4rem, 10vw, 6.4rem) clamp(2rem, 8vw, 6rem);
  position: relative;
}

.content-narrow {
  max-width: 620px;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.spacer {
  padding: clamp(3rem, 8vw, 4.6rem);
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 8vw, 4rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.copy-block {
  max-width: 560px;
}

.esp-panel {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.imgui-window {
  background: #1a1b20;
  border: 1px solid #2e3038;
  border-radius: 8px;
  width: 300px;
  flex-shrink: 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: "Fira Code", monospace;
}

.window-bar {
  background: #23242a;
  padding: 0.5px 12px;
  font-size: 12px;
  color: #a0a0a0;
  text-align: center;
  border-bottom: 1px solid #2e3038;
}

.window-body {
  display: flex;
  min-height: 280px;
}

.window-sidebar {
  width: 80px;
  background: #1f2026;
  border-right: 1px solid #2e3038;
  padding-top: 10px;
}

.sidebar-item {
  padding: 0px 12px;
  font-size: 13px;
  color: #4caf50;
  cursor: pointer;
  position: relative;
}

.sidebar-item.is-active {
  background: #3b8fd467;
  color: #4caf50;
}

.sidebar-item:not(.is-active) {
  color: #4caf50;
}

.window-content {
  flex: 1;
  padding: 16px;
  background: #1a1b20;
}

.cheat-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #e0e0e0;
  user-select: none;
  margin-bottom: 12px;
}

.cheat-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 14px;
  width: 14px;
  background-color: #2a2b33;
  border: 1px solid #3e404a;
  border-radius: 2px;
  position: relative;
}

.cheat-checkbox:hover input ~ .checkmark {
  background-color: #32333d;
}

.cheat-checkbox input:checked ~ .checkmark {
  background-color: #2a2b33;
}

.cheat-checkbox input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #3fa9ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feature-group {
  margin-left: 0;
  margin-top: 8px;
}

.cheat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cheat-row .cheat-checkbox {
  margin-bottom: 0;
}

.cheat-color {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cheat-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.cheat-color::-webkit-color-swatch {
  border: 1px solid #3e404a;
  border-radius: 4px;
}

.cheat-color::-moz-color-swatch {
  border: 1px solid #3e404a;
  border-radius: 4px;
}

.preview-stage {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
}

.character-reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 44px rgba(20, 71, 148, 0.48));
  pointer-events: none;
  user-select: none;
  opacity: 0;
}

canvas {
  display: block;
  width: 320px;
  height: 480px;
  border: 1px solid rgba(98, 176, 255, 0.32);
  border-radius: 8px;
  background: rgba(4, 12, 30, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 420ms ease, transform 640ms cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes floatRise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-text {
    justify-self: center;
  }

  .hero-visual {
    max-width: 420px;
    margin: 2.6rem auto 0;
  }
}

@media (max-width: 900px) {
  .site-header.is-floating {
    margin: 12px;
    width: calc(100% - 24px);
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 6.5rem;
    min-height: 72vh;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    gap: 1rem;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .discord-btn {
    order: 2;
  }

  main {
    margin-top: 112px;
  }

  .hero {
    padding-inline: 1.4rem;
  }

  .section {
    padding-inline: 1.4rem;
  }
}
