:root {
    --bg: #f7fbff;
    --bg-soft: #edf4fb;

    --card: #ffffff;
    --card-dark: #ffffff;

    --line: rgba(24, 86, 180, .12);
    --line-green: rgba(31, 193, 107, .18);

    --primary: #1f63ff;
    --primary-2: #19b56b;
    --accent-red: #e54848;

    --text: #0f172a;
    --muted: #5d6b82;

    --success: #19b56b;

    --shadow: 0 18px 45px rgba(18, 52, 106, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;

    font-family: "Poppins", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 80% 5%,
            rgba(31, 99, 255, .07),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 28%,
            rgba(25, 181, 107, .06),
            transparent 26%
        ),
        var(--bg);
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    opacity: .35;

    background-image:
        linear-gradient(
            rgba(31, 99, 255, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(25, 181, 107, .025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    padding:
        0
        max(26px, calc((100vw - 1800px) / 2));

    border-bottom:
        1px solid rgba(24, 86, 180, .10);

    background:
        rgba(241, 247, 255, .97);

    box-shadow:
        0 4px 18px rgba(18, 52, 106, .05);

    transition:
        height .25s ease,
        background .25s ease,
        box-shadow .25s ease;

    backdrop-filter:
        blur(14px);
}


/* =========================================================
   HEADER AL HACER SCROLL
========================================================= */

.header.scrolled {
    height: 82px;

    background:
        rgba(245, 249, 255, .98);

    border-color:
        rgba(24, 86, 180, .12);

    box-shadow:
        0 10px 30px rgba(18, 52, 106, .09);
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    flex-shrink: 0;

    width: 340px;

    height: 92px;
}


/* =========================================================
   LOGO GRANDE
========================================================= */

.brand img {
    display: block;

    width: 315px;

    height: auto;

    max-height: none;

    object-fit: contain;

    object-position: left center;

    transform: translateY(2px);

    transition:
        width .25s ease,
        transform .25s ease;
}


/* =========================================================
   LOGO AL HACER SCROLL
========================================================= */

.header.scrolled .brand {
    height: 82px;
}


.header.scrolled .brand img {
    width: 285px;
}


/* =========================================================
   NAV
========================================================= */

.nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    margin-left: auto;

    font-size: 13px;

    font-weight: 700;

    color: #182236;
}


.nav a {
    position: relative;

    padding: 10px 0;

    white-space: nowrap;

    color: #182236;

    transition: .22s ease;
}


.nav a::after {
    content: "";

    position: absolute;

    left: 0;

    right: 100%;

    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #1f63ff,
            #19b56b
        );

    transition: .22s ease;
}


.nav a:hover {
    color: #1f63ff;
}


.nav a:hover::after {
    right: 0;
}


/* =========================================================
   BOTÓN HEADER
========================================================= */

.header > .btn {
    flex-shrink: 0;

    margin-left: 18px;
}


.header .btn-primary {
    min-height: 54px;

    padding:
        0 30px;

    border: 0;

    border-radius: 22px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1460e8,
            #1f63ff
        );

    box-shadow:
        0 12px 28px rgba(31, 99, 255, .18);

    font-size: 13px;

    font-weight: 800;

    transition: .22s ease;
}


.header .btn-primary:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.05);

    box-shadow:
        0 16px 34px rgba(31, 99, 255, .24);
}


/* =========================================================
   COMPENSAR HEADER FIJO
========================================================= */

main {
    padding-top: 92px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 640px;

    display: flex;

    align-items: center;

    padding:
        30px 0 70px;

    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .header {
        padding:
            0 20px;
    }

    .brand {
        width: 285px;
    }

    .brand img {
        width: 270px;
    }

    .nav {
        gap: 18px;
    }

    .header .btn-primary {
        padding:
            0 20px;
    }
}


@media (max-width: 950px) {

    .header {
        height: 82px;

        padding:
            0 16px;
    }

    .header.scrolled {
        height: 76px;
    }

    .brand {
        width: 220px;

        height: 82px;
    }

    .brand img {
        width: 210px;
    }

    .header.scrolled .brand {
        height: 76px;
    }

    .header.scrolled .brand img {
        width: 195px;
    }

    .nav {
        display: none;
    }

    main {
        padding-top: 82px;
    }
}


@media (max-width: 600px) {

    .header {
        height: 74px;

        padding:
            0 12px;
    }

    .brand {
        width: 185px;

        height: 74px;
    }

    .brand img {
        width: 175px;
    }

    .header .btn-primary {
        min-height: 38px;

        padding:
            0 12px;

        font-size: 10px;
    }

    main {
        padding-top: 74px;
    }
}


@media (max-width: 460px) {

    .header > .btn {
        display: none;
    }

    .brand {
        width: 190px;
    }

    .brand img {
        width: 185px;
    }
}


/* =========================================================
   NAV
========================================================= */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 26px;

    font-size: 13px;
    font-weight: 700;

    color: #1e2b42;
}

.nav a {
    position: relative;

    padding: 10px 0;

    transition: .22s ease;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: 4px;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    transition: .22s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::after {
    right: 0;
}


/* =========================================================
   BOTONES
========================================================= */

.btn {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    border:
        1px solid transparent;

    border-radius: 14px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition: .24s ease;
}

.btn-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #2f7dff
        );

    box-shadow:
        0 13px 32px
        rgba(31, 99, 255, .18);
}

.btn-primary:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.05);

    box-shadow:
        0 18px 38px
        rgba(31, 99, 255, .22);
}

.btn-outline {
    color: var(--primary);

    border-color:
        rgba(31, 99, 255, .30);

    background:
        #ffffff;
}

.btn-outline:hover {
    transform:
        translateY(-2px);

    color:
        #0f5ddd;

    border-color:
        rgba(25, 181, 107, .45);

    background:
        rgba(25, 181, 107, .06);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 710px;

    display: flex;
    align-items: center;

    padding:
        150px 0 84px;

    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;

    width: 440px;
    height: 440px;

    top: 80px;
    right: -130px;

    border:
        1px solid
        rgba(31, 99, 255, .10);

    border-radius: 50%;

    box-shadow:
        0 0 0 70px rgba(31, 99, 255, .025),
        0 0 0 140px rgba(25, 181, 107, .018);

    pointer-events: none;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(420px, .98fr);

    align-items: center;

    gap: 64px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding:
        7px 12px;

    border-radius: 999px;

    color: var(--primary);

    background:
        rgba(31, 99, 255, .07);

    border:
        1px solid
        rgba(31, 99, 255, .12);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.4px;
}

.hero h1 {
    margin:
        20px 0 18px;

    max-width: 720px;

    color: #07162d;

    font-size:
        clamp(42px, 6vw, 76px);

    line-height: .98;

    letter-spacing: -3.4px;
}

.hero h1 span {
    display: block;

    color: transparent;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2)
        );

    background-clip: text;

    -webkit-background-clip: text;
}

.hero-copy > p {
    max-width: 690px;

    margin: 0;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* =========================================================
   IMAGEN HERO
========================================================= */

.hero-art {
    position: relative;

    min-height: 450px;

    display: grid;

    place-items: center;
}

.hero-art::before {
    content: "";

    position: absolute;

    inset: 10% 7%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(25, 181, 107, .14),
            rgba(31, 99, 255, .06) 45%,
            transparent 70%
        );

    filter: blur(8px);

    animation:
        pulseGlow 4s
        ease-in-out
        infinite;
}

.hero-art img {
    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 620px;

    height: auto;

    border-radius: 28px;

    border:
        1px solid
        rgba(31, 99, 255, .10);

    box-shadow:
        var(--shadow);
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(.96);
        opacity: .72;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}


/* =========================================================
   DEEP LEARNING
========================================================= */

.deep-section {
    padding: 96px 0;
}

.section-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .92fr)
        minmax(500px, 1.08fr);

    align-items: center;

    gap: 52px;
}

.section-copy h2,
.section-title h2 {
    margin:
        16px 0 14px;

    color: #07162d;

    font-size:
        clamp(31px, 4vw, 48px);

    line-height: 1.08;

    letter-spacing: -1.8px;
}

.section-copy p,
.section-title p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}

.section-copy p + p {
    margin-top: 18px;
}


/* =========================================================
   CHECK LIST
========================================================= */

.checks {
    display: grid;

    gap: 12px;

    padding: 0;

    margin:
        28px 0 0;

    list-style: none;
}

.checks li {
    position: relative;

    padding:
        14px
        16px
        14px
        46px;

    border:
        1px solid
        rgba(24, 86, 180, .10);

    border-radius: 15px;

    color: #43526a;

    background: #ffffff;

    box-shadow:
        0 8px 24px
        rgba(18, 52, 106, .04);

    font-size: 13px;

    line-height: 1.55;
}

.checks li::before {
    content: "✓";

    position: absolute;

    left: 15px;

    top: 50%;

    width: 22px;
    height: 22px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    transform:
        translateY(-50%);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    font-size: 12px;

    font-weight: 900;
}


/* =========================================================
   VISION CARD
========================================================= */

.vision-card {
    position: relative;

    min-height: 470px;

    padding: 26px;

    overflow: hidden;

    border:
        1px solid
        rgba(25, 181, 107, .15);

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(25, 181, 107, .08),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(31, 99, 255, .07),
            transparent 35%
        ),
        #ffffff;

    box-shadow:
        var(--shadow);
}

.vision-card-head h3 {
    margin:
        12px 0 5px;

    color: #07162d;

    font-size: 23px;
}

.vision-card-head p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   RED / NODOS
========================================================= */

.network {
    position: relative;

    min-height: 330px;

    margin-top: 28px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    align-items: center;

    gap: 20px;
}

.network::before {
    content: "";

    position: absolute;

    left: 9%;
    right: 9%;

    top: 50%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(25, 181, 107, .15),
            rgba(31, 99, 255, .65),
            rgba(229, 72, 72, .18)
        );

    box-shadow:
        0 0 12px
        rgba(31, 99, 255, .12);
}

.node {
    position: relative;

    z-index: 1;

    min-height: 128px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        16px 10px;

    border:
        1px solid
        rgba(24, 86, 180, .10);

    border-radius: 18px;

    text-align: center;

    background: #ffffff;

    box-shadow:
        0 12px 28px
        rgba(18, 52, 106, .08);

    transition: .25s ease;
}

.node:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(25, 181, 107, .35);
}

.node-icon {
    width: 46px;

    height: 46px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    font-size: 15px;

    font-weight: 900;
}

.node strong {
    color: #10203b;

    font-size: 12px;
}

.node small {
    color: #6d7d93;

    font-size: 10px;

    line-height: 1.4;
}

.node-pulse::after {
    content: "";

    position: absolute;

    inset: -7px;

    z-index: -1;

    border:
        1px solid
        rgba(229, 72, 72, .16);

    border-radius: 23px;

    animation:
        nodePulse 2.4s
        ease-out
        infinite;
}

@keyframes nodePulse {

    0% {
        transform: scale(.94);
        opacity: .75;
    }

    100% {
        transform: scale(1.10);
        opacity: 0;
    }
}


/* =========================================================
   API SECTION
========================================================= */

.api-section {
    padding: 95px 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(31, 99, 255, .035),
            transparent
        );
}

.api-box {
    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 42px;

    align-items: center;

    padding: 36px;

    border:
        1px solid
        rgba(24, 86, 180, .10);

    border-radius: 26px;

    background: #ffffff;

    box-shadow:
        var(--shadow);
}

.api-visual {
    min-height: 360px;

    display: grid;

    place-items: center;

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(24, 86, 180, .10);

    border-radius: 22px;

    background:
        linear-gradient(
            rgba(31, 99, 255, .02) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(25, 181, 107, .02) 1px,
            transparent 1px
        ),
        #f9fcff;

    background-size:
        24px 24px;
}


/* =========================================================
   PIXEL FRAME
========================================================= */

.pixel-frame {
    width: 72%;

    aspect-ratio:
        16 / 10;

    position: relative;

    border:
        1px solid
        rgba(31, 99, 255, .28);

    border-radius: 15px;

    background:
        radial-gradient(
            circle at center,
            rgba(31, 99, 255, .10),
            transparent 48%
        ),
        #ffffff;

    box-shadow:
        0 0 35px
        rgba(31, 99, 255, .08);
}

.pixel-frame::before,
.pixel-frame::after {
    content: "";

    position: absolute;

    border-color:
        var(--primary-2);

    border-style: solid;

    width: 38px;

    height: 38px;
}

.pixel-frame::before {
    left: 18%;
    top: 22%;

    border-width:
        2px 0 0 2px;
}

.pixel-frame::after {
    right: 16%;

    bottom: 18%;

    border-width:
        0 2px 2px 0;
}


/* =========================================================
   SCAN
========================================================= */

.scan-line {
    position: absolute;

    left: 7%;
    right: 7%;

    top: 18%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent-red),
            transparent
        );

    box-shadow:
        0 0 14px
        rgba(229, 72, 72, .32);

    animation:
        scan 3s
        ease-in-out
        infinite;
}

@keyframes scan {

    0%,
    100% {
        top: 18%;
        opacity: .35;
    }

    50% {
        top: 80%;
        opacity: 1;
    }
}

.detect-label {
    position: absolute;

    left: 19%;

    top: 27%;

    padding:
        6px 9px;

    border-radius: 7px;

    color:
        var(--accent-red);

    border:
        1px solid
        rgba(229, 72, 72, .24);

    background:
        rgba(229, 72, 72, .07);

    font-size: 9px;

    font-weight: 800;
}


/* =========================================================
   FEATURES
========================================================= */

.features {
    padding: 92px 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(31, 99, 255, .025),
            transparent
        );
}

.section-title {
    max-width: 800px;

    margin-bottom: 34px;
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.feature {
    min-height: 230px;

    padding: 24px;

    border:
        1px solid
        rgba(24, 86, 180, .10);

    border-radius: 21px;

    background: #ffffff;

    box-shadow:
        0 12px 28px
        rgba(18, 52, 106, .06);

    transition: .25s ease;
}

.feature:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(25, 181, 107, .28);

    box-shadow:
        0 20px 45px
        rgba(18, 52, 106, .10);
}

.feature i {
    width: 52px;

    height: 52px;

    display: grid;

    place-items: center;

    border-radius: 15px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    font-size: 18px;

    font-style: normal;

    font-weight: 900;
}

.feature h3 {
    margin:
        20px 0 9px;

    color: #0b1730;

    font-size: 17px;
}

.feature p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   DEPLOYMENT
========================================================= */

.deployment {
    padding:
        15px 0 100px;
}

.deployment-box {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    overflow: hidden;

    border:
        1px solid
        rgba(24, 86, 180, .10);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #153476,
            #1f63ff
        );

    box-shadow:
        var(--shadow);
}

.deployment-box > div {
    min-height: 145px;

    padding: 25px;
}

.deployment-box > div + div {
    border-left:
        1px solid
        rgba(255, 255, 255, .10);
}

.deployment-box b {
    display: block;

    margin-bottom: 8px;

    color: #35e894;

    font-size: 16px;
}

.deployment-box span {
    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.55;
}

.deployment-box small {
    display: block;

    margin-top: 7px;

    color:
        rgba(255, 255, 255, .78);

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding:
        30px 0 45px;

    border-top:
        1px solid
        rgba(24, 86, 180, .08);

    color: #70819a;

    text-align: center;

    font-size: 12px;

    background: #ffffff;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity .65s ease,
        transform .65s ease;
}

.reveal.active {
    opacity: 1;

    transform:
        translateY(0);
}

.delay-1 {
    transition-delay: .10s;
}

.delay-2 {
    transition-delay: .20s;
}


/* =========================================================
   RESPONSIVE 1020
========================================================= */

@media (max-width: 1020px) {

    .nav {
        display: none;
    }

    .hero-grid,
    .section-grid,
    .api-box {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-art {
        min-height: auto;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE 720
========================================================= */

@media (max-width: 720px) {

    .container {
        width:
            min(100% - 24px, 1180px);
    }

    .header {
        min-height: 70px;

        padding:
            8px 12px;
    }

    .brand img {
        width: 155px;

        max-height: 55px;
    }

    .header > .btn {
        min-height: 40px;

        padding:
            0 13px;

        font-size: 11px;
    }

    .hero {
        padding:
            118px 0 62px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .deep-section,
    .api-section,
    .features {
        padding:
            68px 0;
    }

    .vision-card,
    .api-box {
        padding: 17px;

        border-radius: 19px;
    }

    .network {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .network::before {
        display: none;
    }

    .feature-grid,
    .deployment-box {
        grid-template-columns: 1fr;
    }

    .deployment-box > div + div {
        border-top:
            1px solid
            rgba(255, 255, 255, .10);

        border-left: 0;
    }

    .deployment {
        padding-bottom: 70px;
    }
}


/* =========================================================
   RESPONSIVE 460
========================================================= */

@media (max-width: 460px) {

    .network {
        grid-template-columns: 1fr;
    }

    .header > .btn {
        display: none;
    }

    .brand img {
        width: 175px;
    }
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}
