:root {
    --red: #e31e24;
    --ink: #161616;
    --muted: #62676f;
    --line: #dde2e8;
    --soft: #f4f7f9;
    --white: #ffffff;
    --green: #20b15a;
    --shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px clamp(18px, 5vw, 72px);
    color: #fff;
    background: var(--ink);
    font-size: 13px;
}

.topbar a {
    font-weight: 700;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-mark {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
}

.whatsapp-mark::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 3.2A12.7 12.7 0 0 0 5.1 22.4L3.7 28.8l6.6-1.6A12.7 12.7 0 1 0 16 3.2Zm0 2.5a10.2 10.2 0 0 1 8.8 15.4 10.1 10.1 0 0 1-12.9 3.8l-.5-.3-3.9 1 1-3.8-.3-.5A10.2 10.2 0 0 1 16 5.7Zm-4.5 5.4c-.2 0-.6.1-.9.4-.3.4-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.5c.2.2 2.4 3.8 6 5.1 3 .9 3.6.7 4.3.6.7-.1 2.2-.9 2.5-1.8.3-.9.3-1.6.2-1.8-.1-.2-.3-.3-.7-.5l-2.5-1.2c-.3-.1-.6-.2-.8.2-.3.4-.9 1.2-1.1 1.4-.2.3-.4.3-.8.1-.4-.2-1.5-.5-2.8-1.7-1-1-1.7-2.1-2-2.5-.2-.4 0-.6.2-.8l.6-.7c.2-.2.2-.4.4-.6.1-.3.1-.5 0-.7l-1.1-2.5c-.3-.6-.6-.6-.8-.6h-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 3.2A12.7 12.7 0 0 0 5.1 22.4L3.7 28.8l6.6-1.6A12.7 12.7 0 1 0 16 3.2Zm0 2.5a10.2 10.2 0 0 1 8.8 15.4 10.1 10.1 0 0 1-12.9 3.8l-.5-.3-3.9 1 1-3.8-.3-.5A10.2 10.2 0 0 1 16 5.7Zm-4.5 5.4c-.2 0-.6.1-.9.4-.3.4-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.5c.2.2 2.4 3.8 6 5.1 3 .9 3.6.7 4.3.6.7-.1 2.2-.9 2.5-1.8.3-.9.3-1.6.2-1.8-.1-.2-.3-.3-.7-.5l-2.5-1.2c-.3-.1-.6-.2-.8.2-.3.4-.9 1.2-1.1 1.4-.2.3-.4.3-.8.1-.4-.2-1.5-.5-2.8-1.7-1-1-1.7-2.1-2-2.5-.2-.4 0-.6.2-.8l.6-.7c.2-.2.2-.4.4-.6.1-.3.1-.5 0-.7l-1.1-2.5c-.3-.6-.6-.6-.8-.6h-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(221, 226, 232, .8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #fff;
    background: var(--red);
    border-radius: 8px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.site-nav a,
.nav-dropdown > button {
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: grid;
    min-width: 265px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: var(--soft);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
}

.nav-cta,
.button.primary {
    color: #fff;
    background: var(--red);
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: var(--ink);
}

.hero-slides,
.hero-slide,
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    column-gap: clamp(70px, 8vw, 150px);
    min-height: 78vh;
    padding: clamp(80px, 10vw, 130px) clamp(18px, 5vw, 72px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 45%, rgba(227, 30, 36, .36), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .54), rgba(0, 0, 0, .24));
}

.hero-bg-access {
    background-image: url("https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1800&q=80");
}

.hero-bg-attendance {
    background-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80");
}

.hero-bg-entrance {
    background-image: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=80");
}

.hero-device {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.hero-device img {
    width: min(235px, 43%);
    aspect-ratio: 1;
    object-fit: contain;
    padding: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.hero-device img:nth-child(2) {
    transform: translateY(54px);
}

.hero-content,
.page-hero-content,
.product-copy {
    position: relative;
    max-width: 760px;
}

.hero-content {
    z-index: 2;
    color: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fff;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: 72px;
    line-height: .98;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.hero-content > p:not(.eyebrow),
.page-hero-content p,
.product-copy p {
    max-width: 650px;
    font-size: 18px;
}

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

.hero-controls {
    position: absolute;
    z-index: 5;
    left: clamp(18px, 5vw, 72px);
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 42px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
    cursor: pointer;
}

.hero-controls button.is-active {
    background: var(--red);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-strip span {
    min-height: 76px;
    display: grid;
    place-items: center;
    padding: 16px;
    border-right: 1px solid var(--line);
    text-align: center;
    font-weight: 800;
}

.section {
    padding: clamp(70px, 9vw, 115px) clamp(18px, 5vw, 72px);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.intro-grid,
.category-grid,
.solution-list,
.product-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature,
.solution-list article,
.detail-block {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.feature span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    place-items: center;
    color: #fff;
    background: var(--red);
    border-radius: 8px;
    font-weight: 800;
}

.category-band,
.solutions {
    background: var(--soft);
}

.category-band .section-heading p:not(.eyebrow) {
    max-width: 780px;
    color: var(--muted);
}

.seo-section {
    background: #fff;
}

.seo-section .section-heading p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
}

.keyword-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.keyword-strip span {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--soft);
    font-size: 14px;
    font-weight: 800;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.faq-item {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.category-grid {
    grid-template-columns: repeat(4, 1fr);
    perspective: 1400px;
    align-items: stretch;
}

.category-card {
    display: grid;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    padding: 24px;
    color: #fff;
    border-radius: 8px;
    isolation: isolate;
    transform-style: preserve-3d;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .16);
    transition: transform .35s ease, box-shadow .35s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s ease, filter .35s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .24) 36%, rgba(0, 0, 0, .9)),
        linear-gradient(135deg, rgba(227, 30, 36, .34), transparent 46%);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    transform: translateZ(34px);
}

.category-card:hover {
    transform: rotateX(5deg) rotateY(-7deg) translateY(-10px);
    box-shadow: 0 38px 90px rgba(15, 23, 42, .28);
}

.category-card:hover img {
    transform: scale(1.1);
    filter: saturate(1.12) contrast(1.05);
}

.category-number {
    position: relative;
    z-index: 1;
    align-self: start;
    justify-self: end;
    color: rgba(255, 255, 255, .68);
    font-size: 54px;
    line-height: 1;
    font-weight: 800;
    transform: translateZ(42px);
}

.category-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-self: end;
    gap: 12px;
    transform: translateZ(54px);
}

.category-card-content span {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.category-card-content p {
    margin: 0;
}

.category-card-content strong {
    display: inline-flex;
    width: fit-content;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
}

.blog-section {
    background: #fff;
}

.blog-section .section-heading p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
}

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

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

.blog-card {
    display: grid;
    min-height: 360px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.blog-card time {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-card p {
    color: var(--muted);
}

.blog-card a {
    align-self: end;
    color: var(--red);
    font-weight: 800;
}

.blog-hero {
    background: #f7f9fb;
}

.article-page {
    padding: clamp(70px, 9vw, 115px) clamp(18px, 5vw, 72px);
    background: #fff;
}

.article-header,
.article-body,
.article-cta {
    max-width: 920px;
}

.article-header {
    margin-bottom: 46px;
}

.article-header p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.article-header time {
    color: var(--red);
    font-weight: 800;
}

.article-body {
    display: grid;
    gap: 26px;
}

.article-section {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.article-section p {
    color: var(--muted);
    font-size: 17px;
}

.article-cta {
    margin-top: 44px;
    padding: 30px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
}

.article-cta .eyebrow {
    color: #fff;
}

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

.product-card {
    display: grid;
    grid-template-rows: 210px 1fr;
    min-height: 480px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
    background: #f7f9fb;
}

.product-card div {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.product-card small {
    color: var(--red);
    font-weight: 800;
}

.product-card h2,
.product-card h3 {
    margin-top: 8px;
}

.product-card p {
    color: var(--muted);
}

.product-card a {
    margin-top: auto;
    color: var(--red);
    font-weight: 800;
}

.page-hero,
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    align-items: center;
    background: var(--soft);
}

.page-hero img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.page-hero-content,
.product-copy {
    padding: clamp(38px, 6vw, 74px);
}

.product-visual {
    display: grid;
    min-height: 560px;
    place-items: center;
    padding: clamp(30px, 6vw, 70px);
    background: #f7f9fb;
}

.product-visual img {
    width: min(520px, 100%);
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #fff;
}

.product-details {
    grid-template-columns: 1fr 1fr;
}

.detail-block ul {
    margin: 18px 0 0;
    padding-left: 18px;
}

.detail-block li {
    margin: 10px 0;
}

.contact-section {
    background: var(--ink);
}

.contact-panel {
    max-width: 860px;
    color: #fff;
}

.contact-panel .eyebrow {
    color: #fff;
}

.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding: 44px clamp(18px, 5vw, 72px);
    color: #d9dee4;
    background: #111;
}

.site-footer h2 {
    font-size: 18px;
}

.footer-credit {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-credit p {
    margin: 0;
}

.footer-credit a {
    color: #fff;
    font-weight: 800;
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 17px;
    color: #fff;
    background: #25d366;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.floating-whatsapp .whatsapp-mark {
    background: #fff;
}

.floating-whatsapp .whatsapp-mark::before {
    background: #25d366;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

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

@media (max-width: 1050px) {
    .product-grid,
    .blog-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 18px;
        align-items: stretch;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
    }
}

@media (max-width: 760px) {
    .topbar,
    .hero-actions,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
    }

    .hero {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        column-gap: 0;
        align-content: end;
        min-height: 720px;
        padding-bottom: 92px;
    }

    .hero-device {
        order: -1;
        justify-content: flex-start;
        margin-bottom: 26px;
    }

    .hero-device img {
        width: min(172px, 45%);
        padding: 12px;
    }

    .hero-device img:nth-child(2) {
        transform: translateY(22px);
    }

    .hero-bg::after {
        background:
            radial-gradient(circle at 55% 24%, rgba(227, 30, 36, .32), transparent 34%),
            linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .58), rgba(0, 0, 0, .2));
    }

    .intro-grid,
    .solution-list,
    .faq-list,
    .blog-grid,
    .product-grid,
    .category-grid,
    .product-details,
    .page-hero,
    .product-hero,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .page-hero img,
    .product-visual {
        min-height: 340px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }
}
