﻿/* ============================================
   HERO SECTION вЂ” Modern Redesign
   Glassmorphism floating cards + gradient mesh
   ============================================ */

/* --- Reset ALL old hero internals --- */
section.hero .hero-bg,
section.hero .gradient-orb,
section.hero .grid-pattern,
section.hero .grid-pattern-2,
section.hero .floating-star,
section.hero #particles-canvas,
section.hero .hero-social-proof,
section.hero .hero-accent-line,
section.hero .hero-mockup,
section.hero .hero-dots {
    display: none !important;
}

/* --- Main Hero --- */
section.hero {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    align-items: flex-start !important;
}

/* --- Gradient Mesh Background --- */
.hero-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-mesh::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 51, 60, 0.06) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    filter: blur(80px);
    animation: meshFloat1 20s ease-in-out infinite;
}

.hero-bg-mesh::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    filter: blur(80px);
    animation: meshFloat2 24s ease-in-out infinite;
}

@keyframes meshFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, 30px) scale(1.05);
    }
}

@keyframes meshFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.08);
    }
}

/* --- Hero Content Layout --- */
section.hero .container {
    position: relative !important;
    z-index: 2 !important;
}

section.hero .hero-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 60px !important;
    text-align: left !important;
    padding: 40px 24px !important;
    max-width: none !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
}

section.hero .hero-content::before {
    display: none !important;
}

/* --- Left: Text Block --- */
section.hero .hero-text {
    flex: 0 0 52% !important;
    max-width: 52% !important;
    width: 52% !important;
    position: relative !important;
    z-index: 5 !important;
    padding: 0 !important;
}

/* --- Eyebrow Label --- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a82a32;
    margin-bottom: 2rem;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4333c;
    display: block;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(196, 51, 60, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(196, 51, 60, 0);
    }
}

/* --- Title --- */
section.hero .hero-title {
    color: #0f172a !important;
    text-shadow: none !important;
    margin: 0 0 1.5rem 0 !important;
    max-width: none !important;
    text-align: left !important;
    line-height: 1.08 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
}

section.hero .title-line {
    color: #0f172a !important;
    text-shadow: none !important;
    font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    display: block !important;
    opacity: 1 !important;
}

/* Gradient accent word */
section.hero .title-accent {
    background: linear-gradient(135deg, #c4333c 0%, #9333ea 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* --- Subtitle --- */
section.hero .hero-subtitle {
    color: #64748b !important;
    text-shadow: none !important;
    text-align: left !important;
    margin: 0 0 2.5rem 0 !important;
    max-width: 480px !important;
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

/* --- Buttons --- */
section.hero .hero-buttons {
    justify-content: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 0 !important;
    flex-direction: row !important;
    display: flex !important;
}

section.hero .hero-buttons .btn {
    padding: 14px 32px !important;
    font-size: 0.9375rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

section.hero .hero-buttons .btn-primary {
    background: #c4333c !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(196, 51, 60, 0.3) !important;
    transition: all 0.3s ease !important;
}

section.hero .hero-buttons .btn-primary:hover {
    background: #a82a32 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(196, 51, 60, 0.35) !important;
}

section.hero .hero-buttons .btn-secondary {
    background: transparent !important;
    color: #0f172a !important;
    border: 1.5px solid #d1d5db !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: all 0.3s ease !important;
}

section.hero .hero-buttons .btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #9ca3af !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

/* --- Trust Stats Bar --- */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.trust-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

/* =============================================
   RIGHT: Floating Dashboard Visual
   ============================================= */
.hero-visual {
    flex: 0 0 44% !important;
    max-width: 44% !important;
    width: 44% !important;
    position: relative !important;
    min-height: 420px !important;
    display: block !important;
}

/* --- Shared Float Card Style --- */
.float-card {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 10px 30px -5px rgba(0, 0, 0, 0.07) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.float-card:hover {
    box-shadow:
        0 8px 12px -2px rgba(0, 0, 0, 0.06),
        0 20px 50px -10px rgba(0, 0, 0, 0.12) !important;
}

/* --- Main Dashboard Card --- */
.float-card-main {
    position: absolute !important;
    top: 0 !important;
    left: 20px !important;
    right: 0 !important;
    padding: 20px 24px !important;
    z-index: 2 !important;
    display: block !important;
}

.card-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.card-dots {
    display: flex !important;
    gap: 5px;
}

.card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block !important;
}

.card-dots span:nth-child(1) {
    background: #fca5a5 !important;
}

.card-dots span:nth-child(2) {
    background: #fcd34d !important;
}

.card-dots span:nth-child(3) {
    background: #86efac !important;
}

.card-title-small {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

/* --- Chart Bars --- */
.card-chart {
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px !important;
    height: 140px !important;
    padding: 8px 0 !important;
}

.chart-bar {
    flex: 1 !important;
    height: var(--h) !important;
    background: linear-gradient(180deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    border-radius: 6px 6px 2px 2px !important;
    opacity: 1 !important;
    display: block !important;
    transition: filter 0.3s ease, transform 0.3s ease !important;
    position: relative !important;
    min-width: 0 !important;
}

.chart-bar-accent {
    background: linear-gradient(180deg, #c4333c 0%, #d64f54 100%) !important;
}

.chart-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* --- Stat Cards --- */
.float-card-stat {
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 20px !important;
    z-index: 3 !important;
    min-width: 180px !important;
}

.float-card-stat-1 {
    bottom: 80px !important;
    left: 0 !important;
}

.float-card-stat-2 {
    bottom: 10px !important;
    right: 10px !important;
}

.stat-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.stat-icon-green {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.stat-icon-blue {
    background: #dbeafe !important;
    color: #2563eb !important;
}

.stat-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.stat-val {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.stat-desc {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* --- Check Notification Card --- */
.float-card-check {
    position: absolute !important;
    top: 225px !important;
    right: -10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #166534 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    z-index: 4 !important;
    border-radius: 12px !important;
}

/* --- Subtle hover lift on cards --- */
.float-card-main:hover {
    transform: translateY(-4px);
}

.float-card-stat:hover {
    transform: translateY(-2px);
}

.float-card-check:hover {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    section.hero .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        padding: 80px 0 50px !important;
        gap: 50px !important;
    }

    section.hero .hero-text {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    section.hero .hero-title,
    section.hero .hero-subtitle {
        text-align: center !important;
    }

    section.hero .hero-subtitle {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 520px !important;
    }

    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    section.hero .hero-buttons {
        justify-content: center !important;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        flex: 1 1 100% !important;
        max-width: 500px !important;
        width: 100% !important;
        margin: 0 auto !important;
        min-height: 360px !important;
    }

    .float-card-main {
        left: 0 !important;
    }
}

@media (max-width: 640px) {
    section.hero .hero-content {
        padding: 60px 0 40px !important;
        gap: 40px !important;
    }

    section.hero .title-line {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    }

    section.hero .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    section.hero .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-trust {
        gap: 1rem;
    }

    .trust-number {
        font-size: 1.25rem;
    }

    .hero-visual {
        max-width: 100% !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .float-card-main {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    .float-card-stat,
    .float-card-check {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
        padding: 6px 14px 6px 10px;
    }
}

/* ============================================
   V3 HERO вЂ” Technical Blueprint (Light)
   Grid background + accent bar subtitle
   ============================================ */

.v3-hero {
    padding: 4rem 0;
    background-color: #fafbfe;
    background-image:
        linear-gradient(rgba(43, 45, 66, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 45, 66, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    border-bottom: 1px solid rgba(43, 45, 66, 0.08);
}

.v3-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.v3-text {
    flex: 1;
}

.v3-badge-top {
    display: inline-block;
    color: #c4333c;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.v3-title {
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #111827;
    line-height: 1.15;
}

.v3-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
    border-left: 3px solid #c4333c;
    padding-left: 1rem;
    line-height: 1.6;
}

.v3-visual {
    width: 120px;
    height: 120px;
    min-width: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4333c;
    box-shadow: 0 10px 30px rgba(196, 51, 60, 0.1);
    border: 8px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .v3-hero {
        padding: 2.5rem 0;
    }

    .v3-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .v3-title {
        font-size: 1.75rem;
    }

    .v3-subtitle {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid #c4333c;
        padding-top: 1rem;
    }

    .v3-visual {
        width: 90px;
        height: 90px;
        min-width: 90px;
        order: -1;
    }
}