/* Codex Executor — black/white */
:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --surface-2: #121212;
    --surface-3: #181818;
    --border: #1f1f1f;
    --border-light: #2a2a2a;
    --text: #ffffff;
    --text-mut: #a0a0a0;
    --text-dim: #6b6b6b;
    --accent: #ffffff;
    --rbx-red: #e2231a;
    --ok: #22c55e;
    --mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
    --sans: 'Source Sans 3', 'Source Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(0,0,0,0.6);
}

*, *::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; }
.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.02em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
.kicker { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 10px; letter-spacing: 0.02em; }
.section-sub { color: var(--text-mut); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
section { padding: 80px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo .brand-tile { width: 26px; height: 26px; background: var(--text); color: var(--bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 800; }
.logo .brand-pill { display: inline-flex; padding: 2px 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 50px; font-size: 0.66rem; color: var(--text-mut); margin-left: 4px; font-family: var(--mono); }
.nav-links { display: flex; gap: 28px; list-style: none; font-size: 0.92rem; }
.nav-links a { color: var(--text-mut); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--text); color: var(--bg); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; transition: opacity 0.15s; }
.nav-cta:hover { opacity: 0.86; }

/* 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(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero .container { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 50px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); margin-bottom: 22px; }
.hero .eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero h1 .accent { color: var(--text-mut); }
.hero-lead { color: var(--text-mut); font-size: 1.15rem; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-meta { display: flex; gap: 14px; color: var(--text-dim); font-size: 0.84rem; font-family: var(--mono); flex-wrap: wrap; }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-meta .sep { color: var(--border-light); }

/* Hero mock — executor GUI */
.hero-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mock-titlebar { background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.mock-titlebar .dots { display: flex; gap: 6px; }
.mock-titlebar .dot { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.mock-titlebar .title { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); }
.mock-toolbar { background: var(--surface-2); padding: 8px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 18px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); }
.mock-toolbar span { padding: 3px 9px; border-radius: 4px; }
.mock-toolbar span.active { background: var(--text); color: var(--bg); font-weight: 600; }
.mock-body { padding: 16px; font-family: var(--mono); font-size: 0.78rem; min-height: 220px; background: var(--bg); }
.mock-line { color: var(--text-dim); margin-bottom: 4px; }
.mock-line .p { color: var(--text); }
.mock-line .ok { color: var(--ok); }
.mock-line .com { color: #555; }
.mock-line .str { color: #ccc; }
.mock-line .kw { color: #ddd; }
.mock-attach { padding: 14px 16px; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.mock-attach .attach-btn { flex: 1; background: var(--text); color: var(--bg); padding: 10px; border-radius: 8px; font-weight: 700; font-size: 0.86rem; text-align: center; font-family: var(--sans); }
.mock-attach .exec-btn { flex: 1; background: var(--surface); border: 1px solid var(--border-light); color: var(--text); padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.86rem; text-align: center; font-family: var(--sans); }

/* Stats strip */
.stats-strip { border-top: none; border-bottom: 1px solid var(--border); padding: 28px 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(--text); }
.stat-item span { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* Features */
.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: 26px; transition: all 0.2s; }
.feature-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.fc-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--text); margin-bottom: 16px; }
.fc-icon svg { width: 18px; height: 18px; display: block; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-mut); font-size: 0.9rem; line-height: 1.55; }

/* Script compatibility list */
.compat { background: var(--surface); }
.compat h2, .compat .section-sub { text-align: center; }
.compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.compat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.compat-card h3 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.compat-list { list-style: none; display: grid; gap: 6px; }
.compat-list li { padding: 6px 0; font-family: var(--mono); font-size: 0.82rem; color: var(--text-mut); display: flex; align-items: center; gap: 9px; }
.compat-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text); flex-shrink: 0; }

/* 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: 24px 20px; text-align: center; }
.step .step-num { background: var(--text); color: var(--bg); 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 14px; }
.step h3 { margin-bottom: 8px; font-size: 0.98rem; }
.step p { font-size: 0.86rem; color: var(--text-mut); line-height: 1.5; }
.step code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 3px; font-size: 0.78rem; color: var(--text); }

/* Download */
.download { background: var(--surface); }
.download h2, .download .section-sub { text-align: center; }
.dl-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; max-width: 760px; margin: 0 auto; }
.dl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.dl-meta-item .l { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--mono); }
.dl-meta-item .v { font-family: var(--mono); font-size: 0.92rem; color: var(--text); font-weight: 500; margin-top: 2px; display: block; }
.dl-list { list-style: none; margin-top: 18px; }
.dl-list li { padding: 7px 0; color: var(--text-mut); font-size: 0.88rem; display: flex; gap: 10px; align-items: center; }
.dl-list li::before { content: ''; width: 5px; height: 5px; background: var(--text); border-radius: 50%; flex-shrink: 0; }
.dl-action { text-align: center; padding-left: 24px; border-left: 1px solid var(--border); }
.dl-btn { background: var(--text); color: var(--bg); padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.15s; font-family: var(--sans); }
.dl-btn:hover { opacity: 0.85; }
.dl-note { margin-top: 14px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); line-height: 1.5; }
.dl-badges { display: flex; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.7rem; color: var(--text-mut); }

/* 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: 26px; }
.req-card.rec { border-color: var(--text-mut); position: relative; }
.req-card.rec::before { content: 'BEST'; position: absolute; top: -10px; left: 22px; background: var(--text); color: var(--bg); padding: 3px 10px; font-size: 0.64rem; letter-spacing: 0.1em; border-radius: 3px; font-family: var(--mono); font-weight: 700; }
.req-card h3 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.req-card ul { list-style: none; }
.req-card li { padding: 6px 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 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: 18px 22px; cursor: pointer; font-weight: 600; font-size: 0.96rem; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--text-dim); transition: transform 0.2s; font-family: var(--mono); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq-item p { padding: 0 22px 18px; color: var(--text-mut); font-size: 0.92rem; line-height: 1.65; }
.faq-item p code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 3px; font-size: 0.82rem; color: var(--text); }

/* Final CTA */
.final-cta { text-align: center; padding: 70px 0; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--text-mut); margin-bottom: 26px; font-size: 1rem; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-mut); font-size: 0.88rem; max-width: 360px; }
.footer-col h4 { color: var(--text); margin-bottom: 14px; font-size: 0.78rem; letter-spacing: 0.06em; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-mut); font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-dim); font-size: 0.76rem; }
.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: 36px; }
    .hero-mock { order: -1; max-width: 480px; margin: 0 auto; }
    .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: 24px; }
    .dl-action { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 22px; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .compat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .features-grid, .steps, .req-grid { grid-template-columns: 1fr; }
    .stats-strip .container { grid-template-columns: 1fr; }
    .dl-meta { grid-template-columns: 1fr; }
}

::selection { background: var(--text); color: var(--bg); }
::-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(--border-light); }