:root {
  --bg: #1a100a;
  --bg-deep: #120b07;
  --glass: rgba(54, 36, 25, 0.45);
  --glass-strong: rgba(35, 21, 13, 0.72);
  --glass-border: rgba(240, 162, 62, 0.22);
  --glass-border-soft: rgba(230, 216, 206, 0.08);
  --accent: #f0a23e;
  --accent-bright: #fbbd05;
  --accent-dim: rgba(240, 162, 62, 0.16);
  --ok: #3ecf8e;
  --bad: #ff5c5c;
  --text: #e6d8ce;
  --text-dim: #a08d81;
  --radius: 18px;
  --blur: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.bg-gif {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  filter: saturate(0.85) brightness(0.55);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(240, 162, 62, 0.14), transparent 55%),
    radial-gradient(700px 480px at 85% 30%, rgba(163, 104, 26, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(18, 11, 7, 0.35), rgba(18, 11, 7, 0.82));
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  animation: rise 0.7s ease both;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(240, 162, 62, 0.35);
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--accent-bright);
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  font-size: 13px;
  color: var(--text-dim);
}
.online-pill #onlineCount {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(62, 207, 142, 0.8);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero {
  text-align: center;
  padding: 28px 0 56px;
  animation: rise 0.85s 0.08s ease both;
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-brand {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 0 48px rgba(240, 162, 62, 0.28);
}
.hero-sub {
  margin: 18px auto 0;
  max-width: 420px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c97820);
  color: #1a100a;
  box-shadow: 0 10px 28px rgba(240, 162, 62, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(240, 162, 62, 0.38);
  color: #1a100a;
}
.btn-copy {
  padding: 8px 14px;
  font-size: 13px;
}

.section {
  margin: 0 0 72px;
  animation: rise 0.9s 0.12s ease both;
}
.section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section-kicker span { color: var(--accent); }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.section-sub {
  margin: 0 0 22px;
  color: var(--text-dim);
  max-width: 520px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.why-card {
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(18px);
  min-height: 200px;
}
.why-index {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.why-index span { color: var(--accent-bright); }
.why-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.why-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.45;
  font-size: 14px;
}
.why-stat {
  margin-top: 16px !important;
  color: var(--accent-bright) !important;
  font-weight: 600;
  font-size: 13px !important;
}

.code-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.code-card.is-flash {
  border-color: rgba(251, 189, 5, 0.75);
  box-shadow:
    0 0 0 2px rgba(251, 189, 5, 0.35),
    0 0 40px rgba(240, 162, 62, 0.35),
    var(--shadow);
  transform: translateY(-2px);
}
.code-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.code-running {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ok);
  margin-right: auto;
}
.code-block {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--glass-border-soft);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.tok-fn { color: #c792ea; }
.tok-obj { color: #82aaff; }
.tok-method { color: #82aaff; }
.tok-str { color: #c3e88d; }
.copy-toast {
  margin: 12px 0 0;
  color: var(--ok);
  font-weight: 600;
  font-size: 13px;
}

.preview-section { perspective: 1200px; }
.tilt-scene {
  perspective: 1100px;
  padding: 12px 4px 28px;
}
.tilt-card {
  position: relative;
  margin: 0 auto;
  max-width: 860px;
  border-radius: 22px;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.2s ease;
  will-change: transform;
}
.hub-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.exe-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.exe-count {
  margin: 0;
  font-size: 13px;
  color: var(--accent-bright);
  font-weight: 600;
}
.exe-rail {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 4px 2px 10px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.exe-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: exe-marquee 38s linear infinite;
  will-change: transform;
}
.exe-rail:hover .exe-track {
  animation-play-state: paused;
}
@keyframes exe-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.exe-chip {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(16px);
}
.exe-chip-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.exe-chip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.exe-loading,
.exe-empty {
  color: var(--text-dim);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-dim);
  border: 1px solid var(--glass-border-soft);
  font-size: 10px;
}
.badge.ok { color: var(--ok); border-color: rgba(62, 207, 142, 0.35); }
.badge.bad { color: var(--bad); border-color: rgba(255, 92, 92, 0.35); }
.badge.free { color: var(--accent-bright); border-color: rgba(251, 189, 5, 0.35); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: none;
}
.faq-item {
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(14px);
  padding: 0 16px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 16px;
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 14px;
}
.faq-item code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-bright);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-sep { opacity: 0.5; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 20px 16px 48px; }
  .hero { padding-bottom: 40px; }
  .code-toolbar { flex-wrap: wrap; }
  .code-running { margin-right: 0; }
}
