/* ============================================
   HOME CSS — Hero Section
   ============================================ */

:root {
    --home-bg: #bf6430;
    --home-blob-1: #733612;
    --home-blob-2: #d98841;
    --home-blob-3: #59200b;
    --home-blob-opacity: 0.78;
    --home-title: #fffaf6;
    --home-copy: #fff2e8;
}

html[data-theme="dark"] {
    --home-bg: #020803;
    --home-blob-1: #c4ff38;
    --home-blob-2: #35d04f;
    --home-blob-3: #087a38;
    --home-blob-opacity: 0.62;
    --home-title: #f3fbff;
    --home-copy: #d6e5e9;
}

.hero-section {
    background: var(--home-bg);
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    padding-bottom: 90px;
    overflow: hidden;
    isolation: isolate;
    transition: background 800ms ease;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--home-bg);
    pointer-events: none;
    transition: background 800ms ease;
}

.hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28)),
        radial-gradient(circle at 50% 58%, transparent 0%, rgba(0, 0, 0, 0.18) 75%);
}

.hero-mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(115px);
    opacity: var(--home-blob-opacity);
    will-change: transform;
    animation: heroMeshFloat 18s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transition: background 800ms ease, opacity 800ms ease;
}

.hero-mesh-blob-1 {
    top: -30%;
    left: -12%;
    width: 60vw;
    height: 70vw;
    background: var(--home-blob-1);
}

.hero-mesh-blob-2 {
    right: -15%;
    bottom: -34%;
    width: 60vw;
    height: 70vw;
    background: var(--home-blob-2);
    animation-delay: -6s;
}

.hero-mesh-blob-3 {
    top: 6%;
    left: 36%;
    width: 42vw;
    height: 60vw;
    background: var(--home-blob-3);
    animation-delay: -12s;
}

@keyframes heroMeshFloat {
    from { transform: translate3d(-2%, -2%, 0) scale(0.98); }
    to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

/* ---- Hero Top — Logo ---- */

.hero-top {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    z-index: 10;
}

.hero-logo {
    width: 62px;
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
}

/* ---- Hero Center ---- */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 0;
    z-index: 10;
}

.hero-title {
    color: var(--home-title);
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 5px 26px rgba(0, 0, 0, 0.24);
    transition: color 500ms ease;
}

.hero-title .en {
    font-family: 'Lato', 'Inter', sans-serif;
    letter-spacing: 0;
}

.hero-title [data-variable-proximity] {
    position: relative;
    display: inline;
}

.hero-title .variable-proximity-word {
    display: inline-flex;
    white-space: nowrap;
}

.hero-title .variable-proximity-character {
    display: inline-block;
    transform: translateY(0) scale(1);
    transform-origin: 50% 72%;
    pointer-events: none;
    will-change: transform, font-weight, font-variation-settings;
    transition:
        transform 110ms ease-out,
        font-weight 110ms ease-out,
        font-variation-settings 110ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .variable-proximity-character {
        transform: none !important;
        font-weight: 700 !important;
        font-variation-settings: normal !important;
        transition: none;
    }
}

.hero-subtitle {
    color: var(--home-copy);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-style: normal !important;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: 0.4px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
    transition: color 500ms ease;
}

.hero-subtitle .en {
    font-family: 'Inter', sans-serif;
    font-style: italic !important;
}

.hero-subtitle *,
.photo-credit * {
    font-style: normal !important;
}

/* ---- Hero Bottom ---- */
.hero-bottom {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    direction: ltr;
    z-index: 10;
}

.photo-credit {
    display: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
    font-style: normal !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    margin-left: 6px;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .hero-section {
        padding: 60px 48px 90px;
    }
    .hero-top {
        top: 60px;
    }
    .hero-logo {
        width: 72px;
    }
    .hero-subtitle {
        margin-bottom: 28px;
    }
}

@media (max-width: 640px) {
    .hero-mesh-blob {
        filter: blur(84px);
    }
    .hero-bottom {
        justify-content: center;
    }
    .download-buttons {
        gap: 10px;
    }
    .store-button {
        min-width: 140px;
    }
}

@media (max-width: 375px) {
    .hero-top {
        top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mesh-blob,
    .hero-logo {
        animation: none;
    }
}
