:root {
    --bg: #050505;
    --bg-soft: #0b0b0f;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.16);
    --text: #f7f7fb;
    --muted: #a7a7b6;
    --red: #ff2b2b;
    --red-bright: #ff4d4d;
    --red-soft: rgba(255, 43, 43, 0.2);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --glow: 0 0 26px rgba(255, 43, 43, 0.32);
    --radius: 26px;
    --container: min(1200px, calc(100% - 32px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 43, 43, 0.16), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255, 43, 43, 0.12), transparent 22%),
        linear-gradient(180deg, #070707 0%, #050505 100%);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    position: relative;
    isolation: isolate;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 88px 88px;
    opacity: 0.12;
    pointer-events: none;
    z-index: -2;
}

.page-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
    z-index: -1;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d4d4de;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading h2,
.hero-copy h1,
.subhero-copy h1,
.cta-banner h2 {
    margin: 16px 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 0.98;
}

.section-heading h2 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.section-heading p,
.hero-copy p,
.subhero-copy p,
.card p,
.testimonial-card p,
.contact-copy p,
.footer-copy p,
.footer-copy span,
.project-overlay p {
    color: var(--muted);
    line-height: 1.7;
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled {
    padding: 12px 0;
}

.navbar {
    width: var(--container);
    margin: 0 auto;
    padding: 16px 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(6, 6, 8, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.26em;
}

.logo span {
    color: var(--red-bright);
    text-shadow: 0 0 18px rgba(255, 77, 77, 0.72);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.84);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
    transition: transform 0.35s ease;
}

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

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, #ff4040, #b90000);
    box-shadow: 0 0 30px rgba(255, 43, 43, 0.34);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.button-primary:hover,
.button-secondary:hover {
    box-shadow: 0 0 38px rgba(255, 43, 43, 0.36);
    border-color: rgba(255, 77, 77, 0.42);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video,
.hero-overlay,
.hero-particles,
.hero-three {
    position: absolute;
    inset: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(0.72);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.72) 44%, rgba(5, 5, 5, 0.88) 100%),
        radial-gradient(circle at 70% 30%, rgba(255, 43, 43, 0.18), transparent 24%);
}

.hero-particles canvas,
.hero-three canvas {
    width: 100%;
    height: 100%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    max-width: 700px;
}

.hero-copy p {
    max-width: 600px;
    font-size: 1.08rem;
}

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

.hero-visual {
    position: relative;
    min-height: 640px;
}

.hero-orbital {
    position: absolute;
    inset: 0;
    border-radius: 40px;
}

.floating-panel {
    position: absolute;
    padding: 16px 18px;
    min-width: 160px;
    border-radius: 20px;
    color: #fff;
    box-shadow: var(--glow);
}

.floating-panel strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.floating-panel span {
    color: #d6d6de;
    font-size: 0.92rem;
}

.panel-seo { top: 12%; left: 4%; }
.panel-ads { top: 20%; right: 2%; }
.panel-automation { bottom: 22%; left: 0; }
.panel-analytics { bottom: 10%; right: 6%; }

.mini-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.mini-kpi,
.card,
.testimonial-card,
.stat-card,
.contact-card,
.subhero-panel,
.about-panel {
    padding: 28px;
    border-radius: 26px;
}

.mini-kpi strong,
.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
}

.cards-grid {
    display: grid;
    gap: 24px;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-card,
.testimonial-card,
.stat-card,
.cta-banner {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover,
.project-card:hover,
.testimonial-card:hover,
.stat-card:hover,
.cta-banner:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 77, 77, 0.36);
    box-shadow: 0 22px 60px rgba(255, 43, 43, 0.16);
}

.card::after,
.cta-banner::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 43, 43, 0.18), transparent 70%);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 22px;
    background: rgba(255, 43, 43, 0.14);
    border: 1px solid rgba(255, 43, 43, 0.24);
    font-size: 1.4rem;
    box-shadow: 0 0 18px rgba(255, 43, 43, 0.22);
}

.service-icon img,
.socials img,
.whatsapp-float img {
    display: block;
}

.service-icon img {
    width: 28px;
    height: 28px;
}

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

.project-card {
    min-height: 360px;
    border-radius: 28px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: auto 18px 18px 18px;
    padding: 18px;
    border-radius: 22px;
}

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

.stat-card {
    text-align: center;
}

.stat-card strong {
    font-size: clamp(2.6rem, 5vw, 4rem);
    color: #fff;
    text-shadow: 0 0 24px rgba(255, 77, 77, 0.42);
}

.testimonial-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 16px);
    gap: 24px;
}

.testimonial-wrap {
    overflow: hidden;
}

.testimonial-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.testimonial-head img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.cta-banner {
    padding: 40px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(255, 43, 43, 0.2), rgba(255, 255, 255, 0.08)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 43, 43, 0.12);
}

.footer {
    padding: 28px 0 36px;
}

.footer-grid {
    padding: 30px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 24px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.socials a img {
    width: 18px;
    height: 18px;
}

.socials a:hover {
    box-shadow: var(--glow);
}

.subhero {
    padding: 180px 0 80px;
}

.subhero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 30px;
    align-items: center;
}

.subhero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
}

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

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #25d366, #128c4a);
    box-shadow: 0 18px 42px rgba(18, 140, 74, 0.34);
}

.whatsapp-float img {
    width: 24px;
    height: 24px;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.chip.is-active,
.chip:hover {
    border-color: rgba(255, 77, 77, 0.4);
    box-shadow: var(--glow);
}

@media (max-width: 1080px) {
    .hero-inner,
    .subhero-grid,
    .contact-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .project-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial-track {
        grid-auto-columns: calc(50% - 12px);
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 12px 0;
    }

    .navbar {
        border-radius: 28px;
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        display: grid;
        gap: 10px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease;
    }

    .nav-links.is-open {
        max-height: 280px;
        opacity: 1;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 130px;
    }

    .hero-visual {
        min-height: 520px;
    }

    .mini-kpis,
    .services-grid,
    .project-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-track {
        grid-auto-columns: 100%;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 82px 0;
    }

    .container {
        width: min(100% - 20px, 1200px);
    }

    .hero-copy h1,
    .subhero-copy h1 {
        font-size: 2.5rem;
    }

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

    .button {
        width: 100%;
    }

    .mini-kpi,
    .card,
    .testimonial-card,
    .stat-card,
    .contact-card,
    .subhero-panel,
    .about-panel,
    .cta-banner,
    .footer-grid {
        padding: 22px;
    }

    .floating-panel {
        min-width: 128px;
        padding: 12px 14px;
    }
}
