/* ============================================
   Hero — Warm, food-oriented, human-first
   Left: headline + CTA | Right: warm photo + floating live demo
   ============================================ */

.hero {
    display: flex;
    align-items: center;
    padding: 124px 0 64px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Warm radial glow behind content */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 8%, rgba(224, 89, 42, 0.10) 0%, transparent 55%),
                radial-gradient(ellipse at 0% 92%, rgba(202, 138, 4, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

/* ── Two-column grid ── */
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
    max-width: 1240px;
}

.hero-text {
    text-align: left;
}

/* ── Pill badge ── */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    background: var(--terracotta-soft);
    border: 1px solid rgba(224, 89, 42, 0.22);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--terracotta-hover);
    margin-bottom: 22px;
    font-weight: 600;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.05s;
}

.hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terracotta);
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* ── Title ── */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.15s;
}

.hero-title em {
    font-family: var(--font-brand);
    font-style: italic;
    font-weight: 400;
    font-size: 1.12em;
    letter-spacing: -0.01em;
    color: var(--terracotta);
}

/* ── Subtitle ── */
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 28px;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.25s;
}

.hero-subtitle strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ── Actions ── */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.35s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--terracotta);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: 0 6px 20px var(--terracotta-glow);
}

.btn-primary:hover {
    background: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--terracotta-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

/* ── Trust line ── */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.5s;
}

.hero-trust-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--terracotta);
    opacity: 0.5;
}

/* ============================================
   HERO VISUAL — warm photo + floating live demo
   ============================================ */
.hero-visual {
    position: relative;
    width: 100%;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-visual-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    aspect-ratio: 4 / 3;
}

.hero-visual-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-demo {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--ink);
    border: 1px solid rgba(26, 15, 31, 0.12);
    box-shadow: 0 20px 50px rgba(26, 15, 31, 0.25);
}

/* Floating live demo overlapping bottom-left of photo */
.hero-demo-float {
    position: absolute;
    width: 56%;
    left: -24px;
    bottom: -28px;
    z-index: 2;
    border: 2px solid var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 15, 31, 0.28);
}

.hero-demo video {
    display: block;
    width: 100%;
    height: auto;
}

/* Browser-style top bar */
.hero-demo-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--ink-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-demo-dot:first-child { background: #ff5f57; }
.hero-demo-dot:nth-child(2) { background: #ffbd2e; }
.hero-demo-dot:nth-child(3) { background: #28c840; }

.hero-demo-label {
    margin-left: 8px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-pill, .hero-title, .hero-subtitle,
    .hero-actions, .hero-trust, .hero-visual {
        animation: none;
        opacity: 1;
    }
    .hero-pill-dot { animation: none; }
}

/* ============================================
   Tablet
   ============================================ */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero-visual {
        max-width: 540px;
        margin: 0 auto;
    }
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 48px;
    }

    .hero-pill {
        margin-bottom: 16px;
        font-size: 0.74rem;
        padding: 6px 13px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.96rem;
        margin-bottom: 22px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        gap: 10px 16px;
        justify-content: flex-start;
    }

    .hero-visual {
        margin-top: 8px;
    }

    /* On mobile the video demo is too tall to float over the photo — stack it below */
    .hero-demo-float {
        position: static;
        width: 100%;
        margin-top: 18px;
        border-width: 1px;
        box-shadow: var(--shadow-lg);
    }
}
