/*
 * Simbe visual refresh
 * Capa de diseño cargada después de styles.css para conservar la estructura
 * existente y separar el nuevo sistema visual de los estilos heredados.
 */

:root {
    --navy: #063e61;
    --navy-deep: #071b2c;
    --blue: #0879b2;
    --blue-bright: #22b7e8;
    --cyan-soft: #dff7ff;
    --indigo: #3b2174;
    --yellow: #ffd43b;
    --yellow-deep: #f5b700;
    --ink: #152633;
    --muted: #5d7180;
    --line: rgba(7, 62, 97, 0.12);
    --surface: #f4f8fb;
    --surface-blue: #ebf6fb;
    --white: #ffffff;
    --shadow-sm: 0 12px 34px rgba(7, 40, 62, 0.08);
    --shadow-md: 0 22px 60px rgba(7, 40, 62, 0.13);
    --shadow-lg: 0 34px 90px rgba(2, 24, 40, 0.24);
    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 34px;
    --font-body: "Manrope", Helvetica, Arial, sans-serif;
    --font-display: "Sora", "Manrope", sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.18);
}

html {
    scroll-padding-top: 112px;
}

body {
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-body);
    line-height: 1.7;
}

::selection {
    color: var(--navy-deep);
    background: rgba(255, 212, 59, 0.72);
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(7, 27, 44, 0.72);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
}

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

.section {
    padding: 128px 0;
}

.section-heading {
    margin-bottom: 64px;
}

.section-heading h2,
.split-copy h2,
.contact-copy h2,
.kit-callout h2 {
    margin-bottom: 22px;
    color: var(--navy-deep);
    font-size: clamp(2.55rem, 4.8vw, 4.35rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.section-heading > p:last-child,
.lead-copy {
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.eyebrow {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.eyebrow::before {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    content: "";
}

.eyebrow-light {
    color: #9be7ff;
}

/* Header */
.site-header {
    --scroll-progress: 0;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(7, 62, 97, 0.08);
    box-shadow: 0 8px 32px rgba(4, 37, 58, 0.04);
    backdrop-filter: blur(20px) saturate(150%);
    transition: background-color 300ms ease, box-shadow 300ms ease;
}

.site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--blue-bright), var(--indigo));
    content: "";
    transform: scaleX(var(--scroll-progress));
    transform-origin: left;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(7, 62, 97, 0.1);
    box-shadow: 0 14px 44px rgba(4, 37, 58, 0.1);
}

.header-inner {
    min-width: 0;
    min-height: 90px;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    line-height: 0;
}

.brand img {
    width: 194px;
    height: auto;
    transition: transform 350ms var(--ease-spring);
}

.brand:hover img {
    transform: translateY(-2px) scale(1.015);
}

.main-nav {
    min-width: 0;
    align-items: center;
    gap: 25px;
    color: #415866;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.25;
}

.main-nav a {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.main-nav a:not(.nav-support)::after {
    bottom: 5px;
    height: 3px;
    background: linear-gradient(90deg, var(--yellow), var(--blue-bright));
    border-radius: 99px;
    transition: transform 300ms var(--ease-out);
}

.main-nav .nav-support {
    padding: 12px 20px;
    color: #ffffff;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(7, 27, 44, 0.18);
    transition: color 250ms ease, background-color 250ms ease, box-shadow 250ms ease, transform 250ms var(--ease-spring);
}

.main-nav .nav-support[aria-current="page"] {
    color: #ffffff;
    background: var(--navy-deep);
}

.main-nav .nav-support:hover,
.main-nav .nav-support[aria-current="page"]:hover {
    color: var(--navy-deep);
    background: var(--yellow);
    box-shadow: 0 14px 30px rgba(245, 183, 0, 0.24);
    transform: translateY(-2px);
}

/* Buttons */
.button {
    position: relative;
    max-width: 100%;
    height: auto;
    min-height: 54px;
    padding: 14px 26px;
    overflow: hidden;
    border-radius: 16px;
    font-size: 0.73rem;
    letter-spacing: 0.13em;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    isolation: isolate;
    transition: transform 300ms var(--ease-spring), box-shadow 300ms ease, background-color 300ms ease;
}

.button::after {
    position: absolute;
    z-index: -1;
    top: -110%;
    left: -35%;
    width: 24%;
    height: 320%;
    background: rgba(255, 255, 255, 0.28);
    content: "";
    transform: rotate(24deg) translateX(-260%);
    transition: transform 700ms var(--ease-out);
}

.button:hover::after {
    transform: rotate(24deg) translateX(720%);
}

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

.button:active {
    transform: translateY(-1px) scale(0.98);
}

.button:focus-visible,
.video-frame:focus-visible,
.portal-download:focus-visible,
.main-nav .nav-support:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(7, 27, 44, 0.28);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--navy-deep));
    box-shadow: 0 16px 34px rgba(4, 85, 127, 0.24);
}

.button-primary:hover {
    background: linear-gradient(135deg, #0799d1, #08283e);
    box-shadow: 0 22px 44px rgba(4, 85, 127, 0.32);
}

.button-light {
    color: var(--navy-deep);
    background: var(--yellow);
    box-shadow: 0 16px 34px rgba(245, 183, 0, 0.23);
}

.button-light:hover {
    background: #ffe16d;
}

/* Hero */
.hero {
    min-height: clamp(670px, calc(100svh - 90px), 840px);
    isolation: isolate;
    background-position: center 42%;
}

.hero-content,
.hero-actions,
.service-grid > *,
.split-layout > *,
.connected-layout > *,
.contact-layout > *,
.solution-card > *,
.segment-grid > * {
    min-width: 0;
}

.hero h1,
.hero-lead,
.service-card h3,
.segment-card h3,
.solution-card h3 {
    overflow-wrap: anywhere;
}

.hero-overlay {
    z-index: 0;
    background:
        radial-gradient(circle at 77% 24%, rgba(34, 183, 232, 0.28), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(93, 53, 173, 0.34), transparent 34%),
        linear-gradient(105deg, rgba(4, 25, 40, 0.97) 4%, rgba(5, 57, 86, 0.92) 51%, rgba(25, 21, 64, 0.72) 100%);
}

.hero::before {
    z-index: 1;
    top: -180px;
    right: -90px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(34, 183, 232, 0.1), transparent 61%);
    border: 1px solid rgba(155, 231, 255, 0.2);
    box-shadow:
        0 0 0 80px rgba(255, 255, 255, 0.018),
        0 0 0 160px rgba(255, 255, 255, 0.012);
    animation: orbitPulse 9s ease-in-out infinite;
}

.hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.58) 58%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.58) 58%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    margin-bottom: 88px;
    text-align: left;
}

.hero .eyebrow {
    padding: 9px 13px;
    color: #b6efff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(182, 239, 255, 0.17);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    max-width: 920px;
    margin: 0 0 24px;
    font-size: clamp(4rem, 7.4vw, 7.15rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    text-wrap: balance;
    background: linear-gradient(105deg, #ffffff 16%, #d6f6ff 62%, #a9e8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 690px;
    margin: 0;
    color: rgba(240, 250, 255, 0.82);
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    font-weight: 500;
    line-height: 1.6;
}

.hero-content > .button {
    margin-top: 34px;
}

.hero-actions {
    right: auto;
    bottom: 30px;
    left: 50%;
    width: min(1200px, calc(100% - 56px));
    min-height: 88px;
    overflow: hidden;
    background: rgba(3, 26, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 12, 22, 0.3);
    backdrop-filter: blur(20px) saturate(135%);
    transform: translateX(-50%);
}

.hero-action {
    min-height: 88px;
    border-left-color: rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    transition: background-color 300ms ease, color 300ms ease;
}

.hero-action:hover {
    background: rgba(255, 255, 255, 0.09);
}

.hero-action-primary {
    color: var(--navy-deep);
    background: linear-gradient(120deg, var(--yellow), #fff09e);
    border-radius: 0;
}

.hero-action-primary:hover {
    background: linear-gradient(120deg, #ffe46a, #ffffff);
}

/* Services */
.services-section {
    background:
        radial-gradient(circle at 8% 22%, rgba(34, 183, 232, 0.09), transparent 24%),
        radial-gradient(circle at 94% 82%, rgba(59, 33, 116, 0.07), transparent 28%),
        var(--white);
}

.services-section::before {
    top: 38px;
    color: rgba(7, 62, 97, 0.026);
    font-weight: 700;
    letter-spacing: -0.06em;
}

.service-grid {
    gap: 26px;
}

@media (min-width: 1081px) {
    .service-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .service-card:nth-child(-n + 2) {
        min-height: 320px;
        grid-column: span 6;
    }

    .service-card:nth-child(n + 3) {
        min-height: 270px;
        grid-column: span 3;
    }
}

.service-card {
    min-height: 290px;
    padding: 36px 32px;
    background:
        radial-gradient(circle at 100% 100%, rgba(34, 183, 232, 0.08), transparent 32%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 62, 97, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    transition: transform 450ms var(--ease-out), border-color 350ms ease, box-shadow 450ms ease;
}

.service-card::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--blue-bright));
    content: "";
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 450ms var(--ease-out);
}

.service-card::after {
    right: -70px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(34, 183, 232, 0.13), transparent 68%);
    transition: transform 600ms var(--ease-out);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(8, 126, 183, 0.3);
    box-shadow: 0 28px 70px rgba(4, 54, 82, 0.16);
    transform: translateY(-10px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    transform: scale(1.25) translate(-10px, -8px);
}

.service-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(145deg, #eefaff, #dff4fc);
    border: 1px solid rgba(8, 126, 183, 0.12);
    border-radius: 20px;
    filter: brightness(0) saturate(100%) invert(26%) sepia(87%) saturate(1098%) hue-rotate(164deg) brightness(91%) contrast(101%);
    transition: transform 450ms var(--ease-spring), background-color 300ms ease;
}

.service-card:hover img {
    transform: rotate(-4deg) scale(1.08);
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.service-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* Software */
.software-section {
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(235, 246, 251, 0.9), rgba(255, 255, 255, 0.96) 55%),
        var(--white);
}

.split-layout {
    gap: clamp(58px, 7vw, 96px);
}

.feature-list {
    gap: 17px;
}

.feature-list li {
    padding-left: 34px;
    color: #405967;
    font-weight: 600;
}

.feature-list li::before {
    top: 0.44em;
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border: 3px solid #fff5bd;
    box-shadow: 0 0 0 1px var(--yellow-deep), 0 4px 12px rgba(245, 183, 0, 0.25);
}

.software-media::before {
    width: min(500px, 94%);
    aspect-ratio: 1.04;
    background:
        radial-gradient(circle at 72% 24%, rgba(34, 183, 232, 0.55), transparent 26%),
        linear-gradient(145deg, var(--navy-deep), var(--indigo));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 44px;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
}

.software-media::after {
    position: absolute;
    width: min(530px, 98%);
    aspect-ratio: 1.04;
    border: 1px solid rgba(8, 126, 183, 0.2);
    border-radius: 48px;
    content: "";
    transform: rotate(-3deg);
}

.software-media img {
    transition: transform 700ms var(--ease-out);
}

.software-media:hover img {
    transform: translateY(-9px) scale(1.018);
}

.media-accent {
    top: 25px;
    right: -8px;
    width: 86px;
    height: 86px;
    border: 12px solid var(--yellow);
    border-radius: 27px;
    box-shadow: 0 16px 34px rgba(245, 183, 0, 0.24);
    animation: accentFloat 6s ease-in-out infinite;
}

/* Connected */
.connected-section {
    min-height: 750px;
    padding: 138px 0;
    background-position: center 45%;
}

.connected-overlay {
    background:
        radial-gradient(circle at 80% 26%, rgba(34, 183, 232, 0.24), transparent 25%),
        linear-gradient(112deg, rgba(4, 25, 40, 0.98) 2%, rgba(5, 67, 99, 0.94) 53%, rgba(43, 26, 88, 0.82) 100%);
}

.connected-section::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.05) 50%, transparent 65%);
    content: "";
    transform: translateX(-100%);
    animation: ambientSweep 12s ease-in-out infinite;
    pointer-events: none;
}

.connected-layout h2 {
    font-size: clamp(3rem, 5.4vw, 5.25rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.connected-layout p:not(.eyebrow) {
    color: rgba(237, 249, 255, 0.76);
    line-height: 1.75;
}

.connected-layout img {
    animation: diagramFloat 7s ease-in-out infinite;
}

/* Capabilities */
.capabilities {
    padding: 106px 0 114px;
    background:
        radial-gradient(circle at 50% 100%, rgba(34, 183, 232, 0.11), transparent 38%),
        linear-gradient(180deg, #fff, #eef5f8);
}

.capability-grid {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(7, 62, 97, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.capability-item {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    transition: color 350ms ease, background-color 350ms ease, transform 350ms var(--ease-spring);
}

.capability-item::after {
    position: absolute;
    right: 16px;
    bottom: 12px;
    color: rgba(7, 62, 97, 0.05);
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: 3rem;
}

.capability-item span {
    color: var(--yellow-deep);
    font-size: 1.55rem;
    transition: transform 350ms var(--ease-spring);
}

.capability-item strong {
    font-size: 0.72rem;
}

.capability-item:hover {
    background: linear-gradient(145deg, #f7fcff, #e5f7fd);
    transform: translateY(-3px);
}

.capability-item:hover span {
    transform: translateY(-3px) scale(1.12);
}

/* Contact */
.contact-section {
    padding: 138px 0;
    background: var(--navy-deep);
}

.contact-overlay {
    background:
        radial-gradient(circle at 12% 88%, rgba(34, 183, 232, 0.22), transparent 27%),
        linear-gradient(115deg, rgba(4, 25, 40, 0.98), rgba(5, 65, 96, 0.94) 52%, rgba(48, 29, 94, 0.88));
}

.contact-copy h2 {
    font-size: clamp(3.15rem, 5.8vw, 5.5rem);
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.contact-section .contact-copy h2 {
    color: #ffffff;
}

.contact-copy > p:not(.eyebrow) {
    color: rgba(237, 249, 255, 0.76);
    line-height: 1.75;
}

.contact-details {
    gap: 22px;
}

.contact-details > div {
    padding: 10px 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    background: linear-gradient(145deg, #ffe477, var(--yellow));
    box-shadow: 0 12px 24px rgba(245, 183, 0, 0.2);
    transition: transform 300ms var(--ease-spring);
}

.contact-details > div:hover .contact-icon {
    transform: scale(1.08) rotate(-4deg);
}

.contact-card,
.portal-card {
    padding: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px) saturate(120%);
}

.field label {
    color: #143a51;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
}

.field input,
.field select,
.field textarea {
    min-height: 54px;
    padding: 14px 16px;
    background: #f2f7f9;
    border-color: rgba(7, 62, 97, 0.13);
    border-radius: 14px;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.field textarea {
    min-height: 138px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 5px rgba(34, 183, 232, 0.13);
    transform: translateY(-1px);
}

/* Kit Digital */
.hero-kit .hero-overlay {
    background:
        radial-gradient(circle at 78% 30%, rgba(255, 212, 59, 0.2), transparent 24%),
        radial-gradient(circle at 83% 76%, rgba(34, 183, 232, 0.28), transparent 30%),
        linear-gradient(108deg, rgba(4, 25, 40, 0.97), rgba(5, 58, 88, 0.91) 56%, rgba(45, 27, 91, 0.78));
}

.kit-program-logo {
    filter: drop-shadow(0 18px 30px rgba(7, 40, 62, 0.1));
}

.segment-grid {
    gap: 26px;
}

.segment-card {
    min-height: 315px;
    padding: 38px 34px;
    background: linear-gradient(145deg, #ffffff, #f8fcfe);
    border-color: rgba(7, 62, 97, 0.11);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 450ms var(--ease-out), box-shadow 450ms ease, border-color 350ms ease;
}

.segment-card::before {
    height: 5px;
    background: linear-gradient(90deg, var(--yellow), var(--blue-bright));
}

.segment-card::after {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(34, 183, 232, 0.1), transparent 70%);
    border-radius: 50%;
    content: "";
}

.segment-card:hover {
    border-color: rgba(8, 126, 183, 0.27);
    box-shadow: 0 28px 66px rgba(4, 54, 82, 0.15);
    transform: translateY(-9px);
}

.segment-card h3 {
    font-size: 1.2rem;
    line-height: 1.48;
}

.segment-card strong {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.05em;
}

.kit-callout {
    position: relative;
    padding: 64px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(34, 183, 232, 0.35), transparent 26%),
        linear-gradient(135deg, var(--navy-deep), var(--indigo));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.kit-page .kit-callout h2 {
    color: #ffffff;
}

.kit-callout::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025);
    content: "";
}

.kit-callout > * {
    position: relative;
    z-index: 1;
}

.kit-solutions {
    background:
        radial-gradient(circle at 8% 8%, rgba(34, 183, 232, 0.09), transparent 22%),
        var(--surface);
}

.solution-list {
    gap: 28px;
}

.solution-card {
    border-color: rgba(7, 62, 97, 0.11);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 400ms var(--ease-out), box-shadow 400ms ease, border-color 300ms ease;
}

.solution-card:hover {
    border-color: rgba(8, 126, 183, 0.25);
    box-shadow: 0 25px 65px rgba(4, 54, 82, 0.13);
    transform: translateY(-5px);
}

.solution-copy {
    padding: 42px;
    background: linear-gradient(145deg, #fff, #f1f8fb);
}

.solution-number {
    color: var(--yellow-deep);
    font-size: 1.75rem;
    font-weight: 600;
}

.kit-page .solution-number {
    color: #956800;
}

.kit-page .segment-card > span,
.kit-page .tier > span,
.kit-page .section-heading .eyebrow,
.kit-page .split-copy .eyebrow {
    color: #0672a7;
}

.solution-copy h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tier {
    transition: background-color 260ms ease;
}

.tier:hover {
    background: #f5fbfd;
}

.video-frame {
    border: 1px solid rgba(7, 62, 97, 0.1);
    border-radius: 28px;
    transition: transform 450ms var(--ease-out), box-shadow 450ms ease;
}

.video-frame:hover {
    box-shadow: 0 38px 90px rgba(2, 24, 40, 0.28);
    transform: translateY(-7px);
}

.video-frame img {
    transition: transform 700ms var(--ease-out), opacity 300ms ease;
}

.video-play {
    width: 82px;
    height: 82px;
    background: linear-gradient(145deg, #ffe979, var(--yellow));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    transition: transform 350ms var(--ease-spring), box-shadow 350ms ease;
}

.video-frame:hover .video-play {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-frame:focus-visible img {
    opacity: 0.9;
    transform: scale(1.025);
}

.video-frame:focus-visible .video-play {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Portal */
.portal-page {
    background:
        radial-gradient(circle at 8% 18%, rgba(34, 183, 232, 0.07), transparent 26%),
        var(--surface);
}

.portal-auth-section {
    min-height: 700px;
    background:
        radial-gradient(circle at 15% 22%, rgba(34, 183, 232, 0.34), transparent 28%),
        radial-gradient(circle at 84% 78%, rgba(94, 55, 177, 0.34), transparent 30%),
        linear-gradient(125deg, var(--navy-deep), #064f76 55%, var(--indigo));
}

.portal-auth-section::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 82%);
}

.portal-auth-copy h1,
.portal-dashboard-heading h1,
.portal-card h1 {
    font-weight: 600;
    letter-spacing: -0.055em;
}

.portal-auth-copy h1 {
    font-size: clamp(3.5rem, 6.4vw, 6.1rem);
    text-wrap: balance;
}

.portal-card h2 {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.portal-simple-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 183, 232, 0.09), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(59, 33, 116, 0.06), transparent 24%),
        var(--surface);
}

.portal-dashboard-hero {
    padding: 78px 0 82px;
    background:
        radial-gradient(circle at 83% 24%, rgba(34, 183, 232, 0.26), transparent 24%),
        linear-gradient(120deg, var(--navy-deep), #07587f 58%, var(--indigo));
}

.portal-account-actions button {
    background: var(--yellow);
    box-shadow: 0 10px 24px rgba(245, 183, 0, 0.2);
    transition: transform 250ms var(--ease-spring), background-color 250ms ease;
}

.portal-account-actions button:hover {
    background: #ffe36a;
    transform: translateY(-2px);
}

.portal-filters,
.portal-table-wrap,
.portal-empty {
    border-color: rgba(7, 62, 97, 0.11);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.portal-filters {
    padding: 25px;
}

.portal-invoice-table tbody tr {
    transition: background-color 220ms ease;
}

.portal-invoice-table tbody tr:hover {
    background: #f3fafd;
}

.portal-download {
    min-height: 44px;
    padding: 9px 17px;
    border-radius: 13px;
    transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease, transform 250ms var(--ease-spring);
}

.portal-download:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #ffffff, #f5f9fb);
}

.footer-grid {
    align-items: start;
    padding-top: 88px;
    padding-bottom: 78px;
}

.footer-brand,
.footer-nav,
.footer-contact,
.funding-heading,
.funding-content {
    min-width: 0;
}

.footer-nav a,
.footer-phone {
    max-width: 100%;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color 220ms ease, transform 220ms ease;
}

.footer-nav a:hover {
    color: var(--blue);
    transform: translateX(4px);
}

.funding {
    background: #edf4f7;
    border-color: rgba(7, 62, 97, 0.08);
}

.funding-logo {
    border: 1px solid rgba(7, 62, 97, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(7, 40, 62, 0.06);
}

.footer-bottom {
    background: var(--navy-deep);
}

/* Progressive scroll motion */
.motion-ready .hero .eyebrow,
.motion-ready .hero h1,
.motion-ready .hero .hero-lead,
.motion-ready .hero-content > .button,
.motion-ready .hero-actions {
    opacity: 0;
}

.motion-ready body.page-ready .hero .eyebrow {
    animation: heroRise 700ms 80ms var(--ease-out) forwards;
}

.motion-ready body.page-ready .hero h1 {
    animation: heroRise 850ms 170ms var(--ease-out) forwards;
}

.motion-ready body.page-ready .hero .hero-lead {
    animation: heroRise 800ms 300ms var(--ease-out) forwards;
}

.motion-ready body.page-ready .hero-content > .button {
    animation: heroRise 700ms 400ms var(--ease-out) forwards;
}

.motion-ready body.page-ready .hero-actions {
    animation: heroBarIn 850ms 460ms var(--ease-out) forwards;
}

.motion-ready .motion-reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
        transform 800ms var(--ease-out) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBarIn {
    from {
        opacity: 0;
        transform: translate(-50%, 24px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes orbitPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.72; }
    50% { transform: scale(1.06) rotate(8deg); opacity: 1; }
}

@keyframes accentFloat {
    0%, 100% { transform: rotate(18deg) translateY(0); }
    50% { transform: rotate(24deg) translateY(-14px); }
}

@keyframes diagramFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes ambientSweep {
    0%, 18% { transform: translateX(-100%); opacity: 0; }
    45% { opacity: 1; }
    72%, 100% { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 1120px) {
    html {
        scroll-padding-top: 100px;
    }

    .site-header {
        --mobile-header-height: 82px;
        background: #ffffff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header-inner {
        min-height: 82px;
    }

    .brand img {
        width: 174px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        z-index: 2;
        top: var(--mobile-header-height);
        right: 0;
        bottom: auto;
        left: 0;
        display: flex;
        visibility: hidden;
        width: auto;
        height: calc(100vh - var(--mobile-header-height));
        height: calc(100dvh - var(--mobile-header-height));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 28px 30px calc(34px + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        color: var(--navy-deep);
        background:
            radial-gradient(circle at 100% 0, rgba(34, 183, 232, 0.11), transparent 34%),
            rgba(255, 255, 255, 0.98);
        opacity: 0;
        transform: translateY(-10px);
        backdrop-filter: blur(22px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav a {
        justify-content: flex-start;
        padding: 17px 6px;
        border-bottom: 1px solid #e5eaed;
        font-family: var(--font-display);
        font-size: 1.08rem;
        font-weight: 600;
    }

    .main-nav .nav-support {
        justify-content: center;
        margin-top: 22px;
        padding: 14px 20px;
        text-align: center;
    }
}

@media (max-width: 1080px) {
    .main-nav {
        gap: 0;
    }

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

    .solution-copy {
        padding: 34px;
    }

    .solution-card {
        grid-template-columns: 1fr;
    }

    .tier-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-top: 1px solid rgba(7, 62, 97, 0.1);
    }

    .tier {
        min-height: 170px;
        border-bottom: 0;
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 100px;
    }

    .container {
        width: min(100% - 40px, 780px);
    }

    .site-header {
        background: #ffffff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header-inner {
        min-height: 82px;
    }

    .brand img {
        width: 174px;
    }

    .main-nav {
        top: var(--mobile-header-height);
        height: calc(100vh - var(--mobile-header-height));
        height: calc(100dvh - var(--mobile-header-height));
        padding: 28px 30px calc(34px + env(safe-area-inset-bottom));
        background:
            radial-gradient(circle at 100% 0, rgba(34, 183, 232, 0.11), transparent 34%),
            #ffffff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .main-nav a {
        padding: 17px 6px;
        font-family: var(--font-display);
        font-size: 1.08rem;
        font-weight: 600;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        margin-bottom: 118px;
    }

    .hero-actions {
        width: calc(100% - 40px);
    }

    .service-grid {
        gap: 20px;
    }

    .contact-card,
    .portal-card {
        padding: 38px;
    }

    .footer-grid {
        gap: 42px;
        padding-top: 62px;
        padding-bottom: 58px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 86px;
    }

    .site-header {
        --mobile-header-height: 72px;
    }

    .header-inner {
        min-height: var(--mobile-header-height);
    }

    .brand img {
        width: 152px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .main-nav {
        top: var(--mobile-header-height);
        height: calc(100vh - var(--mobile-header-height));
        height: calc(100dvh - var(--mobile-header-height));
        padding: 18px 18px calc(26px + env(safe-area-inset-bottom));
    }

    .main-nav a {
        min-height: 48px;
        padding: 13px 5px;
        font-size: 1rem;
    }

    .main-nav .nav-support {
        margin-top: 16px;
    }

    .container {
        width: min(100% - 30px, 560px);
    }

    .section {
        padding: 90px 0;
    }

    .section-heading {
        margin-bottom: 44px;
    }

    .section-heading h2,
    .split-copy h2,
    .contact-copy h2 {
        font-size: clamp(2.45rem, 12vw, 3.55rem);
    }

    .eyebrow {
        letter-spacing: 0.18em;
    }

    .footer-bottom .container {
        gap: 6px;
        padding-right: 0;
    }

    .hero {
        min-height: 820px;
        padding-top: 108px;
        background-position: 65% center;
    }

    .hero::before {
        top: -80px;
        right: -190px;
        width: 420px;
        height: 420px;
    }

    .hero::after {
        background-size: 52px 52px;
    }

    .hero-content {
        margin-bottom: 205px;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 15.5vw, 4.75rem);
        letter-spacing: -0.065em;
    }

    .hero-lead {
        max-width: 360px;
    }

    .hero-actions {
        bottom: 16px;
        width: calc(100% - 30px);
        border-radius: 20px;
    }

    .hero-action,
    .hero-action-primary {
        min-height: 62px;
        border-radius: 0;
    }

    .hero-action:first-child {
        border-radius: 19px 19px 0 0;
    }

    .hero-action:last-child {
        border-radius: 0 0 19px 19px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 31px 27px;
    }

    .software-media::before {
        border-radius: 30px;
    }

    .software-media::after {
        border-radius: 34px;
    }

    .connected-section,
    .contact-section {
        padding: 102px 0;
    }

    .capability-grid {
        border-radius: 22px;
    }

    .capability-item {
        min-height: 126px;
    }

    .contact-card,
    .portal-card {
        padding: 29px 23px;
        border-radius: 23px;
    }

    .kit-callout {
        padding: 40px 27px;
        border-radius: 26px;
    }

    .segment-card {
        min-height: 240px;
        padding: 32px 28px;
    }

    .solution-card,
    .video-frame {
        border-radius: 21px;
    }

    .portal-auth-section {
        min-height: 680px;
    }

    .portal-dashboard-hero {
        padding: 56px 0 62px;
    }

    .portal-filters,
    .portal-table-wrap,
    .portal-empty {
        border-radius: 18px;
    }

    .portal-invoice-table tr {
        border-radius: 18px;
    }

    .footer-grid {
        gap: 30px;
        padding-top: 46px;
        padding-bottom: 44px;
    }

    .funding-logos {
        grid-template-columns: 1fr;
    }

    .funding-logo,
    .funding-logo:last-child {
        width: 100%;
        height: 96px;
        grid-column: auto;
    }

    .funding-copy {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .footer-bottom .container {
        padding-right: 0;
    }
}

.not-found-section {
    display: grid;
    min-height: min(720px, calc(100vh - 90px));
    place-items: center;
    padding: 150px 0 110px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 20%, rgba(34, 183, 232, 0.22), transparent 28%),
        radial-gradient(circle at 18% 90%, rgba(255, 212, 59, 0.13), transparent 30%),
        linear-gradient(135deg, #061b2c, #064465 58%, #16265f);
}

.not-found-inner {
    max-width: 840px;
    text-align: center;
}

.not-found-inner h1 {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 6.2rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.not-found-inner > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(239, 249, 255, 0.8);
    font-size: 1.08rem;
    line-height: 1.7;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 26px;
    margin-top: 38px;
}

.not-found-link {
    min-height: 44px;
    padding: 12px 3px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-transform: uppercase;
}

.not-found-link:hover,
.not-found-link:focus-visible {
    color: var(--yellow);
}

@media (max-width: 720px) {
    .tier-list {
        grid-template-columns: 1fr;
    }

    .tier {
        min-height: 128px;
        border-bottom: 1px solid rgba(7, 62, 97, 0.1);
    }

    .tier:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .hero::before,
    .media-accent,
    .connected-section::after,
    .connected-layout img {
        animation: none !important;
    }

    .motion-ready .hero .eyebrow,
    .motion-ready .hero h1,
    .motion-ready .hero .hero-lead,
    .motion-ready .hero-content > .button,
    .motion-ready .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .motion-ready .hero-actions {
        opacity: 1 !important;
        transform: translateX(-50%) !important;
    }
}

@media (hover: none) {
    .service-card:hover,
    .segment-card:hover,
    .solution-card:hover,
    .video-frame:hover,
    .capability-item:hover {
        transform: none;
    }
}

.kit-page .tier-list-reference {
    grid-template-columns: 1fr;
}

.kit-page .tier-list-reference .tier {
    min-height: 180px;
}

@media (max-width: 900px) {
    .kit-page .hero-kit {
        min-height: auto;
        padding: 136px 0 104px;
    }

    .kit-page .hero-kit .hero-content {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .kit-page .hero-kit {
        min-height: auto;
        padding: 112px 0 78px;
    }

    .kit-page .hero-kit h1 {
        font-size: clamp(2.75rem, 13vw, 4rem);
    }
}
