/* Roblox Script Hub - catalog styled */
:root {
    --bg: #ebedef;
    --bg-2: #f2f4f5;
    --surface: #ffffff;
    --surface-2: #f7f8f9;
    --border: #d8dde2;
    --border-light: #e8ebee;
    --text: #2b2e35;
    --text-mut: #5c6470;
    --text-dim: #8b95a3;
    --rbx-blue: #00a2ff;
    --rbx-blue-dark: #0078d4;
    --rbx-blue-hi: #3ab8ff;
    --rbx-red: #e2231a;
    --rbx-red-dark: #c41d14;
    --rbx-green: #00b06f;
    --ok: #00b06f;
    --warn: #f59e0b;
    --mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
    --sans: 'Source Sans 3', 'Source Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    font-feature-settings: "ss01", "ss02";
}
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-mut); }

.kicker { font-family: var(--mono); font-size: 0.78rem; color: var(--rbx-blue-dark); margin-bottom: 8px; text-transform: lowercase; }
.section-sub { color: var(--text-mut); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
section { padding: 64px 0; border-top: 1px solid var(--border-light); }
section:first-of-type { border-top: none; }

/* Header */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo .brand-tile { width: 28px; height: 28px; background: var(--rbx-blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; font-weight: 800; }
.logo .brand-pill { display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 50px; font-size: 0.72rem; color: var(--text-mut); margin-left: 4px; font-weight: 500; }
.logo .brand-pill::before { content: 'beta'; font-family: var(--mono); }
.nav-links { display: flex; gap: 28px; list-style: none; font-size: 0.95rem; }
.nav-links a { color: var(--text-mut); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--rbx-blue-dark); }
.nav-cta { background: var(--rbx-blue); color: white; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; transition: background 0.15s; }
.nav-cta:hover { background: var(--rbx-blue-dark); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 24px; border-radius: 999px;
    font-weight: 600; font-family: var(--sans);
    font-size: 0.95rem; cursor: pointer;
    border: none; text-decoration: none;
    transition: all 0.15s ease;
}
.btn-primary { background: var(--rbx-blue); color: white; }
.btn-primary:hover { background: var(--rbx-blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--rbx-blue); color: var(--rbx-blue-dark); }
.btn-red { background: var(--rbx-red); color: white; }
.btn-red:hover { background: var(--rbx-red-dark); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { background: var(--surface); padding: 56px 0 48px; border-bottom: 1px solid var(--border-light); }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-block; padding: 5px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 50px; font-family: var(--mono); font-size: 0.76rem; color: var(--text-mut); margin-bottom: 18px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .accent { color: var(--rbx-blue-dark); }
.hero-lead { color: var(--text-mut); font-size: 1.1rem; max-width: 480px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; color: var(--text-mut); font-size: 0.86rem; font-family: var(--mono); flex-wrap: wrap; }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-meta .sep { color: var(--border); }

/* Hero featured-script mockup - looks like a Roblox game tile lifted */
.featured-tile-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.featured-tile {
    width: 360px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.tile-thumb {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #00a2ff 0%, #0078d4 60%, #00458f 100%);
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
    padding-bottom: 8px;
}
.tile-bg-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}
.tile-code {
    position: relative;
    z-index: 2;
    font-family: var(--mono);
    color: #d6e4f5;
    font-size: 0.74rem;
    background: rgba(8, 14, 28, 0.86);
    padding: 12px 14px;
    border-radius: 8px;
    line-height: 1.55;
    text-align: left;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.16);
    width: calc(100% - 32px);
    margin: 18px 16px;
    max-height: 170px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.tile-code .kw { color: #ff9ad9; }
.tile-code .str { color: #ffd479; }
.tile-code .com { color: #8fbcd9; font-style: italic; }
.tile-code .fn { color: #80ffaa; }
.tile-code .gl { color: #c9d8f0; }
.tile-code .num { color: #ffb878; }
.play-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--rbx-red); color: white;
    border-radius: 50px; padding: 5px 11px;
    font-size: 0.74rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px;
}
.play-badge::before { content: '\25B6'; font-size: 0.7rem; }
.tile-body { padding: 14px 16px; }
.tile-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.tile-author { color: var(--text-mut); font-size: 0.85rem; margin-bottom: 10px; }
.tile-stats { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-mut); font-family: var(--mono); }
.tile-stats .stat { display: flex; align-items: center; gap: 4px; }
.tile-stats .stat::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--rbx-blue); }

/* Stats strip */
.stats-strip { background: var(--surface); border-top: 1px solid var(--border-light); padding: 26px 0; }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-item b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--rbx-blue-dark); }
.stat-item span { display: block; font-size: 0.82rem; color: var(--text-mut); margin-top: 2px; }

/* Script catalog */
.scripts { background: var(--bg-2); }
.scripts h2 { text-align: center; margin-bottom: 0.5rem; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto 24px; flex-wrap: wrap; gap: 12px; }
.cat-search { flex: 1; min-width: 200px; max-width: 360px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-family: var(--sans); font-size: 0.9rem; }
.cat-search::placeholder { color: var(--text-dim); }
.cat-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tag { background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--text-mut); cursor: pointer; transition: all 0.15s; font-weight: 500; }
.cat-tag.active, .cat-tag:hover { background: var(--rbx-blue); color: white; border-color: var(--rbx-blue); }

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.script-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.15s;
    cursor: pointer;
    display: flex; flex-direction: column;
}
.script-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.sc-thumb { aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc-thumb {
    background-image: linear-gradient(160deg, #003878 0%, #00458f 60%, #002252 100%);
}

.sc-screenshot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sc-screenshot svg { display: block; width: 100%; height: 100%; }

.sc-code {
    position: relative;
    z-index: 2;
    background: rgba(8, 14, 28, 0.86);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d6e4f5;
    font-family: var(--mono);
    font-size: 0.66rem;
    line-height: 1.45;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 0 12px 12px 12px;
    text-align: left;
    overflow: hidden;
    max-height: 86px;
    width: calc(100% - 24px);
}
.sc-code .kw { color: #ff9ad9; }
.sc-code .str { color: #ffd479; }
.sc-code .com { color: #6f9bd1; font-style: italic; }
.sc-code .fn { color: #80ffaa; }
.sc-code .num { color: #ffb878; }
.sc-code .gl { color: #c9d8f0; }

.sc-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,0.66);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--mono);
    z-index: 3;
}
.sc-badge.hot { background: var(--rbx-red); }
.sc-badge.new { background: var(--ok); }
.sc-badge.featured { background: var(--rbx-blue); }

.sc-gamepill {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.66);
    color: white;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.64rem;
    font-weight: 600;
    font-family: var(--sans);
    z-index: 3;
}

.sc-run-pill {
    position: absolute; bottom: 8px; right: 8px;
    background: var(--rbx-red); color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.66rem;
    font-weight: 700;
    z-index: 3;
}
.sc-run-pill::before { content: '\25B6  '; font-size: 0.62rem; }

.sc-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.sc-title { font-weight: 600; font-size: 0.93rem; margin-bottom: 4px; line-height: 1.25; }
.sc-desc { color: var(--text-mut); font-size: 0.78rem; margin-bottom: 10px; line-height: 1.45; }
.sc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-tag { font-family: var(--mono); font-size: 0.66rem; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-mut); padding: 2px 7px; border-radius: 50px; }
.sc-stats { display: flex; gap: 10px; font-family: var(--mono); font-size: 0.7rem; color: var(--text-mut); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-light); }
.sc-stats .stat { display: flex; align-items: center; gap: 3px; }
.sc-stats .stat::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--rbx-blue); display: inline-block; }
.sc-stats .stat.verified::before { background: var(--ok); }
.sc-stats .stat.runs::before { background: var(--rbx-blue); }
.sc-stats .stat.stars::before { background: #f5a623; }

.scripts-footer { text-align: center; margin-top: 28px; }
.scripts-footer .count { color: var(--text-mut); font-size: 0.9rem; margin-bottom: 14px; font-family: var(--mono); }

/* Features grid */
.features h2, .features .section-sub { text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fc-icon { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--rbx-blue), var(--rbx-blue-dark)); display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 14px; font-size: 1.1rem; }
.fc-icon.red { background: linear-gradient(135deg, var(--rbx-red), var(--rbx-red-dark)); }
.fc-icon.green { background: linear-gradient(135deg, #00b06f, #007e4a); }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--text-mut); font-size: 0.92rem; }

/* How to use */
.how-to-use h2, .how-to-use .section-sub { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; position: relative; }
.step .step-num { background: var(--rbx-blue); color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--sans); font-size: 0.95rem; margin: 0 auto 12px; }
.step h3 { margin-bottom: 6px; font-size: 0.98rem; }
.step p { font-size: 0.88rem; color: var(--text-mut); }
.step code { font-family: var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 3px; font-size: 0.82rem; color: var(--rbx-blue-dark); }

/* Download */
.download { background: linear-gradient(135deg, #0078d4 0%, #00a2ff 60%, #3ab8ff 100%); color: white; padding: 80px 0; }
.download h2 { color: white; margin-bottom: 8px; }
.download .section-sub { color: rgba(255,255,255,0.92); }
.download h2, .download .section-sub { text-align: center; }
.dl-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-lg); padding: 32px; max-width: 760px; margin: 0 auto; backdrop-filter: blur(8px); }
.dl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.dl-meta-item .l { font-size: 0.7rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.dl-meta-item .v { font-family: var(--mono); font-size: 0.92rem; color: white; font-weight: 600; }
.dl-list { list-style: none; margin-top: 16px; }
.dl-list li { padding: 6px 0; color: rgba(255,255,255,0.92); font-size: 0.88rem; display: flex; gap: 8px; align-items: center; }
.dl-list li::before { content: '\2713'; color: white; font-weight: 700; }
.dl-action { text-align: center; padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.2); }
.dl-btn { background: var(--rbx-red); color: white; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s; font-family: var(--sans); }
.dl-btn:hover { background: var(--rbx-red-dark); }
.dl-note { margin-top: 12px; font-family: var(--mono); font-size: 0.74rem; color: rgba(255,255,255,0.85); }
.dl-badges { display: flex; justify-content: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,0.95); }

/* Requirements */
.requirements h2, .requirements .section-sub { text-align: center; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
.req-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.req-card.rec { border-color: var(--rbx-blue); position: relative; }
.req-card.rec::before { content: 'BEST'; position: absolute; top: -10px; left: 18px; background: var(--rbx-blue); color: white; padding: 3px 10px; font-size: 0.66rem; letter-spacing: 0.08em; border-radius: 3px; font-family: var(--mono); }
.req-card h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.req-card ul { list-style: none; }
.req-card li { padding: 5px 0; color: var(--text-mut); font-size: 0.88rem; font-family: var(--mono); }
.req-card li strong { color: var(--text); font-family: var(--sans); font-weight: 600; }

/* FAQ */
.faq { background: var(--bg-2); }
.faq h2, .faq .section-sub { text-align: center; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--rbx-blue-dark); transition: transform 0.2s; font-family: var(--mono); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; color: var(--text-mut); font-size: 0.92rem; line-height: 1.6; }
.faq-item p code { font-family: var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 3px; font-size: 0.82rem; color: var(--rbx-blue-dark); }

/* Footer CTA */
.final-cta { text-align: center; background: var(--surface); padding: 64px 0; border-top: 1px solid var(--border-light); }
.final-cta h2 { margin-bottom: 10px; }
.final-cta p { color: var(--text-mut); margin-bottom: 24px; font-size: 0.98rem; }

/* Footer */
.footer { background: #2b2e35; color: rgba(255,255,255,0.92); padding: 42px 0 22px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 26px; }
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-top: 10px; max-width: 360px; }
.footer-col h4 { color: white; margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--rbx-blue-hi); }
.footer-bottom { text-align: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.footer-bottom .disclaimer { margin-top: 6px; font-size: 0.72rem; opacity: 0.75; }

/* Responsive */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 30px; }
    .featured-tile-wrap { order: -1; }
    .scripts-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
    .dl-grid { grid-template-columns: 1fr; gap: 22px; }
    .dl-action { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 18px; }
    .footer-content { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .scripts-grid { grid-template-columns: 1fr; }
    .features-grid, .steps, .req-grid { grid-template-columns: 1fr; }
    .stats-strip .container { grid-template-columns: 1fr; }
    .featured-tile { width: 100%; max-width: 360px; margin: 0 auto; }
    .dl-meta { grid-template-columns: 1fr; }
}

::selection { background: var(--rbx-blue); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }