/* =========================
   Hero
   ========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Ambient background glow */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.08) 0%, transparent 65%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
    50%      { transform: scale(1.1) translateY(-20px); opacity: 0.8; }
}


/* -------------------------
   Split layout
   ------------------------- */

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content-simple {
    max-width: 860px;
}

.hero-content-split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
}


/* -------------------------
   Text column
   ------------------------- */

.hero-text h1 {
    font-size: 58px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 28px;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h1 .gradient-text {
    white-space: nowrap;
}

.hero-reminder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.14);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-text .subtitle {
    font-size: 22px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.hero-text .description {
    max-width: 760px;
    font-size: 19px;
    color: var(--gray-light);
    margin-bottom: 0;
    line-height: 1.8;
}

.hero-tagline {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}


/* -------------------------
   Screenshot showcase
   ------------------------- */

.hero-screenshots {
    position: relative;
}

.hero-screenshots-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Shared card treatment — now a <button> */
.hero-shot {
    /* Reset button defaults */
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;

    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    padding: 0;
    box-shadow:
        0 2px 4px rgba(0, 24, 48, 0.04),
        0 8px 20px rgba(0, 24, 48, 0.06),
        0 24px 56px rgba(0, 24, 48, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;   /* let button handle clicks */
}

/* --- Caption --- */

.hero-shot-caption {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gray);
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.3s ease;
}

.hero-shot:hover .hero-shot-caption {
    color: var(--primary);
}

/* Expand hint icon (appears on hover) */
.hero-shot::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") no-repeat center / 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 5;
}

.hero-shot:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* --- Positioning per card --- */

.hero-shot-main {
    width: 82%;
    top: 0;
    right: 0;
    z-index: 1;
    transform: rotate(1.5deg);
}

.hero-shot-clients {
    width: 56%;
    bottom: 2%;
    left: 0;
    z-index: 2;
    transform: rotate(-2.5deg);
}

.hero-shot-process {
    width: 52%;
    bottom: -4%;
    right: 4%;
    z-index: 3;
    transform: rotate(2deg);
}

/* Hover lift */
.hero-shot:hover {
    z-index: 10;
    transform: rotate(0deg) translateY(-6px) scale(1.02);
    box-shadow:
        0 4px 8px rgba(0, 24, 48, 0.04),
        0 16px 32px rgba(0, 24, 48, 0.08),
        0 32px 72px rgba(0, 24, 48, 0.14);
}

/* Focus-visible for keyboard users */
.hero-shot:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

/* Decorative glow */
.hero-screenshots-glow {
    position: absolute;
    inset: -15%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 60% 50%,
        rgba(0, 166, 147, 0.12) 0%,
        rgba(38, 226, 174, 0.06) 40%,
        transparent 70%
    );
    pointer-events: none;
    filter: blur(40px);
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}


/* -------------------------
   Entrance animation
   ------------------------- */

.hero-shot-main    { animation: shotEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.hero-shot-clients { animation: shotEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.hero-shot-process { animation: shotEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }

@keyframes shotEnter {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(0deg) scale(0.92);
    }
}


/* -------------------------
   Lightbox overlay
   ------------------------- */

.hero-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 24, 48, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.hero-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

/* Content (image + caption) */
.hero-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    /* Entry animation */
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-lightbox.is-active .hero-lightbox-content {
    transform: scale(1) translateY(0);
}

.hero-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.hero-lightbox-caption {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
    text-align: center;
}


/* -------------------------
   Button styles (reuse)
   ------------------------- */

.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button__link.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    padding: 20px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
    border: none;
}

.wp-block-button.btn-primary .wp-block-button__link:hover,
.wp-block-button__link.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(20, 184, 166, 0.35);
}


/* -------------------------
   Old visual/cards (unused)
   ------------------------- */

.hero-visual,
.floating-card,
.card-1, .card-2, .card-3,
.card-stat, .card-label {
    display: none;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 1200px) {
    .hero-content-split {
        gap: 48px;
    }

    .hero-text h1 {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {
    .hero-content-split {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-text h1 {
        font-size: 46px;
    }

    .hero-content-simple {
        max-width: 100%;
    }

    .hero-screenshots {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-text h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .hero-text .subtitle {
        font-size: 19px;
        line-height: 1.6;
    }

    .hero-text .description {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-reminder {
        font-size: 13px;
        padding: 9px 14px;
    }

    .hero-tagline {
        font-size: 19px;
    }

    .hero-screenshots {
        max-width: 420px;
    }

    .hero-shot {
        border-radius: 10px;
    }

    .hero-shot-main   { width: 80%; }
    .hero-shot-clients { width: 54%; }
    .hero-shot-process { width: 50%; }

    .hero-shot-caption {
        font-size: 11px;
        padding: 8px 10px;
    }

    /* Lightbox adjustments */
    .hero-lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .hero-lightbox-img {
        border-radius: 12px;
    }

    .hero-lightbox-caption {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .hero-screenshots {
        max-width: 320px;
    }

    .hero-shot-main   { width: 85%; }
    .hero-shot-clients { width: 58%; bottom: 4%; }
    .hero-shot-process { width: 54%; bottom: 0; right: 0; }
}
