/* =============================================
   HOMEPAGE STYLES — wykoPAKA
   Dedicated styles for the landing page.
   Uses Pakafront variables for theme consistency.
   ============================================= */

/* ---------- HERO ENHANCEMENT ---------- */
.home-hero {
    position: relative;
    padding: 80px 24px 60px;
    overflow: hidden;
}

.home-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.home-hero-content {
    flex: 1;
    min-width: 0;
}

.home-hero-visual {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-visual svg {
    width: 100%;
    height: auto;
    max-width: 380px;
    animation: home-hero-float 6s ease-in-out infinite;
}

@keyframes home-hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.home-hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--pf-ink-1);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.home-hero-title span {
    background: linear-gradient(135deg, var(--pf-primary), #ff8a65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--pf-ink-2);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 32px;
}

@media (max-width: 767px) {
    .home-hero {
        padding: 48px 16px 36px;
    }

    .home-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .home-hero-visual {
        flex: none;
        width: 100%;
    }

    .home-hero-visual svg {
        max-width: 260px;
    }

    .home-hero-desc {
        margin: 0 auto 32px;
    }

    .home-hero .pf-d-flex {
        justify-content: center;
    }
}

/* ---------- SECTION SPACING ---------- */
.home-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
    /* Fix for sticky header covering section title */
}

@media (max-width: 767px) {
    .home-section {
        margin-bottom: 56px;
    }
}

/* ---------- SECTION HEADERS ---------- */
.home-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--pf-primary-soft);
    color: var(--pf-primary);
    margin-bottom: 16px;
}

.home-section-tag .material-symbols-outlined {
    font-size: 14px;
}

.home-section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--pf-ink-1);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.home-section-subtitle {
    font-size: 16px;
    color: var(--pf-ink-3);
    margin-bottom: 40px;
}

/* ---------- STAT CARDS ---------- */
.home-stat-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.home-stat {
    text-align: center;
    padding: 40px 24px;
    border-radius: 24px;
    background: var(--pf-surface);
    border: 1px solid var(--pf-border);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-stat::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
    background: currentColor;
}

.home-stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-hover);
}

.home-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 16px -4px currentColor;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.home-stat:hover .home-stat-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 12px 24px -6px currentColor;
}

.home-stat-icon.primary {
    background: linear-gradient(135deg, var(--pf-primary), #ff8a65);
    color: rgba(253, 92, 76, 0.4);
}

.home-stat-icon.info {
    background: linear-gradient(135deg, var(--pf-info), #60a5fa);
    color: rgba(59, 130, 246, 0.4);
}

.home-stat-icon.success {
    background: linear-gradient(135deg, var(--pf-success), #34d399);
    color: rgba(16, 185, 129, 0.4);
}

.home-stat-icon.warning {
    background: linear-gradient(135deg, var(--pf-warning), #fbbf24);
    color: rgba(245, 158, 11, 0.4);
}

/* Reset text color for icon content */
.home-stat-icon span {
    color: white;
}

.home-stat-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--pf-ink-1);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-feature-settings: "tnum";
    /* Tabular numbers for stable width */
    transition: color 0.3s ease;
}

/* Colorize value on hover based on card type */
.home-stat:has(.home-stat-icon.primary):hover .home-stat-value {
    color: var(--pf-primary);
}

.home-stat:has(.home-stat-icon.info):hover .home-stat-value {
    color: var(--pf-info);
}

.home-stat:has(.home-stat-icon.success):hover .home-stat-value {
    color: var(--pf-success);
}

.home-stat:has(.home-stat-icon.warning):hover .home-stat-value {
    color: var(--pf-warning);
}

.home-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- STEP CARDS (How it works) ---------- */
.home-step {
    text-align: center;
    padding: 40px 20px 32px;
    border-radius: 20px;
    background: var(--pf-surface);
    border: 1px solid var(--pf-border);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pf-primary), #ff8a65);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-pop);
}

.home-step:hover::before {
    opacity: 1;
}

.home-step-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.home-step-circle {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background: linear-gradient(135deg, var(--pf-primary), #ff8a65);
}

.home-step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: var(--pf-surface);
    color: var(--pf-primary);
    border: 2px solid var(--pf-primary);
    box-shadow: var(--pf-shadow-sm);
}

/* Per-step color variants */
.home-step:nth-child(2) .home-step-circle {
    background: linear-gradient(135deg, var(--pf-info), #60a5fa);
}

.home-step:nth-child(2) .home-step-num {
    color: var(--pf-info);
    border-color: var(--pf-info);
}

.home-step:nth-child(2)::before {
    background: linear-gradient(90deg, var(--pf-info), #60a5fa);
}

.home-step:nth-child(3) .home-step-circle {
    background: linear-gradient(135deg, var(--pf-success), #34d399);
}

.home-step:nth-child(3) .home-step-num {
    color: var(--pf-success);
    border-color: var(--pf-success);
}

.home-step:nth-child(3)::before {
    background: linear-gradient(90deg, var(--pf-success), #34d399);
}

.home-step:nth-child(4) .home-step-circle {
    background: linear-gradient(135deg, var(--pf-warning), #fbbf24);
}

.home-step:nth-child(4) .home-step-num {
    color: var(--pf-warning);
    border-color: var(--pf-warning);
}

.home-step:nth-child(4)::before {
    background: linear-gradient(90deg, var(--pf-warning), #fbbf24);
}

.home-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pf-ink-1);
    margin-bottom: 8px;
}

.home-step p {
    font-size: 14px;
    color: var(--pf-ink-3);
    line-height: 1.6;
}

/* ---------- TIMELINE ---------- */
.pf-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

/* Connecting line (Desktop) */
.pf-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--pf-border);
    z-index: 0;
}

.pf-timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pf-timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pf-surface);
    border: 2px solid var(--pf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--pf-ink-3);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

/* Active State */
.pf-timeline-step.active .pf-timeline-dot {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: white;
    box-shadow: 0 0 0 4px var(--pf-primary-soft);
    transform: scale(1.1);
}

.pf-timeline-step.active .pf-timeline-label {
    color: var(--pf-ink-1);
}

.pf-timeline-step.active .pf-timeline-date {
    color: var(--pf-primary);
    font-weight: 700;
}

/* Done State */
.pf-timeline-step.done .pf-timeline-dot {
    background: var(--pf-success);
    border-color: var(--pf-success);
    color: white;
}

.pf-timeline-step.done .pf-timeline-label {
    color: var(--pf-ink-1);
}

.pf-timeline-step.done .pf-timeline-date {
    color: var(--pf-success);
}

/* Base Label & Date */
.pf-timeline-label {
    font-weight: 600;
    color: var(--pf-ink-3);
    font-size: 14px;
    text-align: center;
}

.pf-timeline-date {
    display: block;
    font-size: 13px;
    color: var(--pf-ink-3);
    margin-top: 4px;
    font-weight: 500;
}

/* Mobile Timeline (Vertical) */
@media (max-width: 768px) {
    .pf-timeline {
        flex-direction: column;
        gap: 24px;
        padding-left: 12px;
    }

    .pf-timeline::before {
        top: 20px;
        bottom: 20px;
        left: 27px;
        /* alignment with dot center */
        width: 2px;
        height: auto;
        right: auto;
    }

    .pf-timeline-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .pf-timeline-label {
        text-align: left;
    }

    .pf-timeline-dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* ---------- CTA BANNER ---------- */
.home-cta {
    position: relative;
    padding: 40px 24px;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pf-primary), #e8453a, #ff8a65, var(--pf-primary));
    background-size: 200% 200%;
    animation: home-cta-gradient 8s ease infinite;
    box-shadow:
        0 20px 60px -16px rgba(253, 92, 76, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

@keyframes home-cta-gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.home-cta>* {
    position: relative;
    z-index: 2;
}

/* Radial light blobs */
.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 300px 200px at 15% 85%, rgba(255, 255, 255, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 250px 180px at 85% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 200px 200px at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Shimmer sweep */
.home-cta::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0.14) 50%,
            rgba(255, 255, 255, 0.06) 55%,
            transparent 60%);
    animation: home-cta-shimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes home-cta-shimmer {
    0% {
        transform: translateX(-40%) translateY(-10%) rotate(25deg);
    }

    100% {
        transform: translateX(40%) translateY(10%) rotate(25deg);
    }
}

/* Floating decorative shapes */
.home-cta-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
    z-index: 0;
}

.home-cta-deco:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -20px;
    animation: home-cta-float 7s ease-in-out infinite;
}

.home-cta-deco:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: -10px;
    right: 10%;
    border-radius: 18px;
    animation: home-cta-float 5s ease-in-out infinite reverse;
}

.home-cta-deco:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 5%;
    animation: home-cta-float 6s ease-in-out infinite 1s;
}

.home-cta-deco:nth-child(4) {
    width: 24px;
    height: 24px;
    bottom: 25%;
    left: 8%;
    border-radius: 8px;
    animation: home-cta-float 4s ease-in-out infinite 0.5s;
}

@keyframes home-cta-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

/* Glassmorphism icon */
.home-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-cta h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Button with glow */
.home-cta .pf-btn {
    background: white;
    color: var(--pf-primary);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 40px;
    padding: 0 24px;
}

.home-cta .pf-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(255, 255, 255, 0.35),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* ---------- STAGGER ANIMATION ---------- */
.home-stagger>* {
    opacity: 0;
    transform: translateY(24px);
    animation: home-stagger-in 0.6s ease forwards;
}

.home-stagger>*:nth-child(1) {
    animation-delay: 0s;
}

.home-stagger>*:nth-child(2) {
    animation-delay: 0.1s;
}

.home-stagger>*:nth-child(3) {
    animation-delay: 0.2s;
}

.home-stagger>*:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes home-stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- GALLERY SECTION ---------- */
.home-gallery-section {
    position: relative;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .home-hero {
        padding: 60px 16px 48px;
    }

    .home-stat {
        padding: 24px 12px;
    }

    .home-stat-value {
        font-size: 26px;
    }

    .home-step {
        padding: 28px 16px;
    }

    .home-cta {
        padding: 48px 20px;
        border-radius: 20px;
    }

    .home-cta-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .home-cta-deco {
        display: none;
    }
}
