/* SpotiFade — landing page styles. Black background + Spotify-green accents,
   echoes the SpotiFade logo (green "Fade" word + black "Spoti"). */

:root {
    --bg: #0d0d0d;
    --bg-alt: #161616;
    --fg: #f5f5f5;
    --fg-muted: #a8a8a8;
    --green: #1ED760;
    --green-dark: #169c47;
    --border: #2a2a2a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --max-width: 1100px;
    --content-width: 720px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--fg); }

img { max-width: 100%; height: auto; display: block; }

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--green);
}

pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: var(--fg);
    white-space: pre-wrap;
    word-break: break-all;
}

/* Layout helpers ------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--content-width);
}

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-align: center;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--fg-muted);
    text-align: center;
    margin-bottom: 56px;
}

/* Hero ----------------------------------------------------------------- */

.hero {
    background:
        radial-gradient(ellipse at top, rgba(30, 215, 96, 0.12), transparent 60%),
        var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fg);
}

.nav-brand img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--fg-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-github {
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 6px;
}

.nav-github:hover {
    border-color: var(--green);
    color: var(--green) !important;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px 80px;
}

.hero-logo {
    width: min(420px, 80vw);
    margin-bottom: 32px;
    filter: drop-shadow(0 8px 30px rgba(30, 215, 96, 0.18));
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--fg);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-meta {
    margin-top: 24px;
    color: var(--fg-muted);
    font-size: 0.9rem;
}

/* Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--green);
    color: #000;
}

.btn-primary:hover {
    background: #1ee76a;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 215, 96, 0.3);
    color: #000;
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Platform grid -------------------------------------------------------- */

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.platform-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: var(--fg);
    transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.platform-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    background: #1c1c1c;
    color: var(--fg);
}

.platform-card.detected {
    border-color: var(--green);
    background: #1c1c1c;
    box-shadow: 0 0 0 1px var(--green);
}

.platform-icon {
    color: var(--green);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.platform-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.platform-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.platform-badge {
    display: inline-block;
    background: rgba(30, 215, 96, 0.12);
    color: var(--green);
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
}

/* Wizards -------------------------------------------------------------- */

.wizards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wizard {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    scroll-margin-top: 24px;
}

.wizard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--green);
}

.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
}

.steps li {
    counter-increment: step;
    padding-left: 56px;
    position: relative;
    line-height: 1.65;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.steps a.btn {
    margin-top: 12px;
}

.wizard-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(30, 215, 96, 0.06);
    border-left: 3px solid var(--green);
    border-radius: 4px;
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.wizard details {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.wizard details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--fg-muted);
}

.wizard details pre {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: 6px;
    overflow-x: auto;
}

/* Code block with copy button ------------------------------------------ */

.code-block {
    position: relative;
    margin-top: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 56px 16px 16px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    background: transparent;
    color: var(--fg);
    padding: 0;
    font-size: 0.85rem;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg);
    color: var(--fg-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.15s;
}

.copy-btn:hover {
    color: var(--green);
    border-color: var(--green);
}

.copy-btn.copied {
    background: var(--green);
    color: #000;
    border-color: var(--green);
}

/* Manifesto ------------------------------------------------------------ */

.prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #d8d8d8;
}

.prose .lead {
    font-size: 1.2rem;
    color: var(--fg);
    margin-bottom: 32px;
    font-weight: 500;
}

.prose h3 {
    margin: 40px 0 16px;
    font-size: 1.35rem;
    color: var(--green);
}

.prose p { margin-bottom: 16px; }

.prose ul {
    margin: 0 0 16px 24px;
    line-height: 1.7;
}

.prose ul li { margin-bottom: 10px; }

.prose strong { color: var(--fg); }

.manifeste-signature {
    margin-top: 40px;
    color: var(--fg-muted);
    font-style: italic;
    text-align: right;
}

/* FAQ ------------------------------------------------------------------ */

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.faq-item[open] {
    border-color: var(--green);
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--fg);
    list-style: none;
    position: relative;
    padding-right: 48px;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 20px 20px;
    color: var(--fg-muted);
    line-height: 1.7;
}

/* Footer --------------------------------------------------------------- */

.footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--fg-muted);
    line-height: 1.5;
}

.footer-brand img {
    flex-shrink: 0;
}

.footer-links h4 {
    font-size: 0.95rem;
    color: var(--fg);
    margin-bottom: 12px;
}

.footer-links a, .footer-links span {
    display: block;
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-copy {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.85rem;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 720px) {
    .nav { padding: 16px 20px; flex-direction: column; gap: 16px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .section { padding: 64px 0; }
    .section-title { margin-bottom: 12px; }
    .section-lead { margin-bottom: 40px; }
    .wizard { padding: 24px 20px; }
    .steps li { padding-left: 48px; }
    .steps li::before { width: 32px; height: 32px; font-size: 0.9rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
