/* ============================================================
   Testdrive — CSS
   12-col grid · 1440 max · 24 px gutter
   Fonts: Darker Grotesque, Onest, Inter
   Primary: #4D30FF
   ============================================================ */
html,
html.has-promo {
	padding-top:0px
}
/* ---------- base reset ---------- */
.testdrive.base-css {
    overflow-x: hidden;
    margin-top: 0 !important;
}
.testdrive * { box-sizing: border-box; }
.testdrive img { max-width: 100%; height: auto; display: block; }
.testdrive a { text-decoration: none; }

/* ---------- container ---------- */
.testdrive .hp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 80px);
    width: 100%;
}

/* ---------- shared typography ---------- */
.testdrive .hp-section-title {
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 400;
    font-size: 72px;
    line-height: 48px;
    color: #111;
    text-align: center;
    letter-spacing: -0.48px;
    margin: 0 0 12px;
}

.testdrive .hp-section-sub {
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 500;
    font-size: 48px;
    color: #4D30FF;
    text-align: center;
    margin: 0;
}
.testdrive .hp-section-sub a {
    color: #4D30FF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ Buttons and CTAs ============ */


/* ============ HERO ============ */
.has-promo .testdrive .hp-hero{
	min-height: clamp(450px, 100vh, 1200px);
}
.testdrive .hp-hero {
    position: relative;
    /* min-height: 600px; */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: #0a0a0a url('/wp-content/uploads/CyberAGI-graphic-banner.png') no-repeat center bottom / cover;
}
.testdrive .hp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 180px;
}
.testdrive .hp-hero__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: clamp(44px, 10vw, 128px);
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.15;
    background: linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.60) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -5px;
}
.testdrive .hp-hero__subtitle {
    font-family: 'Onest', sans-serif;
    font-size: clamp(18px, 2vw, 32px);
    color: rgba(255,255,255,.65);
    margin: 0;
    font-style: normal;
    font-weight: 400;
    line-height: 39px; /* 121.875% */
    letter-spacing: -1px;
}
.testdrive .hp-hero__glow {
    position: absolute;
    bottom: -47px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 94px;
    background: linear-gradient(to bottom, #d729f8, rgba(194,122,255,.3) 50%, #efc8fe);
    filter: blur(100px);
    z-index: 3;
    pointer-events: none;
}

/* ============ PRODUCT CARDS ============ */
.testdrive .hp-products {
    padding: 80px 0 0;
    /* background: #fff; */
    position: relative;
    z-index: 1;
}
.testdrive .hp-products__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testdrive .hp-product-card {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 27px 23px;
    display: flex;
    flex-direction: column;
    min-height: 298px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0), 0 19px 51px rgba(0,0,0,.4), 0 0 0 1px rgba(139,92,246,.2);
    text-decoration: none;
    color: inherit;
    transition: transform 150ms ease-in;
	text-align: center;
}
.testdrive .hp-product-card:hover {
    transform: scale(1.01);
}
.testdrive .hp-product-card:active {
    transform: scale(0.96);
}
.testdrive .hp-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,12,24,.8), transparent);
    pointer-events: none;
}
.testdrive .hp-product-card__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #4D30FF;
    border: .96px solid #4D30FF;
    border-radius: 9999px;
    padding: 9px 16px;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #fff;
    letter-spacing: .3px;
    line-height: 1.22;
    margin-bottom: auto;
}
.testdrive .hp-product-card__body {
    position: relative;
    z-index: 1;
	margin-top: 25px;
    margin-bottom: auto;
	text-align: center;
}
.testdrive .hp-product-card__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 30px;
    color: #f5f7fa;
    margin: 0 0 12px;
}
.testdrive .hp-product-card__sub {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 23px;
    color: rgba(255,255,255,.6);
    margin: 0;
}
.testdrive .hp-product-card__cta {
    position: relative;
    z-index: 1;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    transition: gap .2s;
    align-self: center;
}
.testdrive .hp-product-card__cta:hover{
    color: #B8A8FF !important;
}
.testdrive .hp-product-card__cta .hp-arrow-icon {
    flex-shrink: 0;
    transition: transform .2s;
}
.testdrive .hp-product-card__cta:hover .hp-arrow-icon {
    transform: translateX(4px);
}
.testdrive .hp-product-card__cta:active{
    color: #B8A8FF !important;
}
.testdrive .hp-product-card__cta:active .hp-arrow-icon{
    transform: translateX(3px);
}
.testdrive .hp-product-card__cta:focus-visible{
    color: #ffffff !important;
    padding: 6px 4px !important;
    border-radius: 4px !important;
    outline: 1.5px solid #8B7BFF !important;
    align-self: flex-start !important;
}

/* outline button */
.testdrive .hp-btn-outline {
    display: inline-block;
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #050209;
    border: 2px solid #050209;
    border-radius: 16px;
    padding: 14px 18px 18px;
    line-height: 30px;
    letter-spacing: 0;
    transition: background .2s, color .2s;
}
.testdrive .hp-btn-outline:hover {
    border: 2px solid #4D30FF !important;
    background: rgba(77, 48, 255, 0.02);
    box-shadow: none !important;
    color: #4D30FF !important;
}
.testdrive .hp-btn-outline:active {
    border: 2px solid #2909F7;
    background: rgba(77, 48, 255, 0.02) !important;
    box-shadow: none !important;
    transform: scale(0.96);
}
.testdrive .hp-btn-outline:focus-visible {
    color: #050209 !important;
    border: 2px solid #050209 !important;
    background: rgba(255, 255, 255, 0.01) !important;
    box-shadow: 0 0 1px 3px rgba(77, 48, 255, 0.25) !important;
}

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

@media (min-width: 1920px){
	.testdrive .hp-hero,
	.has-promo .testdrive .hp-hero{
		min-height: clamp(450px, 100vh, 1200px);
    }
}

@media (max-width: 1280px) {
    .testdrive .hp-product-card{
        justify-content: space-around !important;
    }
    .testdrive .hp-product-card__badge{
        margin-bottom: 40px !important;
    }
    .testdrive .hp-product-card__body{
        margin-top: 0 !important;
    }
    .testdrive .hp-product-card__title{
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .testdrive .hp-platform__tab-desc{
        font-size: 16px !important;
    }
    .testdrive .hp-product-card__cta{
        font-size: 15px !important;
    }
    .testdrive .hp-btn-white{
        font-size: 20px !important;
    }
    .testdrive .hp-btn-outline{
        font-size: 20px !important;
    }
    br.tablet-only{
        display: none !important;
    }
}

@media (max-width: 991px) {
    .testdrive .hp-hero__content { padding: 140px 20px 60px; }

    .testdrive .hp-products__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .testdrive .hp-product-card {
        min-height: auto;
        padding: 20px;
    }
    .testdrive .hp-product-card__badge {
        margin-bottom: 16px;
    }
    .testdrive .hp-product-card__title {
        font-size: 20px;
        line-height: 26px;
    }
    .testdrive .hp-product-card__sub {
        font-size: 14px;
        line-height: 20px;
    }
    .testdrive .hp-product-card__cta {
        font-size: 14px;
    }
    .testdrive .hp-impact__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    br.tablet-only{
        display: block !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .testdrive .hp-products__cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .testdrive .hp-products__cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .testdrive .hp-products__cards .hp-product-card:nth-child(3){
        grid-column: span 2;
        justify-self: center;
        width: 50%;
    }
    .testdrive .hp-products__cards{
        gap: 24px !important;
    }
    .testdrive .hp-product-card__badge{
        margin-bottom: 40px !important;
        font-size: 16px;
    }
    .testdrive .hp-btn-white{
        font-size: 21px !important;
    }
    .testdrive .hp-cta__title{
        font-size: 38px !important;
    }
    .testdrive .hp-section-title{
        font-size: 62px !important;
        text-align: center !important;
    }
    .testdrive .hp-section-sub{
        font-size: 32px !important;
    }
    br.mobile-only{
        display: none !important;
    }
    br.desktop-only{
        display: none !important;
    }
    .testdrive .hp-link-arrow{
        font-size: 20px !important;
    }
    .purple-glow-wrapper{
        background-size: cover !important;
    }
}

@media (max-width: 767px) {
    /* background effects for entire page sections */
    .testdrive{
        background: linear-gradient(180deg, #F1F1F7 0.04%, #FFF 84.64%);
    }
    .purple-glow-wrapper{
        background: none !important;
    }
    .testdrive .hp-hero__title{
        font-size: 44px !important;
        letter-spacing: -1.8px !important;
    }
    .has-promo .testdrive .hp-hero{ min-height: 93vh;}
    .testdrive .hp-hero { min-height: 100vh; }
    .testdrive .hp-hero__content { padding: 120px 16px 50px; }
    .testdrive .hp-products { padding: 40px 0 0; }

    .testdrive .hp-products__cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .testdrive .hp-product-card {
        min-height: auto;
        padding: 20px;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0;
    }
    .testdrive .hp-product-card__badge {
        margin-bottom: 12px;
        padding: 6px 12px;
        font-size: 14px;
    }
    .testdrive .hp-product-card__body {
        width: 100%;
        margin-top: 0;
    }
    .testdrive .hp-product-card__title {
        font-size: 20px;
        line-height: 26px;
    }
    .testdrive .hp-product-card__sub {
        font-size: 14px;
        line-height: 20px;
    }
    .testdrive .hp-product-card__cta {
        font-size: 14px;
        margin-top: 6px;
    }
    .hp-product-card{
        padding: 25px !important;
    }
    .testdrive .hp-product-card__badge{
        margin-bottom: 40px;
    }
    .hp-product-card__body .hp-product-card__title{
        margin-bottom: 8px !important;
    }
    .hp-product-card__body .hp-product-card__sub{
        margin-bottom: 12px !important;
    }
    .testdrive .hp-cta__title{
        color: #FFF;
        text-align: center;
        font-family: "Darker Grotesque" !important;
        font-size: 28px !important;
        font-style: normal !important;
        font-weight: 500 !important;
        line-height: 40px !important; /* 142.857% */
        letter-spacing: -1.07px !important;
    }
    .testdrive .hp-cta .hp-btn-white{
        font-size: 18px !important;
        padding: 7px 12px !important;
        border-radius: 12px !important;
    }
    br.tablet-only{
        display: none !important;
    }
	br.xs-hide {
		display:none !important;
	}
}




@media (min-width: 768px) {
	br.sm-hide {
		display:none !important;
	}
}

@media (min-width: 1024px) {
	br.md-hide {
		display:none !important;
	}
}

@media (min-width: 1280px) {
	br.lg-hide {
		display:none !important;
	}
}

@media (min-width: 1440px) {
	br.xl-hide {
		display:none !important;
	}
}
