:root {
    --ink: #171410;
    --coral: #FF4B5C;
    --coral-dark: #E23B4B;
    --sun: #FFD400;
    --sun-soft: #FFE988;
    --paper: #FFF6E2;
    --paper-2: #FFFCF3;
    --white: #ffffff;
    --line: rgba(23, 20, 16, 0.12);
    --shadow: 0 6px 0 rgba(23, 20, 16, 0.9);
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
.display {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

::selection {
    background: var(--sun);
    color: var(--ink);
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- NAV ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ink);
    border-bottom: 2px solid var(--sun);
}

nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 64px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--paper-2);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: var(--sun);
    transition: width .25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 0 8px 0 rgba(23, 20, 16, 0.9);
}

.btn-primary:active {
    transform: translate(0, 2px);
    box-shadow: 0 3px 0 rgba(23, 20, 16, 0.9);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--paper-2);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--paper-2);
    position: relative;
    transition: .2s ease;
}

.menu-toggle span::before {
    position: absolute;
    top: -6px;
}

.menu-toggle span::after {
    position: absolute;
    top: 6px;
}

/* ---------- BANNER PUBLICITÁRIO ---------- */
.ad-banner {
    width: 100%;
    aspect-ratio: 1920 / 700;
    background: repeating-linear-gradient(45deg, #f1ead4, #f1ead4 14px, #ece2c4 14px, #ece2c4 28px);
    border-bottom: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-banner .ad-placeholder {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(23, 20, 16, 0.45);
    text-align: center;
    padding: 0 20px;
}

/* ---------- HERO ---------- */
.hero {
    padding: 88px 0 60px;
    background: var(--white);
    position: relative;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: var(--ink);
    color: var(--sun);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 62px);
    margin-bottom: 22px;
}

.hero h1 .hl {
    color: var(--coral);
    position: relative;
    white-space: nowrap;
}

.hero-sub {
    font-size: 18px;
    max-width: 46ch;
    color: rgba(23, 20, 16, 0.78);
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 13px;
    color: rgba(23, 20, 16, 0.55);
    font-family: 'JetBrains Mono', monospace;
}

/* terminal card */
.terminal {
    background: var(--ink);
    border-radius: 16px;
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 var(--coral);
    overflow: hidden;
    transform: rotate(1.4deg);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 16px;
    background: #242019;
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
    background: #FF5F57;
}

.terminal-bar span:nth-child(2) {
    background: #FEBC2E;
}

.terminal-bar span:nth-child(3) {
    background: #28C840;
}

.terminal-title {
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8b8579;
}

.terminal-body {
    padding: 26px 24px 34px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14.5px;
    line-height: 1.8;
    color: #EDE7D8;
    min-height: 270px;
}

.terminal-body .c1 {
    color: #8b8579;
}

.terminal-body .c2 {
    color: #FFD400;
}

.terminal-body .c3 {
    color: #FF8C8C;
}

.terminal-body .c4 {
    color: #8DD6C0;
}

.terminal-body .c5 {
    color: #EDE7D8;
}

#typed-line {
    white-space: pre-wrap;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--sun);
    animation: blink 1s steps(1) infinite;
    vertical-align: -2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ---------- BRACE FRAME (signature element) ---------- */
.brace-frame {
    position: relative;
    padding: 8px 0 8px 46px;
}

.brace-frame svg {
    position: absolute;
    left: -6px;
    top: 0;
    height: 100%;
    width: 40px;
}

@media (max-width:640px) {
    .brace-frame {
        padding-left: 34px;
    }

    .brace-frame svg {
        width: 28px;
    }
}

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--ink);
    color: var(--paper-2);
}

.section-alt .eyebrow {
    background: var(--sun);
    color: var(--ink);
}

.kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--coral);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section h2 {
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 18px;
}

.section-lead {
    font-size: 17px;
    max-width: 62ch;
    color: rgba(23, 20, 16, 0.75);
}

.section-alt .section-lead {
    color: rgba(255, 252, 243, 0.75);
}

/* ---------- SOBRE ---------- */
#sobre {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.about-copy p+p {
    margin-top: 16px;
}

.about-copy p {
    font-size: 16.5px;
    color: rgba(23, 20, 16, 0.8);
}

.about-copy strong {
    color: var(--ink);
    background: linear-gradient(to top, var(--sun-soft) 40%, transparent 40%);
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.stat-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: 6px 6px 0 rgba(23, 20, 16, 0.9);
}

.stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--sun);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.stat-item h3 {
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14.5px;
    color: rgba(23, 20, 16, 0.7);
}

/* ---------- CARDS: O QUE FAZEMOS ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 52px;
}

.card {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 0 9px 0 rgba(23, 20, 16, 0.9);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card:nth-child(1) .card-icon {
    background: var(--sun);
}

.card:nth-child(2) .card-icon {
    background: var(--coral);
}

.card:nth-child(3) .card-icon {
    background: var(--sun);
}

.card:nth-child(4) .card-icon {
    background: var(--coral);
}

.card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14.5px;
    color: rgba(23, 20, 16, 0.72);
}

/* ---------- COMO FUNCIONA (steps) ---------- */
.steps {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.step {
    padding: 0 22px 0 0;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    right: -2px;
    width: calc(100% - 60px);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--paper-2) 0 8px, transparent 8px 16px);
    opacity: 0.35;
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--sun);
    margin-bottom: 14px;
}

.step h3 {
    font-family: 'Space Grotesk';
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--paper-2);
}

.step p {
    font-size: 14.5px;
    color: rgba(255, 252, 243, 0.68);
}

/* ---------- CTA FINAL ---------- */
.cta-final {
    background: var(--sun);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final h2 {
    font-size: clamp(30px, 5vw, 48px);
    margin-bottom: 16px;
}

.cta-final p {
    font-size: 17px;
    max-width: 52ch;
    margin: 0 auto 34px;
    color: rgba(23, 20, 16, 0.75);
}

.cta-final .btn-primary {
    background: var(--ink);
    color: var(--sun);
}

.cta-final .btn-primary:hover {
    box-shadow: 0 8px 0 var(--coral);
}

.big-brace {
    position: absolute;
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: rgba(23, 20, 16, 0.06);
    font-size: 340px;
    line-height: 1;
    top: -90px;
    user-select: none;
    pointer-events: none;
}

.big-brace.left {
    left: -40px;
}

.big-brace.right {
    right: -40px;
}

/* ---------- TESTEMUNHOS ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 52px;
}

.t-card {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.t-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 0 9px 0 rgba(23, 20, 16, 0.9);
}

.t-quote-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--sun);
    line-height: 1;
    margin-bottom: 6px;
}

.t-text {
    font-size: 15px;
    color: rgba(23, 20, 16, 0.78);
    margin-bottom: 22px;
    flex: 1;
}

.t-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--coral);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex: 0 0 auto;
}

.t-name {
    font-weight: 700;
    font-size: 14.5px;
}

.t-role {
    font-size: 13px;
    color: rgba(23, 20, 16, 0.55);
}

/* ---------- PARCEIROS (carrossel) ---------- */
.partners-section {
    background: var(--paper-2);
    overflow: hidden;
}

.partners-track-wrap {
    margin-top: 48px;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: scroll-partners 26s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 52px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: rgba(23, 20, 16, 0.4);
    flex: 0 0 auto;
}

.partner-logo img {
    max-height: 34px;
    max-width: 120px;
}

@keyframes scroll-partners {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--ink);
    color: var(--paper-2);
    padding: 56px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 252, 243, 0.15);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    height: auto;
    width: 300px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 252, 243, 0.6);
    margin-top: 10px;
    max-width: 32ch;
}

.footer-links {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sun);
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
}

.footer-col a {
    display: block;
    font-size: 14.5px;
    color: rgba(255, 252, 243, 0.75);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--coral);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 252, 243, 0.5);
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 252, 243, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.social-row a:hover {
    background: var(--coral);
    border-color: var(--coral);
}

/* ---------- reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width:980px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }

    .step:nth-child(2)::after {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-top {
        flex-direction: column;
    }
}

@media (max-width:560px) {
    .wrap {
        padding: 0 20px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .section {
        padding: 64px 0;
    }

    .nav-cta .btn-ghost {
        display: none;
    }

    .terminal {
        transform: none;
    }
}