:root {
    --navy-950: #06111f;
    --navy-900: #0a1728;
    --navy-800: #10243a;
    --navy-700: #173555;
    --teal-600: #147d8b;
    --teal-500: #1fa1a8;
    --lime-400: #b8dc3c;
    --gold-400: #e5ba5a;
    --ink: #122033;
    --muted: #64748b;
    --line: #d9e2ec;
    --surface: #ffffff;
    --surface-soft: #f4f8fb;
    --shadow: 0 24px 60px rgba(10, 23, 40, 0.14);
    --radius: 8px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 56px);
    color: #fff;
    transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(6, 17, 31, 0.95);
    box-shadow: 0 16px 40px rgba(6, 17, 31, 0.24);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(31, 161, 168, 0.9), rgba(184, 220, 60, 0.9));
    color: var(--navy-950);
}

.brand-text {
    font-size: 1rem;
    text-transform: lowercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--navy-950);
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background: url("../assets/nuevelocity-hero.png") center / cover no-repeat;
    transform: scale(1.01);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.82) 37%, rgba(6, 17, 31, 0.18) 78%),
        linear-gradient(180deg, rgba(6, 17, 31, 0.35) 0%, rgba(6, 17, 31, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding-top: 86px;
}

.hero h1 {
    max-width: 720px;
    margin: 10px 0 22px;
    font-size: clamp(2.45rem, 6vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 640px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--navy-950);
    background: var(--lime-400);
    box-shadow: 0 18px 34px rgba(184, 220, 60, 0.24);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.section {
    padding: 96px 20px;
}

.section-muted {
    background: var(--surface-soft);
}

.section-inner {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
}

.intro-band {
    padding: 60px 20px;
    background: var(--navy-900);
    color: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 48px;
    align-items: center;
}

.intro-grid h2,
.section-heading h2,
.sticky-copy h2,
.cta-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.intro-grid p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow,
.intro-band .eyebrow,
.cta-panel .eyebrow {
    color: var(--lime-400);
}

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

.section-heading p:last-child,
.sticky-copy p,
.cta-panel p {
    color: var(--muted);
    font-size: 1.05rem;
}

.flagship-grid,
.services-grid,
.proof-grid,
.case-grid {
    display: grid;
    gap: 22px;
}

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

.flagship-card,
.service-card,
.case-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.flagship-card {
    position: relative;
    padding: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.flagship-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--teal-500), var(--lime-400), var(--gold-400));
}

.flagship-card h3,
.service-card h3,
.method-step h3,
.case-grid h3 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-size: 1.28rem;
    line-height: 1.24;
}

.flagship-card p,
.service-card p,
.method-step p,
.case-grid p {
    margin: 0;
    color: var(--muted);
}

.flagship-card ul {
    display: grid;
    gap: 8px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.flagship-card li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
    font-weight: 700;
}

.flagship-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime-400);
}

.text-link {
    color: var(--teal-600);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

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

.service-card {
    padding: 26px;
}

.split {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 64px;
    align-items: start;
}

.sticky-copy {
    position: sticky;
    top: 120px;
}

.method-list {
    display: grid;
    gap: 16px;
}

.method-step {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.method-step span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    color: var(--navy-950);
    background: var(--lime-400);
    font-weight: 800;
}

.proof-section {
    background:
        linear-gradient(180deg, rgba(244, 248, 251, 0.92), rgba(255, 255, 255, 1));
}

.proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.proof-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--navy-900);
    color: #fff;
}

.proof-card strong,
.proof-card span {
    display: block;
}

.proof-card strong {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1;
    color: var(--lime-400);
}

.proof-card span {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.76);
}

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

.case-grid article {
    padding: 28px;
}

.cta-section {
    padding-top: 40px;
}

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(circle at 92% 14%, rgba(184, 220, 60, 0.18), transparent 36%),
        linear-gradient(135deg, var(--navy-950), var(--navy-700));
}

.cta-panel p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 5vw, 56px);
    color: rgba(255, 255, 255, 0.76);
    background: var(--navy-950);
}

.site-footer strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.05rem;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 960px) {
    .hero {
        min-height: 700px;
    }

    .intro-grid,
    .split,
    .cta-panel {
        grid-template-columns: 1fr;
    }

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

    .sticky-copy {
        position: static;
    }

    .cta-panel {
        padding: 34px;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 14px 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 70px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius);
        background: rgba(6, 17, 31, 0.98);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 14px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(6, 17, 31, 0.98) 0%, rgba(6, 17, 31, 0.78) 60%, rgba(6, 17, 31, 0.9) 100%),
            rgba(6, 17, 31, 0.55);
    }

    .hero-content {
        width: min(100% - 36px, var(--max-width));
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .section {
        padding: 72px 18px;
    }

    .flagship-grid,
    .services-grid,
    .proof-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .method-step {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .brand-text {
        font-size: 0.94rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .btn {
        width: 100%;
    }

    .flagship-card,
    .service-card,
    .case-grid article,
    .cta-panel {
        padding: 24px;
    }
}
