:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #00162e;
    --accent: #00e5ff;
    --light: #f8fafc;
    --dark: #020617;
    --text: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    color: #0f172a;
    background: #ffffff;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;

    border-radius: 2px;
    background: var(--secondary);
    transition: .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
    text-decoration: none;
    color: #00162e;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* BUTTONS */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #00162e;
}

/* HERO */

.hero {
    background:
        linear-gradient(rgba(0, 22, 46, .70),
            rgba(0, 22, 46, .80)),
        url('/assets/images/banner-img.jpg');

    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;

    color: white;
    /* fixed header height (80px) + breathing room */
    padding-top: 160px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    padding: 10px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: clamp(17px, 2vw, 20px);
    margin-bottom: 35px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-highlights {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-highlights span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
}

/* SECTIONS */

section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text);
}

/* ABOUT */

.about {
    background: #f8fafc;
}

.about-box {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-box p {
    color: var(--text);
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    margin-bottom: 10px;
}

/* TECHNOLOGY */

.tech {
    background: #00162e;
    color: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.tech-item {
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.tech-item.featured {
    background: linear-gradient(135deg,
            #0066ff,
            #00b7ff);
    font-weight: 700;
}

/* CLIENTS */

.clients {
    overflow: hidden;
}

.client-logo {
    width: 240px;
    padding: 28px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

    color: var(--secondary);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* TEAM */

.team {
    background: #f8fafc;
}

/* CAREERS */

.careers-box {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

/* FOOTER */

.footer {
    background: #020617;
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h3 {
    color: #00e5ff;
    margin-bottom: 18px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 12px;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer a:hover {
    color: #00e5ff;
}

.footer-company p {
    color: #cbd5e1;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #94a3b8;
}

/* BACK TO TOP */

#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: #0066ff;
    color: white;

    font-size: 22px;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #00b7ff;
}

/* ABOUT PAGE */

.page-hero {
    min-height: 460px;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-layout h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.intro-layout p {
    color: var(--text);
    margin-bottom: 15px;
}

.pillars {
    display: grid;
    gap: 18px;
}

.pillar {
    display: flex;
    gap: 18px;
    align-items: center;

    background: white;
    padding: 22px 24px;

    border-left: 4px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.pillar-letter {
    flex-shrink: 0;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: linear-gradient(135deg,
            #0066ff,
            #00b7ff);

    color: white;
    font-size: 22px;
    font-weight: 800;
}

.pillar p {
    margin: 0;
    font-size: 15px;
}

.intro-statement {
    font-size: 34px;
    line-height: 1.35;
}

.intro-statement em {
    color: var(--primary);
}

.pillars-title {
    font-size: 24px;
    margin-bottom: 18px;
}

.icon-badge {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: linear-gradient(135deg,
            #0066ff,
            #00b7ff);
}

.icon-badge svg,
.feature-icon {
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-badge svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.feature img,
.feature-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    object-fit: contain;
}

.feature-icon {
    stroke: var(--primary);
}

.icon-badge-sm {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 10px;
}

.icon-badge-sm svg {
    width: 20px;
    height: 20px;
}

/* CONTACT PAGE */

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}

.map-frame {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 460px;
    border: 0;
}

.contact-block {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-block h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-block p {
    color: var(--text);
}

.office-list {
    list-style: none;
    display: grid;
    gap: 22px;
}

.office-list li {
    display: flex;
    gap: 16px;
    align-items: center;
}

.office-list strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.office-list a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.office-list a:hover {
    color: var(--primary);
}

.cta-section {
    padding-top: 0;
}

/* TECHNOLOGY PAGE */

.frontier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 60px;
}

.frontier-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.frontier-icon {
    flex-shrink: 0;

    width: 88px;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 10px 25px rgba(0, 22, 46, .2);
}

.frontier-icon svg {
    width: 38px;
    height: 38px;

    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.frontier-item h3 {
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--secondary);
}

.frontier-item p {
    color: var(--text);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* CAREERS PAGE */

.statement-center {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.eeo-box {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 30px 35px;

    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.eeo-box h3 {
    margin-bottom: 8px;
}

.eeo-box p,
.job-reqs li {
    color: var(--text);
}

.section-title a {
    color: var(--primary);
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;

    max-width: 1000px;
    margin: 0 auto;
}

.benefits-heading {
    display: inline-block;
    margin-bottom: 28px;
    padding-bottom: 8px;

    border-bottom: 3px solid var(--accent);
    font-size: 26px;
}

.benefit-list {
    list-style: none;
    display: grid;
    gap: 26px;
}

.benefit-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.benefit-star {
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: linear-gradient(135deg,
            #0066ff,
            #00b7ff);
}

.benefit-star svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.benefit-list h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.benefit-list p {
    color: #cbd5e1;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;

    max-width: 960px;
    margin: 0 auto;
}

.job-card {
    display: flex;
    flex-direction: column;
}

.job-card h3 {
    font-size: 22px;
}

.job-card .job-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;

    color: var(--primary);
    font-weight: 600;
}

.job-location svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.job-card h4 {
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.job-reqs {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
}

.job-reqs li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
}

.job-reqs li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.job-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.tech .section-title p {
    color: #cbd5e1;
}

.capability-list {
    list-style: none;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px 40px;

    max-width: 900px;
    margin: auto;
}

.capability-list li {
    position: relative;
    padding-left: 32px;
    font-weight: 500;
}

.capability-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

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

.services-grid.grid-3,
.team-grid {
    max-width: 960px;
    margin: 0 auto;
}

.card p {
    color: var(--text);
    font-size: 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.member {
    text-align: center;
}

.avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: linear-gradient(135deg,
            #0066ff,
            #00b7ff);

    color: white;
    font-size: 22px;
    font-weight: 700;
}

.member .role {
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
}

.tech-carousel {
    overflow: hidden;
    padding: 10px 0 30px;

    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
}

.tech-carousel:hover .tech-carousel-track {
    animation-play-state: paused;
}

.tech-carousel-set {
    display: flex;
    gap: 25px;
    padding-right: 25px;
}

.tech-logo {
    width: 170px;
    padding: 28px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

    font-weight: 600;
    transition: .3s;
}

.tech-logo:hover {
    transform: translateY(-6px);
}

.tech-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.trademark-note {
    margin-top: 10px;
    text-align: center;
    color: var(--text);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {

    .tech-carousel-track {
        animation: none;
    }

    .tech-carousel {
        overflow-x: auto;
    }

}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;

    padding: 50px;
    border-radius: 20px;

    background: linear-gradient(135deg,
            #00162e,
            #003b78);
    color: white;
}

.cta-box h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cta-box p {
    color: #cbd5e1;
    max-width: 600px;
}

/* MOBILE */

@media(max-width:992px) {

    .hero-layout,
    .intro-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .services-grid.grid-3,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media(max-width:768px) {

    .hero {
        padding-top: 130px;
    }

    .page-hero {
        min-height: auto;
    }

    section {
        padding: 60px 0;
    }

    .navbar {
        height: 70px;
    }

    .logo {
        font-size: 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 70px;
        left: 0;
        right: 0;

        flex-direction: column;
        gap: 0;
        padding: 8px 5% 16px;

        background: white;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .services-grid,
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .card {
        padding: 24px;
    }

    .map-frame iframe {
        height: 320px;
    }

    .eeo-box {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .intro-layout h2 {
        font-size: 32px;
    }

    h2.intro-statement {
        font-size: 26px;
    }

    .logo-grid {
        gap: 15px;
    }

    .logo-grid .tech-logo {
        width: 150px;
    }

    .frontier-icon {
        width: 64px;
        height: 64px;
    }

    .frontier-icon svg {
        width: 28px;
        height: 28px;
    }

    .cta-box {
        padding: 35px 25px;
    }

    .cta-box .btn {
        width: 100%;
        text-align: center;
    }

}

@media(min-width:601px) and (max-width:992px) {

    /* stretch a lone last card across the 2-column grid */
    .services-grid.grid-3> :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

}

@media(max-width:600px) {

    .services-grid.grid-3,
    .jobs-grid,
    .frontier-grid,
    .benefits-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:480px) {

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        margin-bottom: 35px;
    }

}
