/* ============================================================================
   Bluecrest — Professional homepage design system (clean white / blue)
   Loaded last, after clean-redesign + unified-overrides + home-neo.
   Scope: everything is nested under .hp so it never leaks into the dashboard.
   ============================================================================ */

.hp {
    --hp-bg:          #ffffff;
    --hp-bg-soft:     #f5f8fc;
    --hp-bg-tint:     #eef4fe;
    --hp-surface:     #ffffff;
    --hp-border:      #e4ebf3;
    --hp-border-2:    #d4deeb;

    --hp-ink:         #0b1f3a;   /* headings */
    --hp-ink-2:       #44566c;   /* body */
    --hp-ink-3:       #76869b;   /* muted */

    --hp-blue:        #1366f0;
    --hp-blue-600:    #0f55cc;
    --hp-blue-700:    #0c45a6;
    --hp-blue-soft:   #e7f0ff;

    --hp-green:       #15a657;
    --hp-green-soft:  #e6f7ee;
    --hp-amber:       #c98a00;
    --hp-amber-soft:  #fdf3dd;
    --hp-red:         #dc2b3e;
    --hp-red-soft:    #fde8ea;

    --hp-r-sm:  10px;
    --hp-r:     16px;
    --hp-r-lg:  22px;
    --hp-pill:  999px;

    --hp-shadow-sm: 0 1px 2px rgba(16,42,80,.06), 0 1px 1px rgba(16,42,80,.04);
    --hp-shadow:    0 8px 24px rgba(17,52,120,.08), 0 2px 6px rgba(17,52,120,.05);
    --hp-shadow-lg: 0 24px 60px rgba(15,46,110,.14), 0 6px 16px rgba(15,46,110,.08);
    --hp-ring:      0 0 0 4px rgba(19,102,240,.14);

    --hp-maxw: 1200px;
    --hp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    font-family: var(--hp-font);
    color: var(--hp-ink-2);
    background: var(--hp-bg);
    -webkit-font-smoothing: antialiased;
}

.hp *,
.hp *::before,
.hp *::after { box-sizing: border-box; }

/* ---- Layout primitives ---- */
.hp-container {
    width: 100%;
    max-width: var(--hp-maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.hp-section { padding: clamp(56px, 8vw, 104px) 0; }
.hp-section--soft { background: var(--hp-bg-soft); }
.hp-section--tint {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
}

/* ---- Section heads ---- */
.hp-head { max-width: 680px; margin: 0 0 44px; }
.hp-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.hp-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hp-blue);
    margin-bottom: 14px;
}
.hp-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hp-ink);
    margin: 0 0 14px;
}
.hp-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--hp-ink-2);
    margin: 0;
}

/* ---- Buttons ---- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    padding: 0 26px;
    border-radius: var(--hp-r-sm);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.hp-btn:active { transform: translateY(1px); }
.hp-btn--primary {
    background: var(--hp-blue);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(19,102,240,.28);
}
.hp-btn--primary:hover { background: var(--hp-blue-600); color: #fff !important; box-shadow: 0 12px 26px rgba(19,102,240,.34); transform: translateY(-1px); }
.hp-btn--ghost {
    background: #fff;
    color: var(--hp-ink) !important;
    border-color: var(--hp-border-2);
}
.hp-btn--ghost:hover { border-color: var(--hp-blue); color: var(--hp-blue) !important; }
.hp-btn--white {
    background: #fff;
    color: var(--hp-blue) !important;
    box-shadow: 0 8px 22px rgba(7,28,70,.18);
}
.hp-btn--white:hover { background: #f3f7ff; color: var(--hp-blue-700) !important; transform: translateY(-1px); }
.hp-btn--block { width: 100%; }
.hp-btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }

/* ---- Cards ---- */
.hp-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-r);
    box-shadow: var(--hp-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% -10%, #e7f0ff 0%, rgba(231,240,255,0) 60%),
        radial-gradient(800px 400px at 0% 10%, #eef6ff 0%, rgba(238,246,255,0) 55%),
        #ffffff;
    padding: clamp(56px, 8vw, 92px) 0 clamp(48px, 7vw, 80px);
}
.hp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hp-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 34px;
    padding: 0 16px 0 12px;
    border-radius: var(--hp-pill);
    background: #fff;
    border: 1px solid var(--hp-border-2);
    box-shadow: var(--hp-shadow-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hp-ink-2);
    margin-bottom: 22px;
}
.hp-hero-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--hp-green);
    box-shadow: 0 0 0 4px var(--hp-green-soft);
}
.hp-hero h1 {
    font-size: clamp(36px, 5.4vw, 60px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hp-ink);
    margin: 0 0 20px;
}
.hp-hero h1 .accent { color: var(--hp-blue); }
.hp-hero-lead {
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.6;
    color: var(--hp-ink-2);
    margin: 0 0 30px;
    max-width: 520px;
}
.hp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hp-hero-trust {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--hp-ink-3);
    font-size: 14px;
}
.hp-hero-trust .item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hp-hero-trust .ic { color: var(--hp-green); display: inline-flex; }

/* Hero visual — a clean "portfolio" panel mock */
.hp-hero-visual { position: relative; }
.hp-portfolio {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-r-lg);
    box-shadow: var(--hp-shadow-lg);
    padding: 22px;
    position: relative;
    z-index: 2;
}
.hp-portfolio-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.hp-portfolio-top .lbl { font-size: 13px; color: var(--hp-ink-3); font-weight: 600; }
.hp-portfolio-top .val { font-size: 28px; font-weight: 800; color: var(--hp-ink); letter-spacing: -0.02em; }
.hp-portfolio-top .delta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: var(--hp-green);
    background: var(--hp-green-soft); padding: 5px 10px; border-radius: var(--hp-pill);
}
.hp-spark { width: 100%; height: 120px; display: block; }
.hp-portfolio-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.hp-prow { display: flex; align-items: center; gap: 12px; }
.hp-prow .ic {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hp-blue-soft); color: var(--hp-blue);
}
.hp-prow .nm { flex: 1; }
.hp-prow .nm strong { display: block; font-size: 14px; color: var(--hp-ink); font-weight: 700; }
.hp-prow .nm span { font-size: 12.5px; color: var(--hp-ink-3); }
.hp-prow .amt { font-size: 14px; font-weight: 700; color: var(--hp-green); }
.hp-hero-float {
    position: absolute; z-index: 3;
    background: #fff; border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow);
    border-radius: 14px; padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
}
.hp-hero-float .ic {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hp-green-soft); color: var(--hp-green);
}
.hp-hero-float .t strong { display: block; font-size: 14px; color: var(--hp-ink); font-weight: 800; }
.hp-hero-float .t span { font-size: 11.5px; color: var(--hp-ink-3); }
.hp-hero-float.is-tl { top: -18px; left: -24px; }
.hp-hero-float.is-br { bottom: -20px; right: -18px; }

/* =====================================================================
   STATS / COUNTER STRIP
   ===================================================================== */
.hp-stats {
    background: var(--hp-ink);
    border-radius: var(--hp-r-lg);
    padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    box-shadow: var(--hp-shadow-lg);
}
.hp-stat { text-align: center; position: relative; }
.hp-stat + .hp-stat::before {
    content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
    height: 46px; width: 1px; background: rgba(255,255,255,.12);
}
.hp-stat .num {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1;
}
.hp-stat .lbl { margin-top: 10px; font-size: 13.5px; color: #9fb2cc; font-weight: 600; }
.hp-stat .ic { color: #5b9bff; margin-bottom: 10px; display: inline-flex; }

/* =====================================================================
   GRID HELPERS + GENERIC CARDS
   ===================================================================== */
.hp-grid { display: grid; gap: 24px; }
.hp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hp-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Feature / why-choose-us */
.hp-feat { padding: 28px; }
.hp-feat:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); border-color: var(--hp-border-2); }
.hp-ficon {
    width: 54px; height: 54px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hp-blue-soft); color: var(--hp-blue);
    margin-bottom: 18px;
}
.hp-ficon img { width: 28px; height: 28px; object-fit: contain; }
.hp-ficon i { font-size: 24px; }
.hp-feat h4 { font-size: 18px; font-weight: 700; color: var(--hp-ink); margin: 0 0 8px; }
.hp-feat p { font-size: 14.5px; line-height: 1.6; color: var(--hp-ink-2); margin: 0; }

/* Steps (how it works) */
.hp-step { padding: 30px 28px; position: relative; overflow: hidden; }
.hp-step:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); }
.hp-step-num {
    position: absolute; top: 18px; right: 22px;
    font-size: 44px; font-weight: 800; line-height: 1;
    color: var(--hp-bg-tint); letter-spacing: -0.04em;
}
.hp-step .hp-ficon { background: var(--hp-blue); color: #fff; }
.hp-step h4 { font-size: 19px; font-weight: 700; color: var(--hp-ink); margin: 0 0 10px; position: relative; }
.hp-step p { font-size: 14.5px; line-height: 1.6; color: var(--hp-ink-2); margin: 0; }

/* =====================================================================
   PLANS / SCHEMAS
   ===================================================================== */
.hp-plan {
    padding: 30px 26px 28px;
    display: flex; flex-direction: column;
    position: relative;
}
.hp-plan:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow); }
.hp-plan.is-featured {
    border-color: var(--hp-blue);
    box-shadow: 0 20px 48px rgba(19,102,240,.18);
}
.hp-plan.is-featured::before {
    content: ""; position: absolute; inset: 0; border-radius: var(--hp-r);
    border: 2px solid var(--hp-blue); pointer-events: none;
}
.hp-plan-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--hp-blue); color: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
    padding: 5px 11px; border-radius: var(--hp-pill);
    text-transform: uppercase;
}
.hp-plan-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hp-blue-soft);
    margin-bottom: 16px;
}
.hp-plan-icon img { width: 30px; height: 30px; object-fit: contain; }
.hp-plan-name { font-size: 18px; font-weight: 700; color: var(--hp-ink); margin: 0 0 10px; }
.hp-plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.hp-plan-price .amt { font-size: 32px; font-weight: 800; color: var(--hp-ink); letter-spacing: -0.02em; }
.hp-plan-period { font-size: 13.5px; color: var(--hp-blue); font-weight: 600; margin-bottom: 18px; }
.hp-plan-feats { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--hp-border); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.hp-plan-feats li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.hp-plan-feats li span { color: var(--hp-ink-3); }
.hp-plan-feats li strong { color: var(--hp-ink); font-weight: 600; text-align: right; }

/* =====================================================================
   CALCULATOR
   ===================================================================== */
.hp-calc { max-width: 860px; margin: 0 auto; }
.hp-calc-card { padding: clamp(24px, 3vw, 36px); }
.hp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--hp-ink); margin-bottom: 8px; }
.hp-select, .hp-input {
    width: 100%; height: 52px; padding: 0 16px;
    border: 1.5px solid var(--hp-border-2); border-radius: var(--hp-r-sm);
    background: #fff; color: var(--hp-ink); font-size: 15px; font-weight: 500;
    transition: border-color .15s, box-shadow .15s;
    appearance: none; -webkit-appearance: none;
}
.hp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231366f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
    padding-right: 44px; cursor: pointer;
}
.hp-select:focus, .hp-input:focus { outline: none; border-color: var(--hp-blue); box-shadow: var(--hp-ring); }
.hp-input-group { position: relative; display: flex; align-items: center; }
.hp-input-group .hp-input { padding-right: 64px; }
.hp-input-suffix {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    display: inline-flex; align-items: center; padding: 0 14px;
    background: var(--hp-bg-soft); border-radius: 8px;
    font-size: 13px; font-weight: 700; color: var(--hp-ink-2);
}
.hp-calc-result {
    margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--hp-border-2);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.hp-calc-cell {
    text-align: center; padding: 18px 12px;
    background: var(--hp-bg-soft); border-radius: var(--hp-r-sm);
}
.hp-calc-cell span { display: block; font-size: 12.5px; color: var(--hp-ink-3); font-weight: 600; margin-bottom: 8px; }
.hp-calc-cell strong { font-size: 19px; font-weight: 800; color: var(--hp-ink); }
.hp-calc-cell strong.is-profit { color: var(--hp-green); }
.hp-calc-cell strong.is-accent { color: var(--hp-blue); }

/* =====================================================================
   LIVE ACTIVITY (recent investors / withdraws)
   ===================================================================== */
.hp-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp-live-card { padding: 26px; }
.hp-live-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--hp-ink); margin: 0 0 18px; }
.hp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hp-green); box-shadow: 0 0 0 4px var(--hp-green-soft); animation: hp-pulse 1.8s infinite; }
@keyframes hp-pulse { 0%,100%{ box-shadow: 0 0 0 3px var(--hp-green-soft);} 50%{ box-shadow: 0 0 0 7px rgba(21,166,87,.05);} }
.hp-live-list { display: flex; flex-direction: column; }
.hp-live-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--hp-border); }
.hp-live-row:last-child { border-bottom: 0; }
.hp-live-av {
    width: 40px; height: 40px; border-radius: 11px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hp-blue-soft); color: var(--hp-blue); font-size: 17px;
}
.hp-live-av.is-out { background: var(--hp-amber-soft); color: var(--hp-amber); }
.hp-live-meta { flex: 1; min-width: 0; }
.hp-live-meta strong { display: block; font-size: 14px; font-weight: 700; color: var(--hp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-live-meta span { font-size: 12px; color: var(--hp-ink-3); }
.hp-chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--hp-pill); white-space: nowrap; }
.hp-chip.is-success { background: var(--hp-green-soft); color: var(--hp-green); }
.hp-chip.is-warn { background: var(--hp-amber-soft); color: var(--hp-amber); }
.hp-chip.is-danger { background: var(--hp-red-soft); color: var(--hp-red); }
.hp-live-amt { text-align: right; }
.hp-live-amt .gain { display: block; font-size: 12px; font-weight: 700; color: var(--hp-green); }
.hp-live-amt strong { font-size: 14px; font-weight: 800; color: var(--hp-ink); }

/* =====================================================================
   GATEWAYS
   ===================================================================== */
.hp-gw-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.hp-gw {
    height: 76px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-r-sm);
    transition: box-shadow .2s, transform .2s;
}
.hp-gw:hover { box-shadow: var(--hp-shadow-sm); transform: translateY(-2px); }
.hp-gw img { max-height: 38px; max-width: 78%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.hp-gw:hover img { filter: none; opacity: 1; }

/* =====================================================================
   FAQ
   ===================================================================== */
.hp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.hp-acc-item { background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-r-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.hp-acc-item:has(.hp-acc-btn[aria-expanded="true"]) { border-color: var(--hp-blue); box-shadow: var(--hp-shadow-sm); }
.hp-acc-btn {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 20px 54px 20px 22px; position: relative;
    font-size: 16px; font-weight: 700; color: var(--hp-ink); line-height: 1.4;
}
.hp-acc-btn::after {
    content: ""; position: absolute; right: 22px; top: 22px;
    width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231366f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center/contain;
    transition: transform .2s;
}
.hp-acc-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.hp-acc-body { padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: var(--hp-ink-2); }

/* =====================================================================
   BLOG
   ===================================================================== */
.hp-blog { overflow: hidden; display: flex; flex-direction: column; }
.hp-blog:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); }
.hp-blog-img { aspect-ratio: 16/10; overflow: hidden; background: var(--hp-bg-soft); }
.hp-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hp-blog:hover .hp-blog-img img { transform: scale(1.05); }
.hp-blog-img img.is-fallback {
    object-fit: contain;
    padding: 28px;
    background: linear-gradient(135deg, #eef4fe 0%, #f5f8fc 100%);
}
.hp-blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.hp-blog-date { font-size: 12.5px; font-weight: 600; color: var(--hp-blue); margin-bottom: 9px; }
.hp-blog-body h4 { font-size: 17px; line-height: 1.4; font-weight: 700; margin: 0 0 14px; }
.hp-blog-body h4 a { color: var(--hp-ink); text-decoration: none; }
.hp-blog-body h4 a:hover { color: var(--hp-blue); }
.hp-blog-link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--hp-blue); text-decoration: none; }

/* =====================================================================
   CTA + NEWSLETTER
   ===================================================================== */
.hp-cta {
    background: linear-gradient(120deg, var(--hp-blue-700) 0%, var(--hp-blue) 55%, #2b8bff 100%);
    border-radius: var(--hp-r-lg);
    padding: clamp(40px, 6vw, 70px) clamp(28px, 5vw, 64px);
    text-align: center;
    position: relative; overflow: hidden;
    box-shadow: var(--hp-shadow-lg);
}
.hp-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 80% -20%, rgba(255,255,255,.18), transparent 70%);
    pointer-events: none;
}
.hp-cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0 0 14px; position: relative; }
.hp-cta p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.9); margin: 0 auto 28px; max-width: 560px; position: relative; }

.hp-news { text-align: center; max-width: 600px; margin: 0 auto; }
.hp-news-form {
    display: flex; gap: 12px; margin-top: 26px;
    background: #fff; border: 1px solid var(--hp-border-2);
    padding: 8px; border-radius: var(--hp-pill); box-shadow: var(--hp-shadow-sm);
}
.hp-news-form input {
    flex: 1; border: 0; background: none; padding: 0 18px; height: 46px;
    font-size: 15px; color: var(--hp-ink); outline: none;
}
.hp-news-form button {
    height: 46px; padding: 0 26px; border: 0; border-radius: var(--hp-pill);
    background: var(--hp-blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background .2s;
}
.hp-news-form button:hover { background: var(--hp-blue-600); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    .hp-hero-grid { grid-template-columns: 1fr; }
    .hp-hero-visual { display: none; }
    .hp-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .hp-stat:nth-child(3)::before, .hp-stat:nth-child(2n+1)::before { display: none; }
    .hp-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .hp-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hp-live-grid { grid-template-columns: 1fr; }
    .hp-gw-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .hp-container { padding: 0 18px; }
    .hp-hero h1 { font-size: clamp(30px, 9vw, 40px); }
    .hp-grid--4, .hp-grid--3, .hp-grid--2 { grid-template-columns: 1fr; }
    .hp-stats { grid-template-columns: 1fr 1fr; padding: 24px; }
    .hp-calc-grid { grid-template-columns: 1fr; }
    .hp-calc-result { grid-template-columns: 1fr; }
    .hp-gw-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-news-form { flex-direction: column; border-radius: var(--hp-r); background: none; border: 0; padding: 0; box-shadow: none; }
    .hp-news-form input { background: #fff; border: 1.5px solid var(--hp-border-2); border-radius: var(--hp-r-sm); }
    .hp-news-form button { border-radius: var(--hp-r-sm); }
    .hp-btn { width: 100%; }
    .hp-hero-btns { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .hp * { animation: none !important; transition: none !important; }
}

/* ============================================================================
   SECONDARY PAGES (.hp-page) — about, faq, contact, rankings, policy, blog…
   These templates use the legacy theme classes (section-style, section-title,
   content, frontend-editor-data, etc.). This layer brings them onto the clean
   white/blue system: readable text, proper spacing, styled headings, and a
   modern page-head banner. Scoped under .hp-page so nothing else is affected.
   ============================================================================ */
.hp-page { background: var(--hp-bg); color: var(--hp-ink-2); font-family: var(--hp-font); }

/* Page-head banner — replaces the old image-overlay with a clean gradient */
.hp-page .hp-page-head {
    background:
        radial-gradient(900px 360px at 80% -30%, #e7f0ff 0%, rgba(231,240,255,0) 60%),
        linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--hp-border);
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px);
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.hp-page .hp-page-head h2 {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hp-ink);
    margin: 0;
}

/* Generic section spacing inside pages */
.hp-page .section-style,
.hp-page .section-style-2,
.hp-page .section-style-3 {
    padding: 0 0 clamp(48px, 7vw, 88px);
    background: transparent;
}
.hp-page .light-blue-bg { background: transparent; }

/* Section titles (small eyebrow + big heading) */
.hp-page .section-title h4,
.hp-page .about-content .section-title h4 {
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--hp-blue); margin: 0 0 12px;
}
.hp-page .section-title h2 {
    font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em;
    color: var(--hp-ink); line-height: 1.15; margin: 0 0 14px;
}

/* Body copy — fixes invisible / low-contrast text */
.hp-page,
.hp-page p,
.hp-page li,
.hp-page span,
.hp-page td,
.hp-page .content,
.hp-page .about-content .content,
.hp-page .frontend-editor-data,
.hp-page .frontend-editor-data p,
.hp-page .frontend-editor-data li,
.hp-page .frontend-editor-data span {
    color: var(--hp-ink-2);
}
.hp-page .frontend-editor-data { font-size: 16px; line-height: 1.75; }
.hp-page .frontend-editor-data h1,
.hp-page .frontend-editor-data h2,
.hp-page .frontend-editor-data h3,
.hp-page .frontend-editor-data h4,
.hp-page .content h1, .hp-page .content h2,
.hp-page .content h3, .hp-page .content h4,
.hp-page strong, .hp-page b {
    color: var(--hp-ink);
}
.hp-page .frontend-editor-data h2 { font-size: 26px; font-weight: 800; margin: 28px 0 12px; }
.hp-page .frontend-editor-data h3 { font-size: 21px; font-weight: 700; margin: 24px 0 10px; }
.hp-page a { color: var(--hp-blue); }
.hp-page .frontend-editor-data ul,
.hp-page .frontend-editor-data ol { padding-left: 22px; margin: 14px 0; }
.hp-page .frontend-editor-data li { margin-bottom: 8px; }

/* About image */
.hp-page .about-img { position: relative; border-radius: var(--hp-r-lg); overflow: hidden; box-shadow: var(--hp-shadow); }
.hp-page .about-img img { width: 100%; height: auto; display: block; border-radius: var(--hp-r-lg); }
.hp-page .about-img .content {
    position: absolute; left: 18px; bottom: 18px;
    background: var(--hp-blue); color: #fff; font-weight: 700;
    padding: 12px 18px; border-radius: var(--hp-r-sm); box-shadow: var(--hp-shadow);
}

/* Cards / panels that the legacy pages render (contact, faq wrappers) */
.hp-page .site-card,
.hp-page .contact-form,
.hp-page .contact-info,
.hp-page .faq-wrap {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-r);
    box-shadow: var(--hp-shadow-sm);
    padding: clamp(22px, 3vw, 34px);
}

/* Form fields on contact / pages */
.hp-page input[type="text"],
.hp-page input[type="email"],
.hp-page input[type="tel"],
.hp-page input[type="number"],
.hp-page textarea,
.hp-page select {
    width: 100%;
    border: 1.5px solid var(--hp-border-2);
    border-radius: var(--hp-r-sm);
    background: #fff;
    color: var(--hp-ink);
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
.hp-page input:focus,
.hp-page textarea:focus,
.hp-page select:focus { outline: none; border-color: var(--hp-blue); box-shadow: var(--hp-ring); }
.hp-page label { color: var(--hp-ink); font-weight: 600; font-size: 14px; margin-bottom: 7px; display: inline-block; }

/* FAQ accordion on the dedicated FAQ page (Bootstrap accordion) */
.hp-page .accordion-item { border: 1px solid var(--hp-border) !important; border-radius: var(--hp-r-sm) !important; margin-bottom: 12px; overflow: hidden; background: #fff; }
.hp-page .accordion-button {
    background: #fff !important; color: var(--hp-ink) !important;
    font-weight: 700 !important; font-size: 16px !important; box-shadow: none !important;
}
.hp-page .accordion-button:not(.collapsed) { color: var(--hp-blue) !important; background: var(--hp-blue-soft) !important; }
.hp-page .accordion-body { color: var(--hp-ink-2) !important; font-size: 15px; line-height: 1.65; }

/* Rankings / data tables on pages */
.hp-page table { width: 100%; border-collapse: collapse; }
.hp-page table th {
    background: var(--hp-bg-soft); color: var(--hp-ink); font-weight: 700;
    font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hp-border);
}
.hp-page table td { padding: 14px 16px; border-bottom: 1px solid var(--hp-border); color: var(--hp-ink-2); }

/* Buttons inside pages adopt the hp primary style */
.hp-page .site-btn,
.hp-page button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--hp-blue) !important; color: #fff !important;
    border: none !important; border-radius: var(--hp-r-sm) !important;
    padding: 13px 26px !important; font-weight: 600 !important; font-size: 15px !important;
    box-shadow: 0 8px 20px rgba(19,102,240,.22) !important; text-transform: none !important;
    cursor: pointer; transition: background .2s;
}
.hp-page .site-btn:hover,
.hp-page button[type="submit"]:hover { background: var(--hp-blue-600) !important; color: #fff !important; }

/* ============================================================================
   Page-specific fixes — about-us spacing, blog cards, contact form.
   These legacy templates use classes (about-img::before, single-blog,
   site-form) the base .hp-page layer didn't fully neutralize. Bring them onto
   the clean white/blue system and remove leftover decoration/oversizing.
   ============================================================================ */

/* --- ABOUT-US: kill the old decorative circle + oversized circular image
   that left a large empty gap, and present the image cleanly. --- */
.hp-page .about-us .about-img::before { display: none !important; content: none !important; }
.hp-page .about-us .about-img {
    margin-bottom: 0 !important;
    border-radius: var(--hp-r-lg);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    line-height: 0;
}
.hp-page .about-us .about-img img {
    border-radius: var(--hp-r-lg) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    object-fit: cover !important;
    display: block !important;
}
/* If the about image is broken/empty, don't reserve a big blank area. */
.hp-page .about-us .about-img img[src=""],
.hp-page .about-us .about-img img:not([src]) { display: none !important; }
.hp-page .about-us .section-style,
.hp-page .about-us { min-height: 0 !important; }
.hp-page .about-us .about-img .content {
    left: 18px !important;
    bottom: 18px !important;
    background: var(--hp-blue) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: var(--hp-r-sm) !important;
    padding: 10px 16px !important;
}
.hp-page .about-us .row { align-items: center; }
.hp-page .about-us .about-content .content p { margin-bottom: 14px; }

/* --- BLOG page: replace the teal background + dark cards with clean cards --- */
.hp-page .light-blue-bg { background: transparent !important; }
.hp-page .single-blog,
.dark-theme .hp-page .single-blog {
    background: var(--hp-surface) !important;
    border: 1px solid var(--hp-border) !important;
    border-radius: var(--hp-r) !important;
    box-shadow: var(--hp-shadow-sm) !important;
    overflow: hidden;
    margin-bottom: 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hp-page .single-blog:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow) !important; }
.hp-page .single-blog .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--hp-bg-soft); }
.hp-page .single-blog .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hp-page .single-blog:hover .thumb img { transform: scale(1.05); }
.hp-page .single-blog .content,
.dark-theme .hp-page .single-blog .content { padding: 22px !important; color: var(--hp-ink-2) !important; }
.hp-page .single-blog .meta .date { font-size: 12.5px; font-weight: 600; color: var(--hp-blue) !important; margin-bottom: 8px; }
.hp-page .single-blog .title h3 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; }
.hp-page .single-blog .title h3 a,
.dark-theme .hp-page .single-blog .title h3 a { color: var(--hp-ink) !important; text-decoration: none; }
.hp-page .single-blog .title h3 a:hover { color: var(--hp-blue) !important; }
.hp-page .single-blog .des { font-size: 14.5px; line-height: 1.6; color: var(--hp-ink-2) !important; margin-bottom: 16px; }
.hp-page .single-blog .link a,
.dark-theme .hp-page .single-blog .link a { color: var(--hp-blue) !important; font-weight: 700; font-size: 14px; text-decoration: none; }

/* --- CONTACT form: make inputs visible (text + placeholder) on white --- */
.hp-page .site-form { }
.hp-page .site-form input,
.hp-page .site-form textarea,
.hp-page .site-form select,
.dark-theme .hp-page .site-form input,
.dark-theme .hp-page .site-form textarea {
    width: 100% !important;
    border: 1.5px solid var(--hp-border-2) !important;
    border-radius: var(--hp-r-sm) !important;
    background: #ffffff !important;
    color: var(--hp-ink) !important;
    -webkit-text-fill-color: var(--hp-ink) !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    margin-bottom: 18px !important;
}
.hp-page .site-form input::placeholder,
.hp-page .site-form textarea::placeholder {
    color: var(--hp-ink-3) !important;
    -webkit-text-fill-color: var(--hp-ink-3) !important;
    opacity: 1 !important;
}
.hp-page .site-form input:focus,
.hp-page .site-form textarea:focus {
    outline: none !important;
    border-color: var(--hp-blue) !important;
    box-shadow: var(--hp-ring) !important;
}
