/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — Premium CSS
   randomidentitygenerator.online
═══════════════════════════════════════════════════════════════════ */

/* ── Scroll-reveal base ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1); }
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ── Section base ── */
.hp-section { padding: 80px 0; }
.hp-section-sm { padding: 56px 0; }
.hp-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hp-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(99,102,241,0.10); border: 1px solid rgba(99,102,241,0.25);
    color: #6366F1; font-size: 12px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}
.hp-h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.18; letter-spacing: -0.5px; }
.hp-sub { font-size: clamp(15px, 2vw, 18px); color: var(--color-text-secondary); line-height: 1.7; max-width: 560px; }

/* ═══════════════════════════════
   1. HERO — 2-col split
═══════════════════════════════ */
.hp-hero {
    position: relative;
    padding: 48px 0 56px;
    overflow: hidden;
    /* Ensure full viewport height minus header (~64px) on desktop */
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}
.hp-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(99,102,241,0.14) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 85% 30%, rgba(168,85,247,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 90%, rgba(236,72,153,0.07) 0%, transparent 55%);
}
.hp-hero-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ── 2-column split ── */
.hp-hero-split {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;      /* ← key: left col anchors to top, not centred */
    width: 100%;
}

/* Left column sits at the top of the grid row */
.hp-hero-left {
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 0;
    padding-top: 12px;
}

/* Right column: positioned relative, clipped so only ~first card visible */
.hp-hero-right {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Align right column to top of grid, not center */
    align-self: start;
}

/* ─── Hero right column: 3-card panel ─────────────────────────── */
.hp-hero-right {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    align-self: start;
    /* right column takes visible height, cards overflow below fold intentionally */
    max-height: calc(100vh - 100px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

/* Base card */
.hp-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
.hp-card:hover {
    box-shadow: 0 8px 32px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

/* Staggered entry animations */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-card-1 { animation: slideUpFade 0.55s cubic-bezier(.34,1.56,.64,1) 0.1s both; }
.animate-card-2 { animation: slideUpFade 0.55s cubic-bezier(.34,1.56,.64,1) 0.25s both; }
.animate-card-3 { animation: slideUpFade 0.55s cubic-bezier(.34,1.56,.64,1) 0.4s both; }

/* ① Personal ID Card header */
.hp-card-header {
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.04));
}
.hp-card-header-left { display: flex; align-items: center; gap: 10px; }
.hp-id-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff;
}
.hp-id-name {
    font-size: 14px; font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 160px;
}
.hp-id-country { font-size: 11px; color: var(--color-text-secondary); margin-top: 1px; }
.hp-id-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 1.2px;
    color: #6366F1; background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    padding: 3px 8px; border-radius: 20px;
    white-space: nowrap; flex-shrink: 0;
}

/* Field rows */
.hp-card-fields { padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 0; }
.hp-card-fields-sm { padding: 6px 12px 10px; gap: 0; }

.hp-field-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
}
.hp-field-row:last-child { border-bottom: none; }
.hp-field-row-sm { padding: 5px 0; }

.hp-field-icon { font-size: 13px; flex-shrink: 0; width: 18px; text-align: center; }
.hp-field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hp-field-label {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; color: var(--color-text-secondary);
}
.hp-field-value {
    font-size: 12px; font-weight: 500; color: var(--color-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-field-mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* Copy button */
.hp-copy-btn {
    flex-shrink: 0;
    background: none; border: 1px solid var(--color-border);
    border-radius: 6px; padding: 4px 5px;
    color: var(--color-text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.hp-copy-btn:hover {
    color: #6366F1; border-color: #6366F1;
    background: rgba(99,102,241,0.08); transform: scale(1.1);
}
.hp-copy-btn.copied { color: #22C55E; border-color: #22C55E; background: rgba(34,197,94,0.08); }

/* ② VCC Visual */
.hp-vcc-label {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px 0; font-size: 11px; font-weight: 700;
    color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.7px;
}
.hp-vcc-brand {
    font-size: 13px; font-weight: 800; color: #6366F1; letter-spacing: 0;
    text-transform: none;
}
.hp-vcc-visual {
    margin: 10px 12px 6px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
    border-radius: 12px; padding: 12px 14px 10px;
    position: relative; overflow: hidden;
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
    min-height: 100px;
}
/* Holographic shimmer on VCC */
.hp-vcc-visual::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
    pointer-events: none;
}
.hp-vcc-chip { margin-bottom: 8px; }
.hp-vcc-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 600; color: #fff;
    letter-spacing: 2px; margin-bottom: 8px;
}
.hp-vcc-bottom-row {
    display: flex; gap: 20px; align-items: flex-end;
}
.hp-vcc-sublabel {
    font-size: 7px; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 2px;
}
.hp-vcc-exp, .hp-vcc-cvv {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 600; color: #fff;
}

/* ③ Geo visual */
.hp-geo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: geoPulse 2s ease-in-out infinite;
}
@keyframes geoPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}
.hp-geo-visual {
    margin: 8px 12px 4px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(6,182,212,0.06));
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 12px; padding: 12px;
    display: flex; align-items: center; gap: 12px;
}
.hp-geo-pin { font-size: 28px; line-height: 1; }
.hp-geo-coords { display: flex; flex-direction: column; gap: 2px; }
.hp-geo-coord-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 600;
    color: var(--color-text-primary);
}
.hp-geo-map-link {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 6px; padding: 4px 0;
    font-size: 11px; font-weight: 600; color: #06b6d4;
    text-decoration: none; transition: color 0.15s;
}
.hp-geo-map-link:hover { color: #0891b2; }

/* Bottom row: VCC + Geo side by side */
.hp-card-bottom-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* Mobile: stack everything */
@media (max-width: 900px) {
    .hp-hero-right {
        max-height: none; overflow: visible;
        -webkit-mask-image: none; mask-image: none;
    }
    .hp-card-bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hp-card-bottom-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   § 1.5  FULL-WIDTH IDENTITY RESULT SECTION
═══════════════════════════════════════════════════════════════════ */
.hp-identity-result-section {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    /* Scroll-target padding so header doesn't cover the section */
    scroll-margin-top: 72px;
}
.hp-identity-result-inner {
    max-width: 1440px; margin: 0 auto; padding: 0 24px 48px;
}
.hp-identity-result-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 28px;
}
.hp-identity-result-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800; letter-spacing: -0.5px;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}
.hp-identity-result-sub {
    font-size: 14px; color: var(--color-text-secondary);
    margin: 0;
}
/* Gradient accent bar at the very top of the section */
.hp-identity-result-section::before {
    content: '';
    display: block; width: 100%; height: 3px;
    background: linear-gradient(90deg, #6366F1, #A855F7, #EC4899);
}

/* ═══════════════════════════════════════════════════════════════════
   § 3.5  COUNTRY PICKER CTA BANNER
═══════════════════════════════════════════════════════════════════ */
.hp-country-picker-cta {
    background: linear-gradient(135deg, rgba(99,102,241,0.07) 0%, rgba(168,85,247,0.05) 100%);
    border-top: 1px solid rgba(99,102,241,0.15);
    border-bottom: 1px solid rgba(99,102,241,0.15);
    padding: 40px 0;
}
.hp-cta-banner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.hp-cta-banner-left {
    display: flex; align-items: center; gap: 20px;
    flex: 1; min-width: 260px;
}
.hp-cta-banner-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 800; letter-spacing: -0.3px;
    color: var(--color-text-primary);
    margin: 0 0 6px;
}
.hp-cta-banner-sub {
    font-size: 14px; color: var(--color-text-secondary); margin: 0;
}
.hp-cta-banner-right {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: flex-end;
}
.hp-quick-country {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px; padding: 10px 14px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    min-width: 68px;
}
.hp-quick-country:hover {
    border-color: #6366F1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.18);
}
.hp-quick-flag { font-size: 22px; line-height: 1; }
.hp-quick-name { font-size: 11px; font-weight: 600; color: var(--color-text-secondary); }
.hp-quick-more {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.08));
    border-color: rgba(99,102,241,0.25);
}
.hp-quick-more .hp-quick-flag { font-size: 13px; font-weight: 700; color: #6366F1; }
.hp-quick-more .hp-quick-name { color: #6366F1; }

@media (max-width: 768px) {
    .hp-cta-banner { flex-direction: column; text-align: center; }
    .hp-cta-banner-left { flex-direction: column; gap: 10px; }
    .hp-cta-banner-right { justify-content: center; }
    .hp-identity-result-header { flex-direction: column; align-items: flex-start; }
}


@media (max-width: 900px) {
    .hp-hero {
        min-height: auto;
        padding: 40px 0 48px;
    }
    .hp-hero-split {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        align-items: center;
    }
    .hp-hero-left { align-items: center; padding-top: 0; }
    .hp-hero-right { max-height: none; overflow: visible; }
    .hp-trust-badges { justify-content: center; }
}



.hp-hero-h1 {
    font-size: clamp(34px, 5.5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 12px 0 18px;
    color: var(--color-text-primary);
}
.hp-hero-h1 .grad {
    background: linear-gradient(120deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hp-hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--color-text-secondary);
    max-width: 460px;
    line-height: 1.68;
    margin-bottom: 28px;
}

/* ── BIG generate CTA ── */
.hp-hero-cta {
    display: flex; gap: 12px; flex-wrap: wrap;
    align-items: center; margin-bottom: 24px;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 60%, #A855F7 100%);
    color: #fff;
    font-weight: 700; font-size: 17px;
    padding: 16px 32px;
    border-radius: 16px;
    border: none; cursor: pointer;
    box-shadow: 0 6px 28px rgba(99,102,241,0.45), 0 2px 8px rgba(99,102,241,0.2);
    transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease;
    position: relative; overflow: hidden;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
/* Shimmer sweep on hover */
.btn-hero-primary::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.45s ease;
}
.btn-hero-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 40px rgba(99,102,241,0.55), 0 4px 12px rgba(99,102,241,0.25); }
.btn-hero-primary:hover::before { left: 140%; }
.btn-hero-primary:active { transform: scale(0.97); transition-duration: 0.08s; }

.btn-icon-wrap { display: flex; align-items: center; }
.spin-svg { animation: iconSpin 0.8s linear infinite; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* ── Trust badges ── */
.hp-trust-badges {
    display: flex; align-items: center;
    gap: 16px; flex-wrap: wrap;
    font-size: 13px; font-weight: 500;
    color: var(--color-text-secondary);
}
.hp-trust-badge {
    display: flex; align-items: center; gap: 5px;
}
.hp-trust-badge svg { flex-shrink: 0; }

/* ── Right column: identity card ── */
.hp-hero-right {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* Smooth ambient glow — no jitter */
.hp-card-glow {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(168,85,247,0.15) 50%, transparent 70%);
    filter: blur(48px);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none; z-index: 0;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.12); }
}

/* Card gentle float — smooth, physics-based, no jank */
.hp-card-frame {
    position: relative; z-index: 1;
    width: 100%;
    animation: cardFloat 5s ease-in-out infinite;
    will-change: transform;
    /* Prevent GPU compositing jitter */
    transform: translateZ(0);
    backface-visibility: hidden;
}
@keyframes cardFloat {
    0%   { transform: translateY(0px)    rotate(0deg);    }
    25%  { transform: translateY(-8px)   rotate(-0.4deg); }
    50%  { transform: translateY(-14px)  rotate(0deg);    }
    75%  { transform: translateY(-8px)   rotate(0.4deg);  }
    100% { transform: translateY(0px)    rotate(0deg);    }
}

/* Pause float on hover so user can interact */
.hp-card-frame:hover { animation-play-state: paused; }

/* ── Shared CTAs (also used by other sections) ── */
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--color-text-primary);
    font-weight: 600; font-size: 16px;
    padding: 15px 26px; border-radius: 16px;
    border: 1.5px solid var(--color-border); cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.18s cubic-bezier(.34,1.56,.64,1);
    text-decoration: none; white-space: nowrap;
}
.btn-ghost:hover {
    border-color: #6366F1;
    background: rgba(99,102,241,0.07);
    transform: translateY(-2px);
}
.btn-ghost:active { transform: scale(0.97); }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    color: #fff; font-weight: 700; font-size: 16px;
    padding: 14px 30px; border-radius: 14px;
    border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.btn-primary:active { transform: scale(0.97); }

/* CSS .hidden fallback — NO !important so Tailwind responsive utils can override it */
.hidden { display: none; }

/* Ensure nav is always flex on md+ screens regardless of homepage CSS */
@media (min-width: 768px) {
    nav.hidden { display: flex !important; }
}



/* ═══════════════════════════════
   2. BRAND STRIP
═══════════════════════════════ */
.hp-brand-strip {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.hp-brand-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap;
}
.hp-brand-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-secondary); }
.hp-brand-divider { width: 1px; height: 24px; background: var(--color-border); }
.hp-brand-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700;
    color: var(--color-text-secondary);
    opacity: 0.65; transition: opacity 0.2s;
}
.hp-brand-item:hover { opacity: 1; }
.hp-brand-item svg { width: 22px; height: 22px; }

/* ═══════════════════════════════
   3. PROBLEM SECTION
═══════════════════════════════ */
.hp-problem { background: var(--color-surface); }
.hp-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px; margin-top: 40px;
}
.hp-problem-card {
    padding: 28px; border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hp-problem-card:hover {
    border-color: #F43F5E;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(244,63,94,0.1);
}
.hp-problem-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(244,63,94,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 20px;
}
.hp-problem-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.hp-problem-card p  { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* ═══════════════════════════════
   4. SOLUTION
═══════════════════════════════ */
.hp-solution-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
@media (max-width: 768px) { .hp-solution-grid { grid-template-columns: 1fr; gap: 40px; } }
.hp-solution-visual {
    position: relative;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.05));
    border-radius: 24px; border: 1px solid var(--color-border);
    padding: 32px; overflow: hidden;
    min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.hp-solution-visual::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.12), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(168,85,247,0.10), transparent 50%);
}
.hp-counter-pill {
    position: absolute;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 2;
}
.hp-counter-pill.top-left  { top: 20px;    left: 20px;  animation: counterFloat 3.5s ease-in-out infinite; }
.hp-counter-pill.top-right { top: 20px;    right: 20px; animation: counterFloat 3.5s ease-in-out infinite 0.8s; }
.hp-counter-pill.bot-left  { bottom: 20px; left: 20px;  animation: counterFloat 4s   ease-in-out infinite 1.4s; }
@keyframes counterFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ═══════════════════════════════
   5. FEATURES GRID
═══════════════════════════════ */
.hp-features { background: var(--color-surface); }
.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-top: 48px;
}
.hp-feat-card {
    padding: 28px; border-radius: 18px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: default; position: relative; overflow: hidden;
}
.hp-feat-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.hp-feat-card:hover { border-color: #6366F1; transform: translateY(-4px); box-shadow: 0 12px 36px rgba(99,102,241,0.12); }
.hp-feat-card:hover::after { opacity: 1; }
.hp-feat-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
    position: relative; z-index: 1;
}
.hp-feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.hp-feat-card p  { font-size: 14px; color: var(--color-text-secondary); line-height: 1.65; position: relative; z-index: 1; }

/* ═══════════════════════════════
   6. HOW IT WORKS
═══════════════════════════════ */
.hp-how { position: relative; }
.hp-steps { display: flex; flex-direction: column; gap: 0; margin-top: 48px; position: relative; }
.hp-steps::before {
    content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
    background: linear-gradient(to bottom, #6366F1, #A855F7, #EC4899);
    border-radius: 2px;
}
@media (max-width: 640px) { .hp-steps::before { display: none; } }
.hp-step {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 28px 0; position: relative;
}
.hp-step-num {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    color: #fff; font-size: 18px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    position: relative; z-index: 1;
}
.hp-step-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.hp-step-body p  { font-size: 15px; color: var(--color-text-secondary); line-height: 1.65; }
.hp-step-code {
    display: inline-block; margin-top: 10px;
    background: rgba(99,102,241,0.10); border: 1px solid rgba(99,102,241,0.2);
    color: #6366F1; font-family: 'JetBrains Mono', monospace;
    font-size: 12px; padding: 4px 10px; border-radius: 6px;
}

/* ═══════════════════════════════
   7. KNOWLEDGE GRAPH / GLOSSARY
═══════════════════════════════ */
.hp-glossary { background: var(--color-surface); }
.hp-glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; margin-top: 40px;
}
.hp-gloss-card {
    padding: 20px 22px; border-radius: 14px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: border-color 0.2s, transform 0.2s;
}
.hp-gloss-card:hover { border-color: #6366F1; transform: translateY(-2px); }
.hp-gloss-term { font-size: 14px; font-weight: 700; color: #6366F1; margin-bottom: 6px; }
.hp-gloss-def  { font-size: 13px; color: var(--color-text-secondary); line-height: 1.55; }

/* ═══════════════════════════════
   8. USE CASES
═══════════════════════════════ */
.hp-usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-top: 44px;
}
.hp-usecase {
    padding: 26px; border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hp-usecase:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.06); }
.hp-usecase-emoji { font-size: 32px; margin-bottom: 14px; }
.hp-usecase h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.hp-usecase p  { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.hp-usecase ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.hp-usecase ul li { font-size: 13px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 6px; }
.hp-usecase ul li::before { content: '→'; color: #6366F1; font-weight: 700; font-size: 12px; }

/* ═══════════════════════════════
   9. VIDEO PLACEHOLDER
═══════════════════════════════ */
.hp-video { background: var(--color-surface); }
.hp-video-wrap {
    position: relative; border-radius: 20px; overflow: hidden;
    max-width: 820px; margin: 44px auto 0;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, #1e2a4a, #2d3f6e);
    aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.hp-video-wrap:hover { transform: scale(1.01); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.hp-play-btn {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.hp-video-wrap:hover .hp-play-btn { transform: scale(1.12); background: rgba(99,102,241,0.7); }
.hp-video-caption {
    position: absolute; bottom: 20px;
    left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    color: #fff; font-size: 13px; padding: 6px 16px; border-radius: 100px;
    white-space: nowrap;
}

/* ═══════════════════════════════
   10. STATS / COUNTERS
═══════════════════════════════ */
.hp-stats { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px; padding: 72px 0; text-align: center;
}
.hp-stat-num {
    font-size: clamp(36px, 6vw, 56px); font-weight: 900;
    color: #fff; letter-spacing: -1px; line-height: 1;
    margin-bottom: 8px;
}
.hp-stat-label {
    font-size: 15px; color: rgba(255,255,255,0.72); font-weight: 500;
}
.hp-stat-plus { color: #A5B4FC; }

/* ═══════════════════════════════
   11. TESTIMONIALS
═══════════════════════════════ */
.hp-testi { background: var(--color-surface); }
.hp-testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; margin-top: 44px;
}
.hp-testi-card {
    padding: 28px; border-radius: 18px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hp-testi-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.hp-testi-stars { color: #FBBF24; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.hp-testi-quote { font-size: 15px; line-height: 1.7; color: var(--color-text-primary); margin-bottom: 20px; font-style: italic; }
.hp-testi-author { display: flex; align-items: center; gap: 12px; }
.hp-testi-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.hp-testi-name  { font-size: 14px; font-weight: 700; }
.hp-testi-role  { font-size: 12px; color: var(--color-text-secondary); }

/* ═══════════════════════════════
   12. FAQ
═══════════════════════════════ */
.hp-faq { }
.hp-faq-list { max-width: 780px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 12px; }
.hp-faq-item {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-faq-item:hover { border-color: rgba(99,102,241,0.4); }
.hp-faq-item[open] { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.hp-faq-q {
    padding: 20px 24px; font-size: 16px; font-weight: 600;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    transition: color 0.2s;
}
.hp-faq-q::-webkit-details-marker { display: none; }
.hp-faq-q:hover { color: #6366F1; }
.hp-faq-icon {
    flex-shrink: 0; width: 24px; height: 24px;
    border-radius: 50%; border: 1.5px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-secondary); font-size: 16px; line-height: 1;
    transition: transform 0.25s, background 0.2s, border-color 0.2s;
    font-style: normal;
}
.hp-faq-item[open] .hp-faq-icon { transform: rotate(45deg); background: #6366F1; border-color: #6366F1; color: #fff; }
.hp-faq-a { padding: 0 24px 20px; font-size: 15px; line-height: 1.7; color: var(--color-text-secondary); }

/* ═══════════════════════════════
   13. LEAD MAGNET / OPT-IN
═══════════════════════════════ */
.hp-optin {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.06));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.hp-optin-inner { max-width: 580px; margin: 0 auto; text-align: center; padding: 72px 20px; }
.hp-optin h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.hp-optin p  { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 32px; line-height: 1.65; }
.hp-optin-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.hp-optin-input {
    flex: 1; padding: 13px 16px; border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface); color: var(--color-text-primary);
    font-size: 15px; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-optin-input:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.hp-optin-btn {
    padding: 13px 20px; border-radius: 12px;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    color: #fff; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hp-optin-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.hp-optin-note { font-size: 12px; color: var(--color-text-secondary); margin-top: 12px; }
@media (max-width: 480px) { .hp-optin-form { flex-direction: column; } }

/* ═══════════════════════════════
   COUNTRY GRID overrides
═══════════════════════════════ */
.hp-countries-head { text-align: center; margin-bottom: 32px; }

/* ═══════════════════════════════
   DARK MODE tweaks
═══════════════════════════════ */
[data-theme="dark"] .hp-hero-grid {
    background-image: linear-gradient(rgba(99,102,241,0.10) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99,102,241,0.10) 1px, transparent 1px);
}
[data-theme="dark"] .hp-feat-card,
[data-theme="dark"] .hp-problem-card,
[data-theme="dark"] .hp-usecase,
[data-theme="dark"] .hp-gloss-card,
[data-theme="dark"] .hp-testi-card { background: var(--color-surface); }
[data-theme="dark"] .hp-optin-input { background: #1a2238; border-color: var(--color-border); }

/* ═══════════════════════════════
   UTILITY
═══════════════════════════════ */
.text-gradient {
    background: linear-gradient(135deg, #6366F1, #A855F7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider { width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg,#6366F1,#A855F7); margin: 16px auto 0; }
