:root {
    --maestro-bg: #070807;
    --maestro-bg-2: #0d0f0d;
    --maestro-panel: #121512;
    --maestro-panel-2: #1b201a;
    --maestro-line: #2a3028;
    --maestro-green: #9eff2e;
    --maestro-green-2: #70e04f;
    --maestro-yellow: #fff200;
    --maestro-cyan: #38e8ff;
    --maestro-text: #f4f7f1;
    --maestro-soft: rgba(244, 247, 241, 0.72);
    --maestro-faint: rgba(244, 247, 241, 0.48);
    --maestro-warn: #e9b949;
    --maestro-danger: #ff5e57;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--maestro-bg);
    scrollbar-color: var(--maestro-green) var(--maestro-bg);
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(158, 255, 46, 0.08) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, #070807 0%, #11160f 44%, #050605 100%);
    color: var(--maestro-text);
    font-family: "JetBrains Mono", monospace;
    overflow-x: hidden;
}

body::selection {
    background: var(--maestro-green);
    color: var(--maestro-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: "Inter", sans-serif;
    letter-spacing: 0;
}

code {
    color: var(--maestro-green);
    font-family: "JetBrains Mono", monospace;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #070807, #121512);
}

::-webkit-scrollbar-thumb {
    border: 2px solid #070807;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--maestro-green), var(--maestro-green-2));
    box-shadow: 0 0 14px rgba(158, 255, 46, 0.32);
}

.maestro-bg-grid,
.maestro-scan {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.maestro-bg-grid {
    z-index: 1;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(158, 255, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 255, 46, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 84%);
}

.maestro-scan {
    z-index: 60;
    opacity: 0.12;
    background: linear-gradient(rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.22) 50%);
    background-size: 100% 3px;
}

.maestro-topbar,
main,
.maestro-footer,
.maestro-context {
    position: relative;
    z-index: 10;
}

.maestro-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 10px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid rgba(158, 255, 46, 0.34);
    background:
        linear-gradient(90deg, rgba(158, 255, 46, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(7, 8, 7, 0.98), rgba(5, 6, 5, 0.94));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.44), inset 0 -1px 0 rgba(255, 242, 0, 0.12);
}

.maestro-topbar::before {
    content: "";
    position: absolute;
    left: clamp(18px, 4vw, 54px);
    right: clamp(18px, 4vw, 54px);
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--maestro-green), var(--maestro-yellow), transparent 74%);
    pointer-events: none;
}

.maestro-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--maestro-green);
    font-family: "Inter", sans-serif;
}

.maestro-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid rgba(158, 255, 46, 0.44);
    background: #070807;
    box-shadow: 0 0 22px rgba(158, 255, 46, 0.16);
}

.maestro-brand span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.maestro-brand small,
.maestro-brand strong,
.maestro-nav a,
.maestro-topbar__cta {
    white-space: nowrap;
}

.maestro-brand small {
    color: rgba(244, 247, 241, 0.5);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.maestro-brand strong {
    color: var(--maestro-green);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.maestro-nav {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    color: var(--maestro-soft);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maestro-nav::-webkit-scrollbar {
    display: none;
}

.maestro-nav a,
.maestro-topbar__cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(158, 255, 46, 0.16);
    background: rgba(158, 255, 46, 0.05);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.maestro-nav a:hover,
.maestro-topbar__cta:hover {
    border-color: rgba(158, 255, 46, 0.48);
    background: rgba(158, 255, 46, 0.14);
    color: var(--maestro-green);
    box-shadow: inset 0 0 0 1px rgba(158, 255, 46, 0.08);
}

.maestro-topbar__cta {
    color: #070807;
    border-color: rgba(255, 242, 0, 0.78);
    background: var(--maestro-yellow);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maestro-topbar__cta:hover {
    color: #070807;
    background: var(--maestro-green);
}

.maestro-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.72fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
    width: min(100% - 44px, 1260px);
    margin-inline: auto;
    padding: 136px 0 82px;
}

.maestro-hero__content {
    max-width: 760px;
}

.maestro-kicker {
    margin-bottom: 16px;
    color: var(--maestro-green);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.maestro-hero h1 {
    color: #fff;
    font-size: clamp(3rem, 7vw, 7.2rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    text-shadow: 0 0 38px rgba(158, 255, 46, 0.2);
}

.maestro-hero__content > p:not(.maestro-kicker),
.maestro-section__head > p:not(.maestro-kicker) {
    margin-top: 24px;
    color: var(--maestro-soft);
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
}

.maestro-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.maestro-button,
.maestro-release {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(158, 255, 46, 0.68);
    background: linear-gradient(135deg, var(--maestro-green), var(--maestro-green-2));
    color: #070807;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.maestro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(158, 255, 46, 0.2);
}

.maestro-release {
    border-color: rgba(255, 242, 0, 0.42);
    background: rgba(255, 242, 0, 0.09);
    color: var(--maestro-text);
}

.maestro-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.maestro-hero__stats article {
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(158, 255, 46, 0.18);
    background:
        linear-gradient(135deg, rgba(158, 255, 46, 0.1), transparent 54%),
        rgba(18, 21, 18, 0.74);
}

.maestro-hero__stats strong {
    display: block;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.12;
}

.maestro-hero__stats span {
    display: block;
    margin-top: 8px;
    color: var(--maestro-green);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maestro-hero-board {
    min-width: 0;
    border: 1px solid rgba(158, 255, 46, 0.28);
    background:
        linear-gradient(135deg, rgba(158, 255, 46, 0.15), transparent 40%),
        linear-gradient(180deg, rgba(18, 21, 18, 0.96), rgba(7, 8, 7, 0.96));
    box-shadow: 22px 26px 0 rgba(0, 0, 0, 0.22), 0 28px 90px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.maestro-board__bar {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(158, 255, 46, 0.18);
    background: rgba(7, 8, 7, 0.9);
}

.maestro-board__bar span {
    width: 10px;
    height: 10px;
    background: var(--maestro-green);
}

.maestro-board__bar span:nth-child(2) {
    background: var(--maestro-warn);
}

.maestro-board__bar span:nth-child(3) {
    background: var(--maestro-danger);
}

.maestro-board__bar strong {
    margin-left: 8px;
    color: var(--maestro-green);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.maestro-board__body {
    min-height: 430px;
    display: grid;
    align-content: center;
    gap: 22px;
    padding: clamp(24px, 4vw, 42px);
    background:
        linear-gradient(rgba(158, 255, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 255, 46, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
}

.maestro-board__body img {
    width: min(54%, 190px);
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(158, 255, 46, 0.34);
    background: #070807;
    box-shadow: 0 0 42px rgba(158, 255, 46, 0.18);
}

.maestro-board__body p {
    max-width: 430px;
    color: rgba(244, 247, 241, 0.82);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

.maestro-board__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.maestro-board__chips span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(158, 255, 46, 0.24);
    background: rgba(158, 255, 46, 0.08);
    color: #c8ff89;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maestro-section {
    width: min(100% - 44px, 1260px);
    margin-inline: auto;
    padding: 92px 0;
}

.maestro-section__head {
    max-width: 820px;
    margin-bottom: 34px;
}

.maestro-section__head h2 {
    color: #fff;
    font-size: clamp(2.2rem, 4.8vw, 4.7rem);
    font-weight: 900;
    line-height: 1;
}

.maestro-tree {
    position: relative;
    display: grid;
    gap: 26px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(158, 255, 46, 0.2);
    background:
        linear-gradient(rgba(158, 255, 46, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 255, 46, 0.07) 1px, transparent 1px),
        rgba(7, 8, 7, 0.72);
    background-size: 46px 46px, 46px 46px, auto;
    overflow: hidden;
}

.maestro-tree::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 242, 0, 0.08);
    pointer-events: none;
}

.maestro-tree__node,
.maestro-agent-card,
.maestro-module-grid article,
.maestro-roadmap__list article {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(158, 255, 46, 0.22);
    background:
        linear-gradient(135deg, rgba(158, 255, 46, 0.1), transparent 54%),
        rgba(18, 21, 18, 0.92);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
}

.maestro-tree__node {
    min-height: 164px;
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 22px;
}

.maestro-tree__node--root {
    width: min(100%, 520px);
    min-height: 190px;
    margin-inline: auto;
    border-color: rgba(158, 255, 46, 0.4);
    background:
        linear-gradient(135deg, rgba(158, 255, 46, 0.16), transparent 56%),
        #10140f;
    text-align: center;
}

.maestro-tree__node--tor {
    border-color: rgba(255, 242, 0, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 242, 0, 0.12), transparent 56%),
        rgba(18, 21, 18, 0.92);
}

.maestro-tree__trunk {
    position: relative;
    z-index: 1;
    width: 2px;
    height: 54px;
    margin-inline: auto;
    background: linear-gradient(180deg, var(--maestro-green), var(--maestro-yellow));
    animation: maestro-line-vertical 2s ease-in-out infinite;
}

.maestro-tree__builder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.maestro-tree__agents {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 34px;
}

.maestro-tree__agents::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--maestro-green), var(--maestro-yellow), transparent);
    animation: maestro-line 2.4s ease-in-out infinite;
}

.maestro-tree__node span,
.maestro-agent-card span,
.maestro-module-grid span,
.maestro-roadmap__list span {
    color: var(--maestro-green);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.maestro-tree__node strong,
.maestro-agent-card strong,
.maestro-module-grid h3,
.maestro-roadmap__list strong {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 900;
    line-height: 1.08;
}

.maestro-tree__node strong {
    font-size: clamp(1.55rem, 2.8vw, 2.75rem);
}

.maestro-tree__node p,
.maestro-agent-card small,
.maestro-module-grid p,
.maestro-roadmap__list p {
    color: var(--maestro-soft);
    font-family: "Inter", sans-serif;
    line-height: 1.62;
}

.maestro-agent-card {
    min-height: 134px;
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 18px;
}

.maestro-agent-card strong {
    font-size: 1rem;
}

.maestro-agent-card small {
    font-size: 0.86rem;
}

.maestro-agent-card--more {
    border-color: rgba(255, 242, 0, 0.3);
}

.maestro-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.maestro-module-grid article {
    min-height: 248px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.maestro-module-grid article:hover {
    border-color: rgba(158, 255, 46, 0.54);
    box-shadow: 0 20px 70px rgba(158, 255, 46, 0.12);
    transform: translateY(-4px);
}

.maestro-module-grid h3 {
    font-size: clamp(1.4rem, 2.4vw, 2.35rem);
}

.maestro-roadmap__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.maestro-roadmap__list article {
    min-height: 236px;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 22px;
}

.maestro-roadmap__list span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(158, 255, 46, 0.36);
    color: #070807;
    background: var(--maestro-green);
}

.maestro-roadmap__list strong {
    font-size: 1.15rem;
}

.maestro-footer {
    width: min(100% - 44px, 1260px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-inline: auto;
    padding: 38px 0 54px;
    border-top: 1px solid rgba(158, 255, 46, 0.12);
    color: var(--maestro-faint);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maestro-footer a {
    color: var(--maestro-green);
}

.maestro-context {
    position: fixed;
    z-index: 100;
    min-width: 240px;
    display: none;
    padding: 8px;
    border: 1px solid rgba(158, 255, 46, 0.34);
    background:
        linear-gradient(135deg, rgba(158, 255, 46, 0.12), rgba(7, 8, 7, 0.98)),
        #070807;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44), 0 0 28px rgba(158, 255, 46, 0.12);
}

.maestro-context.ativo {
    display: grid;
    gap: 4px;
}

.maestro-context button {
    min-height: 38px;
    border: 0;
    background: transparent;
    color: rgba(244, 247, 241, 0.82);
    cursor: pointer;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maestro-context button:hover,
.maestro-context button:focus-visible {
    background: rgba(158, 255, 46, 0.12);
    color: var(--maestro-green);
    outline: none;
}

@keyframes maestro-line {
    0%,
    100% {
        opacity: 0.36;
        filter: drop-shadow(0 0 0 rgba(158, 255, 46, 0));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(158, 255, 46, 0.72));
    }
}

@keyframes maestro-line-vertical {
    0%,
    100% {
        opacity: 0.36;
        transform: scaleY(0.78);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

@media (max-width: 1100px) {
    .maestro-topbar {
        grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
    }

    .maestro-topbar__cta {
        display: none;
    }

    .maestro-hero {
        grid-template-columns: 1fr;
    }

    .maestro-hero__content {
        max-width: 860px;
    }

    .maestro-module-grid,
    .maestro-roadmap__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 0;
    }

    .maestro-topbar {
        position: static;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 14px;
    }

    .maestro-topbar::before {
        left: 14px;
        right: 14px;
    }

    .maestro-nav {
        justify-content: flex-start;
        padding-bottom: 4px;
        gap: 6px;
        font-size: 0.62rem;
    }

    .maestro-nav a {
        min-height: 40px;
        padding-inline: 10px;
        letter-spacing: 0.08em;
    }

    .maestro-hero {
        width: min(100% - 28px, 1260px);
        min-height: auto;
        padding-top: 42px;
    }

    .maestro-hero h1 {
        font-size: clamp(3rem, 17vw, 4.8rem);
    }

    .maestro-hero__stats,
    .maestro-tree__builder,
    .maestro-tree__agents,
    .maestro-module-grid,
    .maestro-roadmap__list {
        grid-template-columns: 1fr;
    }

    .maestro-button,
    .maestro-release {
        width: 100%;
    }

    .maestro-board__body {
        min-height: 360px;
    }

    .maestro-section,
    .maestro-footer {
        width: min(100% - 28px, 1260px);
        padding-block: 72px;
    }

    .maestro-tree__trunk,
    .maestro-tree__agents::before {
        display: none;
    }

    .maestro-tree__agents {
        padding-top: 0;
    }

    .maestro-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

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