:root[data-theme="dark"] {
    --bg: #080a12;
    --card-bg: rgba(17, 22, 36, 0.66);
    --card-strong: rgba(33, 39, 58, 0.72);
    --text: #f7f9ff;
    --accent: #40d6ff;
    --accent-2: #8ee8ff;
    --border: rgba(255, 255, 255, 0.13);
    --muted: #a7b4cb;
    --glass: rgba(24, 30, 46, 0.38);
    --shadow: rgba(0, 0, 0, 0.32);
}

:root[data-theme="light"] {
    --bg: #eaf7ff;
    --card-bg: rgba(255, 255, 255, 0.62);
    --card-strong: rgba(255, 255, 255, 0.82);
    --text: #08121f;
    --accent: #008ce8;
    --accent-2: #16d7ff;
    --border: rgba(0, 92, 150, 0.18);
    --muted: #48627e;
    --glass: rgba(255, 255, 255, 0.54);
    --shadow: rgba(0, 68, 120, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 14%, rgba(64, 214, 255, 0.18), transparent 25%),
        radial-gradient(circle at 78% 7%, rgba(0, 113, 227, 0.16), transparent 22%),
        radial-gradient(circle at 52% 86%, rgba(142, 232, 255, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
}

:root[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 14% 18%, rgba(22, 215, 255, 0.38), transparent 28%),
        radial-gradient(circle at 84% 8%, rgba(0, 140, 232, 0.24), transparent 24%),
        radial-gradient(circle at 64% 88%, rgba(91, 114, 255, 0.14), transparent 30%),
        linear-gradient(145deg, #f8fdff 0%, #dff4ff 45%, #f2fbff 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

:root[data-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(0, 140, 232, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 140, 232, 0.045) 1px, transparent 1px);
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 rgba(64, 214, 255, 0),
            0 18px 48px var(--shadow),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }
    50% {
        box-shadow:
            0 0 28px rgba(64, 214, 255, 0.34),
            0 24px 70px var(--shadow),
            inset 0 1px 0 rgba(255,255,255,0.14);
    }
}

@keyframes neon-scan {
    0% { transform: translateX(-130%); opacity: 0; }
    18% { opacity: 0.75; }
    52% { opacity: 0.35; }
    100% { transform: translateX(130%); opacity: 0; }
}

@keyframes button-glow {
    0%, 100% { box-shadow: 0 0 28px rgba(64, 214, 255, 0.28), 0 12px 34px var(--shadow); }
    50% { box-shadow: 0 0 46px rgba(64, 214, 255, 0.48), 0 18px 46px var(--shadow); }
}

a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.navbar {
    position: sticky;
    top: 16px;
    z-index: 100;
    margin: 16px auto 0;
    width: min(1180px, calc(100% - 32px));
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 24px 90px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

:root[data-theme="light"] .navbar,
:root[data-theme="light"] .hero-section,
:root[data-theme="light"] .page-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(224,247,255,0.42));
    box-shadow:
        0 30px 95px rgba(0, 82, 145, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.72);
}

.nav-content { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: 0; }
.nav-logo { width: 36px; height: 36px; object-fit: contain; }
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: 0.22s ease;
}
.mobile-menu-toggle:hover {
    border-color: rgba(64, 214, 255, 0.42);
    box-shadow: 0 0 24px rgba(64, 214, 255, 0.18);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 13px;
    border-radius: 16px;
    transition: 0.22s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: rgba(64, 214, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(64, 214, 255, 0.22), 0 0 22px rgba(64, 214, 255, 0.10);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-ghost, .btn-github, .btn-primary, .btn-secondary {
    border: 1px solid var(--border);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); padding: 9px 12px; }
.btn-github { background: rgba(255,255,255,0.07); padding: 10px 14px; }
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #031018;
    padding: 15px 22px;
    border: none;
    box-shadow: 0 0 34px rgba(64, 214, 255, 0.28);
}

:root[data-theme="light"] .btn-primary {
    color: #031018;
    box-shadow: 0 0 36px rgba(0, 140, 232, 0.30), 0 16px 36px rgba(0, 92, 150, 0.16);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -30%;
    width: 40%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: neon-scan 3.8s ease-in-out infinite;
}
.btn-primary > * {
    position: relative;
    z-index: 1;
}
.btn-secondary { background: rgba(255,255,255,0.07); color: var(--text); padding: 14px 21px; }
:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .btn-github {
    background: rgba(255,255,255,0.54);
}
.btn-ghost:hover, .btn-github:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 214, 255, 0.42);
    box-shadow: 0 0 28px rgba(64, 214, 255, 0.20), 0 16px 45px var(--shadow);
}
.btn-primary:hover { animation: button-glow 1.8s ease-in-out infinite; }
.disabled-link {
    cursor: default;
    pointer-events: none;
    opacity: 0.82;
}
.disabled-link:hover {
    transform: none;
    animation: none;
}
.icon-btn { width: 42px; height: 42px; padding: 0; }
.flag-img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.hero-section {
    min-height: 620px;
    margin-top: 38px;
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 28px 100px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 900; margin-bottom: 16px; }
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy h1, .page-hero h1 {
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 900;
    max-width: 820px;
    overflow-wrap: normal;
}
html:lang(pt) .hero-copy h1 { font-size: clamp(2.85rem, 5.6vw, 5.25rem); max-width: 760px; }
.hero-lead, .page-hero p, .section-heading p, .showcase-copy p, .cta-section p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-copy .hero-actions {
    justify-content: center;
}
.install-line {
    width: fit-content;
    margin-top: 18px;
    margin-left: auto;
    margin-right: auto;
    padding: 13px 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,0.28), rgba(64,214,255,0.08));
    border: 1px solid rgba(64, 214, 255, 0.28);
    box-shadow: 0 0 24px rgba(64, 214, 255, 0.16), inset 0 1px 0 rgba(255,255,255,0.08);
}

:root[data-theme="light"] .install-line {
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(0,140,232,0.10));
    border-color: rgba(0, 140, 232, 0.28);
    box-shadow: 0 0 28px rgba(0, 140, 232, 0.18), inset 0 1px 0 rgba(255,255,255,0.62);
}
.install-line::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(64,214,255,0.22), transparent);
    transform: translateX(-120%);
    animation: neon-scan 4.4s ease-in-out infinite;
}
.install-line span { position: relative; z-index: 1; color: var(--accent); font-weight: 900; }
.install-line code { position: relative; z-index: 1; font-family: "Courier New", monospace; font-weight: 800; }
.copy-btn { position: relative; z-index: 1; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }

.hero-visual { display: grid; place-items: center; gap: 28px; }
.hero-logo { width: min(320px, 100%); filter: drop-shadow(0 24px 50px rgba(0,0,0,0.25)); }
.metric-strip { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-strip div, .glass-card, .process-card, .showcase-card, .doc-card, .timeline-card, .citation-box, .guide-card, .midi-feature-list article, .flow-step-card, .output-card, .output-feature-strip article {
    border: 1px solid var(--border);
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 80px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
}

:root[data-theme="light"] .metric-strip div,
:root[data-theme="light"] .glass-card,
:root[data-theme="light"] .process-card,
:root[data-theme="light"] .showcase-card,
:root[data-theme="light"] .doc-card,
:root[data-theme="light"] .timeline-card,
:root[data-theme="light"] .citation-box,
:root[data-theme="light"] .guide-card,
:root[data-theme="light"] .midi-feature-list article,
:root[data-theme="light"] .flow-step-card,
:root[data-theme="light"] .output-card,
:root[data-theme="light"] .output-feature-strip article {
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(233,249,255,0.46));
    box-shadow:
        0 24px 70px rgba(0, 72, 128, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.72);
}
.metric-strip div { border-radius: 22px; padding: 18px 14px; text-align: center; }
.metric-strip div:hover, .glass-card:hover, .process-card:hover, .doc-card:hover, .timeline-card:hover, .guide-card:hover, .flow-step-card:hover, .output-card:hover {
    border-color: rgba(64, 214, 255, 0.34);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(64, 214, 255, 0.14), 0 28px 90px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.10);
}
.metric-strip div, .glass-card, .process-card, .doc-card, .timeline-card, .guide-card, .flow-step-card, .output-card { transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease; }
.metric-strip strong { display: block; color: var(--accent); font-size: 1.55rem; }
.metric-strip span { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }

.section-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.glass-card { border-radius: 30px; padding: 34px; }
.span-2 { grid-column: span 2; }
.glass-card h2, .section-heading h2, .showcase-copy h2, .cta-section h2, .page-hero h1 { font-weight: 900; letter-spacing: 0; }
.glass-card h2, .section-heading h2, .showcase-copy h2, .cta-section h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.glass-card h3, .process-card h3, .doc-card h3, .timeline-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.glass-card p, .process-card p, .doc-card p, .timeline-card p, .citation-box p, .midi-feature-list p, .midi-caption p { color: var(--muted); line-height: 1.75; }
.icon-large { color: var(--accent); font-size: 2.2rem; margin-bottom: 20px; }

.section-heading { margin: 92px 0 26px; max-width: 760px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-card { border-radius: 28px; padding: 28px; min-height: 230px; }
.process-card span { color: var(--accent); font-size: 2rem; font-weight: 900; display: block; margin-bottom: 36px; }

.showcase-section { margin-top: 92px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; align-items: center; }
.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.feature-list li { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.feature-list i { color: var(--accent); }
.showcase-card { border-radius: 32px; padding: 14px; overflow: hidden; }
.zoomable-img { width: 100%; display: block; border-radius: 22px; cursor: zoom-in; }

.cta-section {
    margin-top: 92px;
    padding: 40px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, rgba(64,214,255,0.14), rgba(255,255,255,0.04));
    border: 1px solid rgba(64, 214, 255, 0.18);
    box-shadow: 0 24px 80px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

:root[data-theme="light"] .cta-section {
    background:
        linear-gradient(135deg, rgba(0,140,232,0.18), rgba(22,215,255,0.08)),
        rgba(255,255,255,0.42);
    box-shadow: 0 28px 86px rgba(0, 82, 145, 0.18), inset 0 1px 0 rgba(255,255,255,0.68);
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { margin-top: 38px; padding: 54px; border-radius: 42px; border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.docs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
    gap: 30px;
    align-items: center;
}
.docs-hero-shot {
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 70px var(--shadow);
}
.docs-hero-shot img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}
.download-panel {
    margin-top: 28px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(64, 214, 255, 0.22);
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 10%, rgba(64, 214, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(64,214,255,0.12), rgba(255,255,255,0.04));
    box-shadow: 0 28px 88px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}
:root[data-theme="light"] .download-panel {
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 140, 232, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.74), rgba(0,140,232,0.10));
}
.download-panel h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.04;
    letter-spacing: 0;
    font-weight: 900;
}
.download-panel p,
.download-note {
    color: var(--muted);
    line-height: 1.75;
}
.download-actions {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}
.download-actions .btn-primary,
.download-actions .btn-secondary {
    width: 100%;
}
.download-note {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.download-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 28px;
    align-items: center;
}

.download-hero-art {
    min-height: 220px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    border: 1px solid rgba(64, 214, 255, 0.22);
    background:
        radial-gradient(circle at 50% 45%, rgba(64, 214, 255, 0.20), transparent 58%),
        rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 70px var(--shadow);
}

.download-hero-art img {
    width: min(260px, 82%);
    filter: drop-shadow(0 20px 44px rgba(0,0,0,0.28));
}

.download-choice-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 22px;
    align-items: stretch;
}

.download-choice-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: var(--card-bg);
    box-shadow: 0 24px 80px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
}

.download-choice-card.featured {
    border-color: rgba(64, 214, 255, 0.30);
    background:
        radial-gradient(circle at 18% 10%, rgba(64, 214, 255, 0.20), transparent 34%),
        linear-gradient(145deg, rgba(64,214,255,0.11), rgba(255,255,255,0.04));
}

:root[data-theme="light"] .download-choice-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(233,249,255,0.50));
    box-shadow: 0 24px 70px rgba(0, 72, 128, 0.14), inset 0 1px 0 rgba(255,255,255,0.72);
}

.download-choice-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 24px;
    color: var(--accent);
    background: rgba(64, 214, 255, 0.10);
    border: 1px solid rgba(64, 214, 255, 0.28);
    box-shadow: 0 0 34px rgba(64, 214, 255, 0.14);
}

.download-choice-icon svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

.download-choice-icon i {
    font-size: 2.6rem;
}

.download-choice-card h2 {
    font-size: clamp(1.85rem, 3.1vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: 0;
    font-weight: 900;
}

.download-choice-card p {
    color: var(--muted);
    line-height: 1.75;
    margin-top: 18px;
}

.download-card-actions {
    margin-top: auto;
    padding-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-windows-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.download-next-steps {
    margin-top: 88px;
}

.doc-grid, .method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.doc-card, .timeline-card, .citation-box { border-radius: 28px; padding: 28px; }
.doc-card pre, .code-block {
    margin-top: 18px;
    padding: 18px;
    overflow-x: auto;
    border-radius: 18px;
    color: #e9f7ff;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255,255,255,0.08);
}
.code-copy-wrap {
    position: relative;
    margin-top: 18px;
}

.code-copy-wrap pre {
    margin-top: 0;
    padding-right: 88px;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-width: 64px;
    min-height: 34px;
    border: 1px solid rgba(64, 214, 255, 0.28);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255,255,255,0.08);
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-code-btn:hover {
    color: #031018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 24px rgba(64, 214, 255, 0.22);
}
.timeline { display: grid; gap: 16px; margin-top: 26px; }
.timeline-card { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; }
.timeline-card span { color: var(--accent); font-size: 1.6rem; font-weight: 900; }
.reference-section {
    margin-top: 92px;
}
.reference-grid,
.api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}
.reference-grid article {
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 80px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
    transition: 0.24s ease;
}
.reference-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(64, 214, 255, 0.34);
    box-shadow: 0 0 30px rgba(64, 214, 255, 0.14), 0 28px 90px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.10);
}
:root[data-theme="light"] .reference-grid article {
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(233,249,255,0.46));
    box-shadow: 0 24px 70px rgba(0, 72, 128, 0.14), inset 0 1px 0 rgba(255,255,255,0.72);
}
.reference-grid i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.reference-grid h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}
.reference-grid p {
    color: var(--muted);
    line-height: 1.7;
}
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
.guide-card { border-radius: 30px; overflow: hidden; }
.guide-card img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); }
.guide-card div { padding: 24px; }
.guide-card span { display: inline-flex; color: var(--accent); font-size: 0.86rem; font-weight: 900; margin-bottom: 12px; letter-spacing: 0.12em; }
.guide-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.guide-card p { color: var(--muted); line-height: 1.7; }

.theme-img-light { display: none; }
:root[data-theme="light"] .theme-img-dark { display: none; }
:root[data-theme="light"] .theme-img-light { display: block; }

.desktop-pipeline {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    gap: 16px;
    margin-top: 26px;
    padding: 8px 8px 22px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.desktop-pipeline::-webkit-scrollbar {
    height: 10px;
}

.desktop-pipeline::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(64, 214, 255, 0.42);
}

.flow-step-card {
    position: relative;
    min-width: 300px;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 30px;
}

.flow-step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -16px;
    z-index: 3;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 18px rgba(64, 214, 255, 0.55);
}

.flow-index {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #031018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 900;
    box-shadow: 0 0 28px rgba(64, 214, 255, 0.28);
}

.flow-shot {
    position: relative;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.12);
}

.flow-shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    border-radius: 0;
}

.flow-step-card > div {
    padding: 22px;
}

.flow-step-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.flow-step-card p {
    color: var(--muted);
    line-height: 1.7;
}

.outputs-section {
    margin-top: 92px;
}

.output-heading {
    margin-top: 0;
}

.outputs-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
    align-items: stretch;
}

.output-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
}

.output-card-large {
    grid-column: span 6;
}

.output-card-midi {
    grid-column: span 4;
}

.output-card img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}

.output-card-midi img {
    aspect-ratio: 16 / 9;
}

.output-card-video img {
    aspect-ratio: 16 / 9;
}

.output-card > div:not(.audio-visual) {
    flex: 1;
    padding: 24px;
}

.output-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    margin-bottom: 12px;
    border: 1px solid rgba(64, 214, 255, 0.26);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(64, 214, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.output-card h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.output-card p,
.output-feature-strip p {
    color: var(--muted);
    line-height: 1.72;
}

.audio-visual {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 24% 18%, rgba(64, 214, 255, 0.22), transparent 34%),
        radial-gradient(circle at 78% 78%, rgba(108, 255, 136, 0.16), transparent 28%),
        rgba(8, 13, 24, 0.44);
}

.audio-visual span {
    width: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 22px rgba(64, 214, 255, 0.35);
}

.audio-visual span:nth-child(1) { height: 48px; }
.audio-visual span:nth-child(2) { height: 94px; }
.audio-visual span:nth-child(3) { height: 132px; }
.audio-visual span:nth-child(4) { height: 76px; }
.audio-visual span:nth-child(5) { height: 112px; }
.audio-visual span:nth-child(6) { height: 58px; }

.output-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.output-feature-strip article {
    padding: 22px;
    border-radius: 24px;
}

.output-feature-strip i {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1.35rem;
}

.output-feature-strip h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.midi-doc-section {
    position: relative;
    margin-top: 92px;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 26px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(64, 214, 255, 0.18);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(64, 214, 255, 0.12), rgba(108, 255, 136, 0.06)),
        var(--glass);
    box-shadow: 0 28px 90px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.midi-doc-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(64, 214, 255, 0.15), transparent);
    transform: translateX(-120%);
    animation: neon-scan 5.8s ease-in-out infinite;
}

:root[data-theme="light"] .midi-doc-section {
    background:
        linear-gradient(135deg, rgba(0,140,232,0.16), rgba(108,255,136,0.08)),
        rgba(255,255,255,0.54);
}

.midi-copy,
.midi-showcase {
    position: relative;
    z-index: 1;
}

.midi-copy h2 {
    font-size: clamp(2.2rem, 4.7vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 900;
}

.midi-copy > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.midi-feature-list {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

.midi-feature-list article {
    padding: 20px;
    border-radius: 22px;
}

.midi-feature-list i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.midi-feature-list h3 {
    margin-bottom: 7px;
    font-size: 1.05rem;
}

.midi-showcase {
    display: grid;
    gap: 14px;
}

.midi-showcase > img,
.midi-secondary-shot {
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(8, 13, 24, 0.62);
    box-shadow: 0 20px 70px rgba(0,0,0,0.28);
}

.midi-showcase > img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.midi-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(64, 214, 255, 0.18);
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
}

.midi-caption span {
    color: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

.midi-caption p {
    margin: 0;
}

.midi-secondary-shot {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(180px, 0.42fr);
    gap: 0;
    overflow: hidden;
}

.midi-secondary-shot img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: top left;
    border-radius: 0;
}

.midi-secondary-shot figcaption {
    display: grid;
    place-content: center;
    padding: 22px;
    color: var(--muted);
    line-height: 1.7;
}
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 30px; }
.comparison-table th, .comparison-table td { padding: 18px; text-align: left; background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.comparison-table th:first-child, .comparison-table td:first-child { border-left: 1px solid var(--border); border-radius: 18px 0 0 18px; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 18px 18px 0; }

.modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); align-items: center; justify-content: center; opacity: 0; transition: 0.25s ease; }
.modal.active { display: flex; opacity: 1; }
.modal-content { max-width: 92vw; max-height: 82vh; border-radius: 22px; transform: scale(0.96); transition: 0.25s ease; }
.modal.active .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 24px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; }

.footer-main { margin-top: 90px; padding: 46px 0; border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 980px) {
    .nav-content {
        min-height: auto;
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    .nav-brand { order: 1; }
    .mobile-menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }
    .nav-actions {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
    .nav-links {
        order: 4;
        display: none;
        width: 100%;
        flex-basis: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 0 2px;
    }
    .navbar.nav-open .nav-links { display: grid; }
    .nav-links a {
        width: 100%;
        padding: 14px;
        text-align: center;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
    }
    .hero-section, .showcase-section { grid-template-columns: 1fr; }
    .hero-logo { width: min(300px, 70vw); }
    .section-grid, .process-grid, .doc-grid, .method-grid, .guide-grid, .midi-doc-section, .output-feature-strip, .docs-hero, .download-panel, .download-hero, .download-choice-grid, .reference-grid, .api-grid { grid-template-columns: 1fr; }
    .outputs-grid { grid-template-columns: 1fr 1fr; }
    .output-card,
    .output-card-large,
    .output-card-midi { grid-column: span 1; }
    .span-2 { grid-column: span 2; }
    .cta-section { align-items: center; flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .navbar { top: 10px; width: calc(100% - 20px); border-radius: 22px; }
    .nav-content { padding: 10px; gap: 6px; flex-wrap: wrap; }
    .nav-brand span, .btn-github span { display: none; }
    .nav-logo { width: 34px; height: 34px; }
    .nav-actions {
        order: 5;
        display: none;
        width: 100%;
        flex: 0 0 100%;
        flex-basis: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        padding-top: 4px;
    }
    .navbar.nav-open .nav-actions {
        display: flex;
    }
    .mobile-menu-toggle {
        order: 2;
        width: 42px;
        height: 42px;
        margin-left: auto;
        border-radius: 15px;
    }
    #lang-switch {
        min-height: 42px;
        padding: 0 9px;
        gap: 5px;
        border-radius: 15px;
    }
    .flag-img { width: 18px; height: 12px; }
    .icon-btn,
    .btn-github {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 15px;
    }
    .nav-links {
        order: 4;
        padding-top: 8px;
    }
    .hero-section, .page-hero { padding: 34px 22px; border-radius: 30px; }
    .hero-copy h1, .page-hero h1, html:lang(pt) .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 2.75rem); }
    .hero-actions, .cta-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: min(100%, 280px); }
    .install-line { width: min(100%, 320px); justify-content: center; margin-left: auto; margin-right: auto; }
    .metric-strip, .section-grid, .process-grid, .doc-grid, .method-grid, .guide-grid { grid-template-columns: 1fr; }
    .outputs-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .glass-card, .process-card, .doc-card, .timeline-card, .citation-box, .midi-doc-section, .download-panel, .download-choice-card, .reference-grid article { padding: 24px; border-radius: 24px; }
    .timeline-card { grid-template-columns: 1fr; }
    .midi-caption, .midi-secondary-shot { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
    .midi-caption span { white-space: normal; }
    .footer-content { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
