/* ============================================================
   GrowthPath CRM — Public Landing Hub-and-Spoke
   Scoped under .gp-landing-hub so nothing leaks into logged-in UI.
   Responsive: desktop shows radial hub, tablet collapses to 2-col
   grid, mobile stacks cards vertically.
   ============================================================ */

.gp-landing-hub {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background: linear-gradient(180deg, #071227 0%, #0f2b46 55%, #173f66 100%);
    position: relative;
    overflow: hidden;
}

.gp-landing-hub * { box-sizing: border-box; }

/* ── HERO SCREEN ──────────────────────────────────────────── */
.gp-landing-hub .hero-screen {
    min-height: min(88vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.gp-landing-hub .hero-inner {
    max-width: 980px;
    width: 100%;
    text-align: center;
    animation: hubFadeUp .6s ease both;
}

.gp-landing-hub .brand-strip {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    opacity: .85;
}

.gp-landing-hub .powered-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.gp-landing-hub .hero-blazing-logo {
    height: 140px;
    width: auto;
    display: block;
}

.gp-landing-hub .powered-inline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}

.gp-landing-hub .blazing-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1;
    margin-top: 2px;
}

.gp-landing-hub .blazing-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.gp-landing-hub .blazing-apps {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4em;
    color: #ff6b1a;
}

.gp-landing-hub .hero-copy { margin: 0 auto 40px; max-width: 860px; }

.gp-landing-hub .hero-title {
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cfe1f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gp-landing-hub .hero-text {
    font-size: clamp(15px, 1.8vw, 19px);
    line-height: 1.6;
    margin: 0;
    color: rgba(255,255,255,.82);
}

.gp-landing-hub .hero-cta {
    display: inline-block;
    padding: 16px 42px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    background: linear-gradient(135deg, #0062ad 0%, #1e88e5 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 12px 32px -8px rgba(30,136,229,.55), 0 2px 6px rgba(0,0,0,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.gp-landing-hub .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px -8px rgba(30,136,229,.7), 0 4px 10px rgba(0,0,0,.3);
}

.gp-landing-hub .hero-cta:active { transform: translateY(0); }

/* ── HUB SCREEN ───────────────────────────────────────────── */
.gp-landing-hub .hub-screen {
    display: none;
    padding: 40px 24px 80px;
}
.gp-landing-hub .hub-screen.is-visible {
    display: block;
    animation: hubFadeUp .5s ease both;
}

.gp-landing-hub .hub-inner { max-width: 1240px; margin: 0 auto; }

.gp-landing-hub .hub-topbar { margin-bottom: 20px; }

.gp-landing-hub .back-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.gp-landing-hub .back-btn:hover { background: rgba(255,255,255,.15); }

.gp-landing-hub .hub-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
}

.gp-landing-hub .hub-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #6cb4ff;
    margin-bottom: 14px;
}

.gp-landing-hub .hub-title {
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.gp-landing-hub .hub-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.6;
    color: rgba(255,255,255,.75);
    margin: 0;
}

/* ── HUB SYSTEM (radial layout, desktop) ──────────────────── */
.gp-landing-hub .hub-system {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 50px;
}

.gp-landing-hub .hub-rings {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(108,180,255,.14) 0, rgba(108,180,255,0) 62%),
        repeating-radial-gradient(circle at center, transparent 0, transparent 88px, rgba(108,180,255,.18) 89px, transparent 90px);
    pointer-events: none;
}

.gp-landing-hub .spoke-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38%;
    height: 1px;
    background: linear-gradient(90deg, rgba(108,180,255,.6) 0%, rgba(108,180,255,0) 100%);
    transform-origin: 0 0;
    pointer-events: none;
}

/* 7 spokes = 360/7 ≈ 51.43° apart, starting at -90° (top) */
.gp-landing-hub .spoke-line.line-1 { transform: rotate(-90deg); }
.gp-landing-hub .spoke-line.line-2 { transform: rotate(-38.57deg); }
.gp-landing-hub .spoke-line.line-3 { transform: rotate(12.86deg); }
.gp-landing-hub .spoke-line.line-4 { transform: rotate(64.29deg); }
.gp-landing-hub .spoke-line.line-5 { transform: rotate(115.71deg); }
.gp-landing-hub .spoke-line.line-6 { transform: rotate(167.14deg); }
.gp-landing-hub .spoke-line.line-7 { transform: rotate(218.57deg); }

.gp-landing-hub .center-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 26%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1e88e5 0%, #0d4a8e 70%, #062a58 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6%;
    z-index: 2;
    animation: hubPulse 2.6s ease-in-out infinite;
}

@keyframes hubPulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(30,136,229,.35),
            0 0 0 10px rgba(30,136,229,.12),
            0 0 0 22px rgba(30,136,229,.05),
            0 30px 60px -20px rgba(30,136,229,.5);
    }
    50% {
        box-shadow:
            0 0 0 14px rgba(30,136,229,.22),
            0 0 0 30px rgba(30,136,229,.08),
            0 0 0 46px rgba(30,136,229,.03),
            0 30px 60px -20px rgba(30,136,229,.55);
    }
}

.gp-landing-hub .center-logo-image {
    max-width: 55%;
    max-height: 40%;
    object-fit: contain;
    margin-bottom: 8px;
    opacity: .92;
}

.gp-landing-hub .center-hub-title {
    font-size: clamp(11px, 1.2vw, 15px);
    font-weight: 700;
    margin: 0;
    letter-spacing: .02em;
    line-height: 1.2;
}

/* Spoke cards — positioned around the ring */
.gp-landing-hub .spoke-card {
    position: absolute;
    width: 22%;
    min-width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 16px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-family: inherit;
}

.gp-landing-hub .spoke-title {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.gp-landing-hub .spoke-text {
    font-size: clamp(10px, .9vw, 12px);
    color: rgba(255,255,255,.72);
    line-height: 1.35;
}

/* Spoke positions: 7 cards evenly distributed around the ring.
   Math: 360°/7 ≈ 51.43° between cards, starting at top (-90°).
   Each left/top is the CENTER of the card on a circle of radius 40% from
   container center. Uniform `translate(-50%, -50%)` centers each card on
   that point so spacing stays visually symmetric. */
.gp-landing-hub .spoke-card { transform: translate(-50%, -50%); }

.gp-landing-hub .spoke-1 { top: 10%;   left: 50%;   }  /*   -90° — top          */
.gp-landing-hub .spoke-2 { top: 24%;   left: 83%;   }  /* -38.6° — upper-right  */
.gp-landing-hub .spoke-3 { top: 59.4%; left: 91%;   }  /*  12.9° — right        */
.gp-landing-hub .spoke-4 { top: 88%;   left: 68%;   }  /*  64.3° — lower-right  */
.gp-landing-hub .spoke-5 { top: 88%;   left: 32%;   }  /* 115.7° — lower-left   */
.gp-landing-hub .spoke-6 { top: 59.4%; left: 9%;    }  /* 167.1° — left         */
.gp-landing-hub .spoke-7 { top: 24%;   left: 17%;   }  /* 218.6° — upper-left   */

.gp-landing-hub .spoke-card:hover,
.gp-landing-hub .spoke-card.is-active {
    background: rgba(30,136,229,.28);
    border-color: rgba(108,180,255,.7);
    box-shadow: 0 18px 40px -10px rgba(30,136,229,.55);
    z-index: 3;
}

/* ── COMPARE GRID ─────────────────────────────────────────── */
.gp-landing-hub .hub-compare { margin: 60px auto 40px; max-width: 1100px; }

.gp-landing-hub .compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gp-landing-hub .compare-head {
    padding: 14px 20px;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    font-size: 15px;
    letter-spacing: .02em;
}

.gp-landing-hub .compare-head.traditional {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-bottom: none;
    color: rgba(255,255,255,.8);
}

.gp-landing-hub .compare-head.growthpath {
    background: linear-gradient(135deg, #0062ad 0%, #1e88e5 100%);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(30,136,229,.5);
}

.gp-landing-hub .compare-body {
    padding: 20px 24px 24px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 220px;
}

.gp-landing-hub .compare-body ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    font-size: 15px;
}

.gp-landing-hub .compare-body li { margin-bottom: 10px; }

/* ── TAGLINE ──────────────────────────────────────────────── */
.gp-landing-hub .hub-tagline {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 24px;
    white-space: nowrap;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255,255,255,.9);
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.gp-landing-hub .hub-tagline strong { color: #6cb4ff; font-weight: 700; }

/* ── FEATURE MODAL ────────────────────────────────────────── */
.gp-feature-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4,12,26,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1050;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.gp-feature-modal.is-open { display: flex; animation: modalFade .25s ease; }

.gp-feature-modal-panel {
    background: linear-gradient(180deg, #102c4d 0%, #0a1d37 100%);
    color: #fff;
    border-radius: 18px;
    width: min(920px, 100%);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(108,180,255,.25);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,.7);
}

.gp-feature-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gp-feature-modal-head h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.gp-feature-modal-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background .15s;
}

.gp-feature-modal-close:hover { background: rgba(255,255,255,.1); color: #fff; }

.gp-feature-modal-body {
    padding: 20px 24px 28px;
    overflow-y: auto;
}

.gp-feature-modal .modal-media {
    margin: 0 0 18px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,.08);
}

.gp-feature-modal .modal-media img,
.gp-feature-modal .modal-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: #000;
}

.gp-feature-modal .modal-media:empty { display: none; }

.gp-feature-modal .modal-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.88);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes hubFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet: shrink hub, tighter spokes */
@media (max-width: 991.98px) {
    .gp-landing-hub .hub-system { max-width: 700px; }
    .gp-landing-hub .spoke-card { min-width: 130px; width: 24%; padding: 10px; }
    .gp-landing-hub .spoke-title { font-size: 12px; }
    .gp-landing-hub .spoke-text { font-size: 10.5px; }
    .gp-landing-hub .center-hub { width: 28%; }
}

/* Mobile: drop the radial layout; show stacked cards */
@media (max-width: 767.98px) {
    .gp-landing-hub .hero-screen { min-height: 70vh; padding: 40px 18px; }

    .gp-landing-hub .hub-screen { padding: 24px 16px 60px; }

    .gp-landing-hub .hub-system {
        aspect-ratio: auto;
        max-width: 520px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .gp-landing-hub .hub-rings,
    .gp-landing-hub .spoke-line { display: none; }

    .gp-landing-hub .center-hub {
        position: static;
        transform: none;
        width: 100%;
        grid-column: 1 / -1;
        aspect-ratio: auto;
        padding: 24px 18px;
        border-radius: 16px;
        margin-bottom: 6px;
    }

    .gp-landing-hub .center-logo-image { max-height: 48px; margin-bottom: 6px; }
    .gp-landing-hub .center-hub-title { font-size: 15px; }

    .gp-landing-hub .spoke-card {
        position: static;
        transform: none !important;
        width: 100%;
        min-width: 0;
        aspect-ratio: auto;
        padding: 16px 14px;
        text-align: left;
        align-items: flex-start;
        min-height: 110px;
    }

    .gp-landing-hub .spoke-title { font-size: 13px; }
    .gp-landing-hub .spoke-text { font-size: 11.5px; }

    .gp-landing-hub .hub-tagline { white-space: normal; }
    .gp-landing-hub .compare-grid { grid-template-columns: 1fr; gap: 14px; }
    .gp-landing-hub .compare-body { min-height: 0; padding: 16px 18px 20px; }

    .gp-feature-modal-panel { max-height: 92vh; border-radius: 14px; }
    .gp-feature-modal-head { padding: 14px 18px; }
    .gp-feature-modal-body { padding: 16px 18px 22px; }
}

/* Small mobile: single column */
@media (max-width: 479.98px) {
    .gp-landing-hub .hub-system { grid-template-columns: 1fr; }
}
