/* ===== About page ===== */

/* --- Page banner (header background image) --- */
.pg-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #08103f;
    display: flex;
    align-items: flex-end;
    /* desktop: medium height */
    min-height: clamp(360px, 46vh, 470px);
    padding: calc(var(--hh) + 36px) 0 64px;
}
.pg-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: #08103f url("../images/bg1.jpg") center/cover no-repeat;
    transform: scale(1.04);
}
.pg-bg::after {
    /* brand colour wash */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 90% at 12% 100%, rgba(15, 10, 199, 0.55), transparent 70%),
        radial-gradient(50% 80% at 92% 100%, rgba(220, 0, 113, 0.45), transparent 70%);
    mix-blend-mode: screen;
}
.pg-grid {
    /* LED pixel grid */
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image: linear-gradient(rgba(5, 11, 31, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 11, 31, 0.55) 1px, transparent 1px);
    background-size: 6px 6px;
}
.pg-hero::before {
    /* dark overlay, same feel as home hero */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
            0deg,
            rgba(5, 8, 30, 0.92) 0%,
            rgba(5, 8, 30, 0.6) 40%,
            rgba(5, 8, 30, 0.35) 70%,
            rgba(5, 8, 30, 0.6) 100%
        ),
        linear-gradient(90deg, rgba(5, 8, 30, 0.75) 0%, rgba(5, 8, 30, 0.25) 70%);
}
.pg-hero::after {
    /* blend into page */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    z-index: -1;
    background: linear-gradient(0deg, #050b1f, transparent);
}
.pg-in {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.pg-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #c9d5f5;
    margin-bottom: 14px;
}
.pg-crumb a {
    color: #c9d5f5;
    text-decoration: none;
}
.pg-crumb a:hover {
    color: #fff;
}
.pg-crumb span {
    opacity: 0.5;
}
.pg-crumb b {
    font-weight: 600;
    color: #f9a8d4;
}
.pg-h1 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}
.pg-h1 .warm {
    background: linear-gradient(120deg, #3b82f6 0%, #8b5cf6 48%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pg-sub {
    margin: 16px 0 0;
    max-width: 560px;
    font-size: clamp(15px, 1.6vw, 18px);
    color: #c9d5f5;
}

/* --- Sections --- */
.ab2-sec {
    position: relative;
}
.ab2-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 24px;
}
.ab2-head {
    margin-bottom: 44px;
    max-width: 720px;
}
.ab2-head .eyebrow,
.ab2-l .eyebrow {
    display: block;
    margin-bottom: 14px;
}
.ab2-h {
    color: #fff;
}
.ab2-h .dim {
    color: rgba(255, 255, 255, 0.4);
}

.ab2-intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}
.ab2-r p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.75;
    color: #c9d5f5;
}
.ab2-r p:last-child {
    margin-bottom: 0;
}

/* Mission & Vision */
.ab2-mv-sec {
    background: radial-gradient(60% 70% at 50% 0%, rgba(59, 76, 230, 0.16), transparent 70%);
}
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.mv-card {
    position: relative;
    padding: 40px 36px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 30, 90, 0.7), rgba(8, 14, 48, 0.85));
    border: 1px solid rgba(120, 160, 255, 0.18);
}
.mv-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}
.mv-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
    pointer-events: none;
}
.mv-ic {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    margin-bottom: 22px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #ec4899);
}
.mv-tag {
    display: block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f472b6;
    margin-bottom: 8px;
}
.mv-card h3 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 28px;
    line-height: 1.15;
    color: #fff;
}
.mv-card p {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.75;
    color: #c9d5f5;
}

/* What we offer */
.of2-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.of2-card {
    position: relative;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 260px;
    max-width: calc(33.333% - 13.4px);
    padding: 30px 28px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(120, 160, 255, 0.16);
    transition:
        transform 0.3s,
        border-color 0.3s,
        background 0.3s,
        box-shadow 0.3s;
}
.of2-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 114, 182, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 50px -24px rgba(139, 92, 246, 0.7);
}
.of2-n {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}
.of2-ic {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 22px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #ec4899);
}
.of2-card h3 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

/* CTA */
.ab2-cta-sec .ab2-wrap {
    padding-top: 24px;
    padding-bottom: 120px;
}
.ab2-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 44px 48px;
    border-radius: 32px;
    background: radial-gradient(70% 140% at 0% 0%, rgba(15, 10, 199, 0.55), transparent 70%),
        radial-gradient(70% 140% at 100% 100%, rgba(220, 0, 113, 0.45), transparent 70%), #0a1240;
    border: 1px solid rgba(150, 120, 255, 0.28);
}
.ab2-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    color: #fff;
}
.ab2-cta p {
    margin: 0;
    color: #d5defa;
    font-size: 16px;
}

/* ---- Tablet ---- */
@media (max-width: 1080px) {
    .of2-card {
        max-width: calc(50% - 10px);
        flex-basis: calc(50% - 20px);
    }
}
@media (max-width: 860px) {
    .ab2-wrap {
        padding: 64px 22px;
    }
    .ab2-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Mobile: compact banner ---- */
@media (max-width: 640px) {
    .pg-hero {
        min-height: clamp(260px, 38vh, 320px);
        padding: calc(var(--hh) + 22px) 0 40px;
    }
    .pg-in {
        padding: 0 20px;
    }
    .pg-crumb {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .pg-sub {
        margin-top: 12px;
    }
    .ab2-wrap {
        padding: 52px 20px;
    }
    .ab2-head {
        margin-bottom: 30px;
    }
    .ab2-r p {
        font-size: 16px;
        line-height: 1.7;
    }
    .mv-card {
        padding: 30px 24px;
        border-radius: 22px;
    }
    .mv-card h3 {
        font-size: 24px;
    }
    .of2-grid {
        gap: 14px;
    }
    .of2-card {
        max-width: 100%;
        flex-basis: 100%;
        min-width: 0;
        padding: 24px 22px 26px;
        border-radius: 20px;
    }
    .of2-card h3 {
        font-size: 18px;
    }
    .ab2-cta-sec .ab2-wrap {
        padding-bottom: 96px;
    }
    .ab2-cta {
        padding: 30px 24px;
        border-radius: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
}
@media (min-width: 1600px) {
    .pg-hero {
        min-height: 480px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .of2-card {
        transition: none;
    }
}

/* ===== Banner images per page ===== */
.pg-hero.bg-about .pg-bg {
    background-image: url("../images/bg1.jpg");
}
.pg-hero.bg-products .pg-bg {
    background-image: url("../images/bg1.jpg");
}
.pg-hero.bg-apps .pg-bg {
    background-image: url("../images/bg1.jpg");
}
.pg-hero.bg-contact .pg-bg {
    background-image: url("../images/bg1.jpg");
}

/* ===== About: image boxes ===== */
.ab2-intro {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.ab2-l .ab2-h {
    margin-bottom: 26px;
}
.ab2-l p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.75;
    color: #c9d5f5;
}
.ab2-l p:last-child {
    margin-bottom: 0;
}
.img-box {
    position: relative;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(140deg, #3b82f6, #8b5cf6 50%, #ec4899);
    box-shadow: 0 40px 80px -36px rgba(139, 92, 246, 0.7);
}
.img-box::before {
    content: "";
    position: absolute;
    inset: -14px -14px auto auto;
    width: 46%;
    height: 46%;
    border-radius: 30px;
    border: 1px dashed rgba(244, 114, 182, 0.45);
    z-index: -1;
}
.img-box-in {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #0a1240;
    height: 100%;
}
.img-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-box-in::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 28, 0.7));
    pointer-events: none;
}
.img-chip {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(5, 11, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.img-chip i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f472b6;
    box-shadow: 0 0 12px #ec4899;
}
.ab2-photo {
    aspect-ratio: 4/3.5;
}
.mv-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: stretch;
}
.mv-photo {
    min-height: 100%;
}
.mv-photo .img-box-in {
    min-height: 520px;
}
.mv-photo img {
    position: absolute;
    inset: 0;
}
.mv-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mv-stack .mv-card {
    flex: 1;
}
.ab2-mv-sec .ab2-head {
    max-width: none;
}
@media (max-width: 860px) {
    .ab2-intro {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .mv-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mv-photo .img-box-in {
        min-height: 0;
        aspect-ratio: 4/3;
    }
    .img-box::before {
        display: none;
    }
}
@media (max-width: 640px) {
    .ab2-l p {
        font-size: 16px;
        line-height: 1.7;
    }
    .img-box,
    .img-box-in {
        border-radius: 22px;
    }
    .img-chip {
        left: 14px;
        bottom: 14px;
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* ===== Applications page: 3 x 3 grid ===== */
.apg-sec .ab2-wrap {
    padding-bottom: 40px;
}
.apg-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 52px;
}
.apg-head .eyebrow {
    color: #f472b6;
}
.apg-head .ab2-h {
    margin-top: 12px;
}
.apg-head p {
    margin: 18px auto 0;
    color: #d6dcf7;
    font-size: 17px;
    max-width: 640px;
}
.ap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.ap-grid .ap-card {
    flex: none;
    margin: 0 !important;
    aspect-ratio: 1/1.02;
    scroll-snap-align: none;
}
.ap-grid .ap-body p {
    display: block;
}
.ap-grid .ap-body h3 {
    font-size: clamp(18px, 1.7vw, 22px);
}
@media (max-width: 980px) {
    .ap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}
@media (max-width: 600px) {
    .ap-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ap-grid .ap-card {
        aspect-ratio: 4/3.3;
    }
    .apg-head {
        margin-bottom: 32px;
    }
    .apg-head p {
        font-size: 16px;
    }
}

/* ===== Contact page ===== */
.ct-sec {
    position: relative;
    background: radial-gradient(55% 60% at 90% 10%, rgba(220, 0, 113, 0.14), transparent 70%),
        radial-gradient(55% 60% at 5% 90%, rgba(15, 10, 199, 0.22), transparent 70%);
}
.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: stretch;
}
.ct-info .eyebrow {
    display: block;
    margin-bottom: 14px;
}
.ct-info p.ct-lead {
    margin: 18px 0 30px;
    font-size: 17px;
    line-height: 1.7;
    color: #c9d5f5;
    max-width: 520px;
}
.ct-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ct-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(120, 160, 255, 0.16);
    transition:
        transform 0.3s,
        border-color 0.3s,
        background 0.3s,
        box-shadow 0.3s;
}
a.ct-item:hover {
    transform: translateX(6px);
    border-color: rgba(244, 114, 182, 0.55);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -24px rgba(139, 92, 246, 0.8);
}
.ct-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #ec4899);
}
.ct-tx {
    min-width: 0;
}
.ct-tx small {
    display: block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f9a8d4;
    margin-bottom: 3px;
}
.ct-tx b {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.ct-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.ct-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.55);
    transition:
        background 0.25s,
        transform 0.25s;
}
.ct-wa:hover {
    background: rgba(37, 211, 102, 0.28);
    transform: translateY(-2px);
    color: #fff;
}
.ct-map {
    position: relative;
    min-height: 560px;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(140deg, #3b82f6, #8b5cf6 50%, #ec4899);
    box-shadow: 0 40px 80px -36px rgba(139, 92, 246, 0.7);
}
.ct-map-in {
    position: absolute;
    inset: 2px;
    border-radius: 28px;
    overflow: hidden;
    background: #0a1240;
}
.ct-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(92%) hue-rotate(185deg) saturate(0.85) contrast(0.92) brightness(0.95);
}
.ct-pin {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(5, 11, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}
.ct-pin b {
    display: block;
    color: #fff;
    font-size: 16px;
}
.ct-pin span {
    color: #9fb0dd;
    font-size: 13.5px;
}
.ct-pin a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, #3b82f6, #8b5cf6 48%, #ec4899);
}
.ct-pin a:hover {
    filter: brightness(1.12);
    color: #fff;
}
@media (max-width: 980px) {
    .ct-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .ct-map {
        min-height: 420px;
    }
}
@media (max-width: 640px) {
    .ct-item {
        padding: 14px 16px;
        gap: 14px;
        border-radius: 18px;
    }
    .ct-ic {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    .ct-tx b {
        font-size: 16px;
    }
    .ct-info p.ct-lead {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .ct-map {
        min-height: 360px;
        border-radius: 24px;
    }
    .ct-map-in {
        border-radius: 22px;
    }
    .ct-btns .dp,
    .ct-btns .ct-wa {
        width: 100%;
        justify-content: center;
    }
    .ct-btns .dp {
        justify-content: space-between;
    }
}

/* Products page: section sits directly below banner */
.pg-products #products {
    margin-top: 0;
}
.ct-sec .ab2-wrap {
    padding-bottom: 110px;
}
@media (max-width: 640px) {
    .ct-sec .ab2-wrap {
        padding-bottom: 84px;
    }
}
