/* =========================================================
   COMPANY PAGE
   ========================================================= */

.company-page {
    position: relative;
    overflow: hidden;
}

.company-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.16), transparent 30%),
        radial-gradient(circle at 84% 22%, rgba(56, 189, 248, 0.12), transparent 24%),
        radial-gradient(circle at 52% 82%, rgba(37, 99, 235, 0.08), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.company-page>* {
    position: relative;
    z-index: 1;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.topbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(248, 250, 252, 0.8);
}

.topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 42px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-nav a {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: #0f172a;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.24);
}

.brand-text {
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: #334155;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* =========================================================
   HERO
   ========================================================= */

.company-hero.section {
    padding: 128px 0 92px;
}

.company-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.company-hero-copy h1 {
    margin: 0 0 18px;
    max-width: 12ch;
    color: #f8fbff;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.company-hero-copy p {
    max-width: 62ch;
    margin: 0;
    color: #c8d4e3;
    font-size: 1.08rem;
    line-height: 1.75;
}

.company-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.company-hero-panel {
    display: flex;
    justify-content: center;
}

.company-hero-surface {
    width: 100%;
    max-width: 560px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(7, 16, 32, 0.92), rgba(10, 18, 34, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.surface-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.surface-row span,
.surface-box,
.surface-core {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 16px;
    text-align: center;
    border-radius: 18px;
    font-weight: 700;
}

.surface-row span,
.surface-box {
    color: #dce6f2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.surface-core {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.1rem;
    background: linear-gradient(180deg, rgba(77, 112, 201, 0.45), rgba(52, 77, 138, 0.34));
}

.surface-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* =========================================================
   SHARED SECTIONS
   ========================================================= */

.company-overview.section,
.company-mission.section,
.company-builds.section,
.company-founder.section,
.company-values.section,
.company-cta.section {
    padding: 88px 0;
}

.company-card,
.mission-card,
.build-card,
.founder-panel,
.value-card,
.company-cta-box {
    background: linear-gradient(180deg, rgba(24, 35, 58, 0.88), rgba(13, 20, 37, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   OVERVIEW
   ========================================================= */

.company-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.company-card {
    padding: 30px 28px;
    border-radius: 22px;
}

.company-card h3 {
    margin: 0 0 14px;
    color: #f8fbff;
    font-size: 1.55rem;
    line-height: 1.18;
}

.company-card p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.8;
}

/* =========================================================
   MISSION
   ========================================================= */

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mission-card {
    padding: 34px 30px;
    border-radius: 24px;
}

.mission-card h2 {
    margin: 0 0 14px;
    color: #f8fbff;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mission-card p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.8;
}

/* =========================================================
   BUILDS
   ========================================================= */

.builds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.build-card {
    padding: 28px;
    border-radius: 22px;
}

.build-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 34px;
    margin-bottom: 16px;
    padding: 0 12px;
    color: #8fd8ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 999px;
}

.build-card h3 {
    margin: 0 0 12px;
    color: #f8fbff;
    font-size: 1.4rem;
}

.build-card p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.8;
}

/* =========================================================
   FOUNDER
   ========================================================= */

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.founder-copy h2 {
    margin: 0 0 16px;
    color: #f8fbff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.founder-copy p {
    margin: 0 0 16px;
    color: #c8d4e3;
    line-height: 1.8;
}

.founder-panel {
    padding: 30px;
    border-radius: 24px;
}

.founder-role {
    display: inline-block;
    margin-bottom: 12px;
    color: #9bd8ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.founder-panel h3 {
    margin: 0 0 12px;
    color: #f8fbff;
    font-size: 2rem;
    line-height: 1.1;
}

.founder-panel p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.8;
}

/* =========================================================
   VALUES
   ========================================================= */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.value-card {
    padding: 26px 24px;
    border-radius: 22px;
}

.value-card h3 {
    margin: 0 0 12px;
    color: #f8fbff;
    font-size: 1.25rem;
}

.value-card p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.75;
}

/* =========================================================
   CTA
   ========================================================= */

.company-cta.section {
    padding-top: 48px;
    padding-bottom: 96px;
}

.company-cta-box {
    padding: 40px 36px;
    border-radius: 28px;
}

.company-cta-box h2 {
    margin: 0 0 14px;
    color: #f8fbff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.company-cta-box p {
    margin: 0;
    max-width: 62ch;
    color: #c8d4e3;
    line-height: 1.8;
}

.company-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 80px 0 40px;
    color: #cbd5e1;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

.footer-brand .brand-mark {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.footer-brand .brand-text {
    color: #f8fafc;
    font-weight: 700;
}

.footer-description {
    max-width: 320px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #e2e8f0;
    font-size: 14px;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

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

    .builds-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {

    .company-hero-grid,
    .founder-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .company-hero-copy h1 {
        max-width: none;
    }

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

@media (max-width: 980px) {
    .topbar {
        display: none;
    }

    .header-inner {
        min-height: 78px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 16px;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 16px 22px;
    }

    .header-actions {
        gap: 10px;
    }

    .company-overview-grid,
    .builds-grid,
    .values-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    .company-hero.section,
    .company-overview.section,
    .company-mission.section,
    .company-builds.section,
    .company-founder.section,
    .company-values.section,
    .company-cta.section {
        padding: 64px 0;
    }

    .company-hero.section {
        padding-top: 110px;
    }

    .company-card,
    .mission-card,
    .build-card,
    .founder-panel,
    .value-card,
    .company-cta-box,
    .company-hero-surface {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .pricing-cta-box h2,
    .company-cta-box h2,
    .founder-copy h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .brand-text {
        font-size: 1.28rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .surface-row,
    .surface-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 64px 0 32px;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 1200px) {
    .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .company-stack.section {
        padding: 64px 0;
    }

    .stack-shell {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .stack-layer,
    .stack-card {
        border-radius: 18px;
    }

    .stack-layer {
        min-height: 68px;
        padding: 18px 16px;
        font-size: 0.98rem;
    }

    .stack-card {
        padding: 22px 18px;
    }
}

/* =========================================================
   FOUNDER PHOTO
   ========================================================= */

.founder-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-image {
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.founder-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   THE VENTRYX STACK
   ========================================================= */

.company-stack.section {
    padding: 92px 0;
}

.stack-shell {
    max-width: 1120px;
    margin: 30px auto 0;
    padding: 30px;
    background: linear-gradient(180deg, rgba(14, 23, 42, 0.92), rgba(8, 14, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.stack-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 20px 24px;
    text-align: center;
    color: #e7eef9;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.5;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stack-layer-top,
.stack-layer-bottom {
    background: rgba(255, 255, 255, 0.05);
}

.stack-layer-core {
    color: #ffffff;
    font-size: 1.12rem;
    background: linear-gradient(180deg, rgba(78, 112, 204, 0.48), rgba(49, 79, 150, 0.34));
    border-color: rgba(125, 211, 252, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stack-arrow {
    padding: 16px 0;
    color: #7dd3fc;
    font-size: 2rem;
    line-height: 1;
    text-align: center;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.stack-card {
    position: relative;
    min-height: 100%;
    padding: 24px 22px;
    background: linear-gradient(180deg, rgba(24, 35, 58, 0.88), rgba(13, 20, 37, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.stack-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(125, 211, 252, 0.5),
            rgba(59, 130, 246, 0),
            rgba(59, 130, 246, 0));
    opacity: 0.8;
}

.stack-card-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #8fd8ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-card h3 {
    margin: 0 0 12px;
    color: #f8fbff;
    font-size: 1.28rem;
    line-height: 1.2;
}

.stack-card p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.75;
}