/**
 * Hit Flick — Premium Short Drama App
 * Theme: dark, black, purple gradients, hazy/暧昧 (moody, soft)
 */

/* ========== CSS Variables ========== */
:root {
    --hf-bg: #0a0a0f;
    --hf-bg-soft: #0f0f18;
    --hf-surface: rgba(28, 20, 45, 0.6);
    --hf-surface-hover: rgba(45, 35, 70, 0.7);
    --hf-primary: #8b5cf6;
    --hf-primary-light: #a78bfa;
    --hf-primary-dark: #6d28d9;
    --hf-accent: #c084fc;
    --hf-text: #f5f3ff;
    --hf-text-muted: #a78bfa;
    --hf-text-dim: #7c6bb0;
    --hf-border: rgba(139, 92, 246, 0.25);
    --hf-glow: rgba(139, 92, 246, 0.4);
    --hf-nav-height: 72px;
    --hf-radius: 16px;
    --hf-radius-lg: 24px;
    --hf-transition: 200ms ease;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.hf-body {
    margin: 0;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hf-text);
    background: var(--hf-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ========== Veil (ambient haze / 朦胧) ========== */
.hf-veil {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hf-veil__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}

.hf-veil__orb--1 {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--hf-primary) 0%, transparent 70%);
    top: -20%;
    right: -15%;
}

.hf-veil__orb--2 {
    width: 50vw;
    height: 50vw;
    max-width: 450px;
    max-height: 450px;
    background: radial-gradient(circle, var(--hf-primary-dark) 0%, transparent 70%);
    bottom: 10%;
    left: -15%;
}

.hf-veil__orb--3 {
    width: 40vw;
    height: 40vw;
    max-width: 350px;
    max-height: 350px;
    background: radial-gradient(circle, var(--hf-accent) 0%, transparent 70%);
    top: 50%;
    left: 40%;
}

.hf-veil__grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== Layout ========== */
.hf-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .hf-wrap { padding: 0 32px; }
}

/* ========== Header & Nav ========== */
.hf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background-color var(--hf-transition), backdrop-filter var(--hf-transition), box-shadow var(--hf-transition);
}

.hf-header .hf-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .hf-header .hf-nav__inner { padding: 0 32px; }
}

.hf-nav.is-scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--hf-border);
}

.hf-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hf-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    font-family: "Syne", sans-serif;
    transition: color var(--hf-transition);
    cursor: pointer;
}

.hf-brand:hover {
    color: var(--hf-primary-light);
}

.hf-brand__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

/* Fallback icon when images/icon.png is missing */
.hf-brand__fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--hf-primary-light);
}

.hf-brand__fallback svg {
    width: 100%;
    height: 100%;
}

.hf-nav__links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

@media (min-width: 768px) {
    .hf-nav__links {
        display: flex;
        align-items: center;
    }
}

.hf-nav__links a {
    color: var(--hf-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--hf-transition);
    cursor: pointer;
}

.hf-nav__links a:hover {
    color: var(--hf-text);
}

.hf-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hf-nav__cta {
    display: none;
}

@media (min-width: 768px) {
    .hf-nav__cta { display: inline-flex; }
}

.hf-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: var(--hf-surface);
    color: var(--hf-text);
    border-radius: var(--hf-radius);
    cursor: pointer;
    transition: background-color var(--hf-transition), color var(--hf-transition);
}

.hf-burger:hover {
    background: var(--hf-surface-hover);
    color: var(--hf-primary-light);
}

.hf-burger svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .hf-burger { display: none; }
}

/* Drawer (mobile menu) */
.hf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--hf-bg-soft);
    border-left: 1px solid var(--hf-border);
    padding: 80px 24px 24px;
    z-index: 99;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, visibility 0.25s;
}

.hf-drawer[hidden] {
    transform: translateX(100%);
    visibility: hidden;
}

.hf-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hf-drawer a,
.hf-drawer .hf-btn {
    display: block;
    padding: 12px 16px;
    color: var(--hf-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--hf-radius);
    transition: background-color var(--hf-transition);
    cursor: pointer;
}

.hf-drawer a:hover {
    background: var(--hf-surface);
}

/* ========== Buttons ========== */
.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--hf-radius);
    border: none;
    cursor: pointer;
    transition: background-color var(--hf-transition), color var(--hf-transition), border-color var(--hf-transition), box-shadow var(--hf-transition);
}

.hf-btn svg {
    width: 20px;
    height: 20px;
}

.hf-btn--primary {
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    color: var(--hf-text);
    box-shadow: 0 4px 20px var(--hf-glow);
}

.hf-btn--primary:hover {
    background: linear-gradient(135deg, var(--hf-primary-light) 0%, var(--hf-primary) 100%);
    box-shadow: 0 6px 28px var(--hf-glow);
}

.hf-btn--outline {
    background: transparent;
    color: var(--hf-primary-light);
    border: 2px solid var(--hf-border);
}

.hf-btn--outline:hover {
    background: var(--hf-surface);
    border-color: var(--hf-primary);
    color: var(--hf-text);
}

.hf-btn--xl {
    padding: 16px 32px;
    font-size: 1rem;
}

.hf-btn--block {
    width: 100%;
}

.hf-btn--store.hf-btn--primary {
    padding: 14px 28px;
}

.hf-btn--store.hf-btn--outline {
    padding: 14px 28px;
}

/* ========== Hero — full-viewport; banner background, only CTA at bottom ========== */
.hf-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: calc(var(--hf-nav-height) + 24px) 24px 0;
    text-align: center;
    overflow: hidden;
}

/* Banner as hero background: full-bleed + dark overlay for text contrast (landing best practice) */
.hf-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hf-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Stronger overlay so banner (and its logo/name) recedes; one clear focal point */
.hf-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.82) 0%,
        rgba(10, 10, 15, 0.72) 50%,
        rgba(10, 10, 15, 0.92) 100%
    );
    pointer-events: none;
}

.hf-hero__bottom {
    position: relative;
    z-index: 1;
    width: 100%;
   
}

.hf-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding-bottom: 10px; /* 40 + 200px up */
}

.hf-hero__scroll {
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--hf-text-muted);
    border-radius: 50%;
    border: 1px solid var(--hf-border);
    transition: color var(--hf-transition), border-color var(--hf-transition);
    cursor: pointer;
    margin-top: 200px;
}

.hf-hero__scroll:hover {
    color: var(--hf-primary-light);
    border-color: var(--hf-primary);
}

.hf-hero__scroll svg {
    width: 24px;
    height: 24px;
    animation: hf-bounce 2s ease-in-out infinite;
}

@keyframes hf-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .hf-hero__scroll svg { animation: none; }
}

/* ========== Value prop — one-line tagline (after hero, before strip) ========== */
.hf-tagline {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 48px 24px 32px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hf-text-muted);
    text-align: center;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hf-tagline {
        font-size: 1.4rem;
        padding: 56px 24px 40px;
    }
}

/* ========== Film strip — horizontal scroll of phones ========== */
.hf-strip {
    position: relative;
    z-index: 1;
    padding: 64px 0 80px;
    overflow: hidden;
}

.hf-strip__title {
    margin: 0 0 40px;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    color: var(--hf-text);
}

.hf-strip__track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 0 48px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hf-strip__track-wrap::-webkit-scrollbar {
    height: 8px;
}

.hf-strip__track-wrap::-webkit-scrollbar-track {
    background: var(--hf-surface);
    border-radius: 4px;
}

.hf-strip__track-wrap::-webkit-scrollbar-thumb {
    background: var(--hf-primary);
    border-radius: 4px;
}

.hf-strip__track {
    display: flex;
    gap: 32px;
    padding: 0 24px;
    width: max-content;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hf-strip__track {
        gap: 48px;
        padding: 0 48px;
    }
}

.hf-strip__frame {
    flex-shrink: 0;
    scroll-snap-align: center;
}

.hf-strip__phone {
    width: 200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hf-strip__phone { width: 260px; }
}

.hf-strip__phone-inner {
    background: linear-gradient(145deg, #1a1a24 0%, #0f0f18 100%);
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--hf-border);
    overflow: hidden;
}

.hf-strip__phone-inner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    vertical-align: middle;
}

/* ========== Features — zigzag rows (no card grid) ========== */
.hf-features {
    position: relative;
    z-index: 1;
    padding: 80px 24px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.hf-features__title {
    margin: 0 0 48px;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    text-align: center;
    color: var(--hf-text);
}

.hf-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--hf-border);
}

.hf-feature:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .hf-feature {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        padding: 56px 0;
    }

    .hf-feature--reverse .hf-feature__content {
        order: 2;
    }

    .hf-feature--reverse .hf-feature__visual {
        order: 1;
    }
}

.hf-feature__content {
    text-align: center;
}

@media (min-width: 768px) {
    .hf-feature__content {
        text-align: left;
    }

    .hf-feature--reverse .hf-feature__content {
        text-align: right;
    }
}

.hf-feature__num {
    display: inline-block;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--hf-primary);
    opacity: 0.4;
    margin-bottom: 8px;
}

.hf-feature__heading {
    margin: 0 0 12px;
    font-family: "Syne", sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--hf-text);
}

.hf-feature__text {
    margin: 0;
    font-size: 1rem;
    color: var(--hf-text-dim);
    line-height: 1.6;
}

.hf-feature__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-feature__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hf-surface) 0%, var(--hf-surface-hover) 100%);
    border: 1px solid var(--hf-border);
    border-radius: 24px;
    color: var(--hf-primary-light);
}

.hf-feature__icon svg {
    width: 36px;
    height: 36px;
}

/* ========== Download — full-width diagonal strip ========== */
.hf-download {
    position: relative;
    z-index: 1;
    padding: 0;
    margin-top: 60px;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%);
    overflow: hidden;
}

.hf-download__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hf-primary-dark) 0%, var(--hf-primary) 50%, #5b21b6 100%);
    opacity: 0.95;
}

.hf-download__inner {
    position: relative;
    padding: 72px 24px 80px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hf-download__title {
    margin: 0 0 8px;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--hf-text);
}

.hf-download__lead {
    margin: 0 0 32px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.hf-download__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hf-btn--light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--hf-primary-dark);
    border: none;
}

.hf-btn--light:hover {
    background: #fff;
    color: var(--hf-primary-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ========== Footer — single row, compact ========== */
.hf-footer {
    position: relative;
    z-index: 1;
    padding: 32px 24px 28px;
    background: var(--hf-bg);
    border-top: 1px solid var(--hf-border);
}

.hf-footer__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    text-align: center;
}

@media (min-width: 640px) {
    .hf-footer__inner {
        justify-content: space-between;
        text-align: left;
    }
}

.hf-footer__name {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hf-text);
}

.hf-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
}

@media (min-width: 640px) {
    .hf-footer__nav { justify-content: flex-start; }
}

.hf-footer__link {
    color: var(--hf-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--hf-transition);
    cursor: pointer;
}

.hf-footer__link:hover {
    color: var(--hf-primary-light);
}

.hf-footer__copy {
    font-size: 0.875rem;
    color: var(--hf-text-dim);
}

.hf-footer__disclaimer {
    width: 100%;
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--hf-text-dim);
    opacity: 0.85;
    text-align: center;
}

/* ========== Modal ========== */
.hf-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    transition: visibility 0.25s ease;
}

.hf-modal.is-open {
    visibility: visible;
}

.hf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.hf-modal[hidden] .hf-modal__backdrop {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hf-modal.is-open .hf-modal__backdrop {
    opacity: 1;
}

.hf-modal__box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--hf-bg-soft);
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-lg);
    padding: 32px 28px;
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hf-modal.is-open .hf-modal__box {
    transform: scale(1);
    opacity: 1;
}

.hf-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--hf-text-muted);
    border-radius: var(--hf-radius);
    cursor: pointer;
    transition: background-color var(--hf-transition), color var(--hf-transition);
}

.hf-modal__close:hover {
    background: var(--hf-surface);
    color: var(--hf-text);
}

.hf-modal__close svg {
    width: 22px;
    height: 22px;
}

.hf-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    border-radius: 50%;
    color: var(--hf-text);
}

.hf-modal__icon svg {
    width: 28px;
    height: 28px;
}

.hf-modal__title {
    margin: 0 0 8px;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hf-text);
}

.hf-modal__text {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: var(--hf-text-muted);
    line-height: 1.6;
}

/* Focus styles for accessibility */
.hf-btn:focus-visible,
.hf-brand:focus-visible,
.hf-burger:focus-visible,
.hf-footer__link:focus-visible,
.hf-modal__close:focus-visible {
    outline: 2px solid var(--hf-primary-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hf-veil__orb,
    .hf-drawer,
    .hf-modal__box,
    .hf-modal__backdrop {
        transition: none;
    }
}
