:root {
    --orange: #F99E23;
    --slate-blue: #3A506B;
    --charcoal: #212529;
    --light-grey: #F4F7F9;
    --white: #FFFFFF;
    --border-color: #DEE2E6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.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;
}

body {
    margin: 0;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #000000;
    color: #E5E7EB;
    line-height: 1.6;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    margin-bottom: 24px;
    background: #000000;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 16px;
    z-index: 10;
    transition: padding 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #E5E7EB;
}

.brand:visited {
    color: #E5E7EB;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    margin-left: auto;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background-color: var(--white);
    border-radius: 1px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
    transition: height 0.2s ease;
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E5E7EB;
    line-height: 1.2;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), var(--slate-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-word {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
}

.logo-tagline {
    font-size: 11px;
    color: #6c757d;
}

.main-nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.site-header.is-shrunk {
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(90deg, #1751a0, #418bf0);
}

.site-header.is-shrunk .brand-logo {
    height: 28px;
}

.site-header.is-shrunk .main-nav {
    font-size: 13px;
}

/* Hero */
.hero {
    margin-top: 24px;
    margin-bottom: 40px;
}

.hero-inner {
    background-image:
        linear-gradient(135deg, rgba(23, 81, 160, 0.3), rgba(65, 139, 240, 0.3)),
        url("img/robotic_gripper.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    border-radius: 24px;
    padding: 36px 24px 32px;
    position: relative;
    overflow: hidden;
}

.hero-inner::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-120%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: heroSheen 6s ease-in-out infinite;
}

@keyframes heroSheen {
    0%,
    60% {
        transform: translateX(-120%);
        opacity: 0;
    }
    65% {
        opacity: 1;
    }
    85% {
        transform: translateX(120%);
        opacity: 0.7;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-inner::before,
.hero-inner::after {
    z-index: 1;
}

.hero-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 8px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 32px);
    max-width: 32rem;
}

.hero-lead {
    margin: 0 0 20px;
    font-size: 15px;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

/* Prevent anchor targets from sitting under the sticky header */
#services,
#why-immenso,
#approach,
#about,
#contact {
    scroll-margin-top: 5.5rem;
}

.section-alt {
    background-color: #020617;
    border-radius: 20px;
    padding: 24px 22px 26px;
    border: 1px solid #1f2937;
}

.section-visual {
    margin: 0 0 18px;
}

.section-visual img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--slate-blue);
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: #9CA3AF;
    max-width: 40rem;
}

/* Cards / grids */
.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.card {
    background-color: #020617;
    border-radius: 16px;
    padding: 18px 18px 16px;
    border: 1px solid #1f2937;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #9CA3AF;
}

.card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #9CA3AF;
}

.card li + li {
    margin-top: 4px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.benefit {
    border-radius: 14px;
    padding: 14px 14px 12px;
    background-color: #020617;
    border: 1px solid #1f2937;
}

.benefit h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.benefit p {
    margin: 0;
    font-size: 13px;
    color: #9CA3AF;
}

/* Steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.steps li {
    background-color: #020617;
    border-radius: 14px;
    padding: 14px 14px 12px;
    border: 1px solid #1f2937;
}

.steps h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.steps p {
    margin: 0;
    font-size: 13px;
    color: #9CA3AF;
}

.section-cta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.section-cta p {
    margin: 0;
    font-size: 13px;
    color: #E5E7EB;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr);
    gap: 18px;
    margin-top: 6px;
}

.about-grid p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #D1D5DB;
}

.about-highlights h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.about-highlights ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #9CA3AF;
}

.about-highlights li + li {
    margin-top: 4px;
}

/* Contact */
.contact-panel {
    background-color: #020617;
    border-radius: 16px;
    padding: 18px 18px 16px;
    border: 1px solid #1f2937;
}

.contact-email-label {
    margin: 0 0 2px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #868e96;
}

.contact-email {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
}

.contact-email a {
    color: #BFDBFE;
    text-decoration: none;
}

.contact-email a:hover,
.contact-email a:focus-visible {
    text-decoration: underline;
    color: var(--orange);
}

.contact-location {
    margin: 0;
    font-size: 13px;
    color: #9CA3AF;
}

/* Footer */
.site-footer {
    margin-top: 24px;
    font-size: 12px;
    color: #6B7280;
    text-align: center;
}

/* Responsive tweaks */
@media (min-width: 640px) {
    .hero-inner {
        padding: 40px 32px 34px;
    }
}

@media (min-width: 768px) {
    .page {
        padding-inline: 24px;
    }

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

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

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

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

@media (max-width: 640px) {
    .site-header {
        border-radius: 16px;
        padding-inline: 14px;
        align-items: center;
        flex-direction: row;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .main-nav a {
        padding: 8px 10px;
        background-color: #000000;
    }

    .site-header.nav-open {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }
}
