:root {
    color-scheme: dark;
    --bg: #05080F;
    --surface: #09111B;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --surface-strong: #0E1724;
    --text: #F8FAFC;
    --muted: #A6B1C5;
    --border: rgba(32, 194, 255, 0.18);
    --brand-blue: #00E7FF;
    --brand-cyan: #20F1C0;
    --brand-purple: #8B5AFB;
    --brand-red: #FF4C41;
    --brand-copper: #D98A43;
    --barber-blue: #0784D7;
    --barber-red: #EF233C;
    --barber-ice: #F8FAFC;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(0, 231, 255, 0.14), transparent 18%),
                radial-gradient(circle at bottom left, rgba(139, 90, 251, 0.08), transparent 20%),
                var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.text-gray-400 {
    color: rgba(236, 244, 255, 0.88) !important;
}

.text-gray-500 {
    color: rgba(236, 244, 255, 0.78) !important;
}

::selection {
    background: var(--brand-purple);
    color: #fff;
}

.glass,
.glass-card {
    background: rgba(10, 10, 10, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
}

.glass-card {
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(32, 241, 192, 0.25);
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(90deg, #ffffff, var(--brand-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-copy {
    color: rgba(236, 244, 255, 0.9) !important;
}

.section-copy::after {
    content: '';
    display: block;
    width: 5.5rem;
    height: 0.15rem;
    margin-top: 1rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--barber-blue), var(--barber-ice), var(--barber-red));
    opacity: 0.72;
}

.text-center .section-copy::after {
    margin-left: auto;
    margin-right: auto;
}

.barber-blue {
    color: #77dcff;
}

.barber-red {
    color: #ff8a91;
}

.barber-cyan {
    color: var(--brand-cyan);
}

.barber-soft-blue {
    color: #bceeff !important;
    text-shadow: 0 0 28px rgba(7, 132, 215, 0.18);
}

.barber-soft-red {
    color: #ffc3c6 !important;
    text-shadow: 0 0 28px rgba(239, 35, 60, 0.16);
}

.mobile-copy {
    display: none;
}

.glow-button {
    position: relative;
    z-index: 1;
}

.glow-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple), var(--brand-red));
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.glow-button:hover::before {
    opacity: 0.85;
}

.barber-cta {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
    min-height: 4.5rem;
    color: #08111d;
    background: #fff;
    box-shadow: 0 0 36px rgba(32, 231, 217, 0.24),
                0 0 56px rgba(255, 76, 65, 0.18);
}

.barber-cta::before {
    content: '';
    position: absolute;
    inset: -80% -30%;
    z-index: -2;
    background: repeating-linear-gradient(
        120deg,
        #ffffff 0 22px,
        #ffffff 22px 38px,
        #00b7ff 38px 64px,
        #ffffff 64px 82px,
        #ff3f4e 82px 108px,
        #ffffff 108px 130px
    );
    opacity: 0;
    animation: barber-cta-spin 1.05s linear infinite;
    transition: opacity 0.25s ease;
}

.barber-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32) 48%, rgba(255, 255, 255, 0.68)),
                linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78),
                inset 0 -10px 24px rgba(2, 8, 23, 0.08);
}

.barber-cta:hover::before,
.barber-cta:focus-visible::before {
    opacity: 1;
}

.barber-cta span:first-child {
    position: relative;
    z-index: 1;
    color: #07111f;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.7);
}

.barber-cta-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #07111f;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
                0 10px 24px rgba(7, 17, 31, 0.16);
}

@keyframes barber-cta-spin {
    to {
        transform: translateX(130px);
    }
}

.icon-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(0, 231, 255, 0.14), rgba(255, 76, 65, 0.12));
    box-shadow: 0 20px 45px rgba(0, 231, 255, 0.18);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.35s ease;
    animation: icon-3d-float 6s ease-in-out infinite;
}

.icon-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
                radial-gradient(circle at 80% 80%, rgba(255, 76, 65, 0.18), transparent 25%);
    pointer-events: none;
    opacity: 0.9;
}

.icon-3d i {
    position: relative;
    z-index: 1;
    transform: translateZ(12px);
}

.icon-3d-sm {
    width: 2.75rem;
    height: 2.75rem;
}

.icon-3d-cta {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 76, 65, 0.24), rgba(0, 231, 255, 0.16));
}

@keyframes icon-3d-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translate3d(0, -6px, 0) rotateX(6deg) rotateY(-6deg);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.chat-bubble-user {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem 1.25rem 0.75rem 1.25rem;
}

.chat-bubble-ai {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(123, 47, 255, 0.12));
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 1.25rem 1.25rem 1.25rem 0.75rem;
}

#navbar {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

.mobile-menu-button {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.mobile-menu {
    margin: 0 1.5rem 1rem;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 15, 0.96);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    color: rgba(241, 246, 255, 0.9);
    font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-cta {
    margin-top: 0.35rem;
    color: #06111d !important;
    background: #fff;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wordmark {
    display: block;
    width: clamp(8.75rem, 14vw, 11.25rem);
    height: auto;
}

.footer-brand-wordmark {
    width: 6.5rem;
}

.platform-preview {
    position: relative;
    display: flex;
    min-height: 430px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #eef3f9;
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.36);
}

.platform-sidebar {
    width: 4.5rem;
    flex: 0 0 4.5rem;
    background: linear-gradient(180deg, #10203a, #07101f);
    border-right: 1px solid rgba(9, 17, 31, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.7rem;
    color: rgba(238, 244, 255, 0.72);
}

.platform-sidebar span,
.platform-brand-mark {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.platform-brand-mark {
    margin-bottom: 0.75rem;
    color: #c58a62;
    background: rgba(255, 255, 255, 0.05);
}

.platform-sidebar span.active {
    color: #fff;
    background: rgba(59, 88, 133, 0.78);
    box-shadow: 0 10px 28px rgba(10, 19, 36, 0.42);
}

.platform-screen {
    flex: 1;
    min-width: 0;
    color: #111827;
}

.platform-topbar {
    height: 4rem;
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.platform-search,
.platform-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #667085;
    font-weight: 600;
}

.platform-search {
    max-width: 22rem;
    height: 2.5rem;
    padding: 0 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
}

.platform-shop {
    color: #3b2d2a;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.03em;
    text-align: center;
}

.platform-user {
    justify-content: flex-end;
    color: #1f2937;
}

.platform-content {
    padding: 1.75rem 2rem 8rem;
}

.platform-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.platform-title-row h3 {
    margin: 0 0 0.25rem;
    color: #111827;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0;
}

.platform-title-row p {
    margin: 0;
    color: #667085;
    font-size: 1rem;
}

.platform-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    color: #1f2937;
    font-weight: 700;
}

.platform-filter-row span {
    padding: 0.55rem 0.8rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.platform-filter-row span:first-child {
    color: #fff;
    border-color: transparent;
    background: #223555;
    box-shadow: 0 8px 20px rgba(34, 53, 85, 0.28);
}

.platform-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.platform-metric {
    min-height: 7.4rem;
    padding: 1.25rem;
    border-radius: 0.85rem;
    color: #fff;
    background: linear-gradient(145deg, #121624, #090d18);
    box-shadow: 0 18px 36px rgba(7, 12, 24, 0.25);
}

.platform-metric p,
.platform-metric span {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.platform-metric strong {
    display: block;
    margin: 0.35rem 0;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.platform-metric span {
    color: #56c183;
    font-weight: 700;
}

.platform-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: 1rem;
}

.platform-chart {
    min-height: 13rem;
    padding: 1.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(25, 31, 45, 0.08);
}

.platform-chart h4 {
    margin: 0 0 1.25rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.bar-row {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    align-items: center;
    gap: 0.85rem;
    margin: 0.8rem 0;
    color: #1f2937;
    font-size: 0.85rem;
}

.bar-row i {
    display: block;
    width: var(--w);
    height: 1.15rem;
    border-radius: 0.2rem;
    background: linear-gradient(90deg, #45d5c8, #2eb5aa);
}

.donut-chart {
    width: 8rem;
    height: 8rem;
    margin: 0.25rem auto 1rem;
    border-radius: 9999px;
    background: conic-gradient(#42cda2 0 33%, #4d83e6 33% 75%, #9b6bea 75% 91%, #f39b32 91% 100%);
    position: relative;
}

.donut-chart::after {
    content: '';
    position: absolute;
    inset: 1.85rem;
    border-radius: inherit;
    background: #fff;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 700;
}

.platform-fade {
    position: absolute;
    inset: auto 0 0;
    height: 9rem;
    background: linear-gradient(180deg, transparent, var(--surface) 86%);
    pointer-events: none;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.feature-pill {
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#form-feedback {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

#form-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

#form-feedback.error {
    color: #fecaca;
}

#form-feedback.success {
    color: #86efac;
}

#lead-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    width: min(52rem, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 15, 0.96);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
}

.cookie-consent p {
    margin: 0;
    color: rgba(236, 244, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.cookie-actions a,
.cookie-actions button {
    border-radius: 9999px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 800;
}

.cookie-actions a {
    color: var(--brand-cyan);
}

.cookie-actions button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.cookie-actions button:last-child {
    color: #07111f;
    border-color: transparent;
    background: #fff;
}

.privacy-content h2 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.privacy-content p {
    margin: 0;
    color: rgba(236, 244, 255, 0.82);
    line-height: 1.75;
}

input, select {
    font-family: inherit;
}

@media (max-width: 768px) {
    .desktop-copy {
        display: none;
    }

    .mobile-copy {
        display: inline;
    }

    .section-copy {
        font-size: 1rem !important;
        line-height: 1.55;
    }

    .section-copy::after {
        width: 3.75rem;
        height: 0.12rem;
        margin-top: 0.75rem;
        opacity: 0.5;
    }

    .barber-blue,
    .barber-red,
    .barber-cyan,
    .barber-soft-blue,
    .barber-soft-red {
        color: rgba(244, 248, 255, 0.92) !important;
        text-shadow: none;
    }

    #solucao .glass-card p.text-gray-400,
    #recursos .glass-card p.text-gray-400,
    #plataforma .glass-card p.text-gray-400 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.45;
    }

    #recursos .glass-card,
    #plataforma .glass-card {
        padding: 1.15rem;
    }

    #recursos .icon-3d {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.75rem;
    }

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

    .platform-preview {
        min-height: 520px;
        border-radius: 1.1rem;
    }

    .platform-sidebar {
        width: 3.25rem;
        flex-basis: 3.25rem;
        padding: 0.75rem 0.45rem;
    }

    .platform-sidebar span,
    .platform-brand-mark {
        width: 2rem;
        height: 2rem;
    }

    .platform-topbar {
        height: auto;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .platform-shop {
        order: -1;
        text-align: left;
    }

    .platform-user {
        display: none;
    }

    .platform-content {
        padding: 1rem 1rem 8rem;
    }

    .platform-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .platform-filter-row {
        justify-content: flex-start;
    }

    .platform-metrics {
        grid-template-columns: 1fr;
    }

    .platform-metric {
        min-height: 6.25rem;
        padding: 1rem;
    }

    .platform-charts {
        grid-template-columns: 1fr;
    }

    .platform-chart {
        min-height: 11rem;
    }

    .bar-row {
        grid-template-columns: 6rem 1fr;
    }

    .cookie-consent {
        right: 0.75rem;
        bottom: 0.75rem;
        grid-template-columns: 1fr;
        width: calc(100vw - 1.5rem);
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions a,
    .cookie-actions button {
        flex: 1 1 auto;
        text-align: center;
    }
}
