:root {
    --background: #150E39;
    --header-background: #1e1b47;
    --header-text: #f6fdaa;
    --logo-text: #f9f9f9;
    --logo-hover: #00FFFF;
    --card: #1e1b47;
    --muted: #4b5563;
    --accent: #0f766e;
    --title: #facc15;
    --paragraph: #f4f7fb;
    --title-strong: #fbbf24;
    --footer-background: #000000;
    --footer-text: #f9f9aa;
    --primary-button-background: #5b6cff;
    --primary-button-hover: #4a5ae8;
}

body {
    margin: 0;
    font-family: Arial;
    background: #050816;
    color: white;
    padding-top: 60px;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Header and navigation */
header {
    background: rgba(30, 27, 71, 0.82);
    color: var(--header-text);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, #12c2e9, #2af598, #12c2e9);
    background-size: 200% 100%;
    animation: navFlux 5s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

.logo a {
    color: var(--logo-text);
    text-decoration: none;
    font-size: 32px;
    font-weight: 100;
}

.logo a strong {
    font-weight: 700;
}

.logo a:hover {
    color: var(--logo-hover);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.nav {
    margin-top: 10px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(125, 227, 255, 0.35);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(9, 24, 43, 0.82), rgba(8, 39, 61, 0.68));
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(86, 255, 177, 0.8);
    outline-offset: 2px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #f8fbff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #eaf7ff;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
    letter-spacing: 0.01em;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

nav a::before {
    content: "";
    position: absolute;
    inset: -4px -8px;
    border-radius: 999px;
    background: linear-gradient(100deg, rgba(34, 212, 255, 0.2), rgba(86, 255, 177, 0.18));
    opacity: 0;
    transform: translateY(4px) scale(0.94);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: -1;
}

nav a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d4ff, #56ffb1);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.24s ease;
    box-shadow: 0 0 10px rgba(34, 212, 255, 0.58);
}

nav a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 36, 68, 0.82), rgba(18, 56, 78, 0.82));
    border-color: rgba(34, 212, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.22);
}

nav a:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

nav a:hover::before,
nav a:focus-visible::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.78;
    filter: saturate(1.1) contrast(1.05);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(2, 6, 23, 0.36), rgba(11, 17, 38, 0.2));
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding: 32px;
    border-radius: 24px;
    background: rgba(6, 12, 30, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

.hero .gradient-title {
    filter: drop-shadow(0 6px 18px rgba(2, 6, 23, 0.55));
}

.hero h1 {
    font-size: 46px;
}

.hero p {
    color: #dbe8ff;
    margin: 25px 0;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.45);
}

.hero-visual {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 18px;
    border-radius: 24px;
    background: rgba(6, 12, 30, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
}

.gradient-title {
    background: linear-gradient(90deg, #22d3ee, #bef104);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#webgl-object {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary {
    background: var(--primary-button-background);
    border: none;
    padding: 15px 30px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.primary:hover {
    background: var(--primary-button-hover);
    transform: scale(1.05);
}

.secondary {
    background: transparent;
    border: 1px solid #5b6cff;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.secondary:hover {
    background: #5b6cff;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-buttons .primary,
.hero-buttons .secondary {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.hero-buttons .primary::before,
.hero-buttons .secondary::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -48%;
    width: 44%;
    height: 340%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    transform: rotate(18deg) translateX(-170%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.hero-buttons .primary {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #f8fbff;
}

.hero-buttons .primary:hover {
    background: linear-gradient(135deg, #4338ca, #1d4ed8);
    border-color: rgba(191, 219, 254, 0.38);
    transform: translateY(-2px);
}

.hero-buttons .primary:hover::before,
.hero-buttons .secondary:hover::before {
    transform: rotate(18deg) translateX(420%);
}

.hero-buttons .secondary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-color: rgba(34, 211, 238, 0.42);
    color: #03151d;
}

.hero-buttons .secondary:hover {
    background: linear-gradient(135deg, #0284c7, #0891b2);
    border-color: rgba(165, 243, 252, 0.45);
    color: #effbff;
    transform: translateY(-2px);
}

button.card {
    background: linear-gradient(180deg, rgba(11, 17, 38, 0.98), rgba(15, 23, 42, 0.82));
    padding: 24px;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.16);
    min-height: 208px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    color: white;
    font-family: Arial, sans-serif;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 36px rgba(2, 6, 23, 0.22);
}

button.card:hover {
    background: linear-gradient(180deg, rgba(24, 36, 70, 0.98), rgba(18, 28, 48, 0.92));
    border-color: rgba(34, 211, 238, 0.28);
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(10, 32, 61, 0.34);
}

button.card h3 {
    margin: 0;
    font-size: 19px;
    color: #f7fbff;
}

button.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #b8c4da;
}

.whatsapp {
    background: #25D366;
    border: none;
    padding: 15px 30px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}

.whatsapp:hover {
    background: #128c4a;
    transform: scale(1.05);
}

.whatsapp,
.whatsapp:visited {
    color: #031b0c;
}

.section-intro {
    max-width: 880px;
    margin: 0 auto 36px;
    font-size: 18px;
    line-height: 1.8;
    color: #b8c4da;
}

.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    padding: 0 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(91, 108, 255, 0.92));
    color: #02111f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.9px;
    box-shadow: 0 14px 28px rgba(91, 108, 255, 0.22);
    line-height: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-note {
    margin-top: auto;
    padding-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #7dd3fc;
}

.services-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    scroll-snap-align: start;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
}

.section>.container {
    width: 100%;
    max-width: 1200px;
}

.section p.center {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.services {
    background: #050816;
    color: #ffffff;
}

.platform {
    background: #0b1126;
    color: #dbeafe;
}

.platform-panel {
    max-width: 920px;
    margin: 0 auto 22px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(18, 34, 68, 0.78));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.platform-lead {
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.6;
    color: #f8fbff;
}

.platform-support {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #b7c4e0;
}

.platform-caption {
    margin-bottom: 18px;
    color: #c6d4ee;
}

.technology {
    background: #1e1b4b;
    color: #e0e7ff;
}

.technology-intro {
    color: #d7ddff;
}

.contact {
    background: #020617;
    color: #ffffff;
}

.contact.cta {
    min-height: calc(100vh - 56px);
    padding: 72px 20px 24px;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(8, 15, 32, 0.98), rgba(15, 23, 42, 0.86));
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.34);
    text-align: left;
}

.contact-copy h2 {
    margin: 14px 0 18px;
}

.contact-copy p {
    margin: 0 0 24px;
    max-width: 720px;
    color: #d3ddf0;
    line-height: 1.8;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: #9be7f4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 26px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e7efff;
    font-size: 14px;
}

.chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22d3ee, #5b6cff);
    color: #02111d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 0;
}

.chip-icon svg {
    width: 18px;
    height: 18px;
}

.contact-aside {
    display: grid;
    gap: 16px;
}

.contact-metric {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.contact-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #bef104, #22d3ee);
    color: #04111d;
    font-size: 13px;
    font-weight: 900;
    line-height: 0;
}

.contact-metric-icon svg {
    width: 24px;
    height: 24px;
}

.contact-metric strong {
    display: block;
    margin-bottom: 6px;
    color: #f7fbff;
    font-size: 16px;
}

.contact-metric p {
    margin: 0;
    color: #b8c4da;
    font-size: 14px;
    line-height: 1.6;
}

.stack {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.stack>span {
    background: #0b1126;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .platform-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.platform-stack .stack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 30px rgba(2, 6, 23, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.platform-stack .stack-item:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.38);
    background: linear-gradient(180deg, rgba(17, 34, 64, 0.98), rgba(12, 25, 48, 0.88));
    box-shadow: 0 22px 40px rgba(8, 47, 73, 0.28);
}

.stack-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #22d3ee, #5b6cff);
    color: #04111d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 10px 24px rgba(91, 108, 255, 0.28);
    line-height: 0;
}

.stack-icon svg {
    width: 24px;
    height: 24px;
}

.stack-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    color: #eef6ff;
}

.stack>span:hover {
    background: #1e1b4b;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cta {
    text-align: center;
    padding: 120px 0;
}

footer {
    background: var(--footer-background);
    color: var(--footer-text);
    text-align: center;
    padding: 10px 0;
}

.footer p {
    margin: 0;
    font-weight: 100;
}

.footer p strong {
    font-weight: 700;
}

/* Responsivo */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav {
        position: relative;
        justify-content: space-between;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .gradient-title {
        font-size: 30px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .hero p {
        margin: 18px 0;
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-text {
        padding: 20px;
    }

    .hero-visual {
        max-width: 320px;
        padding: 10px;
        border-radius: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .primary,
    .hero-buttons .secondary {
        padding: 12px 18px;
        font-size: 14px;
    }

    .section h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .section-intro {
        font-size: 16px;
        margin-bottom: 28px;
    }

    button.card {
        min-height: auto;
        padding: 18px;
        align-items: center;
        text-align: center;
        gap: 8px;
        border-radius: 20px;
    }

    button.card h3 {
        font-size: 18px;
    }

    button.card p {
        font-size: 13px;
        line-height: 1.5;
    }

    button.card h3,
    button.card p,
    .card-note {
        width: 100%;
        text-align: center;
    }

    .card-kicker {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .card-icon {
        align-self: center;
        min-width: 50px;
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .card-note {
        padding-top: 4px;
        font-size: 11px;
        line-height: 1.4;
    }

    .platform-stack .stack-item {
        justify-content: flex-start;
        text-align: left;
        padding: 14px 16px;
        min-height: 68px;
    }

    .stack-label {
        text-align: left;
    }

    .platform-panel {
        padding: 24px;
        border-radius: 22px;
    }

    .platform-lead {
        font-size: 18px;
    }

    .platform-stack {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 24px;
    }

    .contact-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        right: auto;
        width: min(100%, 320px);
        padding: 14px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 18px;
        background: rgba(8, 15, 32, 0.94);
        box-shadow: 0 20px 36px rgba(2, 6, 23, 0.35);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }

    nav a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 10px 12px;
        font-size: 14px;
        text-align: center;
    }

    nav a::after {
        left: 24px;
        right: 24px;
    }

    body {
        padding-top: 50px;
    }

    .nav {
        padding: 15px 0;
    }

    .contact.cta {
        min-height: calc(100vh - 48px);
        padding: 56px 20px 20px;
    }
}


@keyframes navFlux {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@media (max-width: 900px) {
    .nav {
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    nav a {
        text-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    header::before {
        animation: none;
    }

    nav a,
    nav a::before,
    nav a::after {
        transition: none;
    }
}