:root {
    --navy: #102f55;
    --navy-deep: #091d35;
    --blue: #2453c6;
    --blue-bright: #3168ed;
    --green: #16bd8a;
    --cyan: #18a6c7;
    --pink: #e84486;
    --orange: #ef863d;
    --ink: #111827;
    --muted: #5d6878;
    --line: #dfe5ec;
    --surface: #f4f7fa;
    --white: #fff;
    --radius: 8px;
    --shadow: 0 14px 34px rgba(17, 39, 68, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    z-index: 30;
    inset: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(18, 38, 63, 0.1);
}

.site-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 72px;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.28rem;
}

.brand img {
    width: 38px;
    height: 38px;
}

.nav-content,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-content {
    justify-content: center;
    gap: 30px;
    font-size: 0.93rem;
    font-weight: 600;
}

.nav-content a:hover {
    color: #58dfbb;
}

.nav-actions {
    gap: 10px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font-size: 1.25rem;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--blue-bright);
    box-shadow: 0 8px 22px rgba(29, 88, 221, 0.26);
}

.button-primary:hover {
    background: #1d4fc3;
}

.button-ghost {
    border-color: currentColor;
}

.button-light {
    color: var(--navy);
    background: var(--white);
}

.button-large {
    min-height: 52px;
    padding-inline: 24px;
}

.hero {
    position: relative;
    min-height: min(820px, 88vh);
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--navy-deep) url("../images/comuniva-hero-lideres.png") center center / cover no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 25, 49, 0.95) 0%, rgba(6, 29, 55, 0.83) 42%, rgba(7, 31, 54, 0.12) 72%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    padding-top: 86px;
}

.hero-content > * {
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.8rem, 8vw, 7.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-lead {
    margin: 25px 0 0;
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-note {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.quick-proof {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

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

.proof-grid article {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--line);
}

.proof-grid article:first-child {
    border-left: 1px solid var(--line);
}

.proof-grid i {
    color: var(--blue);
    font-size: 1.45rem;
}

.proof-grid strong,
.proof-grid span {
    display: block;
}

.proof-grid strong {
    font-size: 0.95rem;
}

.proof-grid span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.section {
    padding: 92px 0;
}

.section-muted {
    background: var(--surface);
}

.section-dark {
    color: var(--white);
    background: var(--navy-deep);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading.narrow {
    max-width: 780px;
}

.section-heading h2,
.product-copy h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.section-heading > p:not(.eyebrow),
.product-copy > p,
.final-cta p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading.light > p:not(.eyebrow) {
    color: #bdc9d7;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.audience-item {
    padding: 0 20px 0 0;
}

.icon-wrap {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: var(--radius);
    font-size: 1.15rem;
}

.icon-wrap.green {
    color: #067d5a;
    background: #dff8ef;
}

.icon-wrap.pink {
    color: #bd2e6a;
    background: #fde5ef;
}

.icon-wrap.cyan {
    color: #087894;
    background: #dff6fa;
}

.icon-wrap.orange {
    color: #ad581e;
    background: #feecdf;
}

.audience-item h3 {
    margin: 20px 0 8px;
}

.audience-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    align-items: center;
    gap: 72px;
}

.product-copy > p {
    margin: 20px 0;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.check-list i {
    margin-top: 5px;
    color: var(--green);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-weight: 800;
}

.product-preview {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.preview-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.preview-caption span {
    padding: 8px 11px;
    border-radius: 5px;
    color: var(--navy);
    background: #edf3fb;
    font-size: 0.78rem;
    font-weight: 700;
}

.preview-caption i {
    margin-right: 5px;
    color: var(--blue);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.steps article {
    display: flex;
    min-height: 210px;
    gap: 20px;
    padding: 38px 30px;
    border-right: 1px solid var(--line);
}

.steps article:first-child {
    border-left: 1px solid var(--line);
}

.steps article > span {
    flex: 0 0 auto;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--navy);
    font-weight: 800;
}

.steps h3 {
    margin: 4px 0 8px;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.price-card {
    position: relative;
    display: flex;
    min-height: 420px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid #36506e;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
}

.price-card.featured {
    border: 2px solid var(--green);
}

.popular {
    position: absolute;
    top: -13px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--navy-deep);
    background: var(--green);
    font-size: 0.72rem;
    font-weight: 800;
}

.plan-name {
    margin: 0;
    color: var(--blue);
    font-weight: 800;
}

.price-card h3 {
    display: inline;
    margin: 10px 5px 0 0;
    font-size: 2.25rem;
}

.price-card > div > span {
    color: var(--muted);
    font-size: 0.82rem;
}

.price-card ul {
    display: grid;
    flex: 1;
    gap: 12px;
    margin: 28px 0;
    padding-left: 19px;
    color: #3e4855;
}

.button-outline-dark {
    border-color: var(--blue);
    color: var(--blue);
}

.plans-note {
    margin: 22px 0 0;
    color: #b9c7d7;
    text-align: center;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 72px;
}

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

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 22px 40px 22px 0;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-list summary::after {
    position: absolute;
    top: 20px;
    right: 4px;
    content: "+";
    color: var(--blue);
    font-size: 1.45rem;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    margin: -4px 0 22px;
    color: var(--muted);
}

.final-cta {
    padding: 62px 0;
    color: var(--white);
    background: var(--blue);
}

.final-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.final-cta h2 {
    max-width: 720px;
}

.final-cta p:not(.eyebrow) {
    margin-bottom: 0;
    color: #dbe5ff;
}

.site-footer {
    padding: 64px 0 24px;
    color: #d4deea;
    background: #07182b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 44px;
}

.light-brand {
    color: var(--white);
}

.footer-brand p {
    max-width: 390px;
}

.footer-brand small {
    color: #8393a5;
}

.footer-grid h3 {
    margin: 6px 0 18px;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid #1e3249;
    color: #8090a2;
    font-size: 0.78rem;
}

@media (max-width: 960px) {
    .site-nav {
        grid-template-columns: auto 1fr auto;
    }

    .menu-toggle {
        display: inline-grid;
        justify-self: end;
        place-items: center;
    }

    .nav-content,
    .nav-actions {
        display: none;
    }

    .nav-content.active {
        position: fixed;
        inset: 72px 0 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 28px 24px;
        color: var(--ink);
        background: var(--white);
    }

    .nav-content.active a {
        padding: 17px 4px;
        border-bottom: 1px solid var(--line);
    }

    .site-header:has(.nav-content.active) {
        color: var(--ink);
        background: var(--white);
    }

    .hero {
        min-height: 760px;
        background-position: 62% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(6, 25, 49, 0.96), rgba(6, 29, 55, 0.75));
    }

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

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

    .product-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

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

    .steps article,
    .steps article:first-child {
        min-height: 0;
        border: 0;
        border-bottom: 1px solid var(--line);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-nav {
        min-height: 64px;
    }

    .nav-content.active {
        inset-block-start: 64px;
    }

    .brand {
        font-size: 1.1rem;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: 740px;
        align-items: flex-end;
        background-position: 67% center;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(5, 23, 45, 0.98) 6%, rgba(6, 27, 50, 0.78) 65%, rgba(5, 24, 46, 0.3));
    }

    .hero-content {
        padding: 110px 0 64px;
    }

    .hero h1 {
        font-size: 4.25rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .proof-grid,
    .audience-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid article {
        min-height: 80px;
        border: 0;
        border-bottom: 1px solid var(--line);
    }

    .proof-grid article:first-child {
        border-left: 0;
    }

    .section {
        padding: 66px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .audience-item {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 15px;
        padding: 0;
    }

    .audience-item .icon-wrap {
        grid-row: 1 / 3;
    }

    .audience-item h3 {
        margin: 0 0 5px;
    }

    .product-preview {
        padding: 14px;
    }

    .steps article {
        padding: 28px 4px;
    }

    .final-cta-content {
        align-items: stretch;
        flex-direction: column;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

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

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

    * {
        transition: none !important;
    }
}

.inner-page {
    background: var(--surface);
}

.inner-page .site-header {
    position: fixed;
}

.inner-hero {
    padding: 156px 0 82px;
    color: var(--white);
    background:
        linear-gradient(105deg, rgba(9, 29, 53, 0.97), rgba(36, 83, 198, 0.92)),
        url("../images/comuniva-hero-lideres.png") center 42% / cover;
}

.inner-hero .eyebrow,
.final-cta .eyebrow {
    color: #77e8ce;
}

.inner-hero h1 {
    max-width: 850px;
    margin: 8px 0 20px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.inner-hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
}

.narrow {
    max-width: 920px;
}

.story-layout,
.company-panel,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 7vw, 100px);
}

.story-layout h2,
.company-panel h2 {
    margin-top: 8px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.12;
}

.prose p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1.05rem;
}

.surface-section {
    background: var(--white);
}

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

.principles-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.principles-grid h3 {
    margin: 18px 0 8px;
}

.principles-grid p {
    margin: 0;
    color: var(--muted);
}

.company-panel {
    align-items: start;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.company-panel dl {
    margin: 0;
}

.company-panel dl div {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.company-panel dl div:last-child {
    border-bottom: 0;
}

.company-panel dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.company-panel dd {
    margin: 0;
    font-weight: 650;
}

.company-panel dd a,
.contact-options a,
.contact-email {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-layout {
    align-items: start;
}

.contact-primary {
    padding: clamp(28px, 5vw, 54px);
    border-radius: var(--radius);
    color: var(--white);
    background: var(--navy);
}

.contact-primary .eyebrow {
    margin-top: 22px;
    color: #77e8ce;
}

.contact-primary h2 {
    margin: 7px 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.contact-primary p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-primary .button {
    margin: 14px 0 20px;
}

.contact-primary .contact-email {
    display: block;
    color: var(--white);
}

.contact-options {
    display: grid;
    gap: 14px;
}

.contact-options article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.contact-options article > i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 6px;
    color: var(--blue);
    background: #eaf0ff;
}

.contact-options h3,
.contact-options p {
    margin: 0 0 7px;
}

.contact-options p {
    color: var(--muted);
}

@media (max-width: 760px) {
    .inner-hero {
        padding: 124px 0 64px;
    }

    .story-layout,
    .company-panel,
    .contact-layout,
    .principles-grid {
        grid-template-columns: 1fr;
    }

    .story-layout,
    .company-panel,
    .contact-layout {
        gap: 26px;
    }
}
