/* Flic's Tweaks website — matte black, violet accent, matches the desktop app. */
:root {
    --bg: #09080d;
    --bg2: #0d0c12;
    --card: #121119;
    --line: #211e2c;
    --line2: #2e2a3c;
    --text: #f3f1f8;
    --muted: #9a95aa;
    --faint: #625d71;
    --accent: #8b5cf6;
    --accent2: #a78bfa;
    --soft: rgba(139, 92, 246, .14);
    --good: #34d399;
    --bad: #f05252;
    --radius: 16px;
    --display: "Space Grotesk", "Segoe UI", sans-serif;
    --body: "Inter", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.hidden { display: none !important; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--body); padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; text-decoration: none !important; white-space: nowrap; }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: linear-gradient(135deg, #b79cfb, #7c3aed); color: #150d24; box-shadow: 0 8px 30px -8px rgba(139, 92, 246, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(139, 92, 246, .9); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--accent2); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9, 8, 13, .72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 18px var(--display); text-decoration: none !important; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu { display: none; background: none; border: 1px solid var(--line2); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%); pointer-events: none; }
.hero-glow { position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .38), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--mono); color: var(--accent2); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 16px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); }
h1 { font-size: clamp(44px, 6.2vw, 76px); font-weight: 700; }
.grad { background: linear-gradient(90deg, #c4b5fd, #8b5cf6 60%, #6d28d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; background: rgba(255, 255, 255, .02); }
.chips li::before { content: "✓ "; color: var(--good); }

.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #0b0a10; box-shadow: 0 40px 120px -30px rgba(124, 58, 237, .55), 0 0 0 1px rgba(255, 255, 255, .03); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #100f16; border-bottom: 1px solid var(--line); font: 600 12px var(--mono); color: var(--faint); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2636; }
.window-bar i:first-child { background: #8b5cf6; }
.window-bar span { margin-left: 8px; }
.hero-shot { margin: 0; transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .6s; }
.hero-shot:hover { transform: none; }
figcaption { font-size: 13px; color: var(--faint); margin-top: 14px; text-align: center; }

/* Facts */
.facts { border-block: 1px solid var(--line); background: var(--bg2); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact strong { display: block; font: 700 40px var(--display); background: linear-gradient(180deg, #fff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.sub { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.fine { font-size: 13px; color: var(--faint); }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card h3 { font-size: 20px; margin: 16px 0 14px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); border: 1px solid rgba(139, 92, 246, .3); display: grid; place-items: center; font-size: 20px; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li, .crosses li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* Showcase */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button { font: 600 14px var(--body); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--soft); border-color: var(--accent); }
.showcase { margin: 0; }
.showcase img { transition: opacity .25s; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps span { font: 700 13px var(--mono); color: var(--accent2); }
.steps h3 { font-size: 21px; margin: 12px 0 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

/* Presets & games */
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.preset { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.preset b { display: block; font-family: var(--display); font-size: 16px; }
.preset span { font-size: 13.5px; color: var(--muted); }
.games { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.games li { font: 600 14px var(--body); padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.games li:last-child { color: var(--accent2); border-style: dashed; }

/* Safety */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bad-title { color: var(--bad); }
.good-title { color: var(--good); }

/* Pricing */
.pricing { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 20px; }
.price-card { position: relative; width: min(380px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.price-card.highlight { border-color: var(--accent); box-shadow: 0 30px 90px -30px rgba(139, 92, 246, .6); background: linear-gradient(180deg, rgba(139, 92, 246, .10), var(--card) 40%); }
.price-card.loading, .price-card.error { align-items: center; color: var(--muted); text-align: center; }
.badge { position: absolute; top: -12px; left: 32px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; }
.price-card h3 { font-size: 24px; }
.price-card .desc { color: var(--muted); font-size: 14.5px; margin: 8px 0 18px; }
.price { font: 700 48px var(--display); }
.price small { display: block; font: 500 14px var(--body); color: var(--muted); margin-top: 2px; }
.price-card .ticks { margin: 22px 0 26px; flex: 1; }
.price-card .btn { width: 100%; }
.price-card .note { font-size: 12.5px; color: var(--faint); text-align: center; margin: 12px 0 0; }

/* Download */
.download { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--card); border: 1px solid var(--line2); border-radius: 22px; padding: 40px; }
.download h2 { font-size: clamp(26px, 3vw, 36px); }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
details[open] { border-color: var(--line2); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent2); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 18px; }

/* CTA & footer */
.cta { padding: 40px 0 110px; }
.cta-inner { text-align: center; padding: 64px 24px; border-radius: 26px; border: 1px solid rgba(139, 92, 246, .35); background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, .35), transparent 70%), var(--card); }
.cta-inner h2 { font-size: clamp(32px, 4vw, 48px); }
.cta-inner p { color: var(--muted); margin: 12px 0 28px; }
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--muted); font-size: 14.5px; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Legal & success pages */
.page { padding: 72px 0 100px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.key-box { margin: 26px 0; padding: 26px; border-radius: 18px; border: 1px dashed var(--accent); background: var(--soft); text-align: center; }
.key { font: 700 clamp(18px, 3.4vw, 28px) var(--mono); letter-spacing: .04em; word-break: break-all; user-select: all; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-card { background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 36px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .hero-shot { transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-shot { transform: none; }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .presets { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .menu { display: flex; }
    .nav-cta .btn-ghost { display: none; }
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0c0b11; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .hero { padding: 56px 0 48px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(2) { border-right: none; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .section { padding: 72px 0; }
    .cards-4, .steps, .safety { grid-template-columns: 1fr; }
    .presets { grid-template-columns: repeat(2, 1fr); }
    .download { flex-direction: column; align-items: flex-start; padding: 28px; }
    .download-actions { align-items: stretch; width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .nav-cta .btn-primary { display: none; }
}
