:root {
    --shell-width: 1180px;
    --page-gutter: 32px;
    --nav-bg: rgba(247, 252, 255, 0.88);
    --nav-border: rgba(3, 105, 136, 0.14);
    --ink: #07090c;
    --text: #17242b;
    --muted: #7d8b91;
    --line: rgba(7, 31, 42, 0.12);
    --soft-line: rgba(7, 31, 42, 0.07);
    --accent-start: #1fa2ff;
    --accent-end: #12d8fa;
    --accent-shadow: rgba(31, 162, 255, 0.28);
    --font-mono: "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Poppins", system-ui, sans-serif;
    background:
        radial-gradient(circle at 76% 33%, rgba(31, 162, 255, 0.08), transparent 30rem),
        #f0f8ff;
}

a {
    color: inherit;
}

main {
    overflow: hidden;
}

section,
footer {
    scroll-margin-top: 120px;
}

/* Navbar: usa el mismo ancho y padding horizontal que el hero. */
.navbar {
    position: fixed;
    z-index: 1000;
    top: 20px;
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: min(var(--shell-width), calc(100% - var(--page-gutter)));
    min-height: 72px;
    padding: 12px 14px 12px 24px;
    border: 1px solid var(--nav-border);
    border-radius: 22px;
    background: var(--nav-bg);
    box-shadow: 0 14px 34px rgba(0, 65, 117, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.navbar__brand {
    justify-self: start;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.navbar__brand span {
    color: var(--accent-start);
}

.navbar__nav {
    min-width: 0;
}

.navbar__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar__links a {
    position: relative;
    display: inline-flex;
    padding: 10px 13px;
    border-radius: 11px;
    color: #6f7d7a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.navbar__links a::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.navbar__links a:hover,
.navbar__links a:focus-visible {
    color: var(--ink);
    background: rgba(31, 162, 255, 0.08);
    outline: none;
}

.navbar__links a:hover::after,
.navbar__links a:focus-visible::after {
    transform: scaleX(1);
}

.navbar__buy {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 10px 24px var(--accent-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.navbar__buy ion-icon {
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.navbar__buy:hover,
.navbar__buy:focus-visible {
    box-shadow: 0 14px 30px rgba(31, 162, 255, 0.38);
    transform: translateY(-2px);
    outline: none;
}

.navbar__buy:active {
    transform: translateY(0);
}

/* Hero: el padding superior reserva espacio para el navbar fijo. */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
    gap: clamp(42px, 6vw, 86px);
    align-items: center;
    width: min(var(--shell-width), calc(100% - var(--page-gutter)));
    min-height: 760px;
    margin: 0 auto;
    padding: 142px 24px 68px;
}

.eyebrow {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px;
    color: #718087;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-start);
    box-shadow: 0 0 0 4px rgba(31, 162, 255, 0.11), 0 0 18px rgba(31, 162, 255, 0.42);
}

.hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(58px, 6.2vw, 92px);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.93;
}

.hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    max-width: 580px;
    margin: 30px 0 0;
    color: #829197;
    font-size: 16px;
    line-height: 1.82;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.button-primary {
    color: #061116;
    background: var(--accent-start);
    box-shadow: 0 12px 30px rgba(31, 162, 255, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 16px 34px rgba(31, 162, 255, 0.3);
}

.button-secondary {
    color: #697b83;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.36);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--ink);
    border-color: rgba(31, 162, 255, 0.28);
    background: rgba(255, 255, 255, 0.7);
}

.code-icon {
    color: var(--accent-start);
    font-family: var(--font-mono);
    font-size: 11px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
    color: #6f7a80;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-trust b {
    color: var(--accent-start);
    font-size: 8px;
}

/* Ilustración técnica del hero. */
.hero-visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: min(430px, 90%);
    aspect-ratio: 1;
    border: 1px dashed rgba(31, 162, 255, 0.14);
    border-radius: 50%;
    animation: spin 32s linear infinite;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(7, 31, 42, 0.05);
    border-radius: 50%;
}

.orbit-one {
    width: min(520px, 100%);
    height: 260px;
    transform: rotate(28deg);
}

.orbit-two {
    width: min(420px, 85%);
    height: 510px;
    transform: rotate(60deg);
}

.console-card {
    position: relative;
    z-index: 2;
    width: min(100%, 475px);
    overflow: hidden;
    border: 1px solid rgba(7, 31, 42, 0.12);
    background: rgba(240, 248, 255, 0.9);
    box-shadow: 0 38px 75px rgba(7, 31, 42, 0.24), 0 0 0 1px rgba(31, 162, 255, 0.03) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: rotateY(-3deg) rotateX(1deg);
}

.console-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 48px;
    padding: 0 17px;
    border-bottom: 1px solid var(--soft-line);
    color: #697a81;
    font-family: var(--font-mono);
    font-size: 9px;
    background: rgba(255, 255, 255, 0.28);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-start);
}

.window-controls i:first-child {
    background: var(--accent-end);
}

.online-pill {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid rgba(31, 162, 255, 0.24);
    color: #078ed4;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.online-pill i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-start);
}

.console-body {
    min-height: 330px;
    padding: 25px 27px;
    color: #078ed4;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 2.05;
}

.prompt {
    margin-right: 9px;
    color: var(--accent-start);
}

.console-rule {
    height: 1px;
    margin: 13px 0;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.console-body .muted {
    display: inline-block;
    width: 80px;
    color: #64757c;
    font-size: 9px;
    letter-spacing: 1px;
}

.console-body strong {
    color: #009bd9;
    font-weight: 600;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin: 18px 0;
}

.module-grid span {
    padding: 9px 4px;
    border: 1px solid var(--soft-line);
    color: #65767d;
    font-size: 8px;
    text-align: center;
}

.module-grid span.active {
    color: #078ed4;
    border-color: rgba(31, 162, 255, 0.24);
    background: rgba(31, 162, 255, 0.06);
}

.console-success {
    margin-top: 9px;
    color: #718087;
    font-size: 9px;
}

.cursor-line i {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: var(--accent-start);
    vertical-align: middle;
    animation: blink 1s steps(1) infinite;
}

.metric-card {
    position: absolute;
    z-index: 3;
    right: -22px;
    bottom: 40px;
    width: 140px;
    padding: 15px 16px;
    border: 1px solid rgba(7, 31, 42, 0.12);
    color: var(--text);
    background: rgba(240, 248, 255, 0.95);
    box-shadow: 0 20px 45px rgba(7, 31, 42, 0.2);
    font-family: var(--font-mono);
}

.metric-card > span {
    color: #6d7c82;
    font-size: 8px;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 5px 0 10px;
    color: #697a81;
    font-size: 19px;
}

.metric-card div {
    height: 3px;
    background: rgba(7, 31, 42, 0.12);
}

.metric-card div i {
    display: block;
    width: 92%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 0 12px rgba(31, 162, 255, 0.42);
}

.cube-small {
    position: absolute;
    z-index: 3;
    top: 42px;
    left: 5px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(31, 162, 255, 0.34);
    box-shadow: 0 0 25px rgba(31, 162, 255, 0.08);
    transform: rotate(18deg);
}

.cube-small span {
    display: block;
    width: 15px;
    height: 15px;
    background: rgba(31, 162, 255, 0.16);
}

/* Sección de características */
.features-section {
    position: relative;
    padding: 112px 24px 120px;
    color: var(--ink);
    background:
        linear-gradient(rgba(31, 162, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 162, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 10% 10%, rgba(18, 216, 250, 0.1), transparent 24rem),
        #f2f9ff;
    background-size: 52px 52px, 52px 52px, auto, auto;
}

.section-shell,
.compatibility-shell,
.footer {
    width: min(var(--shell-width), calc(100% - var(--page-gutter)));
    margin-inline: auto;
}

.section-heading {
    display: grid;
    max-width: 760px;
    gap: 16px;
    margin: 0 auto 58px;
    text-align: center;
}

.section-kicker {
    margin: 0;
    color: #67dfff;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.compatibility-section h2,
.cta-card h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.section-heading h2 span {
    color: transparent;
    background: linear-gradient(120deg, #1fa2ff, #12d8fa);
    background-clip: text;
    -webkit-background-clip: text;
}

.section-heading > p:last-child {
    max-width: 620px;
    margin: 0 auto;
    color: #91a8b6;
    font-size: 0.96rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(186, 241, 255, 0.178);
    border-radius: 18px;
    background: aliceblue;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-start), var(--accent-end), transparent);
    opacity: 0;
    transition: opacity 180ms ease;
}

.feature-card:hover {
    border-color: rgba(31, 162, 255, 0.28);
    background: rgba(236, 246, 255, 0.534);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(31, 162, 255, 0.2);
    border-radius: 13px;
    color: var(--accent-start);
    background: rgba(31, 162, 255, 0.08);
}

.feature-icon ion-icon {
    font-size: 1.35rem;
}

.feature-number {
    position: absolute;
    top: 26px;
    right: 25px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

.feature-card h3 {
    margin: 25px 0 9px;
    color: var(--ink);
    font-size: 1.03rem;
    letter-spacing: -0.025em;
}

.feature-card > p {
    margin: 0;
    color: #8197a8;
    font-size: 0.78rem;
    line-height: 1.72;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 22px;
}

.feature-tags span {
    padding: 6px 8px;
    border: 1px solid rgba(148, 207, 226, 0.1);
    border-radius: 7px;
    color: #85afc4;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    background: rgba(255, 255, 255, 0.025);
}

/* Compatibilidad */
.compatibility-section {
    padding: 100px 24px;
    color: #0a1927;
    background: aliceblue;
}

.compatibility-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(46px, 7vw, 100px);
    align-items: center;
}

.section-kicker--dark {
    margin-bottom: 17px;
}

.compatibility-section h2 {
    max-width: 560px;
    font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.compatibility-section p:not(.section-kicker) {
    max-width: 560px;
    margin: 20px 0 0;
    color: #8ba1b1;
    font-size: 0.9rem;
    line-height: 1.8;
}

.integration-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.integration-list span {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid var(--accent-start);
    border-radius: 14px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(0, 198, 248, 0.041);
}

.integration-list ion-icon {
    flex: 0 0 auto;
    color: var(--accent-start);
    font-size: 1.22rem;
}

/* Llamada a la acción */
.cta-section {
    padding: 100px 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(18, 216, 250, 0.16), transparent 26rem),
        #f0f8ff;
}

.cta-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 70px clamp(24px, 7vw, 80px);
    border: 1px solid rgba(3, 105, 136, 0.12);
    border-radius: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 28px 70px rgba(0, 65, 117, 0.12);
}

.cta-card .section-kicker {
    margin-bottom: 18px;
}

.cta-card h2 {
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.cta-card > p:not(.section-kicker) {
    max-width: 670px;
    margin: 22px auto 0;
    color: #71838b;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding-block: 32px;
    color: #76888f;
    font-size: 0.72rem;
}

.footer p {
    margin: 0;
    text-align: center;
}

.footer > span {
    justify-self: end;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
        gap: 46px;
        min-height: auto;
        padding-top: 154px;
        text-align: center;
    }

    .eyebrow,
    .hero-actions,
    .hero-trust {
        justify-content: center;
        margin-inline: auto;
    }

    .hero h1,
    .hero-description {
        margin-inline: auto;
    }

    .hero-visual {
        width: min(640px, 100%);
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compatibility-shell {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
        text-align: center;
    }

    .compatibility-section h2,
    .compatibility-section p:not(.section-kicker) {
        margin-inline: auto;
    }
}

@media (max-width: 720px) {
    :root {
        --page-gutter: 20px;
    }

    .navbar {
        top: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 7px;
        padding: 12px;
        border-radius: 20px;
    }

    .navbar__brand {
        padding-left: 7px;
    }

    .navbar__nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .navbar__nav::-webkit-scrollbar {
        display: none;
    }

    .navbar__links {
        width: max-content;
        min-width: 100%;
    }

    .navbar__links a {
        white-space: nowrap;
    }

    .hero {
        padding: 188px 14px 64px;
    }

    .hero h1 {
        font-size: clamp(48px, 13vw, 70px);
        letter-spacing: -0.055em;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 460px;
    }

    .metric-card {
        right: 0;
    }

    .features-section,
    .compatibility-section,
    .cta-section {
        padding: 78px 14px;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .feature-card {
        min-height: 290px;
    }

    .cta-card {
        padding-block: 56px;
    }

    .footer {
        width: calc(100% - 40px);
    }
}

@media (max-width: 520px) {
    .hero {
        text-align: left;
    }

    .eyebrow,
    .hero-actions,
    .hero-trust {
        justify-content: flex-start;
        margin-left: 0;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-trust {
        gap: 13px;
    }

    .hero-visual {
        min-height: 420px;
    }

    .console-card {
        transform: none;
    }

    .console-topbar {
        grid-template-columns: 1fr 1fr;
    }

    .console-topbar > span:not(.online-pill) {
        display: none;
    }

    .console-body {
        min-height: 310px;
        padding: 20px 16px;
        font-size: 10px;
    }

    .module-grid {
        gap: 4px;
    }

    .metric-card {
        right: 8px;
        bottom: 8px;
    }

    .cube-small {
        top: 20px;
        left: -4px;
    }

    .features-grid,
    .integration-list {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 270px;
    }

    .section-heading {
        text-align: left;
    }

    .section-heading > p:last-child {
        margin-left: 0;
    }

    .compatibility-shell {
        text-align: left;
    }

    .compatibility-section h2,
    .compatibility-section p:not(.section-kicker) {
        margin-left: 0;
    }

    .cta-card {
        border-radius: 20px;
        text-align: left;
    }

    .cta-card > p:not(.section-kicker) {
        margin-left: 0;
    }

    .cta-actions {
        display: grid;
    }

    .footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer > span {
        justify-self: center;
    }
}

@media (max-width: 430px) {
    .navbar__buy {
        min-height: 42px;
        padding-inline: 14px;
    }

    .navbar__links {
        justify-content: flex-start;
    }

    .navbar__links a {
        padding-inline: 11px;
        font-size: 0.86rem;
    }

    .hero h1 {
        font-size: clamp(44px, 14vw, 58px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}