@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --navy: #08111f;
    --navy-2: #0d1b2d;
    --blue: #16a8ff;
    --cyan: #52d6ff;
    --white: #ffffff;
    --off-white: #f4f7fa;
    --text: #182432;
    --muted: #667384;
    --line: #dce4ec;
    --max: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

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

.brand img {
    width: 170px;
    height: auto;
    object-fit: contain;
    /* The supplied logo contains its own background. */
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--cyan);
}

.main-nav .nav-cta {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 4px;
}

.main-nav .nav-cta:hover {
    border-color: var(--cyan);
}

/* Hero */
.hero {
    min-height: 780px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4,13,24,.96) 0%, rgba(4,13,24,.82) 48%, rgba(4,13,24,.42) 100%),
        url('circuitboardMAIN.jpg') center center / cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 45%, rgba(22,168,255,.18), transparent 30%),
        linear-gradient(180deg, rgba(0,0,0,.18), transparent 40%, rgba(0,0,0,.35));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 70px;
    align-items: center;
    padding-top: 80px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--cyan);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: .19em;
    font-weight: 800;
}

.eyebrow.dark {
    color: #168fd2;
}

.hero h1,
.section-heading h2,
.intro h2,
.about h2,
.contact h2 {
    font-family: 'Space Grotesk', Arial, sans-serif;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 700;
}

.hero h1 span {
    color: var(--cyan);
}

.hero-text {
    max-width: 690px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 23px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

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

.button-primary {
    color: #04101b;
    background: var(--cyan);
}

.button-primary:hover {
    background: #7be2ff;
}

.button-ghost {
    color: var(--white);
    border: 1px solid rgba(255,255,255,.35);
}

.button-ghost:hover {
    border-color: var(--cyan);
}

.hero-card {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    background: rgba(6,19,34,.64);
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
}

.hero-card .status-dot {
    width: 9px;
    height: 9px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.hero-card span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-card strong {
    display: block;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 23px;
    line-height: 1.25;
}

.hero-card p {
    margin: 18px 0 0;
    color: rgba(255,255,255,.62);
    font-size: 13px;
}

.scroll-hint {
    position: absolute;
    z-index: 3;
    bottom: 25px;
    left: 50%;
    color: rgba(255,255,255,.65);
    font-size: 26px;
    transform: translateX(-50%);
}

/* General sections */
.section {
    padding: 115px 0;
}

.intro {
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: start;
}

.intro h2,
.about h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
}

.intro h2 span {
    color: #1597dc;
}

.intro-text {
    padding-top: 10px;
    color: var(--muted);
    font-size: 17px;
}

.intro-text p:first-child {
    margin-top: 0;
}

/* Dark section */
.section-dark {
    color: var(--white);
    background: var(--navy);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 58px);
}

.section-heading > p:last-child {
    margin: 20px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 16px;
}

.heading-dark > p:last-child {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    min-height: 390px;
    padding: 30px 26px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.035);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(82,214,255,.55);
    background: rgba(255,255,255,.06);
}

.service-number {
    margin-bottom: 50px;
    color: var(--cyan);
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.service-card h3 {
    margin: 0 0 14px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 25px;
}

.service-card p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 14px;
}

.service-card ul {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

.service-card li {
    position: relative;
    margin: 8px 0;
    padding-left: 15px;
}

.service-card li::before {
    content: '';
    position: absolute;
    top: .75em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
}

/* Process */
.process {
    background: var(--off-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.process-step {
    min-height: 230px;
    padding: 32px 28px 20px 0;
    border-right: 1px solid var(--line);
}

.process-step:not(:first-child) {
    padding-left: 28px;
}

.process-step:last-child {
    border-right: 0;
}

.process-step > span {
    color: #1597dc;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.process-step h3 {
    margin: 38px 0 10px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 21px;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Image break */
.image-break {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    color: var(--white);
    background: url('circuitboardMAIN.jpg') center 62% / cover no-repeat;
}

.image-break-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,13,24,.92), rgba(4,13,24,.48), rgba(4,13,24,.68));
}

.image-break-content {
    position: relative;
    z-index: 1;
}

.image-break h2 {
    margin: 0;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    background: var(--off-white);
}

.about-image img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
}

.about-copy h2 {
    margin-bottom: 25px;
}

.about-copy > p {
    max-width: 650px;
    color: var(--muted);
}

.about-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 35px;
}

.about-points div {
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.about-points strong {
    display: block;
    margin-bottom: 7px;
    color: #1597dc;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 12px;
}

.about-points span {
    font-size: 13px;
    font-weight: 600;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 100px;
    align-items: center;
}

.contact h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
}

.contact-lead {
    max-width: 600px;
    margin-top: 25px;
    color: rgba(255,255,255,.58);
}

.contact-card {
    padding: 32px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.035);
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.contact-row span {
    color: rgba(255,255,255,.45);
    font-size: 13px;
}

.contact-row a,
.contact-row strong {
    font-size: 14px;
    text-align: right;
}

.contact-row a:hover {
    color: var(--cyan);
}

.button.full {
    width: 100%;
    margin-top: 28px;
}

/* Footer */
.site-footer {
    padding: 30px 0;
    color: rgba(255,255,255,.5);
    background: #050b13;
    font-size: 12px;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    width: 125px;
    margin-bottom: 7px;
}

.site-footer p {
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-right a:hover {
    color: var(--cyan);
}

/* Responsive */
@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-card {
        max-width: 390px;
    }

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

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

    .process-step:nth-child(2) {
        border-right: 0;
    }

    .process-step:nth-child(3),
    .process-step:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--max), calc(100% - 32px));
    }

    .site-header {
        padding: 15px 0;
    }

    .brand img {
        width: 135px;
    }

    .main-nav a:not(.nav-cta) {
        display: none;
    }

    .main-nav {
        gap: 0;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 75px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .hero-text {
        font-size: 16px;
    }

    .section {
        padding: 80px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .service-card {
        min-height: 0;
    }

    .process-step,
    .process-step:not(:first-child) {
        min-height: 0;
        padding: 25px 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .process-step:first-child {
        border-top: 0;
    }

    .process-step h3 {
        margin-top: 22px;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .image-break {
        min-height: 390px;
    }

    .contact-card {
        padding: 22px;
    }

    .contact-row {
        display: block;
    }

    .contact-row span,
    .contact-row a,
    .contact-row strong {
        display: block;
        text-align: left;
    }

    .contact-row span {
        margin-bottom: 4px;
    }

    .footer-grid,
    .footer-right {
        align-items: flex-start;
        flex-direction: column;
    }
}
