/* ============================================================
   PLATOO — Premium Landing Page
   Design system inspired by Linear, Vercel, Arc Browser
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --bg:          #0a0e1a;
    --surface:     #111827;
    --card:        #1a2332;
    --border:      rgba(255,255,255,.06);
    --border-hover:rgba(220,180,111,.35);

    --gold:        #dcb46f;
    --gold-dark:   #c9a05d;
    --gold-light:  #e8c486;
    --gold-10:     rgba(220,180,111,.10);
    --gold-20:     rgba(220,180,111,.20);
    --gold-glow:   rgba(220,180,111,.35);

    --text:        #f1f5f9;
    --text-2:      #cbd5e1;
    --text-3:      #94a3b8;
    --text-4:      #64748b;

    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out:    cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
button { font:inherit; border:none; background:none; cursor:pointer; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Particle Canvas ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .6;
}

/* ---------- Background Orbs ---------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .18;
    will-change: transform;
}
.orb-1 {
    width: 600px; height: 600px;
    background: var(--gold);
    top: -10%; left: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: #3b82f6;
    bottom: -10%; right: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    background: var(--gold-dark);
    top: 40%; right: 20%;
    animation: orbFloat3 22s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(80px,50px) scale(1.1); }
    66%     { transform: translate(-40px,80px) scale(.95); }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(-60px,-40px) scale(1.05); }
    66%     { transform: translate(50px,-70px) scale(.9); }
}
@keyframes orbFloat3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-50px,60px) scale(1.08); }
}

/* ---------- Reveal Animations ---------- */
/* Content visible by default; JS adds .has-js to <html> to enable animations */
html.has-js .reveal,
html.has-js .reveal-left,
html.has-js .reveal-right,
html.has-js .reveal-scale {
    opacity: 0;
    transition:
        opacity .9s var(--ease-out),
        transform .9s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
html.has-js .reveal        { transform: translateY(40px); }
html.has-js .reveal-left   { transform: translateX(-60px); }
html.has-js .reveal-right  { transform: translateX(60px); }
html.has-js .reveal-scale  { transform: scale(.88); }

html.has-js .reveal.active,
html.has-js .reveal-left.active,
html.has-js .reveal-right.active,
html.has-js .reveal-scale.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background .4s, backdrop-filter .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(10,14,26,.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--border);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}
.nav-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
}
.nav-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.mobile-menu-close {
    display: none;
}
.nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-3);
    transition: color .25s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: width .3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--bg) !important;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(220,180,111,.3);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile claim link — visible outside hamburger */
.nav-claim-mobile {
    display: none;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid var(--gold-20);
    border-radius: 99px;
    background: var(--gold-10);
    transition: all .25s;
}
.nav-claim-mobile:hover {
    background: var(--gold-20);
}

@media (max-width:768px) {
    .mobile-toggle { display: flex; }
    .nav-claim-mobile { display: block; }
    .nav-link-desktop { display: none; }
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(10,14,26,.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s;
        z-index: 999;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }
    /* Evita que o link da barra roube toque na faixa superior enquanto o menu está aberto */
    body.menu-open .nav-claim-mobile {
        pointer-events: none;
    }
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: max(16px, env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        width: 56px;
        height: 56px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 14px;
        background: transparent;
        color: #fff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: background .2s, transform .2s;
        /* Acima de qualquer link do overlay e da barra (navbar z-index 1000) */
        z-index: 10050;
        pointer-events: auto;
    }
    .mobile-menu-close svg {
        pointer-events: none;
    }
    .mobile-menu-close:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }
    .mobile-menu-close:active {
        transform: scale(.95);
    }
    .mobile-menu-close:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 2px;
    }
    .nav-link { font-size: 1.25rem; }
    .nav-cta { font-size: 1rem; padding: 12px 32px; }

    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 60px;
    overflow: hidden;
    z-index: 1;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { max-width: 580px; }

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-10);
    border: 1px solid rgba(220,180,111,.25);
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--gold);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.badge-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--gold-glow); }
    50%     { opacity: .6; box-shadow: 0 0 0 6px transparent; }
}

/* Title */
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

/* Animated Search Bar */
.search-demo {
    position: relative;
    margin-bottom: 36px;
    max-width: 460px;
}
.search-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold-20), transparent 60%);
    opacity: .6;
    filter: blur(1px);
    z-index: 0;
}
.search-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    transition: border-color .3s;
}
.search-inner:hover { border-color: var(--border-hover); }
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search-typing {
    color: var(--text-2);
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
}
.typing-cursor {
    display: inline-block;
    width: 2px; height: 18px;
    background: var(--gold);
    border-radius: 1px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 1px;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Store Buttons — prominent glowing CTA */
.hero-buttons, .cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: linear-gradient(135deg, rgba(26,35,50,.95), rgba(17,24,39,.95));
    border: 1px solid rgba(220,180,111,.25);
    border-radius: 16px;
    transition: all .35s var(--ease-out);
    min-width: 200px;
    box-shadow:
        0 4px 16px rgba(220,180,111,.12),
        0 8px 32px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.05);
    position: relative;
    overflow: hidden;
}
.store-btn::before {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(220,180,111,.2) 0%, transparent 70%);
    top: var(--glow-y, 50%); left: var(--glow-x, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.store-btn:hover::before {
    opacity: 1;
}
.store-btn svg {
    width: 28px; height: 28px;
    color: var(--gold);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(220,180,111,.4));
}
.store-btn-text { display: flex; flex-direction: column; gap: 2px; }
.store-label { font-size: .72rem; color: var(--text-3); line-height: 1; }
.store-title { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.store-btn:hover {
    border-color: rgba(220,180,111,.5);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(220,180,111,.25),
        0 16px 48px rgba(220,180,111,.12),
        0 24px 64px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.08);
}
.store-btn:active {
    transform: translateY(-1px) scale(.99);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}
.hero-phone { position: relative; z-index: 2; }
.phone-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--gold-20) 0%, transparent 70%);
    border-radius: 50%;
    animation: phoneGlow 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes phoneGlow {
    0%,100% { opacity:.5; transform: translate(-50%,-50%) scale(1); }
    50%     { opacity:.85; transform: translate(-50%,-50%) scale(1.12); }
}
.hero-waiter {
    position: relative;
    z-index: 1;
    max-width: 380px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,.5));
    animation: waiterFloat 6s ease-in-out infinite;
    transition: opacity .3s;
}
@keyframes waiterFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-18px); }
}

/* Floating Cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(26,35,50,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    animation: cardFloat 5s ease-in-out infinite;
    transition: transform .3s, box-shadow .3s;
}
.float-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 40px rgba(220,180,111,.15);
    border-color: var(--border-hover);
}
.float-card-emoji { font-size: 1.5rem; }
.float-card-title {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
}
.float-card-meta {
    display: block;
    font-size: .72rem;
    color: var(--text-3);
}

.float-card-1 { top: 8%; right: 5%; animation-delay: 0s; }
.float-card-2 { bottom: 25%; left: -5%; animation-delay: 1.5s; }
.float-card-3 { bottom: 5%; right: 10%; animation-delay: 3s; }

@keyframes cardFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-12px); }
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 48px;
    position: relative;
    z-index: 2;
}
.scroll-hint span {
    font-size: .72rem;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-dot {
    width: 3px; height: 8px;
    background: var(--gold);
    border-radius: 3px;
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { opacity:1; transform: translateY(0); }
    50%  { opacity:.3; transform: translateY(10px); }
    100% { opacity:1; transform: translateY(0); }
}

/* ============================================================
   SHOWCASE IMAGE (Parallax Scroll-Away)
   ============================================================ */
.showcase-section {
    position: relative;
    z-index: 2;
    padding: 80px 0 100px;
    overflow: hidden;
}
.showcase-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0,0,0,.6),
        0 8px 32px rgba(220,180,111,.08),
        0 0 0 1px rgba(255,255,255,.06);
    transition: transform .1s linear, box-shadow .3s;
    will-change: transform;
}
.showcase-glow {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(220,180,111,.15), transparent 40%, transparent 60%, rgba(220,180,111,.1));
    z-index: 0;
    pointer-events: none;
}
.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 24px;
}
.showcase-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 40px 32px 28px;
    background: linear-gradient(to top, rgba(10,14,26,.85) 0%, transparent 100%);
    border-radius: 0 0 24px 24px;
}
.showcase-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: -.01em;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(17,24,39,.5);
    backdrop-filter: blur(12px);
}
.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-top {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.trust-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -.02em;
    line-height: 1;
}
.trust-suffix {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}
.trust-icon { font-size: 2rem; line-height: 1; }
.trust-label {
    display: block;
    font-size: .78rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 4px;
}
.trust-divider {
    width: 1px; height: 48px;
    background: var(--border);
}

@media (max-width:640px) {
    .trust-grid { gap: 24px; }
    .trust-divider { display: none; }
    .trust-number { font-size: 1.6rem; }
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    overflow: hidden;
}

.ai-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.ai-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.ai-glow-ring {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 2px solid rgba(220,180,111,.12);
    animation: glowRingSpin 12s linear infinite;
}
.ai-glow-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}
@keyframes glowRingSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.ai-waiter-img {
    max-width: 320px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
    animation: waiterFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Chat Window */
.ai-chat {
    display: flex;
    align-items: center;
}
.chat-window {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(0,0,0,.5),
        0 32px 80px rgba(0,0,0,.3),
        0 0 0 1px rgba(255,255,255,.04);
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gold-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.chat-avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.chat-header-text { display: flex; flex-direction: column; gap: 2px; }
.chat-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    color: #4ade80;
    font-weight: 500;
}
.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%,100% { opacity:1; }
    50%     { opacity:.4; }
}
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 88%; }
.chat-msg p {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .88rem;
    line-height: 1.5;
}
.msg-user { align-self: flex-end; }
.msg-user p {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg);
    font-weight: 500;
    border-bottom-right-radius: 4px;
}
.msg-bot { align-self: flex-start; }
.msg-bot p {
    background: var(--card);
    color: var(--text);
    border-bottom-left-radius: 4px;
    margin-bottom: 10px;
}
.chat-result {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    transition: border-color .3s;
}
.chat-result:hover { border-color: var(--border-hover); }
.chat-result-name {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gold);
}
.chat-result-info {
    font-size: .72rem;
    color: var(--text-3);
}

/* AI Feature Row */
.ai-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ai-feat {
    text-align: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all .35s var(--ease-out);
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.ai-feat:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(220,180,111,.1),
        0 24px 64px rgba(0,0,0,.25);
}
.ai-feat-icon {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    background: var(--gold-10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: background .3s;
}
.ai-feat:hover .ai-feat-icon { background: var(--gold-20); }
.ai-feat h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.ai-feat p {
    font-size: .88rem;
    color: var(--text-3);
    line-height: 1.6;
}

/* ============================================================
   FEATURES BENTO GRID
   ============================================================ */
.features-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    overflow: hidden;
    transition: all .4s var(--ease-out);
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.bento-card-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--gold-10) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.bento-card:hover .bento-card-glow { opacity: 1; }
.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(220,180,111,.1),
        0 32px 80px rgba(0,0,0,.3);
}
.bento-wide { grid-column: span 3; }
.bento-card.bento-sm { padding: 24px 22px; }

.bento-icon {
    width: 52px; height: 52px;
    background: var(--gold-10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 18px;
    transition: background .3s, transform .3s;
}
.bento-card:hover .bento-icon { background: var(--gold-20); transform: scale(1.05); }

.bento-icon-sm {
    width: 42px; height: 42px;
    background: var(--gold-10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 14px;
    transition: background .3s;
}
.bento-card:hover .bento-icon-sm { background: var(--gold-20); }

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.bento-card.bento-sm h3 { font-size: 1rem; }

.bento-card p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.6;
}
.bento-card.bento-sm p { font-size: .82rem; color: var(--text-3); }

/* Feature pills */
.bento-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.pill {
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    transition: all .25s;
    cursor: default;
}
.pill:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    background: var(--gold-10);
}

/* ============================================================
   HOW IT WORKS / STEPS
   ============================================================ */
.steps-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    background: var(--surface);
}

.steps-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    transition: all .4s var(--ease-out);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow:
        0 12px 40px rgba(220,180,111,.12),
        0 24px 64px rgba(0,0,0,.3);
}
.step-num {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(220,180,111,.3);
}
.step-icon-wrap {
    width: 56px; height: 56px;
    margin: 12px auto 16px;
    background: var(--gold-10);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-card p {
    font-size: .88rem;
    color: var(--text-3);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--gold);
    opacity: .4;
}

/* ============================================================
   CTA / DOWNLOAD
   ============================================================ */
.cta-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    overflow: hidden;
}
.cta-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--gold-20) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: ctaGlow 6s ease-in-out infinite;
}
@keyframes ctaGlow {
    0%,100% { opacity:.3; transform: translate(-50%,-50%) scale(1); }
    50%     { opacity:.6; transform: translate(-50%,-50%) scale(1.1); }
}
.cta-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}
.cta-desc {
    font-size: 1.15rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}
.cta-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.cta-waiter-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--gold-20) 0%, transparent 70%);
    border-radius: 50%;
    animation: phoneGlow 5s ease-in-out infinite;
}
.cta-waiter {
    max-width: 320px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
    animation: waiterFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
}
.footer-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
}
.footer-tagline {
    font-size: .88rem;
    color: var(--text-3);
    line-height: 1.6;
    max-width: 260px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.footer-col a {
    font-size: .88rem;
    color: var(--text-2);
    transition: color .25s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: .78rem;
    color: var(--text-4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .search-demo { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { min-height: 360px; }
    .float-card-2 { left: 5%; }

    .ai-showcase { grid-template-columns: 1fr; gap: 48px; }
    .ai-visual { order: -1; }

    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-wide { grid-column: span 2; }

    .cta-layout { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .cta-desc { margin-left: auto; margin-right: auto; }
    .cta-buttons { justify-content: center; }
    .cta-visual { order: -1; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width:768px) {
    .hero { padding: 100px 0 40px; }
    .hero-title { font-size: clamp(2.4rem, 8vw, 3.2rem); }
    .hero-visual { min-height: 300px; }
    .hero-waiter { max-width: 260px; }
    .float-card { display: none; }
    .showcase-frame { border-radius: 16px; }
    .showcase-img { border-radius: 16px; }
    .showcase-section { padding: 48px 0 64px; }

    .ai-features-row { grid-template-columns: 1fr; }
    .ai-waiter-img { max-width: 240px; }
    .ai-glow-ring { width: 260px; height: 260px; }
    .chat-window { max-width: 100%; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }

    .steps-row { flex-direction: column; align-items: center; gap: 24px; }
    .step-connector { transform: rotate(90deg); padding: 0; }
    .step-card { max-width: 100%; width: 100%; }

    .cta-waiter { max-width: 240px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width:480px) {
    .hero-buttons, .cta-buttons { flex-direction: column; align-items: stretch; }
    .store-btn { justify-content: center; min-width: unset; }
    .scroll-hint { display: none; }
    .trust-grid { gap: 16px; }
}
