:root {
    --ink: #13111f;
    --muted: #5f6472;
    --brand: #6d28d9;
    --brand-dark: #3b0764;
    --brand-soft: #f4efff;
    --accent: #f59e0b;
    --accent-dark: #ea580c;
    --line: rgba(19, 17, 31, 0.1);
    --shadow-sm: 0 10px 30px rgba(19, 17, 31, 0.08);
    --shadow-md: 0 20px 55px rgba(19, 17, 31, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.1), transparent 32rem),
        linear-gradient(180deg, #fbfbfe 0%, #f7f7fb 100%);
    font-family: "Inter", sans-serif;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 48%, #db2777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary,
.btn-secondary,
nav .h-16 > a[href^="#cta"],
button > a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary,
button > a.btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover,
button > a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

button:has(> a.btn-primary) {
    display: inline-flex;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: transparent !important;
}

nav.sticky {
    border-bottom: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 8px 30px rgba(19, 17, 31, 0.08) !important;
    backdrop-filter: blur(18px);
}

nav .h-16 {
    min-height: 4.5rem;
    gap: 1rem;
}

nav img {
    width: 2.25rem;
    height: 2.25rem;
}

nav .text-2xl {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

nav .hidden.md\:flex a {
    position: relative;
    padding: 0.35rem 0;
    color: #424657;
    white-space: nowrap;
}

nav .hidden.md\:flex a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.25rem;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    border-radius: 999px;
    background: var(--brand);
    transition: transform 180ms ease;
}

nav .hidden.md\:flex a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    border: 1px solid rgba(109, 40, 217, 0.14);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    color: var(--brand);
    background: rgba(244, 239, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.back-home-link:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 40, 217, 0.32);
    background: #fff;
}

nav .h-16 > a[href^="#cta"] {
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.22);
}

.mobile-menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 8px 20px rgba(19, 17, 31, 0.08);
}

.mobile-menu-toggle span,
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
    content: "";
    display: block;
    width: 1.05rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle {
    flex-direction: column;
    gap: 0.28rem;
}

.mobile-menu-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"]::before {
    transform: translateY(0.38rem) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-0.38rem) rotate(-45deg);
}

.mobile-menu-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

.mobile-menu-panel.is-open {
    display: block;
}

.mobile-menu-panel .mobile-menu-inner {
    display: grid;
    gap: 0.55rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.9rem 1rem 1.15rem;
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    color: #343849;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-panel a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lead-modal.is-open {
    display: flex;
}

.lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 7, 20, 0.68);
    backdrop-filter: blur(10px);
}

.lead-modal__dialog {
    position: relative;
    width: min(100%, 34rem);
    max-height: min(92vh, 48rem);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.lead-modal__header {
    padding: 1.6rem 1.6rem 1rem;
}

.lead-modal__eyebrow {
    margin-bottom: 0.5rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead-modal__title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.05;
}

.lead-modal__text {
    margin-top: 0.75rem;
    color: var(--muted);
    line-height: 1.55;
}

.lead-modal__close {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.lead-form {
    display: grid;
    gap: 0.9rem;
    padding: 0 1.6rem 1.6rem;
}

.lead-form label {
    display: grid;
    gap: 0.35rem;
    color: #343849;
    font-size: 0.9rem;
    font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(19, 17, 31, 0.14);
    border-radius: 0.85rem;
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    background: #fbfbfe;
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lead-form textarea {
    min-height: 6rem;
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: rgba(109, 40, 217, 0.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

.lead-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.lead-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.28);
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.lead-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.35);
}

.lead-form__note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

body.lead-modal-open {
    overflow: hidden;
}

body > section:first-of-type {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.28), transparent 22rem),
        radial-gradient(circle at 78% 15%, rgba(124, 58, 237, 0.38), transparent 28rem),
        linear-gradient(135deg, #19072f 0%, #3b0764 52%, #111827 100%) !important;
}

body > section:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000, transparent 78%);
}

body > section:first-of-type h1 {
    max-width: 11ch;
    letter-spacing: 0;
    font-size: clamp(2.55rem, 7vw, 4.8rem) !important;
    line-height: 0.95 !important;
}

body > section:first-of-type p {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
}

body > section:first-of-type img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.35rem !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36) !important;
}

body > section:first-of-type .hidden.md\:block {
    display: block !important;
}

section {
    scroll-margin-top: 5.5rem;
}

section h2 {
    letter-spacing: 0;
    font-size: clamp(2rem, 4vw, 3.1rem) !important;
    line-height: 1.04 !important;
}

section .text-xl.text-gray-600,
section .text-xl.text-gray-300 {
    line-height: 1.65;
}

.card-nicho,
section div[class*="shadow-lg"] {
    border: 1px solid rgba(19, 17, 31, 0.08);
    border-radius: 1.1rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-nicho:hover,
section div[class*="shadow-lg"]:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 40, 217, 0.22);
    box-shadow: var(--shadow-md) !important;
}

.card-nicho {
    display: flex !important;
    min-height: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem !important;
}

.card-nicho img {
    aspect-ratio: 4 / 3;
    height: auto !important;
    overflow: hidden;
}

.card-nicho ul {
    flex: 1;
}

.card-nicho .text-4xl,
.card-nicho .text-purple-600,
section div[class*="text-5xl"] {
    color: var(--brand) !important;
}

section[id="para-quem"] .grid {
    grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr)) !important;
}

section[id="o-problema"],
section[id="solucao"],
section[id="faq"] {
    background:
        linear-gradient(180deg, rgba(244, 239, 255, 0.46), rgba(255, 255, 255, 0.8)) !important;
}

details summary {
    gap: 1rem;
}

#backToTop {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, var(--brand), #4c1d95) !important;
}

footer a[href="index.html"]::before {
    content: "";
}

@media (max-width: 980px) {
    nav .hidden.md\:flex {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    nav .h-16 {
        min-height: 4rem;
    }
}

@media (max-width: 760px) {
    body > section:first-of-type {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    body > section:first-of-type h1 {
        max-width: 100%;
    }

    body > section:first-of-type .flex.flex-col.sm\:flex-row {
        align-items: stretch;
    }

    body > section:first-of-type .btn-primary,
    body > section:first-of-type .btn-secondary,
    body > section:first-of-type button {
        width: 100%;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    section h2 {
        margin-bottom: 1rem !important;
    }

    .text-center.mb-16,
    h2.text-center.mb-16 {
        margin-bottom: 2.25rem !important;
    }

    .grid {
        gap: 1.25rem !important;
    }

    .p-8 {
        padding: 1.35rem !important;
    }

    .p-12 {
        padding: 1.35rem !important;
    }

    .text-8xl {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 560px) {
    nav .back-home-link {
        display: none;
    }

    nav .h-16 > a[href^="#cta"] {
        display: none;
    }

    nav .h-16 {
        gap: 0.65rem;
    }

    nav .text-2xl {
        font-size: 1.22rem;
    }

    body > section:first-of-type h1 {
        font-size: clamp(2.25rem, 13vw, 3.6rem) !important;
    }

    .btn-primary,
    .btn-secondary,
    button > a.btn-primary {
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    footer .flex.justify-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .lead-modal {
        align-items: flex-end;
        padding: 0;
    }

    .lead-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .lead-modal__header,
    .lead-form {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .lead-form__grid {
        grid-template-columns: 1fr;
    }
}
