﻿/* ── Section wrapper ───────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, var(--white) 0%, var(--champagne) 55%, var(--pearl) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}


/* ── Decorative orbs (background glow) ─── */
.hero-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: var(--burgundy);
    top: -200px;
    right: -150px;
    animation: hero-orb-drift 18s ease-in-out infinite;
}

.hero-orb--2 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    bottom: -100px;
    left: -100px;
    animation: hero-orb-drift 22s ease-in-out infinite reverse;
}

.hero-orb--3 {
    width: 250px;
    height: 250px;
    background: var(--light-burgundy);
    top: 40%;
    left: 45%;
    animation: hero-orb-drift 14s ease-in-out infinite 4s;
}

@keyframes hero-orb-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.97);
    }
}


/* ── Diamond pattern overlay ───────────── */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><polygon points="10,2 18,10 10,18 2,10" fill="none" stroke="%23D4AF37" stroke-width="0.4" opacity="0.35"/></svg>');
    background-size: 80px 80px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: hero-pattern-scroll 30s linear infinite;
}

@keyframes hero-pattern-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-80px);
    }
}


/* ── Content grid ───────────────────────── */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}


/* ── Badge ──────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(107, 44, 62, 0.07);
    border: 1px solid rgba(107, 44, 62, 0.18);
    color: var(--burgundy);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.8rem;
    animation: hero-fade-up 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107, 44, 62, 0.2);
    animation: hero-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes hero-pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(107, 44, 62, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(107, 44, 62, 0.08);
    }
}


/* ── Heading ────────────────────────────── */
.hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.12;
    color: var(--dark-burgundy);
    margin-bottom: 1.8rem;
    animation: slideInLeft 0.8s cubic-bezier(0.4,0,0.2,1) 0.1s both;
}

.hero-heading__accent {
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ── Description ────────────────────────── */
.hero-description {
    font-size: 1.15rem;
    color: var(--luxury-gray);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 540px;
    animation: slideInLeft 0.8s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}


/* ── CTA Buttons ────────────────────────── */
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
    animation: slideInLeft 0.8s cubic-bezier(0.4,0,0.2,1) 0.3s both;
}

    .hero-buttons .btn-primary i {
        margin-right: 0.5rem;
    }

    .hero-buttons .btn-secondary i {
        margin-left: 0.5rem;
    }


/* ── Inline stats ───────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s cubic-bezier(0.4,0,0.2,1) 0.4s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat__value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.hero-stat__label {
    font-size: 0.78rem;
    color: var(--luxury-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(107, 44, 62, 0.18);
    flex-shrink: 0;
}


/* ── Trust indicators ───────────────────── */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    animation: slideInLeft 0.8s cubic-bezier(0.4,0,0.2,1) 0.5s both;
}

.hero-trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--luxury-gray);
    font-weight: 500;
}

    .hero-trust__item i {
        color: var(--burgundy);
        font-size: 0.9rem;
    }


/* ── Visual column ──────────────────────── */
.hero-visual {
    position: relative;
    animation: slideInRight 0.9s cubic-bezier(0.4,0,0.2,1) 0.3s both;
}


/* ── Floating metric cards ──────────────── */
.hero-metric {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border-radius: 16px;
    padding: 0.9rem 1.3rem;
    box-shadow: 0 12px 40px rgba(107, 44, 62, 0.14);
    border: 1px solid rgba(107, 44, 62, 0.1);
    z-index: 3;
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.hero-metric--top {
    top: -18px;
    left: -28px;
    animation: hero-metric-float 5s ease-in-out infinite;
}

.hero-metric--bottom {
    bottom: -18px;
    right: -28px;
    animation: hero-metric-float 5s ease-in-out infinite 2.5s;
}

@keyframes hero-metric-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-metric__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-metric__icon--gold {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
}

.hero-metric__value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.hero-metric__label {
    font-size: 0.72rem;
    color: var(--luxury-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ── Dashboard mockup ───────────────────── */
.hero-mockup {
    width: 100%;
    background: linear-gradient(145deg, var(--white), var(--pearl));
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(107, 44, 62, 0.18);
    border: 1px solid rgba(107, 44, 62, 0.15);
    overflow: hidden;
    transform-style: preserve-3d;
    animation: hero-mockup-float 7s ease-in-out infinite;
}

@keyframes hero-mockup-float {
    0%, 100% {
        transform: translateY(0) rotateX(3deg) rotateY(-4deg);
    }

    50% {
        transform: translateY(-16px) rotateX(5deg) rotateY(-6deg);
    }
}

/* Window chrome bar */
.mockup-chrome {
    height: 52px;
    background: linear-gradient(90deg, var(--burgundy), var(--wine));
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.mockup-chrome__dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

    .mockup-chrome__dots span {
        width: 11px;
        height: 11px;
        border-radius: 50%;
    }

        .mockup-chrome__dots span:nth-child(1) {
            background: #ff5f56;
        }

        .mockup-chrome__dots span:nth-child(2) {
            background: #ffbd2e;
        }

        .mockup-chrome__dots span:nth-child(3) {
            background: #27ca3f;
        }

.mockup-chrome__title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .mockup-chrome__title i {
        color: var(--gold);
    }

/* Body */
.mockup-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* KPI row */
.mockup-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mockup-kpi {
    background: var(--white);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(107, 44, 62, 0.08);
    box-shadow: 0 3px 12px rgba(107, 44, 62, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mockup-kpi__label {
    font-size: 0.7rem;
    color: var(--luxury-gray);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mockup-kpi__value {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    line-height: 1.2;
}

.mockup-kpi__trend {
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.mockup-kpi__trend--up {
    color: #16a34a;
}

.mockup-kpi__trend--down {
    color: var(--error, #dc2626);
}

.mockup-kpi__trend--neutral {
    color: var(--luxury-gray);
}

/* Main grid: chart + inventory */
.mockup-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1rem;
}

.mockup-chart-card,
.mockup-inventory-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(107, 44, 62, 0.08);
    box-shadow: 0 3px 12px rgba(107, 44, 62, 0.06);
}

.mockup-chart-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--luxury-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.9rem;
}

.mockup-chart-card__tag {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Bar chart */
.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 90px;
    padding-top: 0.5rem;
}

.mockup-chart__bar {
    flex: 1;
    background: linear-gradient(to top, var(--burgundy), var(--light-burgundy));
    border-radius: 4px 4px 0 0;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.mockup-chart__bar--active {
    opacity: 1;
    background: linear-gradient(to top, var(--burgundy), var(--gold));
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Inventory list */
.mockup-inventory-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.3rem;
}

.mockup-inv-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
}

.mockup-inv-item__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-inv-item__dot--gold {
    background: var(--gold);
}

.mockup-inv-item__dot--wine {
    background: var(--burgundy);
}

.mockup-inv-item__dot--platinum {
    background: var(--luxury-gray);
}

.mockup-inv-item__dot--rose {
    background: var(--rose-gold);
}

.mockup-inv-item__name {
    flex: 1;
    color: var(--dark-gray);
}

.mockup-inv-item__count {
    font-weight: 700;
    color: var(--burgundy);
    font-family: 'Playfair Display', serif;
}


/* ── Reusable animation ─────────────────── */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Responsive ─────────────────────────── */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3.5rem;
    }

    .hero-heading {
        font-size: 3.2rem;
    }
}

@media (max-width: 968px) {
    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-heading {
        font-size: 2.8rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-badge {
        display: inline-flex;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .hero-metric--top {
        left: -10px;
    }

    .hero-metric--bottom {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .hero-stat__value {
        font-size: 1.25rem;
    }

    .mockup-main-grid {
        grid-template-columns: 1fr;
    }

    .hero-metric {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.9rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat-divider {
        display: none;
    }

    .mockup-kpi-row {
        grid-template-columns: 1fr 1fr;
    }

        .mockup-kpi-row .mockup-kpi:last-child {
            grid-column: 1 / -1;
        }
}
