/* ============================================================
   Product CTAs — shared styles for demo / video / dark-CTA
   Covers: TPRM, CRQ, CTEM, AI-SPM, Competition
   ============================================================ */

/* ── Shared: container + btn-primary ──────────────────────── */
.video-section .container,
.cta-section .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
}

.demo-section .btn-primary,
.video-section .btn-primary,
.cta-section .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4d30ff;
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 9999px;
    padding: 13px 36px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.demo-section .btn-primary:hover,
.video-section .btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 24px rgba(77,48,255,0.35);
    color: #fff;
    text-decoration: none;
}

.cta-section .btn-primary {
    box-shadow: 0 12px 20px rgba(77,48,255,0.4), 0 6px 10px rgba(77,48,255,0.2);
}

/* ── Demo section ──────────────────────────────────────────── */
.demo-section {
    padding: 80px 0;
    background: #fff;
}

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

.demo-section .hp-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.demo-section .hp-section-title {
    font-family: "Darker Grotesque", sans-serif;
    font-weight: 400;
    font-size: clamp(34px, 12px + 4.3vw, 72px);
    line-height: 1;
    letter-spacing: -1.6px;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
}

.demo-section .hp-section-sub {
    font-family: "Darker Grotesque", sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 10px + 2.7vw, 48px);
    color: #4d30ff;
    text-align: center;
    margin: 0;
}

.demo-body {
    display: grid;
    grid-template-columns: 1.3fr 3fr;
    gap: 28px;
    align-items: start;
}

.demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    position: sticky;
    top: 88px;
}

.demo-chapter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-chapter-list[hidden] { display: none; }

.demo-chapter-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transform: scale(0.96);
    transition: transform 150ms ease-in;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.demo-chapter-btn:hover { transform: scale(1.01); }

.demo-chapter-title {
    position: relative;
    font-family: "Onest", sans-serif;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
    transition: color 0.15s ease;
    letter-spacing: -0.125px;
}

.demo-chapter-title::after {
    content: '';
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 60px;
    height: 2px;
    background: #4d30ff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.demo-chapter-btn.active .demo-chapter-title::after { opacity: 0.4; }

.demo-video { position: relative; }

.hp-arcade__frame-wrap {
    display: none;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-arcade__frame-wrap.hp-active { display: block; }
.hp-arcade__frame-wrap.hp-visible { opacity: 1; }

.hp-arcade__frame-wrap iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
}

.hp-arcade__mobile-bar {
    display: none;
    justify-content: center;
    padding: 16px 0 0;
}

.hp-arcade__optgroup {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.hp-arcade__optgroup[hidden] { display: none; }

.hp-arcade__chapter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    font-family: "Onest", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.4;
    cursor: pointer;
    transition: transform 150ms ease-in;
}

.hp-arcade__chapter-btn:hover { transform: scale(1.01); }
.hp-arcade__chapter-btn:active { transform: scale(0.96); }

.hp-arcade__chapter-btn.active {
    border-color: #3752f3;
    background: rgba(55,82,243,0.05);
    color: #3752f3;
    font-weight: 600;
}

/* ── Global: arcade overlay + bottom sheet ─────────────────── */
.hp-arcade__sheet-product-label {
    font-family: "Darker Grotesque", sans-serif;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #06050c;
    letter-spacing: -0.2px;
    text-align: center;
    margin: 50px 0 10px !important;
}

.hp-arcade__sheet-product-label:first-child { margin-top: 0 !important; }

.hp-arcade__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.hp-arcade__overlay.active { display: block; }

.hp-arcade__sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    padding: 16px 20px 40px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hp-arcade__sheet.open { transform: translateY(0); }

.hp-arcade__sheet-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.hp-arcade__sheet-close {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    padding: 0 4px;
    min-width: unset;
}

.hp-arcade__sheet-head { text-align: center; }

.hp-arcade__sheet-title {
    font-family: "Darker Grotesque", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #06050c;
}

.hp-arcade__sheet-sub {
    font-family: "Onest", sans-serif;
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    margin: 0 0 20px;
}

body.hp-sheet-open { overflow: hidden; }

/* ── Video section ─────────────────────────────────────────── */
.video-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(97.13deg, rgba(224,218,255,0.1) 0%, rgba(77,48,255,0.06) 100%), #f6f5fb;
}

.video-section-bg { display: none; }

.video-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.section-heading {
    text-align: center;
    margin-bottom: 52px;
}

.section-heading h2 {
    font-family: "Darker Grotesque", sans-serif;
    font-size: clamp(32px, 4vw, 72px);
    font-weight: 400;
    color: #181c22;
    letter-spacing: -1.6px;
    line-height: 1.1;
    margin: 0 0 12px;
}

.section-heading .sub {
    font-family: "Darker Grotesque", sans-serif;
    font-size: clamp(22px, 2.5vw, 46px);
    font-weight: 500;
    color: #4d30ff;
    letter-spacing: -0.96px;
    line-height: 1;
    margin: 0;
}

.video-card {
    background: #000;
    border-radius: 16px;
    box-shadow: 0 4px 139px 0 #4d30ff;
    overflow: hidden;
    width: 100%;
    max-width: 666px;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ── Dark CTA section ──────────────────────────────────────── */
.cta-section {
    background: #0a0814;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg-frames {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-bg-frames img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.cta-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -208px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77,48,255,0.25) 0%, rgba(77,48,255,0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-glow-2 {
    position: absolute;
    width: 500px;
    height: 400px;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77,48,255,0.3) 0%, rgba(77,48,255,0) 60%);
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 44px;
}

.cta-headline {
    font-family: "Darker Grotesque", sans-serif;
    font-size: clamp(36px, 5vw, 80px);
    font-weight: 700;
    color: #fff;
    line-height: 0.92;
    margin: 0;
    white-space: nowrap;
}

.cta-headline .gradient-text {
    background: linear-gradient(136.63deg, #8b7fff 8.49%, #b1a6ff 50%, #c5baff 91.51%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .demo-body { grid-template-columns: 1fr; }
    .demo-sidebar { display: none; }
    .hp-arcade__mobile-bar { display: flex; }
}

@media (max-width: 1023px) {
    .cta-headline { white-space: normal; }
}

@media (max-width: 767px) {
    .video-section .container,
    .cta-section .container { padding: 0 16px; }
    .demo-section,
    .video-section,
    .cta-section { padding: 60px 0; }
    .demo-section .hp-section-title { font-size: 34px; }
    .demo-section .hp-section-sub { font-size: 24px; }
    .cta-headline { font-size: clamp(30px, 7vw, 52px); }
}

/* ── Logo grid (hp-logos / crq-container) ─────────────────── */
.crq-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

.hp-logos {
    padding: 72px 0;
    position: relative;
    z-index: 1;
    background: #fff;
    text-align: center;
}
.hp-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.hp-section-header .hp-section-title {
    font-family: "Darker Grotesque", sans-serif;
    font-weight: 400;
    font-size: clamp(34px, 12px + 4.3vw, 72px);
    line-height: 1;
    letter-spacing: -1.6px;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
}
.hp-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px clamp(8px, 2vw, 24px);
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.hp-logos-grid li {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 8px 4px;
    list-style: none;
    max-height: 100px;
}
.hp-logos-grid li img {
    width: 100%;
    max-width: 150px;
    height: 100px;
    object-fit: cover;
}
@media (max-width: 1024px) {
    .hp-logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hp-logos-grid li img {
        height: auto;
    }
}
@media (max-width: 767px) {
    .hp-logos {
        padding: 40px 0;
    }
    .hp-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hp-section-header .hp-section-title {
        font-size: 34px;
    }
}
