:root {
  --bg: #0b0d11;
  --text: #f5f6f8;
  --muted: #a1a5ae;
  --dim: #70747d;
  --line: rgba(255,255,255,.13);
  --line-soft: rgba(255,255,255,.075);
  --glass: rgba(255,255,255,.075);
  --glass-dark: rgba(15,17,21,.54);
  --accent: #d9ff69;
  --shell: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(800px 520px at 75% 8%, rgba(118,140,255,.11), transparent 68%),
    radial-gradient(650px 500px at 12% 28%, rgba(255,255,255,.055), transparent 72%),
    linear-gradient(180deg, #0d1015 0%, #090b0f 52%, #0b0d11 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.025) 47%, rgba(255,255,255,.008) 52%, transparent 100%);
  opacity: .8;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 999px; filter: blur(90px); opacity: .42; }
.glow-one { width: 430px; height: 430px; right: -190px; top: 16%; background: rgba(104,129,255,.10); }
.glow-two { width: 380px; height: 380px; left: -190px; bottom: 5%; background: rgba(217,255,105,.055); }
.grain { position: absolute; inset: 0; opacity: .018; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.glass-card, .liquid-button, .controls, .topbar {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045) 46%, rgba(255,255,255,.025));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.16),
    0 20px 70px rgba(0,0,0,.20);
  backdrop-filter: blur(32px) saturate(145%);
  -webkit-backdrop-filter: blur(32px) saturate(145%);
}
.glass-card::after, .liquid-button::after, .topbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.11), transparent 28%, transparent 72%, rgba(255,255,255,.035));
  opacity: .65;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  min-height: 66px;
  margin-top: 16px;
  padding: 8px 9px 8px 12px;
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand, .nav-actions, .liquid-button { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; z-index: 1; }
.brand-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(0,0,0,.20); border: 1px solid rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.brand-icon img { width: 28px; height: 28px; object-fit: contain; }
.brand-name { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.nav-actions { display: flex; align-items: center; gap: 3px; z-index: 1; }
.nav-link { padding: 10px 13px; color: var(--muted); font-size: 12px; text-decoration: none; border-radius: 13px; transition: .2s ease; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }

.liquid-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 17px; border-radius: 15px; text-decoration: none; font-size: 12px; font-weight: 650; transition: transform .2s ease, border-color .2s ease, background .2s ease; overflow: hidden; }
.liquid-button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.23); background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.06)); }
.liquid-button span { color: var(--accent); position: relative; z-index: 1; }
.liquid-button > * { position: relative; z-index: 1; }
.liquid-button.small { min-height: 42px; border-radius: 14px; padding: 0 14px; }

.hero { min-height: 690px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; padding: 86px 0 100px; }
.hero-copy { padding-left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #c2c5cc; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(217,255,105,.75); }
.eyebrow.muted { color: var(--dim); }
h1, h2 { margin: 0; letter-spacing: -.055em; font-weight: 750; }
h1 { margin-top: 18px; max-width: 560px; font-size: clamp(54px, 6.5vw, 82px); line-height: .94; }
h1 span, h2 span { color: #a8abb2; }
.hero-copy p { max-width: 400px; margin: 23px 0 28px; color: var(--muted); font-size: 14px; }
.hero-cta { width: fit-content; }

.art { --mx: 50%; --my: 50%; position: relative; height: 520px; overflow: hidden; border-radius: 34px; transform-style: preserve-3d; transition: transform .25s ease; }
.art-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 46%); mix-blend-mode: screen; }
.art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 35%, rgba(0,0,0,.13)); }
.art-top, .art-bottom { position: absolute; z-index: 3; left: 21px; right: 21px; display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.art-top { top: 19px; }
.art-bottom { bottom: 18px; }
.art-image { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 48%, rgba(95,128,155,.22), transparent 43%), #0a131c; }
.art-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,7,10,.12) 60%, rgba(5,7,10,.65)); }
.art-image img { width: 82%; height: 82%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 28px 30px rgba(0,0,0,.36)); transition: transform .25s ease; }
.art-orb { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(150,190,220,.08); filter: blur(40px); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(217,255,105,.65); }

.mods-section { padding-bottom: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 19px; }
h2 { margin-top: 9px; font-size: clamp(34px, 4vw, 47px); }
.result-label { color: var(--dim); font-size: 11px; }
.controls { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px; border-radius: 20px; margin-bottom: 12px; }
.platform-wrap { position: relative; display: flex; padding: 3px; border-radius: 13px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.065); }
.seg, .filter { position: relative; border: 0; background: transparent; cursor: pointer; color: var(--dim); transition: .2s ease; }
.seg { min-width: 94px; height: 38px; border-radius: 11px; font-size: 11px; font-weight: 650; }
.seg b { margin-left: 5px; color: #686c74; font-size: 9px; font-weight: 600; }
.seg.active { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 4px 14px rgba(0,0,0,.12); }
.seg.active b { color: var(--accent); }
.category-wrap { display: flex; align-items: center; gap: 2px; padding-left: 5px; }
.filter { padding: 9px 11px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.filter:hover { color: var(--text); background: rgba(255,255,255,.045); }
.filter.active { color: var(--text); background: rgba(255,255,255,.075); box-shadow: inset 0 1px 0 rgba(255,255,255,.055); }
.search { height: 40px; min-width: 180px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 12px; background: rgba(0,0,0,.17); border: 1px solid rgba(255,255,255,.065); }
.search span { color: #737780; font-size: 18px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.search input::placeholder { color: #686c73; }

.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mod-card { position: relative; min-height: 205px; padding: 18px; border-radius: 21px; overflow: hidden; border: 1px solid var(--line-soft); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.mod-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at 100% 0%, rgba(255,255,255,.07), transparent 55%); pointer-events: none; }
.mod-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.17); background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.035)); }
.mod-top, .mod-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; }
.mod-type { color: #c0c3c9; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.mod-type::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(217,255,105,.45); }
.mod-platform { color: #666a72; font-size: 9px; }
.mod-card h3 { position: relative; margin: 30px 0 7px; font-size: 20px; letter-spacing: -.035em; }
.mod-card p { position: relative; margin: 0; max-width: 300px; color: var(--muted); font-size: 11px; }
.mod-bottom { position: absolute; left: 18px; right: 18px; bottom: 16px; padding-top: 11px; border-top: 1px solid var(--line-soft); color: #656970; font-size: 9px; }
.mod-bottom a { color: var(--text); text-decoration: none; font-size: 10px; font-weight: 600; }
.mod-bottom a:hover { color: var(--accent); }

.empty { min-height: 160px; padding: 24px; border-radius: 21px; display: flex; align-items: center; gap: 15px; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.055); border: 1px solid var(--line); color: var(--dim); }
.empty strong { font-size: 15px; }
.empty p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.text-link { margin-left: auto; font-size: 11px; font-weight: 650; text-decoration: none; }
.text-link:hover { color: var(--accent); }

.community { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 42px; border-radius: 28px; margin-bottom: 80px; overflow: hidden; }
.community::before { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; bottom: -220px; border-radius: 50%; background: rgba(217,255,105,.07); filter: blur(45px); }
.community-copy, .community-actions { position: relative; z-index: 1; }
.community h2 { font-size: clamp(34px, 4vw, 48px); }
.community p { max-width: 460px; margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.community-actions { display: flex; gap: 8px; flex-shrink: 0; }
.primary { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.065)); }
.secondary { background: rgba(0,0,0,.16); }

.footer { min-height: 70px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; color: #5d6169; font-size: 8px; font-weight: 700; letter-spacing: .15em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 68px; }
  .hero-copy { padding-left: 0; }
  .art { height: 440px; }
  .controls { grid-template-columns: 1fr; }
  .category-wrap { justify-content: center; flex-wrap: wrap; }
  .search { width: 100%; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .community { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .shell { width: min(var(--shell), calc(100% - 20px)); }
  .topbar { top: 10px; margin-top: 10px; border-radius: 19px; }
  .brand-name { font-size: 12px; }
  .nav-link { display: none; }
  .hero { min-height: auto; padding: 56px 0 72px; }
  h1 { font-size: 53px; }
  .art { height: 350px; border-radius: 27px; }
  .art-image img { width: 90%; height: 90%; }
  .section-head { align-items: start; flex-direction: column; gap: 7px; }
  .mod-grid { grid-template-columns: 1fr; }
  .platform-wrap { width: 100%; }
  .seg { flex: 1; }
  .community { padding: 28px; border-radius: 24px; }
  .community-actions { width: 100%; flex-direction: column; }
  .liquid-button { width: 100%; }
  .footer { padding: 20px 0; align-items: start; flex-direction: column; justify-content: center; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
