/* LANDING PAGE/css/style.css — RistoBrain landing, brand-coherent with MEP */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:   #0E7C66;
    --green2:  #0B6B58;
    --green-dark: #074a3d;
    --light:   #f2faf7;
    --bg:      #F7F9F8;
    --muted:   #5F6F6B;
    --text:    #0F1F1B;
    --white:   #ffffff;
    --radius:  20px;
    --shadow:  0 8px 32px rgba(14, 31, 27, 0.08);
    --shadow-lg: 0 20px 60px rgba(14, 31, 27, 0.12);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    will-change: transform;
}
.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(14, 124, 102, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(14, 124, 102, 0.45);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-ghost {
    background: rgba(14, 124, 102, 0.08);
    color: var(--green);
}
.btn-ghost:hover {
    background: rgba(14, 124, 102, 0.15);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ================= NAVBAR ================= */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(14, 31, 27, 0.08);
    padding: 10px 0;
}
.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn-nav { padding: 10px 20px; font-size: 0.88rem; }

.lang-switch {
    background: none;
    border: 1.5px solid rgba(14, 124, 102, 0.25);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--muted);
    transition: border-color 0.25s;
}
.lang-switch:hover { border-color: var(--green); }
.lang-opt.active { color: var(--green); }
.lang-sep { opacity: 0.4; margin: 0 2px; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-burger span {
    width: 22px; height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 24px 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    animation: float 18s infinite alternate ease-in-out;
    pointer-events: none;
}
.shape-1 { top: -12%; right: -8%; width: 520px; height: 520px; background: var(--green); }
.shape-2 { bottom: -15%; left: -10%; width: 460px; height: 460px; background: #4ade80; animation-delay: -6s; }
.shape-3 { top: 40%; left: 55%; width: 300px; height: 300px; background: #14b892; opacity: 0.18; animation-delay: -12s; }

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 45px) scale(1.1); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14,124,102,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,124,102,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 0%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(14, 124, 102, 0.2);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 26px;
    backdrop-filter: blur(8px);
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 36px;
}
.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Hero entrance animations */
.reveal-hero {
    opacity: 0;
    transform: translateY(26px);
    animation: heroIn 0.85s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Phone / voice-agent mockup ---- */
.hero-visual { display: flex; justify-content: center; }
.phone-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 124, 102, 0.14);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 22px;
    text-align: left;
    animation: cardFloat 6s ease-in-out infinite alternate;
}
@keyframes cardFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}
.phone-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(14, 124, 102, 0.1);
    margin-bottom: 16px;
}
.call-avatar {
    width: 42px; height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), #14b892);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.call-avatar svg { width: 20px; height: 20px; }
.call-title { font-weight: 700; font-size: 0.95rem; }
.call-status {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rec-dot {
    width: 7px; height: 7px;
    background: #e74c3c;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.soundwave {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 26px;
}
.soundwave span {
    width: 3.5px;
    background: var(--green);
    border-radius: 3px;
    animation: wave 1.1s ease-in-out infinite;
}
.soundwave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.soundwave span:nth-child(2) { height: 20px; animation-delay: 0.15s; }
.soundwave span:nth-child(3) { height: 26px; animation-delay: 0.3s; }
.soundwave span:nth-child(4) { height: 16px; animation-delay: 0.45s; }
.soundwave span:nth-child(5) { height: 9px;  animation-delay: 0.6s; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50%      { transform: scaleY(1); }
}

.chat-flow { display: flex; flex-direction: column; gap: 10px; }
.bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 0.87rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
}
.bubble.shown {
    animation: bubbleIn 0.5s var(--ease) forwards;
}
@keyframes bubbleIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-guest {
    align-self: flex-start;
    background: #eef3f1;
    border-bottom-left-radius: 4px;
}
.bubble-ai {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--green), var(--green2));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.booking-toast {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    background: rgba(14, 124, 102, 0.09);
    border: 1px solid rgba(14, 124, 102, 0.2);
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
}
.booking-toast.shown { animation: bubbleIn 0.5s var(--ease) forwards; }
.booking-toast svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ================= LIVE DEMO (voice agent) ================= */
.live-section {
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(14,124,102,0.07) 0%, transparent 70%),
        var(--bg);
    overflow: hidden;
}
.live-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}
.live-copy h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 14px 0;
}
.live-copy > p {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 26px;
}
@media (max-width: 900px) {
    .live-grid { grid-template-columns: 1fr; gap: 40px; }
    .live-copy { text-align: center; }
    .live-copy .demo-points { text-align: left; max-width: 420px; margin: 0 auto; }
}

/* ================= SECTIONS ================= */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--white); }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-tag {
    display: inline-block;
    background: rgba(14, 124, 102, 0.1);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FEATURES ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border: 1px solid rgba(14, 124, 102, 0.1);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s,
                opacity 0.8s var(--ease);
}
.feature-card.visible { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 124, 102, 0.3);
}
.feature-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14,124,102,0.12), rgba(20,184,146,0.12));
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.35s var(--ease), background 0.35s;
}
.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--green), #14b892);
    color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-list li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding-left: 26px;
    position: relative;
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C66' stroke-width='3.2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* ================= STEPS ================= */
.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
}
.step {
    flex: 1;
    max-width: 300px;
    background: var(--bg);
    border: 1px solid rgba(14, 124, 102, 0.1);
    border-radius: var(--radius);
    padding: 34px 26px;
    text-align: center;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
                opacity 0.8s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
    width: 48px; height: 48px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #14b892);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(14, 124, 102, 0.35);
}
.step h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step-arrow {
    display: flex;
    align-items: center;
    color: rgba(14, 124, 102, 0.4);
    flex-shrink: 0;
}
.step-arrow svg { width: 28px; height: 28px; }

/* ================= STATS ================= */
.stats-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: #fff;
    padding: 72px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-value {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.92rem;
    opacity: 0.85;
    font-weight: 600;
}

/* ================= DEMO ================= */
.demo-section { overflow: hidden; }
.demo-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.demo-bg .shape { opacity: 0.15; }
.demo-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    background: var(--white);
    border: 1px solid rgba(14, 124, 102, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 56px;
}
.demo-copy h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.demo-copy > p { color: var(--muted); margin-bottom: 26px; }
.demo-points { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.demo-points li {
    font-weight: 600;
    font-size: 0.95rem;
    padding-left: 30px;
    position: relative;
}
.demo-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 1px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C66' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.demo-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-row-2 { display: flex; gap: 16px; }
.demo-form label {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text);
}
.demo-form input,
.demo-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 13px 16px;
    border: 1.5px solid rgba(14, 31, 27, 0.14);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    resize: vertical;
}
.demo-form input:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}
.demo-form input.invalid { border-color: #e74c3c; }
.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}
.form-feedback {
    display: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px;
    border-radius: 12px;
}
.form-feedback.success {
    display: block;
    background: rgba(14, 124, 102, 0.1);
    color: var(--green-dark);
    animation: bubbleIn 0.4s var(--ease) both;
}
.form-feedback.error {
    display: block;
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
    animation: bubbleIn 0.4s var(--ease) both;
}
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ================= FOOTER ================= */
.footer {
    background: var(--white);
    border-top: 1px solid rgba(14, 124, 102, 0.1);
    padding: 48px 0;
}
.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}
.footer-logo { height: 44px; width: auto; }
.footer-copy { font-size: 0.8rem; opacity: 0.75; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 420px; width: 100%; }
    .step-arrow { transform: rotate(90deg); padding: 4px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 62px; left: 12px; right: 12px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        border: 1px solid rgba(14, 124, 102, 0.12);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 4px;
        padding: 14px;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    }
    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-links a { padding: 11px 14px; border-radius: 10px; }
    .nav-links a:hover { background: rgba(14, 124, 102, 0.07); }
    .nav-links a::after { display: none; }
    .nav-burger { display: flex; }
    .btn-nav { display: none; }
    .section { padding: 68px 0; }
    .hero { padding-top: 110px; }
    .form-row-2 { flex-direction: column; }
    .shape { filter: blur(60px); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-ctas .btn { width: 100%; }
    .demo-card { padding: 28px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal, .reveal-hero, .bubble, .booking-toast { opacity: 1; transform: none; }
}

/* ============================================================
   CINEMA — scroll-driven video experience (brand-coherent)
   ============================================================ */
:root {
    --ink: #0b1512;
    --ink-soft: rgba(11, 21, 18, 0.72);
    --mint: #14b892;
    --mint-glow: rgba(20, 184, 146, 0.35);
    --on-dark: #f2faf7;
    --on-dark-dim: rgba(242, 250, 247, 0.72);
}

/* --- Navbar over the dark cinema block --- */
.nav.on-dark .nav-links a { color: var(--on-dark); }
.nav.on-dark .nav-links a::after { background: var(--mint); }
.nav.on-dark .nav-logo img { filter: brightness(0) invert(1); }
.nav.on-dark .lang-switch { color: rgba(242, 250, 247, 0.75); border-color: rgba(242, 250, 247, 0.3); }
.nav.on-dark .lang-opt.active { color: var(--mint); }
.nav.on-dark .nav-burger span { background: var(--on-dark); }
.nav.on-dark.scrolled {
    background: rgba(11, 21, 18, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 720px) {
    .nav.on-dark .nav-links {
        background: rgba(11, 21, 18, 0.95);
        border-color: rgba(20, 184, 146, 0.25);
    }
    .nav.on-dark .nav-links a:hover { background: rgba(20, 184, 146, 0.12); }
}

/* --- Cinema section --- */
#cinema { position: relative; height: 520vh; background: var(--ink); }
#cinema-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
}
#cinema-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema-shade-left {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, rgba(11, 21, 18, 0.78) 0%, rgba(11, 21, 18, 0.32) 40%, transparent 65%);
}
.cinema-shade-bottom {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(11, 21, 18, 0.8) 0%, transparent 28%);
}
.cinema-grain {
    position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cinema-vignette {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 52%, rgba(11, 21, 18, 0.5) 100%);
}
#cinema-particles { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0.35; }

/* --- Cinema text overlays --- */
.cin-text {
    position: fixed; top: 50%; left: 6%;
    transform: translateY(-50%) translateX(-18px);
    z-index: 10; max-width: 620px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
    will-change: opacity, transform;
}
.cin-text.visible {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(-50%) translateX(0);
    transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s;
}
.cin-text .hero-badge {
    background: rgba(11, 21, 18, 0.45);
    border-color: rgba(20, 184, 146, 0.35);
    color: var(--mint);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cin-text h1 {
    font-size: clamp(2.5rem, 5.8vw, 4.4rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--on-dark);
    margin-bottom: 18px;
}
.cin-text h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--on-dark);
    margin-bottom: 16px;
}
.cin-sub {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--on-dark-dim);
    max-width: 52ch;
    margin-bottom: 28px;
}
.cin-tag {
    display: inline-block;
    background: rgba(20, 184, 146, 0.14);
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* Hero mini stat bar */
.cin-stats {
    display: flex;
    background: rgba(242, 250, 247, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(242, 250, 247, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 34px;
    max-width: 520px;
}
.cin-stat {
    flex: 1;
    padding: 16px 20px;
    border-right: 1px solid rgba(242, 250, 247, 0.08);
}
.cin-stat:last-child { border-right: none; }
.cin-stat-value {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--on-dark);
    white-space: nowrap;
}
.cin-stat-value .u { color: var(--mint); font-size: 1rem; font-weight: 800; }
.cin-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(242, 250, 247, 0.55);
    margin-top: 4px;
}

/* Quote section */
.cin-quote-mark {
    font-size: 90px; line-height: 0.65; font-weight: 900;
    color: var(--mint); opacity: 0.7; display: block; margin-bottom: 22px;
}
.cin-quote {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.32;
    color: var(--on-dark);
}
.cin-cite {
    display: block; margin-top: 24px;
    font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(242, 250, 247, 0.5);
}
.cin-cite::before {
    content: ''; display: inline-block; width: 34px; height: 2px;
    background: var(--mint); border-radius: 2px;
    vertical-align: middle; margin-right: 12px;
}

/* Feature checklist (voice AI) */
.cin-list { display: flex; flex-direction: column; margin-top: 6px; }
.cin-item {
    display: flex; gap: 15px; align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(242, 250, 247, 0.1);
}
.cin-item:last-child { border-bottom: 1px solid rgba(242, 250, 247, 0.1); }
.cin-item-icon {
    width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
    background: rgba(20, 184, 146, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b892' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cin-item-title { font-size: 0.95rem; font-weight: 800; color: var(--on-dark); margin-bottom: 2px; }
.cin-item-desc { font-size: 0.88rem; color: var(--on-dark-dim); line-height: 1.5; }

/* Context dotted rows */
.cin-rows { margin-top: 8px; max-width: 480px; }
.cin-row {
    display: flex; align-items: baseline; gap: 10px;
    padding: 11px 0; font-size: 0.92rem;
}
.cin-row .lbl { color: var(--on-dark-dim); white-space: nowrap; font-weight: 600; }
.cin-row .dots { flex: 1; border-bottom: 1.5px dotted rgba(242, 250, 247, 0.22); }
.cin-row .val { color: var(--mint); white-space: nowrap; font-weight: 800; }

/* Bridge CTA (last dwell) */
#cin-bridge {
    left: 50%; text-align: center; max-width: 720px; width: 92%;
    transform: translate(-50%, -50%) translateX(-18px);
}
#cin-bridge.visible { transform: translate(-50%, -50%) translateX(0); }
#cin-bridge h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
#cin-bridge .cin-sub { margin: 0 auto 30px; }
#cin-bridge .hero-ctas { margin-bottom: 0; }

/* Chapter markers */
#cin-chapters {
    position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
    z-index: 50; display: flex; flex-direction: column; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
#cin-chapters.visible { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.cin-dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: 1.5px solid rgba(242, 250, 247, 0.35);
    background: transparent; cursor: pointer;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.cin-dot.active {
    background: var(--mint); border-color: var(--mint);
    box-shadow: 0 0 12px var(--mint-glow);
}
.cin-dot-line {
    width: 1.5px; height: 24px;
    background: rgba(242, 250, 247, 0.14);
    position: relative; overflow: hidden;
}
.cin-dot-line .fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: var(--mint);
}

/* Scroll hint */
#cin-hint {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(242, 250, 247, 0.6);
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
#cin-hint .line {
    width: 1.5px; height: 30px;
    background: linear-gradient(to bottom, rgba(242, 250, 247, 0.6), transparent);
    animation: hintPulse 2s infinite ease-in-out;
}
@keyframes hintPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* Loader */
#cin-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
#cin-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#cin-loader img { height: 44px; filter: brightness(0) invert(1); }
#cin-loader .bar {
    width: 150px; height: 3px; border-radius: 3px;
    background: rgba(242, 250, 247, 0.12); overflow: hidden;
}
#cin-loader .bar .fill {
    height: 100%; width: 0%; border-radius: 3px;
    background: linear-gradient(to right, var(--green), var(--mint));
    transition: width .2s ease;
}
#cin-loader .pct { font-size: 0.75rem; font-weight: 700; color: rgba(242, 250, 247, 0.55); letter-spacing: 0.1em; }

/* Bridge from dark cinema to light sections */
.cinema-bridge {
    height: 140px;
    background: linear-gradient(to bottom, var(--ink) 0%, var(--bg) 100%);
    margin-top: -1px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #cin-chapters { display: none; }
    .cin-text { left: 6%; right: 6%; max-width: none; }
    .cin-stats { flex-wrap: wrap; max-width: none; }
    .cin-stat { flex: 1 1 45%; border-bottom: 1px solid rgba(242, 250, 247, 0.08); }
    #cinema { height: 460vh; }
    .cin-item-desc { font-size: 0.84rem; }
    .cin-text .hero-ctas .btn { width: auto; }
}

/* Reduced motion: cinema shows first frame + all static */
@media (prefers-reduced-motion: reduce) {
    #cinema { height: auto; }
    #cinema-sticky { position: relative; height: 100vh; }
    .cin-text { position: absolute; opacity: 1; visibility: visible; }
    #cin-hint, #cin-particles { display: none; }
}

/* Ghost button leggibile sul blocco scuro */
.cin-text .btn-ghost {
    background: rgba(242, 250, 247, 0.09);
    color: var(--on-dark);
    border: 1px solid rgba(242, 250, 247, 0.22);
}
.cin-text .btn-ghost:hover {
    background: rgba(242, 250, 247, 0.16);
    color: #fff;
}
/* Hint nascosto dove lo spazio non basta */
@media (max-width: 768px), (max-height: 700px) {
    #cin-hint { display: none; }
}

/* ============================================================
   CORREZIONI SPAZI — revisione blocchi
   ============================================================ */
/* Le CTA dentro il cinema ereditavano 64px di margine inutile */
.cin-text .hero-ctas { margin-bottom: 0; }
/* Più respiro alle label della stat bar (meno a capo) */
.cin-stats { max-width: 560px; }

/* Schermi bassi: classi impostate da JS UNA VOLTA al caricamento.
   Non media query max-height: su mobile la barra URL cambia l'altezza
   a ogni scroll e le regole scatterebbero avanti e indietro (sfarfallio). */
html.h-short .cin-text { top: calc(50% + 16px); }
html.h-short .cin-text h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 14px; }
html.h-short .cin-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
html.h-short .cin-sub { margin-bottom: 20px; }
html.h-short .cin-stats { margin-top: 20px; }
html.h-short .cin-stat { padding: 12px 16px; }
html.h-short .cin-stat-value { font-size: 1.3rem; }
html.h-short .cin-item { padding: 10px 0; }
html.h-short .cin-quote-mark { font-size: 60px; margin-bottom: 14px; }
html.h-short .cin-tag { margin-bottom: 12px; }

html.h-tiny .cin-stats { display: none; }
html.h-tiny .cin-item-desc { font-size: 0.8rem; }
html.h-tiny .cin-row { padding: 8px 0; font-size: 0.85rem; }
html.h-tiny .cin-text .btn-lg { padding: 13px 24px; font-size: 0.95rem; }

/* Altezze del cinema congelate da JS in --vhpx: il layout non salta
   quando la barra URL mobile compare/scompare. Fallback 1vh senza JS. */
#cinema { height: calc(var(--vhpx, 1vh) * 460); }
#cinema-sticky { height: calc(var(--vhpx, 1vh) * 100); }
@media (min-width: 769px) {
    #cinema { height: calc(var(--vhpx, 1vh) * 520); }
}

/* ============================================================
   MINI CHAT MOCKUP — fedele al Cameriere AI reale (menu_chat.php)
   ============================================================ */
.mini-chat {
    margin-top: 18px;
    background: #0f1713;
    border: 1px solid rgba(20, 184, 146, 0.18);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mini-chat-msg {
    align-self: flex-end;
    background: var(--green);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    max-width: 85%;
}
.mini-chat-dish {
    background: rgba(242, 250, 247, 0.04);
    border: 1px solid rgba(242, 250, 247, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mini-chat-dish-tag {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mint);
}
.mini-chat-dish-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--on-dark);
}
.mini-chat-dish-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--mint);
}

/* ============================================================
   PRODUCT — screenshot reali in cornice telefono
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 980px;
    margin: 0 auto;
}
.product-item { text-align: center; }
.phone-frame {
    aspect-ratio: 390 / 780;
    border-radius: 34px;
    border: 10px solid #10241e;
    background: #10241e;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(14, 124, 102, 0.15);
    position: relative;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-item:hover .phone-frame {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(14, 31, 27, 0.2), 0 0 0 1.5px rgba(14, 124, 102, 0.3);
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    width: 84px; height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 1;
}
.phone-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.product-item figcaption {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-item figcaption strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.product-item figcaption span {
    font-size: 0.88rem;
    color: var(--muted);
}
@media (max-width: 820px) {
    .product-grid { grid-template-columns: 1fr; max-width: 320px; gap: 44px; }
}

/* ============================================================
   MIGLIORIE — griglia 4 prodotti, FAQ, form GDPR, footer
   ============================================================ */
.product-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1160px;
    gap: 26px;
}
@media (max-width: 1000px) and (min-width: 821px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}

/* FAQ accordion (details/summary nativo) */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg);
    border: 1px solid rgba(14, 124, 102, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] { border-color: rgba(14, 124, 102, 0.35); box-shadow: var(--shadow); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-weight: 700;
    font-size: 0.98rem;
    position: relative;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.1);
    color: var(--green);
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s var(--ease), background 0.3s;
}
.faq-item[open] summary::after { content: '−'; background: var(--green); color: #fff; }
.faq-item > p {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* Honeypot: fuori schermo, invisibile agli umani */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Checkbox privacy */
.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5;
}
.privacy-row input[type="checkbox"] {
    width: 17px; height: 17px;
    margin-top: 2px;
    accent-color: var(--green);
    flex-shrink: 0;
    cursor: pointer;
}
.privacy-row a { color: var(--green); font-weight: 600; }
.privacy-row.invalid { color: #c0392b; }

/* Footer links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin: 6px 0 10px;
}
.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0.75;
    transition: opacity 0.25s, color 0.25s;
}
.footer-links a:hover { opacity: 1; color: var(--green); }

/* ============================================================
   PRICING — Free vs Pro (dalla spec admin: piani + trial 14gg)
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    max-width: 820px;
    margin: 0 auto;
    align-items: stretch;
}
.price-card {
    background: var(--white);
    border: 1px solid rgba(14, 124, 102, 0.12);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.price-value {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}
.price-period {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 6px 0 22px;
}
.price-card .feature-list { margin-bottom: 24px; flex: 1; }
.price-card .btn { margin-top: auto; }
.price-note {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: rgba(14, 124, 102, 0.06);
    border-radius: 10px;
}
.price-card-pro {
    border: 2px solid var(--green);
    box-shadow: 0 16px 48px rgba(14, 124, 102, 0.18);
}
.price-card-pro .price-value { color: var(--green); }
.price-badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green), #14b892);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(14, 124, 102, 0.35);
}
@media (max-width: 720px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================================
   MOBILE PERFORMANCE — percorso corto, zero effetti costosi
   ============================================================ */
@media (max-width: 768px) {
    /* 3 fermate su un percorso più corto: scroll più naturale */
    #cinema { height: calc(var(--vhpx, 1vh) * 330); }
    .cin-desktop-only { display: none !important; }

    /* Overdraw: via grana e vignetta, il video resta pulito */
    .cinema-grain, .cinema-vignette { display: none; }

    /* backdrop-filter è il killer di fps su mobile: sfondi solidi */
    .cin-stats, .hero-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .cin-stats { background: rgba(11, 21, 18, 0.55); }
    .hero-badge { background: rgba(11, 21, 18, 0.6); }
    .nav.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.96);
    }
    .nav.on-dark.scrolled { background: rgba(11, 21, 18, 0.92); }
    .nav-links {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.98);
    }
    .nav.on-dark .nav-links { background: rgba(11, 21, 18, 0.97); }

    /* Transizioni più rapide: al tocco tutto risponde subito */
    .cin-text {
        transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
    }
    .cin-text.visible {
        transition: opacity .4s ease, transform .4s ease, visibility 0s;
    }

    /* Niente animazione flottante della card chat: batteria e jank */
    .phone-card { animation: none; }
}
