/* ============================================================
   Mirto OS — style.css
   Tema scuro coerente. Colori ispirati al logo: spirale viola
   e foglie verdi.
   ============================================================ */

:root {
    --bg: #14141e;
    --surface: #1e1e2e;
    --border: #2e2e3e;
    --text: #e6e6e6;
    --muted: #a3a3b3;
    --purple: #7166d6;
    --purple-hover: #8277eb;
    --green: #5fba7d;
    --radius: 12px;
    --max-w: 1040px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--purple);
    text-decoration: none;
}

a:hover {
    color: var(--purple-hover);
}

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

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--purple);
    color: #fff;
    padding: 8px 16px;
    z-index: 200;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    color: var(--text);
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
}

.site-nav a:hover {
    color: var(--green);
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    max-width: 560px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 1.18rem;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-logo {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(113, 102, 214, 0.35));
}

.hero-art {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius);
}

/* ---------- Bottoni ---------- */
.btn {
    display: inline-block;
    background: var(--purple);
    color: #fff;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(113, 102, 214, 0.3);
    transition: transform 0.15s, background-color 0.15s;
}

.btn:hover {
    background: var(--purple-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
}

.btn-ghost:hover {
    border-color: var(--green);
    background: transparent;
}

.btn-disabled {
    background: var(--surface);
    border-color: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover {
    background: var(--surface);
    transform: none;
    color: var(--muted);
}

/* ---------- Sezioni ---------- */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 16px;
}

.lead:last-child {
    margin-bottom: 0;
}

/* ---------- Card ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color 0.2s;
}

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

.card:hover {
    border-color: var(--purple);
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    color: var(--green);
}

.card p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ---------- Screenshot ---------- */
.screenshot {
    margin-top: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.screenshot img {
    border-radius: 8px;
    width: 100%;
}

.screenshot figcaption {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 14px 8px 6px;
}

.screenshot + .screenshot {
    margin-top: 20px;
}

/* ---------- Download ---------- */
.download-box {
    margin-top: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.download-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.download-state {
    color: var(--muted);
    margin-bottom: 20px;
}

.download-note {
    margin-top: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
}

.download-note h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--green);
}

.download-note p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.download-note p:last-child {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer p {
    margin-bottom: 6px;
}

.footer-note {
    color: #6f6f7f;
    font-size: 0.78rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .hero {
        padding: 60px 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-visual img {
        margin: 0 auto;
    }

    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
}
