:root {
    --ink: #27161d;
    --brand: #bf1e2e;
    --brand-strong: #9f1725;
    --accent: #f1592a;
    --accent-soft: #f7a435;
    --soft: #fff3ee;
    --muted: #6c4f59;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: linear-gradient(150deg, #fff8f6 0%, #fff0ea 56%, #fff7ef 100%);
    min-height: 100vh;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 10%, rgba(191, 30, 46, 0.17) 0%, transparent 24%),
        radial-gradient(circle at 90% 12%, rgba(241, 89, 42, 0.2) 0%, transparent 32%);
}

.container {
    width: min(1140px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(12, 20, 34, 0.08);
    z-index: 20;
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-name {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-tag {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.menu-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.menu-backdrop {
    display: none;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(12, 20, 34, 0.14);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(191, 30, 46, 0.48);
    outline-offset: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.42rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav .is-active::after {
    transform: scaleX(1);
}

.nav-cta {
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.68rem 1.15rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: all 180ms ease;
}

.button-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(191, 30, 46, 0.28);
}

.button-primary:hover {
    background: var(--brand-strong);
    transform: translateY(-1px);
}

.button-outline {
    border-color: rgba(12, 20, 34, 0.18);
    color: var(--ink);
    background: #fff;
}

.button-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.button-wa {
    margin-top: 0.85rem;
    background: linear-gradient(145deg, var(--brand) 0%, var(--accent) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.button-wa:hover {
    background: linear-gradient(145deg, var(--brand-strong) 0%, var(--accent) 100%);
}

.card a.button-wa,
.card a.button-wa:hover {
    color: #fff;
    text-decoration: none;
}

.button-wa::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    margin-right: 0.4rem;
    animation: wa-dot-pulse 1.2s ease-in-out infinite;
}

.light-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    background: transparent;
}

.light-outline:hover {
    border-color: #fff;
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 0 3.5rem;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.highlight h2 {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.hero-copy p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.72;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 800;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 20, 34, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 55px rgba(11, 18, 31, 0.09);
}

.hero-panel img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.hero-panel ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    line-height: 1.65;
}

.cta-row {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.section {
    padding: 2rem 0 3rem;
}

.tight-top {
    padding-top: 3rem;
}

.section-heading {
    margin-bottom: 1.4rem;
}

.section-heading .lead {
    margin: 0;
    color: var(--muted);
}

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

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

.card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(12, 20, 34, 0.08);
    padding: 1.2rem;
    box-shadow: 0 20px 45px rgba(18, 25, 43, 0.06);
    animation: rise-in 0.55s ease both;
}

.card:nth-child(2) {
    animation-delay: 70ms;
}

.card:nth-child(3) {
    animation-delay: 140ms;
}

.card:nth-child(4) {
    animation-delay: 210ms;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.67;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blog-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.blog-meta-lg {
    margin-bottom: 1rem;
}

.blog-article {
    background: var(--card);
    border-radius: 22px;
    border: 1px solid rgba(12, 20, 34, 0.08);
    padding: 1.35rem;
    box-shadow: 0 20px 45px rgba(18, 25, 43, 0.06);
}

.blog-article h1 {
    margin: 0 0 0.5rem;
    font-family: "Sora", sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.blog-content {
    color: #3c2730;
    line-height: 1.75;
}

.blog-content p {
    margin-top: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-content h2,
.blog-content h3 {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.02em;
}

.feature-list {
    margin: 0.8rem 0 0;
    padding-left: 1rem;
    color: var(--muted);
    line-height: 1.65;
}

.card a {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--brand-strong);
    font-weight: 700;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.tag {
    display: inline-block;
    margin-top: 0.85rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(241, 89, 42, 0.14);
    color: var(--brand-strong);
}

.highlight {
    background: linear-gradient(160deg, #bf1e2e 0%, #f1592a 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.65rem;
    box-shadow: 0 20px 45px rgba(146, 22, 36, 0.32);
}

.highlight p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.logo-card {
    min-height: 84px;
    border-radius: 14px;
    border: 1px dashed rgba(12, 20, 34, 0.18);
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted);
}

.logo-card img.client-logo {
    width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.plan-link {
    display: inline-block;
    margin-top: 0.8rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--brand-strong);
}

.alert-success,
.alert-error {
    margin: 0.8rem 0 0;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(241, 89, 42, 0.14);
    color: var(--brand-strong);
}

.alert-error {
    background: rgba(153, 30, 30, 0.12);
    color: #8f1b1b;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1rem;
}

.contact-summary {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-company {
    margin: 0;
}

.contact-info {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.62rem;
}

.contact-info li {
    padding: 0.68rem 0.78rem;
    border-radius: 12px;
    border: 1px solid rgba(12, 20, 34, 0.1);
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 0.18rem;
}

.contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    color: var(--muted);
}

.contact-info a {
    display: inline;
    margin-top: 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    word-break: break-word;
}

.contact-info a:hover {
    color: var(--brand-strong);
    text-decoration: underline;
}

.contact-wa {
    margin-top: 0.2rem;
    align-self: flex-start;
    color: #fff;
}

.contact-form {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.6rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(12, 20, 34, 0.15);
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.site-footer {
    border-top: 1px solid rgba(12, 20, 34, 0.1);
    margin-top: 3rem;
    padding: 2.2rem 0 1.3rem;
    background: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.2rem;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 0.5rem;
    font-family: "Sora", sans-serif;
}

.footer-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.footer-grid ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.social-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(191, 30, 46, 0.24);
    background: rgba(241, 89, 42, 0.09);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 180ms ease;
}

.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(2px);
    opacity: 0;
    pointer-events: none;
    background: #2c1a20;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: opacity 150ms ease, transform 150ms ease;
}

.social-link:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transform: translateY(-1px);
}

.social-link:hover::after,
.social-link:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wa-float {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.9rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--brand) 0%, var(--accent) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 32px rgba(159, 23, 37, 0.34);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.wa-float:hover {
    transform: translateY(calc(-50% - 1px));
    box-shadow: 0 22px 38px rgba(159, 23, 37, 0.4);
    filter: saturate(1.06);
}

.wa-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.wa-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    max-width: 200px;
}

.wa-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.wa-promo {
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.92);
    animation:
        wa-typing 4.8s steps(28, end) infinite,
        wa-caret 600ms step-end infinite;
}

@keyframes wa-typing {
    0% {
        width: 0;
    }

    35% {
        width: 27ch;
    }

    65% {
        width: 27ch;
    }

    100% {
        width: 0;
    }
}

@keyframes wa-typing-mobile {
    0% {
        width: 0;
    }

    35% {
        width: 16ch;
    }

    65% {
        width: 16ch;
    }

    100% {
        width: 0;
    }
}

@keyframes wa-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: rgba(255, 255, 255, 0.92);
    }
}

@keyframes wa-dot-pulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.wa-float:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.copyright {
    margin: 1rem auto 0;
    width: min(1140px, calc(100% - 2.5rem));
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(12, 20, 34, 0.08);
    padding-top: 0.8rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-shell {
        position: relative;
        min-height: 74px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        position: relative;
        z-index: 45;
    }

    .menu-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100dvh;
        width: min(86vw, 360px);
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 5.3rem 1rem 1.1rem;
        border-radius: 0;
        border-left: 1px solid rgba(12, 20, 34, 0.12);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -22px 0 42px rgba(27, 19, 22, 0.2);
        transform: translateX(104%);
        transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 42;
        overflow-y: auto;
        pointer-events: none;
    }

    .site-header.menu-open .menu-panel {
        transform: translateX(0);
        pointer-events: auto;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        margin: 0;
        padding: 0;
        background: rgba(25, 18, 21, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
        z-index: 35;
    }

    .site-header.menu-open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.42rem;
    }

    .main-nav a {
        width: 100%;
        padding: 0.28rem 0.1rem;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a.is-active {
        color: var(--brand-strong);
    }

    .nav-cta {
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
    }

    .card-grid,
    .blog-grid,
    .logo-wall,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

body.menu-open-lock {
    overflow: hidden;
}

@media (max-width: 680px) {
    .container {
        width: min(1140px, calc(100% - 1.4rem));
    }

    .brand-tag {
        display: none;
    }

    .site-header {
        position: static;
    }

    .contact-wa {
        width: 100%;
    }

    .wa-float {
        right: 0.7rem;
        top: auto;
        bottom: 0.7rem;
        transform: none;
        max-width: calc(100vw - 1.4rem);
        padding: 0.58rem 0.74rem;
        border-radius: 14px;
    }

    .wa-float:hover {
        transform: translateY(-1px);
    }

    .wa-copy {
        max-width: 155px;
    }

    .wa-title {
        font-size: 0.68rem;
    }

    .wa-promo {
        display: block;
        font-size: 0.64rem;
        animation:
            wa-typing-mobile 4.4s steps(17, end) infinite,
            wa-caret 600ms step-end infinite;
    }
}

@media (hover: none),
(pointer: coarse) {
    .wa-float {
        right: 0.7rem;
        top: auto;
        bottom: calc(0.7rem + env(safe-area-inset-bottom));
        transform: none;
        max-width: calc(100vw - 1.4rem);
        padding: 0.58rem 0.74rem;
        border-radius: 14px;
    }

    .wa-float:hover {
        transform: none;
    }

    .wa-copy {
        max-width: 155px;
    }

    .wa-title {
        font-size: 0.68rem;
    }

    .wa-promo {
        display: block;
        font-size: 0.64rem;
        animation:
            wa-typing-mobile 4.4s steps(17, end) infinite,
            wa-caret 600ms step-end infinite;
    }
}
