/* =========================================================
   Homepage flow — matches approved mockup structure
   Ocean Deep + Space Grotesk / DM Sans
   ========================================================= */

.home-page {
    background: #f7fafc;
}

.home-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Nav (homepage) ---------- */
.home-page .home-nav {
    gap: 1rem;
}

.home-page .logo-text {
    font-family: var(--font-display);
    font-weight: 600;
}

.home-page .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.home-page .nav-careers-link {
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0;
    transition: color 0.25s ease;
}

.home-page .nav-careers-link:hover {
    color: var(--ocean-cyan);
}

.home-page .btn-talk {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #00639e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.72rem 1.15rem;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 99, 158, 0.35);
}

.home-page .btn-talk:hover {
    background: #004f7e;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 99, 158, 0.45);
}

.home-page .nav-cta,
.home-page .nav-careers-btn {
    display: none !important;
}

.home-page .mobile-only {
    display: none;
}

.home-page .header.light-theme .nav-careers-link,
.home-page .header.light-theme .logo-text,
.home-page .header.light-theme .nav-link {
    color: var(--ocean-ink);
}

.home-page .header.light-theme .nav-careers-link:hover {
    color: var(--ocean-teal);
}

/* ---------- Hero ---------- */
.home-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 2.5rem;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.home-hero-copy {
    max-width: 34rem;
    animation: heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(228, 244, 248, 0.92);
    margin-bottom: 1.1rem;
}

.home-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00639e;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

.home-brand {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.55rem;
    letter-spacing: -0.02em;
}

.home-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.6vw, 4.35rem);
    font-weight: 700;
    line-height: 1.02;
    color: #fff;
    margin: 0 0 1.15rem;
    letter-spacing: -0.035em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.home-lede {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(228, 244, 248, 0.88);
    margin: 0 0 1.75rem;
    max-width: 28rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #00639e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 99, 158, 0.4);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    background: #004f7e;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 99, 158, 0.5);
    color: #fff;
}

.btn-primary--soft {
    background: #00639e;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease, gap 0.25s ease;
}

.btn-text:hover {
    color: var(--ocean-cyan);
    gap: 0.65rem;
}

.btn-text--dark {
    color: var(--ocean-ink);
}

.btn-text--dark:hover {
    color: #00639e;
}

.home-hero-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.15rem 1.5rem 1.6rem;
    color: rgba(228, 244, 248, 0.78);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero-bar > p:last-child {
    text-align: right;
}

.home-explore {
    color: rgba(228, 244, 248, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.25s ease;
}

.home-explore:hover {
    color: var(--ocean-cyan);
}

.home-explore i {
    animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ---------- Capability strip ---------- */
.home-strip {
    background: #fff;
    border-bottom: 1px solid rgba(10, 31, 51, 0.06);
}

.home-strip-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #5b7ea3;
    font-size: 0.95rem;
    font-weight: 500;
}

.home-strip-item i,
.home-strip-icon {
    color: #6ea0d4;
    font-style: normal;
    font-family: var(--font-display);
    font-weight: 600;
}

/* ---------- Shared section type ---------- */
.home-kicker {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00639e;
    margin-bottom: 1rem;
}

.home-kicker--light {
    color: rgba(173, 201, 255, 0.95);
}

.home-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0d2339;
    margin: 0;
}

.home-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #5a7385;
    margin: 0;
}

/* ---------- 01 Who we are ---------- */
.home-who {
    background: #fff;
    padding: 6rem 0 5.5rem;
}

.home-who-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.home-who-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.home-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.home-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: #00639e;
    line-height: 1;
}

.home-stat-label {
    font-size: 0.9rem;
    color: #5a7385;
    line-height: 1.35;
}

/* ---------- How we work ---------- */
.home-process {
    background: #f7fafc;
    padding: 5rem 0;
    border-top: 1px solid rgba(10, 31, 51, 0.05);
}

.home-process-head {
    margin-bottom: 2.5rem;
    max-width: 36rem;
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.home-process-step {
    background: #fff;
    border: 1px solid rgba(10, 31, 51, 0.07);
    border-radius: 18px;
    padding: 1.5rem 1.35rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 99, 158, 0.28);
    box-shadow: 0 16px 36px rgba(7, 26, 44, 0.08);
}

.home-process-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #00639e;
    margin-bottom: 1.1rem;
}

.home-process-step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #0d2339;
    margin: 0 0 0.55rem;
}

.home-process-step p {
    margin: 0;
    color: #5a7385;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Featured product ---------- */
.home-feature {
    background: #fff;
    padding: 5.5rem 0;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.home-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1.75rem;
    display: grid;
    gap: 0.7rem;
}

.home-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #0d2339;
    font-weight: 500;
}

.home-feature-list i {
    color: #00639e;
    font-size: 0.85rem;
}

.home-feature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.home-feature-media {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 99, 158, 0.12), transparent 50%),
        #eef4f8;
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid rgba(10, 31, 51, 0.06);
}

.home-feature-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* ---------- Why Nexsysi ---------- */
.home-why {
    background: #eef4f8;
    padding: 5rem 0 5.5rem;
}

.home-why-head {
    margin-bottom: 2.25rem;
    max-width: 40rem;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.home-why-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(10, 31, 51, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(7, 26, 44, 0.08);
}

.home-why-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 99, 158, 0.1);
    color: #00639e;
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
}

.home-why-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #0d2339;
    margin: 0 0 0.5rem;
}

.home-why-card p {
    margin: 0;
    color: #5a7385;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* ---------- 02 Bento ---------- */
.home-possible {
    background: #eef4f8;
    padding: 5.5rem 0 6rem;
}

.home-possible-head {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.home-possible-lede {
    max-width: 22rem;
    justify-self: end;
    text-align: left;
}

.bento {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.1rem;
}

.bento-card {
    position: relative;
    border-radius: 22px;
    padding: 1.6rem 1.7rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

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

.bento-card--navy {
    grid-row: 1 / 2;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(61, 224, 207, 0.12), transparent 40%),
        linear-gradient(145deg, #071a2c 0%, #0d3554 100%);
    color: #fff;
    min-height: 320px;
    box-shadow: 0 18px 50px rgba(7, 26, 44, 0.25);
}

.bento-card--navy:hover {
    box-shadow: 0 24px 56px rgba(7, 26, 44, 0.35);
}

.bento-card--white {
    background: #fff;
    border: 1px solid rgba(10, 31, 51, 0.06);
    box-shadow: 0 10px 30px rgba(7, 26, 44, 0.05);
    color: #0d2339;
}

.bento-card--sand {
    background: linear-gradient(160deg, #e8d5bc 0%, #dfc7a5 100%);
    color: #0d2339;
}

.bento-card--wide {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: 210px;
}

.bento-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 1.4rem;
}

.bento-code-icon {
    font-family: var(--font-display);
    font-weight: 600;
}

.bento-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
    opacity: 0.75;
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.7rem;
}

.bento-copy {
    font-size: 0.95rem;
    line-height: 1.55;
    opacity: 0.8;
    margin: 0 0 1.2rem;
    max-width: 22rem;
}

.bento-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
}

.bento-link--dark {
    color: #0d2339;
}

.bento-code {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(173, 230, 255, 0.45);
    pointer-events: none;
}

.bento-avatars {
    display: flex;
    align-items: center;
    margin: 0.4rem 0 1.4rem;
}

.av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -8px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(7, 26, 44, 0.1);
}

.av:first-child {
    margin-left: 0;
}

.av-n {
    background: #0d2339;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
}

.av-check {
    background: #e8eef5;
    color: #00639e;
}

.av-net {
    background: #dce8f4;
    color: #0d2339;
}

.bento-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    margin-top: auto;
    height: 54px;
}

.bento-bars span {
    width: 10px;
    border-radius: 3px 3px 0 0;
    background: rgba(13, 35, 57, 0.55);
}

.bento-bars span:nth-child(1) { height: 28%; }
.bento-bars span:nth-child(2) { height: 42%; }
.bento-bars span:nth-child(3) { height: 58%; }
.bento-bars span:nth-child(4) { height: 74%; }
.bento-bars span:nth-child(5) { height: 96%; background: rgba(13, 35, 57, 0.8); }

.bento-wide-copy {
    flex: 1;
}

.bento-illu {
    width: 160px;
    flex-shrink: 0;
}

.bento-illu svg {
    width: 100%;
    height: auto;
}

/* ---------- 03 Connect ---------- */
.home-connect {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(61, 224, 207, 0.12), transparent 40%),
        linear-gradient(160deg, #06121f 0%, #0a2740 100%);
    color: #fff;
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.home-connect-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.home-connect-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.home-connect-lede {
    color: rgba(228, 244, 248, 0.78);
    font-size: 1.05rem;
    margin: 0 0 1.75rem;
    max-width: 28rem;
}

.home-connect-mark {
    font-size: clamp(6rem, 16vw, 11rem);
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    transform: rotate(45deg);
    user-select: none;
}

/* ---------- Footer ---------- */
.home-footer {
    background: #fff;
    padding: 3.5rem 0 2rem;
    color: #0d2339;
}

.home-footer .logo-text {
    color: #0d2339;
}

.home-footer .logo-n {
    background: #0d2339;
    color: #fff;
    box-shadow: none;
}

.home-footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(10, 31, 51, 0.1);
}

.home-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.home-footer-tag {
    text-align: center;
    color: #7a8fa3;
    line-height: 1.55;
    margin: 0;
}

.home-footer-address {
    text-align: right;
    color: #7a8fa3;
    line-height: 1.55;
}

.home-footer-address p {
    margin: 0;
}

.home-footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding-top: 1.35rem;
    color: #8aa0b3;
    font-size: 0.88rem;
}

.home-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.home-footer-links a {
    color: #7a8fa3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-footer-links a:hover {
    color: #00639e;
}

.home-footer-social {
    color: #7a8fa3;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.home-footer-social:hover {
    color: #00639e;
}

/* Hide legacy homepage footer styles if any leak */
.home-page > .footer {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .home-who-grid,
    .home-possible-head,
    .home-feature-grid,
    .home-process-grid,
    .home-why-grid,
    .bento,
    .home-footer-top,
    .home-connect-inner {
        grid-template-columns: 1fr;
    }

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

    .bento-card--wide {
        grid-column: auto;
    }

    .home-possible-lede {
        justify-self: start;
    }

    .home-strip-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 1rem;
    }

    .home-footer-tag,
    .home-footer-address {
        text-align: left;
    }

    .home-footer-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-connect-mark {
        display: none;
    }

    .home-hero-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.55rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .home-hero-bar > p,
    .home-hero-bar > p:last-child,
    .home-hero-bar .home-explore {
        text-align: center;
        justify-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .home-page .nav-actions {
        display: none;
    }

    .home-page .mobile-only {
        display: list-item;
    }

    .home-page .nav-careers-link {
        color: var(--ocean-ink);
    }

    .home-strip-inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .home-strip-item {
        justify-content: flex-start;
    }

    .home-who,
    .home-possible,
    .home-connect {
        padding: 4rem 0;
    }

    .home-who-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-stat-row,
    .home-process-grid,
    .home-why-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--wide {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-explore i,
    .home-hero-copy {
        animation: none !important;
    }
}
