/* =========================================================================
   PLUTO — stylesheet
   Design tokens are brand-locked to the Pluto mark: near-black, one green,
   white/gray. No secondary accent colors, no decorative gradients.
   ========================================================================= */

:root {
    /* ---- Color: base ---- */
    --black: #08090a;
    /* page background, near-absolute */
    --panel: #0e100f;
    /* raised surface */
    --panel-2: #131615;
    /* raised surface, one step up */
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --white: #f3f5f3;
    --gray: #9aa39c;
    /* secondary text, faint green-gray */
    --gray-dim: #5f665f;
    /* tertiary text */

    /* ---- Color: brand green, sampled from the Pluto mark (#06A71E) ---- */
    --green: #10b62b;
    --green-strong: #0c8f22;
    --green-soft: rgba(16, 182, 43, 0.12);
    --green-line: rgba(16, 182, 43, 0.35);
    --green-glow: rgba(16, 182, 43, 0.28);
    --on-green: #04140a;
    /* text placed on top of solid green */

    /* ---- Type ---- */
    --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    /* ---- Layout ---- */
    --container: 1240px;
    --pad-inline: clamp(20px, 5vw, 80px);
    --section-pad: clamp(72px, 11vw, 168px);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;

    /* ---- Motion ---- */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.5s;
}

/* =========================================================================
   Reset
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

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

input,
textarea {
    font: inherit;
}

svg {
    display: block;
}

html:focus-within {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 2px;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--white);
}

/* =========================================================================
   Ambient background — grid + glow
   ========================================================================= */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 85%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    opacity: 0.5;
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.35;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-120px) translateX(12px);
        opacity: 0;
    }
}

/* =========================================================================
   Layout helpers
   ========================================================================= */

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad-inline);
    position: relative;
    z-index: 1;
}

.section {
    padding-block: var(--section-pad);
    position: relative;
}

.section--tight {
    padding-block: calc(var(--section-pad) * 0.6);
}

.section-border-top {
    border-top: 1px solid var(--line);
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head--center {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

.section-title {
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--gray);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
    max-width: 54ch;
}

.section-head--center .section-subtitle {
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--green);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
}

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible>* {
    transition-delay: calc(var(--i, 0) * 90ms);
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--green);
    color: var(--on-green);
    border: 1px solid var(--green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -6px var(--green-glow);
    background: var(--green-strong);
    border-color: var(--green-strong);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--white);
}

.btn-ghost:hover {
    border-color: var(--green-line);
    color: var(--green);
    background: var(--green-soft);
    transform: translateY(-2px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================================================================
   Navbar
   ========================================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: 20px;
    transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
    padding-block: 12px;
    background: rgba(8, 9, 10, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.nav-logo img {
    width: 30px;
    height: 30px;
}

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

.nav-link {
    font-size: 0.92rem;
    color: var(--gray);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.25s var(--ease);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8, 9, 10, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-mobile.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-mobile .nav-link {
    font-size: 1.4rem;
    color: var(--white);
}

/* ===================================================================
   HERO
   =================================================================== */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Glow específico do Hero */
.hero-glow {
    width: 620px;
    height: 620px;
    top: -12%;
    left: -12%;
    opacity: 0.7;
}

/* Grid principal */
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

/* -------------------------------------------------------------------
   TEXTO
   ------------------------------------------------------------------- */

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;

    color: var(--green);

    margin-bottom: 22px;
}

.hero-mark img {
    width: 22px;
    height: 22px;
}

.hero-title {
    font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
    letter-spacing: -0.02em;
    line-height: 1.02;
}

.hero-title .line-2 {
    color: var(--green);
}

.hero-subtitle {
    margin-top: 24px;

    color: var(--gray);

    font-size: clamp(1.02rem, 1rem + 0.2vw, 1.15rem);
    line-height: 1.65;

    max-width: 46ch;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 14px;

    border: 1px solid var(--line-strong);
    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--gray);
}

.badge::before {
    content: "";

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);
}

.hero-actions {
    margin-top: 36px;
}


/* -------------------------------------------------------------------
   VISUAL
   ------------------------------------------------------------------- */

.hero-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 420px;

    padding: 20px;
}

/* Glow atrás do mockup */
.hero-visual-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        var(--green-glow),
        transparent 68%
    );

    opacity: 0.22;

    filter: blur(20px);

    pointer-events: none;
}


/* -------------------------------------------------------------------
   MOCKUP
   ------------------------------------------------------------------- */

.device-card {
    position: relative;
    z-index: 2;

    width: min(360px, 100%);

    background: linear-gradient(
        180deg,
        var(--panel-2),
        var(--panel)
    );

    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);

    box-shadow:
        0 30px 80px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.02);

    overflow: hidden;
}


/* Header do mockup */

.device-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 16px 18px;

    border-bottom: 1px solid var(--line);
}

.device-avatar {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: var(--black);

    border: 1px solid var(--line-strong);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.device-avatar img {
    width: 20px;
    height: 20px;
}

.device-title {
    font-size: 0.88rem;
    font-weight: 600;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 0.72rem;

    color: var(--green);
}

.device-status::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 6px var(--green-glow);
}


/* Corpo */

.device-body {
    padding: 18px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* -------------------------------------------------------------------
   CHAT
   ------------------------------------------------------------------- */

.bubble {
    max-width: 82%;

    padding: 10px 14px;

    border-radius: var(--radius-md);

    font-size: 0.86rem;
    line-height: 1.45;
}

.bubble-bot {
    align-self: flex-start;

    background: var(--panel-2);

    border: 1px solid var(--line);

    border-bottom-left-radius: 3px;
}

.bubble-user {
    align-self: flex-end;

    background: var(--green-soft);

    border: 1px solid var(--green-line);

    color: var(--white);

    border-bottom-right-radius: 3px;
}


/* -------------------------------------------------------------------
   CONFIRMAÇÃO
   ------------------------------------------------------------------- */

.confirm-card {
    align-self: flex-start;

    width: 100%;

    margin-top: 4px;

    padding: 12px 14px;

    border-radius: var(--radius-md);

    background: var(--panel-2);

    border: 1px solid var(--green-line);
}

.confirm-card-head {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--green);

    font-size: 0.82rem;
    font-weight: 600;

    margin-bottom: 8px;
}

.confirm-card-head svg {
    width: 15px;
    height: 15px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;

    padding-block: 2px;

    font-family: var(--font-mono);

    font-size: 0.78rem;

    color: var(--gray);
}

.confirm-row b {
    color: var(--white);
    font-weight: 500;
}


/* -------------------------------------------------------------------
   CHIPS FLUTUANTES
   ------------------------------------------------------------------- */

.float-chip {
    position: absolute;

    z-index: 3;

    background: var(--panel-2);

    border: 1px solid var(--line-strong);

    border-radius: var(--radius-md);

    box-shadow:
        0 20px 45px -20px rgba(0, 0, 0, 0.8);

    animation: chip-float 5.5s ease-in-out infinite;
}


/* Saldo */

.chip-balance {
    top: 8%;
    right: 7%;

    padding: 9px 12px;

    animation-delay: 0.2s;
}

.chip-balance .chip-label {
    font-size: 0.62rem;

    color: var(--gray);

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chip-balance .chip-value {
    margin-top: 2px;

    font-family: var(--font-mono);

    font-size: 0.9rem;
    font-weight: 600;

    color: var(--green);
}


/* IA */

.chip-ai {
    top: 47%;
    left: 6%;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 8px 11px;

    font-size: 0.68rem;
    font-weight: 600;

    color: var(--green);

    animation-delay: 1.6s;
}

.chip-ai svg {
    width: 13px;
    height: 13px;
}


/* -------------------------------------------------------------------
   ANIMAÇÃO
   ------------------------------------------------------------------- */

@keyframes chip-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* ===================================================================
   RESPONSIVO
   =================================================================== */

@media (max-width: 1023px) {

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

        gap: 20px;
    }

    .hero-copy {
        text-align: center;
    }

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

    .hero-subtitle {
        margin-inline: auto;
    }

    .badge-row {
        justify-content: center;
    }

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

    .hero-visual {
        min-height: 380px;

        margin-top: 4px;

        padding: 24px;
    }

    .hero {
        padding-top: 140px;

        min-height: unset;
    }

    .chip-balance {
        right: 12%;
    }

    .chip-ai {
        left: 12%;
    }
}


@media (max-width: 640px) {

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .badge-row {
        gap: 7px;
    }

    .badge {
        padding: 6px 11px;

        font-size: 0.62rem;
    }

    .hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        min-height: 330px;

        padding: 12px;
    }

    .device-card {
        width: min(340px, 92%);
    }

    .chip-balance {
        top: 4%;
        right: 0;
    }

    .chip-ai {
        left: 0;
        top: 52%;
    }

    .chip-balance .chip-value {
        font-size: 0.82rem;
    }

    .chip-ai {
        font-size: 0.62rem;
    }
}

/* =========================================================================
   Project section — flow + trio
   ========================================================================= */

.flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 28px clamp(16px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    margin-bottom: clamp(48px, 7vw, 88px);
    overflow-x: auto;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 96px;
    text-align: center;
}

.flow-node-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    background: var(--panel-2);
    color: var(--green);
    flex-shrink: 0;
}

.flow-node-icon svg {
    width: 20px;
    height: 20px;
}

.flow-node span {
    font-size: 0.78rem;
    color: var(--gray);
    white-space: nowrap;
}

.flow-node.is-brand .flow-node-icon {
    border-color: var(--green-line);
    box-shadow: 0 0 24px -6px var(--green-glow);
}

.flow-node.is-brand span {
    color: var(--white);
    font-weight: 600;
}

.flow-arrow {
    color: var(--gray-dim);
    flex-shrink: 0;
}

.flow-arrow svg {
    width: 20px;
    height: 20px;
}

.trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trio-item {
    padding: clamp(20px, 3vw, 32px);
    border-left: 1px solid var(--line);
}

.trio-item:first-child {
    border-left: none;
    padding-left: 0;
}

.trio-item:last-child {
    padding-right: 0;
}

.trio-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--green);
    margin-bottom: 14px;
    display: block;
}

.trio-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.trio-item p {
    color: var(--gray);
    font-size: 0.94rem;
}

/* =========================================================================
   How it works — steps
   ========================================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}

.step {
    position: relative;
    padding-top: 60px;
}

.step-num {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--green-line);
    background: var(--black);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.step-visual {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.82rem;
}

.step-visual .bubble {
    max-width: 100%;
}

.step-visual .confirm-row {
    padding-block: 3px;
}

.step-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 46px;
    padding-top: 8px;
}

.step-mini-chart span {
    width: 8px;
    border-radius: 2px;
    background: var(--green);
    opacity: 0.8;
}

.step-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
    font-size: 0.86rem;
}

.step-confirm svg {
    width: 16px;
    height: 16px;
}

/* =========================================================================
   Team
   ========================================================================= */

.team-lead {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--green-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--green-soft), transparent 60%), var(--panel);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.team-lead-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--green-line);
    background: rgba(16, 182, 43, 0.1);
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.avatar {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    border: 1px dashed var(--line-strong);
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-dim);
}

.avatar-fallback .avatar-initials {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green);
}

.avatar-fallback small {
    font-size: 0.62rem;
    color: var(--gray-dim);
    text-align: center;
    padding: 0 8px;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--gray);
    font-size: 0.92rem;
    max-width: 56ch;
    margin-bottom: 16px;
}

.team-links {
    display: flex;
    gap: 10px;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--white);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.team-link svg {
    width: 14px;
    height: 14px;
}

.team-link:hover {
    border-color: var(--green-line);
    color: var(--green);
    background: var(--green-soft);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 20px;
    width: calc(100% + 120px);
    margin-left: -60px;
}

.team-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    border-color: var(--green-line);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -24px var(--green-glow);
}

.team-card .avatar {
    width: 100%;
    margin-bottom: 16px;
}

.team-card h3 {
    font-size: 1.02rem;
    margin-bottom: 3px;
}

.team-card .team-role {
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.team-card .team-desc {
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.team-card .team-links {
    gap: 8px;
}

.team-card .team-link {
    padding: 6px 10px;
    font-size: 0;
}

.team-card .team-link svg {
    width: 15px;
    height: 15px;
}

/* ---- Team stage: foto do grupo sem fundo ---- */

.team-stage {
    position: relative;
    padding-block: calc(var(--section-pad) * 0.6) calc(var(--section-pad) * 0.45);
}

.team-stage .section-head {
    margin-bottom: clamp(8px, 2vw, 24px);
}

.team-stage-figure {
    --bleed: clamp(0px, 5vw, 72px);
    position: relative;
    isolation: isolate;
    width: calc(100% + var(--bleed) * 2);
    margin-inline: calc(var(--bleed) * -1);
}

/* brilho verde sutil, sempre atrás das pessoas */
.team-stage-figure::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 52%;
    width: 78%;
    aspect-ratio: 1.4;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, var(--green-glow), transparent);
    opacity: 0.32;
    pointer-events: none;
}

.team-stage-img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55));
    /* o corte inferior da foto se dissolve no fundo escuro */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 84%, transparent 100%);
    transition: transform 0.8s var(--ease);
}

.team-stage-figure:hover .team-stage-img {
    transform: scale(1.012);
}

/* entrada bem sutil, reaproveitando o .reveal existente */
.team-stage-figure.reveal {
    transform: translateY(28px) scale(0.985);
}

.team-stage-figure.reveal.is-visible {
    transform: none;
}

/* dados editoriais nos cantos vazios do topo da imagem */
.stage-meta-row {
    position: absolute;
    top: 4%;
    left: 3%;
    right: 3%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.stage-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stage-meta--end {
    text-align: right;
}

.stage-meta-num {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
    font-weight: 500;
    line-height: 1;
    color: var(--green);
}

.stage-meta-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-dim);
}

/* linha de base fina que "assenta" a equipe */
.stage-baseline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-dim);
}

.stage-baseline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

.stage-baseline::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 12%;
    width: 40px;
    height: 3px;
    background: var(--green);
    opacity: 0.8;
}

@media (max-width: 820px) {
    .team-stage-figure {
        --bleed: var(--pad-inline);
    }

    .stage-meta-row {
        position: static;
        padding-inline: var(--pad-inline);
        margin-top: 20px;
    }

    .stage-baseline {
        margin-top: 18px;
        padding-inline: var(--pad-inline);
    }

    .stage-baseline::after {
        left: var(--pad-inline);
    }
}

/* =========================================================================
   Tech stack
   ========================================================================= */

.tech-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    color: var(--gray-dim);
}

.tech-hub-line {
    width: clamp(60px, 12vw, 160px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-strong));
}

.tech-hub-line.right {
    background: linear-gradient(to left, transparent, var(--line-strong));
}

.tech-hub-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--green-line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--green);
    background: var(--panel);
    box-shadow: 0 0 30px -10px var(--green-glow);
}

.tech-hub-node img {
    width: 16px;
    height: 16px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tech-category {
    background: var(--panel);
    padding: 26px 24px;
}

.tech-category-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--white);
}

.tech-category-head svg {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.tech-category-head h3 {
    font-size: 0.98rem;
    font-weight: 600;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chip {
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-chip:hover {
    border-color: var(--green-line);
    color: var(--green);
}

/* =========================================================================
   Architecture
   ========================================================================= */

.arch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 480px;
    margin-inline: auto;
}

.arch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--green-line), var(--line-strong) 92%, transparent);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 1.5s var(--ease);
    z-index: 0;
}

.arch.is-visible::before {
    transform: translateX(-50%) scaleY(1);
}

.branch-fork,
.branch-join {
    position: relative;
    width: 100%;
    height: 22px;
    z-index: 1;
}

.branch-fork::before,
.branch-fork::after,
.branch-join::before,
.branch-join::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 100%;
    border: 0 solid var(--line-strong);
}

.branch-fork::before {
    left: 0;
    border-top-width: 2px;
    border-right-width: 2px;
    border-top-right-radius: 14px;
}

.branch-fork::after {
    right: 0;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 14px;
}

.branch-join::before {
    left: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 14px;
}

.branch-join::after {
    right: 0;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-bottom-left-radius: 14px;
}

.arch-node {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin-block: 14px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: default;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.arch-node svg {
    width: 17px;
    height: 17px;
    color: var(--green);
    flex-shrink: 0;
}

.arch-node:hover {
    border-color: var(--green-line);
    box-shadow: 0 0 30px -12px var(--green-glow);
}

.arch-branch {
    display: flex;
    gap: 16px;
    margin-block: 14px;
    position: relative;
    z-index: 1;
}

.arch-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--black);
    border: 1px solid var(--green-line);
    color: var(--gray);
    font-size: 0.76rem;
    font-family: var(--font-body);
    font-weight: 400;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    width: max-content;
    max-width: 220px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.arch-node:hover .arch-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   Context (metadata)
   ========================================================================= */

.meta-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: clamp(24px, 4vw, 12px);
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}

.meta-grid .meta-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.meta-label {
    color: var(--gray-dim);
    font-size: 0.88rem;
}

.meta-value {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--green);
    text-align: right;
}

/* =========================================================================
   Stats
   ========================================================================= */

.stats-row {
    display: flex;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1 1 160px;
    padding: 20px clamp(16px, 3vw, 32px);
    border-left: 1px solid var(--line);
    text-align: center;
}

.stat-item:first-child {
    border-left: none;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
    font-weight: 600;
    color: var(--green);
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.86rem;
    margin-top: 10px;
}

/* =========================================================================
   Social / redes
   ========================================================================= */

.social-block {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 90% 10%, var(--green-soft), transparent 55%), var(--panel);
}

.social-copy h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
    margin-bottom: 10px;
}

.social-copy p {
    color: var(--gray);
    max-width: 44ch;
}

.team-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.team-mini a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--gray);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.team-mini a:hover {
    border-color: var(--green-line);
    color: var(--green);
}

.team-mini .mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green);
}

/* =========================================================================
   Final CTA
   ========================================================================= */

.final-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(720px, 90vw);
    transform: translate(-50%, -50%);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.final-cta h2 {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
    position: relative;
    z-index: 1;
}

.final-cta p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.final-cta .btn-row {
    justify-content: center;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
    border-top: 1px solid var(--line);
    padding-block: 56px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 26px;
    height: 26px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-tagline {
    color: var(--gray);
    font-size: 0.88rem;
    margin-top: 6px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.footer-meta span {
    color: var(--gray-dim);
    font-size: 0.84rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--gray);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    border-color: var(--green-line);
    color: var(--green);
}

.footer-links svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-dim);
    font-size: 0.8rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-visual {
        min-height: 340px;
        margin-top: 24px;
    }

    .hero {
        padding-top: 140px;
        min-height: unset;
    }

    .team-lead {
        grid-template-columns: 140px 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        margin-left: 0;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trio {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trio-item {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 24px;
    }

    .trio-item:first-child {
        border-top: none;
        padding-top: 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .steps::before {
        display: none;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .meta-grid .meta-row:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .meta-grid .meta-row:last-child {
        border-bottom: none;
    }

    .stats-row {
        justify-content: center;
    }

    .stat-item {
        border-left: none;
        border-top: 1px solid var(--line);
        flex-basis: 45%;
    }

    .social-block {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .team-lead {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-lead .team-links {
        justify-content: center;
    }

    .team-lead-tag {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        margin-left: 0;
    }

    .team-card {
        padding: 16px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .arch-branch {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding-block: 12px;
    }

    .navbar.is-scrolled {
        padding-block: 9px;
    }

    .nav-logo {
        gap: 8px;
        font-size: 1rem;
    }

    .nav-logo img {
        width: 26px;
        height: 26px;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-toggle {
        width: 34px;
        height: 34px;
    }

    .nav-right .btn {
        padding: 7px 12px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .nav-right .btn svg {
        width: 14px;
        height: 14px;
    }
}

.team-card {
    display: flex;
    flex-direction: column;
}

.team-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.team-link:hover {
    color: var(--white);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.team-link i {
    display: block;
    font-size: 14px;
    line-height: 1;
}