.home-page { --muted: #9c9bad; }
.home-container { max-width: 1328px; padding: 0 40px; margin: 0 auto; }
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 88px) 0 92px; border-bottom: 1px solid var(--border); background: #080913; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 80% 45%, #68259d30, transparent 55%), radial-gradient(ellipse at 10% 0%, #41207416, transparent 60%); }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#b4a7d009 1px, transparent 1px), linear-gradient(90deg, #b4a7d009 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }
.hero-inner { max-width: 1328px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #b399d1; margin-bottom: 23px; }
.hero-copy h1 { font: 700 clamp(42px, 4.8vw, 68px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.045em; margin-bottom: 24px; }
.hero-description { max-width: 460px; font-size: 16px; line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.hero-actions .btn { border-radius: 9px; font-size: 14px; padding: 14px 24px; }
.hero-discord { color: #d8cbe8; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.hero-discord:hover { color: white; }
.community-pill { display: inline-flex; max-width: 100%; margin-top: 28px; padding: 10px 14px; border: 1px solid #302b41; border-radius: 30px; background: #0d0e19; text-decoration: none; color: #aaa8bc; font-size: 11px; transition: border-color .2s; }
.community-pill:hover { border-color: #9c69d2; }
.community-counts { display: flex; flex-wrap: wrap; gap: 7px 13px; align-items: center; }
.community-counts > span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.community-counts > span + span { border-left: 1px solid #393244; padding-left: 13px; }
.community-counts strong { font-weight: 700; font-variant-numeric: tabular-nums; color: #e4dfec; }
.community-online i { width: 6px; height: 6px; background: #48bf83; border-radius: 50%; margin-right: 3px; }
.home-page [hidden] { display: none !important; }
.lua-scene { position: relative; min-width: 0; padding: 20px 0; }
.code-orbit { position: absolute; width: 480px; height: 480px; border: 1px solid #ae76df18; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.code-orbit::before { content: ''; position: absolute; inset: -40px; border: 1px solid #ae76df0c; border-radius: 50%; }
.lua-editor { position: relative; border: 1px solid #59416a; border-radius: 14px; overflow: hidden; background: #0e0e19; box-shadow: 0 28px 90px #0007, 0 0 70px #8c37bd13; transform: perspective(1200px) rotateY(-6deg) rotateZ(1deg); }
.lua-editor { transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, -6deg)) rotateZ(var(--tilt-z, 1deg)) scale(var(--tilt-scale, 1)); }
.lua-editor::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 40%), #c899ff24, transparent 65%); opacity: var(--light-opacity, 0); }
.lua-editor.is-tracking { will-change: transform; animation-play-state: paused; }
.editor-heading { display: flex; gap: 10px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #262233; color: #c5bbd3; font-size: 12px; background: #15121f; }
.editor-mark { color: #c084fc; font: 600 17px/1 monospace; }
.editor-language { margin-left: auto; font-size: 10px; color: #8f829c; }
.editor-tabs { display: flex; gap: 25px; padding: 0 20px; border-bottom: 1px solid #242031; color: #797289; font: 12px/1.4 Consolas, monospace; }
.editor-tabs > span { padding: 12px 0; }
.editor-tab { color: #e4d5f4; border-bottom: 2px solid #a855f7; }
.lua-code { margin: 0; padding: 24px 18px 25px 0; overflow-x: auto; color: #c9c5d5; font: 12px/1.95 Consolas, 'Courier New', monospace; tab-size: 2; counter-reset: code-line; }
.code-line { counter-increment: code-line; }
.code-line::before { content: counter(code-line); display: inline-block; width: 44px; margin-right: 16px; text-align: right; color: #51475e; user-select: none; }
.syntax-comment { color: #6e667f; }
.syntax-keyword { color: #c38cf5; }
.syntax-string { color: #8ed1ba; }
.syntax-function { color: #a9bfff; }
.editor-bottom { padding: 8px 18px; border-top: 1px solid #292237; display: flex; justify-content: space-between; color: #9d89b3; font: 10px/1.4 Consolas, monospace; background: #171120; }
.editor-bottom-separator { margin: 0 8px; color: #594769; }
.home-products { padding: 68px 0 80px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.home-section-heading h2 { font: 600 clamp(26px, 3vw, 36px)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.home-catalog-status { grid-column: 1/-1; color: var(--muted); }
.home-how { padding: 64px 0 80px; border-top: 1px solid var(--border); background: #0a0c16; }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.how-card { padding: 26px 24px; border: 1px solid #282236; border-radius: 12px; background: #10101c; }
.how-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; border: 1px solid #a855f72b; color: #c49be9; background: #a855f70d; margin-bottom: 22px; }
.how-icon svg { width: 24px; height: 24px; }
.how-card h3 { font-size: 15px; margin-bottom: 10px; }
.how-card p { font-size: 13px; color: var(--muted); line-height: 1.85; }
@media (max-width: 1100px) { .hero-inner { gap: 30px; } .lua-code { font-size: 10px; } .code-line::before { width: 25px; margin-right: 10px; } .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .home-hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .hero-description { max-width: 550px; }
  .lua-scene { width: 100%; max-width: 580px; margin: 0 auto; padding: 0; }
  .lua-editor { transform: none; }
  .lua-code { font-size: 12px; }
  .code-orbit { display: none; }
}
@media (max-width: 520px) {
  .hero-inner, .home-container { padding-inline: 20px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-kicker { font-size: 9px; letter-spacing: .12em; }
  .hero-description { font-size: 14px; }
  .community-pill { border-radius: 12px; padding: 10px 12px; }
  .community-counts { gap: 6px 10px; font-size: 10px; }
  .community-counts > span + span { padding-left: 10px; }
  .lua-code { font-size: 9px; padding-right: 8px; }
  .code-line::before { width: 18px; margin-right: 9px; }
  .home-products, .home-how { padding-block: 44px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .how-card { padding: 22px; }
  .how-icon { margin-bottom: 16px; }
}
