/* RbxLabs v8 — noir bento */

:root {
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --bg-card: #080808;
  --ink: #ffffff;
  --ink-muted: #a3a3a3;
  --ink-dim: #666666;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.28);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Syne', var(--font);
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Ambient layers ── */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-drift 12s steps(8) infinite;
}

@keyframes noise-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 2%); }
  50% { transform: translate(2%, -1%); }
  75% { transform: translate(-2%, -2%); }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 3px
  );
  mask-image: linear-gradient(to bottom, black 0%, transparent 40%);
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  animation: drop-in 0.8s var(--ease) both;
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 8px;
  transition: transform 0.4s var(--ease);
}

.brand:hover img { transform: rotate(-6deg) scale(1.05); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.topbar-nav a:not(.pill):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.pill {
  color: var(--bg) !important;
  background: var(--ink) !important;
  font-weight: 600 !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s !important;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.btn-primary {
  color: var(--bg);
  background: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border-hover);
  margin-top: auto;
  align-self: flex-start;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ── Hero ── */
main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--topbar-h) - 4rem);
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.55rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.line {
  display: block;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  opacity: 0;
  transform: translateY(110%);
  animation: line-up 0.9s var(--ease) both;
}

.line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

.line--solid {
  background: linear-gradient(135deg, #fff 0%, #888 50%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: line-up 0.9s var(--ease) both, shimmer 5s ease-in-out infinite;
}

@keyframes line-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-lead {
  max-width: 32rem;
  font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.orbit {
  position: relative;
  width: min(340px, 75vw);
  height: min(340px, 75vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.orbit-ring--a {
  animation: orbit-spin 40s linear infinite;
}

.orbit-ring--b {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  animation: orbit-spin 28s linear infinite reverse;
}

.orbit-ring--c {
  inset: 24%;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.06);
  animation: orbit-spin 18s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.orbit-logo {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  animation: float-logo 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.12));
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.03); }
}

.hero-tags {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-tags li {
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  animation: tag-fade 0.6s var(--ease) both;
}

.hero-tags li:nth-child(1) { animation-delay: 0.8s; }
.hero-tags li:nth-child(2) { animation-delay: 0.95s; }
.hero-tags li:nth-child(3) { animation-delay: 1.1s; }

@keyframes tag-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Tools / bento ── */
.tools {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  scroll-margin-top: var(--topbar-h);
}

.tools-header {
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

.tools-header h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tool-card--wide { grid-column: span 2; }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  min-height: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tool-card:hover::before { opacity: 1; }

.tool-card--wide {
  min-height: auto;
  background: linear-gradient(135deg, #111 0%, #080808 100%);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 960px) {
  .tool-card--wide { grid-column: 1 / -1; }
}

.tool-wide-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tool-wide-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tool-wide-copy {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.tool-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-muted);
  transition: transform 0.5s var(--ease), color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.tool-icon--lg {
  width: 56px;
  height: 56px;
}

.tool-card:hover .tool-icon {
  transform: rotate(-10deg) scale(1.08);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon--lg svg { width: 28px; height: 28px; }

.tool-card[data-slug="game-copier"] .tool-icon svg path,
.tool-card[data-slug="enable-shaders"] .tool-icon svg path,
.tool-card[data-slug="multiple-roblox"] .tool-icon svg path {
  fill: currentColor;
  stroke: none;
}

.tool-card h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-card p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}

.chip {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--ink-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.tool-card--wide .btn-primary {
  flex-shrink: 0;
  align-self: flex-start;
}

@media (min-width: 640px) {
  .tool-card--wide .btn-primary { align-self: center; }
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.tool-card.reveal.is-in {
  transition-delay: calc(var(--i, 0) * 0.09s);
}

/* ── Footer ── */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem 3rem;
  font-size: 0.75rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--border);
}

.foot img { border-radius: 4px; opacity: 0.6; }
.foot-powered { font-size: 0.8rem; color: var(--muted, #888); letter-spacing: 0.02em; }
.foot-powered a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.foot-powered a:hover { color: #e4e4e7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .line { opacity: 1; transform: none; }
  .spotlight { display: none; }
}
