/* =============================================
   MANYAO Landing — Style
   ============================================= */
:root {
    --teal: #0F766E;
    --teal-light: #14B8A6;
    --teal-dark: #0D5D56;
    --teal-glow: rgba(20,184,166,0.12);
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;
    --green: #059669;
    --amber: #D97706;
    --violet: #7C3AED;
    --red: #DC2626;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, sans-serif; color: var(--slate-900); background: var(--white); overflow-x: hidden; line-height: 1.6; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* ===== SCROLL REVEAL ===== */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== BUTTONS ===== */
.btn-primary-lg {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--teal); color: var(--white); padding: 0.85rem 1.75rem;
    border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(15,118,110,0.25);
}
.btn-primary-lg:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(15,118,110,0.3); }

.btn-ghost-lg {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--teal); padding: 0.85rem 1.75rem;
    border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    border: 2px solid var(--slate-200); cursor: pointer; transition: all 0.25s;
}
.btn-ghost-lg:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-glow); }

.btn-demo {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--teal); color: var(--white); padding: 0.75rem 1.5rem;
    border-radius: 10px; font-weight: 600; font-size: 0.88rem;
    border: none; cursor: pointer; transition: all 0.25s; font-family: inherit;
    box-shadow: 0 2px 8px rgba(15,118,110,0.2);
}
.btn-demo:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-demo:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== NAV ===== */
.nav { position: fixed; top:0; left:0; right:0; z-index:100; padding: 1rem 0; transition: all 0.3s; }
.nav.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); box-shadow: 0 1px 3px rgba(0,0,0,0.06); padding: 0.6rem 0; }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--teal); }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--slate-700); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-verify { color: var(--teal) !important; font-weight: 600 !important; }
.nav-cta {
    background: var(--teal); color: var(--white) !important; padding: 0.5rem 1.25rem;
    border-radius: 8px; font-weight: 600 !important; transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--teal-dark); color: var(--white) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--slate-700); margin: 5px 0; transition: all 0.3s; border-radius: 2px; }

/* ===== HERO ===== */
.hero { padding: 8rem 0 5rem; position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 40%, var(--teal-glow) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 20% 80%, rgba(124,58,237,0.05) 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-text { max-width: 540px; }
.hero-badge {
    display: inline-block; background: var(--teal-glow); color: var(--teal); padding: 0.4rem 1rem;
    border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin-bottom: 1.5rem;
    border: 1px solid rgba(15,118,110,0.15);
}
.hero h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--slate-500); line-height: 1.65; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--slate-500); font-weight: 500; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
    width: 280px; height: 520px; background: var(--slate-900); border-radius: 36px;
    padding: 12px; position: relative; box-shadow: 0 24px 64px rgba(15,23,42,0.25), inset 0 0 0 2px rgba(255,255,255,0.1);
}
.phone-notch { width: 100px; height: 24px; background: var(--slate-900); border-radius: 0 0 14px 14px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: var(--white); border-radius: 26px; overflow: hidden; position: relative; }

.phone-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.phone-step.active { opacity: 1; pointer-events: auto; }

.ps-icon { margin-bottom: 1rem; }
.ps-title { font-size: 0.85rem; font-weight: 700; color: var(--slate-900); text-align: center; margin-bottom: 0.25rem; }
.ps-sub { font-size: 0.72rem; color: var(--slate-400); text-align: center; margin-bottom: 1.25rem; }
.ps-qr { width: 120px; height: 120px; background: var(--slate-50); border: 2px solid var(--slate-200); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; overflow: hidden; }
.qr-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 2px; width: 96px; height: 96px; }
.qr-cell { border-radius: 1px; transition: background 0.15s; }
.ps-label { font-size: 0.68rem; color: var(--teal); font-weight: 600; }

/* Face scan */
.ps-face { width: 120px; height: 120px; position: relative; margin-bottom: 1rem; }
.face-circle { width: 100%; height: 100%; border: 3px solid var(--teal); border-radius: 50%; opacity: 0.3; }
.face-scan-line { position: absolute; top: 0; left: 10%; width: 80%; height: 3px; background: var(--teal); border-radius: 2px; animation: scanLine 2s ease-in-out infinite; }
@keyframes scanLine { 0%,100% { top: 10%; opacity: 0.5; } 50% { top: 85%; opacity: 1; } }
.ps-progress { width: 100%; height: 4px; background: var(--slate-100); border-radius: 4px; margin: 0.75rem 0; overflow: hidden; }
.ps-progress-bar { width: 0; height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.5s ease; }
.ps-checks { width: 100%; }
.ps-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--slate-400); padding: 0.3rem 0; transition: color 0.3s; }
.ps-check.done { color: var(--green); }
.chk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-200); transition: background 0.3s; flex-shrink: 0; }
.ps-check.done .chk-dot { background: var(--green); }

/* Success */
.ps-success { margin-bottom: 0.75rem; animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1); }
@keyframes scaleIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ps-cert { width: 100%; background: var(--slate-50); border-radius: 8px; padding: 0.6rem 0.8rem; }
.cert-row { display: flex; justify-content: space-between; font-size: 0.68rem; padding: 0.2rem 0; }
.cert-row span { color: var(--slate-400); }
.cert-row strong { font-size: 0.72rem; }

/* ===== PROBLEM/SOLUTION ===== */
.problem-section { padding: 5rem 0; background: var(--slate-50); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.problem-card, .solution-card {
    padding: 2.5rem; border-radius: 16px; background: var(--white);
    border: 1px solid var(--slate-200); position: relative;
}
.solution-card { background: var(--teal-glow); border-color: rgba(15,118,110,0.2); }
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-card h3, .solution-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; line-height: 1.3; }
.problem-card p, .solution-card p { color: var(--slate-500); font-size: 0.95rem; line-height: 1.6; }

/* ===== HOW SECTION ===== */
.how-section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.4rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-header p { font-size: 1.05rem; color: var(--slate-500); max-width: 560px; margin: 0 auto; }

.steps-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card { text-align: center; padding: 2rem 1.25rem; border-radius: 16px; position: relative; transition: all 0.3s; }
.step-card:hover { background: var(--slate-50); }
.step-num { font-size: 0.7rem; font-weight: 700; color: var(--teal); background: var(--teal-glow); display: inline-block; padding: 0.25rem 0.75rem; border-radius: 12px; margin-bottom: 1.25rem; letter-spacing: 1px; }
.step-visual { margin-bottom: 1.25rem; }
.step-visual svg { width: 72px; height: 72px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.88rem; color: var(--slate-500); line-height: 1.55; }

/* ===== DEMO WIDGET ===== */
.demo-section { padding: 5rem 0; background: var(--slate-50); }
.demo-widget {
    max-width: 520px; margin: 0 auto; background: var(--white); border-radius: 16px;
    border: 1px solid var(--slate-200); overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.widget-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--slate-100); }
.widget-logo { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.82rem; color: var(--teal); margin-bottom: 0.5rem; }
.widget-title { font-size: 0.88rem; font-weight: 600; color: var(--slate-900); margin-bottom: 0.75rem; }
.widget-progress { height: 6px; background: var(--slate-100); border-radius: 6px; overflow: hidden; margin-bottom: 0.35rem; }
.widget-progress-bar { width: 0%; height: 100%; background: var(--teal); border-radius: 6px; transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }
.widget-progress-text { font-size: 0.72rem; color: var(--slate-400); }

.widget-signers { padding: 0.5rem 1.5rem; }
.signer-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--slate-50); transition: all 0.3s; }
.signer-row:last-child { border-bottom: none; }
.signer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.signer-info { flex: 1; }
.signer-name { font-size: 0.82rem; font-weight: 600; }
.signer-dni { font-size: 0.7rem; color: var(--slate-400); }
.signer-status { font-size: 0.68rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 12px; white-space: nowrap; transition: all 0.4s; }
.signer-status.pending { background: var(--slate-100); color: var(--slate-400); }
.signer-status.signing { background: #FEF3C7; color: var(--amber); animation: pulse 1.5s infinite; }
.signer-status.done { background: #D1FAE5; color: var(--green); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

.widget-action { padding: 1rem 1.5rem; text-align: center; border-top: 1px solid var(--slate-100); }

/* ===== PRODUCTS ===== */
.products-section { padding: 6rem 0; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
    padding: 2.5rem 2rem; border-radius: 16px; border: 1px solid var(--slate-200);
    background: var(--white); position: relative; transition: all 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.product-card.featured {
    background: var(--slate-900); color: var(--white); border-color: transparent;
    box-shadow: 0 16px 48px rgba(15,23,42,0.2);
}
.product-badge {
    position: absolute; top: -10px; right: 1.5rem; background: var(--teal-light); color: var(--white);
    padding: 0.25rem 0.85rem; border-radius: 12px; font-size: 0.68rem; font-weight: 700;
}
.product-icon { margin-bottom: 1.5rem; }
.product-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.product-card p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; margin-bottom: 1.5rem; }
.product-card.featured p { color: var(--slate-400); }
.product-features { list-style: none; }
.product-features li { font-size: 0.82rem; padding: 0.35rem 0; padding-left: 1.25rem; position: relative; color: var(--slate-500); }
.product-card.featured .product-features li { color: var(--slate-400); }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ===== DEVELOPERS ===== */
.dev-section { padding: 6rem 0; background: var(--slate-900); color: var(--white); }
.dev-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.dev-text h2 { font-size: 2.4rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.dev-text p { color: var(--slate-400); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; }
.dev-features { margin-bottom: 2rem; }
.dev-feat { padding: 0.5rem 0; font-size: 0.9rem; color: var(--slate-400); border-bottom: 1px solid rgba(255,255,255,0.06); }
.dev-feat strong { color: var(--teal-light); }
.dev-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.dev-section .btn-ghost-lg { border-color: var(--slate-700); color: var(--slate-400); }
.dev-section .btn-ghost-lg:hover { border-color: var(--teal-light); color: var(--teal-light); background: rgba(20,184,166,0.08); }

.code-window {
    background: var(--slate-800); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.code-dots { padding: 0.75rem 1rem; display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.code-dots span:first-child { background: #EF4444; }
.code-dots span:nth-child(2) { background: #F59E0B; }
.code-dots span:nth-child(3) { background: #10B981; }
.code-title { display: none; }
.code-window pre { padding: 1.25rem; margin: 0; overflow-x: auto; }
.code-window code { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; line-height: 1.7; color: var(--slate-200); }
.c-comment { color: var(--slate-500); }
.c-key { color: var(--teal-light); }
.c-str { color: #FDE68A; }

/* ===== VERIFY ===== */
.verify-section { padding: 5rem 0; }
.verify-card {
    text-align: center; padding: 4rem 2rem; background: var(--teal-glow);
    border-radius: 20px; border: 1px solid rgba(15,118,110,0.15);
}
.verify-icon { color: var(--teal); margin-bottom: 1.25rem; }
.verify-card h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.verify-card p { color: var(--slate-500); font-size: 1rem; max-width: 500px; margin: 0 auto 2rem; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer { background: var(--slate-900); color: var(--slate-400); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.5; }
.footer-col h4 { color: var(--slate-200); font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--slate-400); font-size: 0.85rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--slate-500); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .steps-timeline { grid-template-columns: repeat(2, 1fr); }
    .dev-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-burger { display: block; z-index: 101; }
    .nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-burger.open span:nth-child(2) { opacity: 0; }
    .nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .problem-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero { padding: 6rem 0 3rem; }
    .hero h1 { font-size: 1.8rem; }
    .steps-timeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
