/* --- Asisto Design System v5.2: Final --- */
:root {
    --primary: #0f172a;
    --accent: #ff6b35;
    --accent-hover: #e85d2a;
    --ios-blue: #007AFF;
    --text-main: #334155;
    --border-color: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border-color);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.nav-inner {
    width: 100%; max-width: 1200px; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; border-radius: 50%; }
.brand-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

/* --- HERO SECTION --- */
.hero { padding: 160px 0 100px; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }

.hero-content { padding-top: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 24px; color: var(--primary); font-weight: 800; line-height: 1.1; }
.hero h1 span { color: var(--accent); }
.hero-p { font-size: 1.25rem; max-width: 90%; margin-bottom: 40px; color: #64748b; }
.badge { display: inline-block; padding: 6px 12px; background: rgba(15, 23, 42, 0.05); color: var(--primary); font-weight: 600; font-size: 0.85rem; border-radius: 4px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

/* --- CONTROL BOX --- */
.control-box {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 30px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    margin-top: 20px; position: relative; overflow: hidden;
}
.control-box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.control-title { font-weight: 800; font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.control-desc { font-size: 0.95rem; color: #64748b; margin-bottom: 25px; line-height: 1.4; }

.trigger-btn {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    width: 100%; padding: 14px; margin-bottom: 12px;
    background: white; border: 2px solid #e2e8f0; border-radius: 10px;
    font-weight: 700; color: var(--primary); font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s ease; text-align: left;
}
.trigger-btn:hover { border-color: var(--accent); background: #fff7f2; transform: translateX(5px); }
.trigger-btn span { font-size: 1.2rem; }

.reset-link {
    display: block; text-align: center; margin-top: 15px; font-size: 0.85rem; 
    color: #94a3b8; text-decoration: underline; cursor: pointer; border: none; background: none; width: 100%;
}

/* --- PHONE FRAME --- */
.phone-frame {
    width: 350px; height: 700px; background: #fff; border-radius: 45px;
    border: 12px solid #111; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.2);
    overflow: hidden; display: flex; flex-direction: column; margin: 0 auto; position: relative;
}
.phone-frame::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: #111; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 100; }

.ios-header {
    background: #f6f6f6; padding: 45px 15px 10px; border-bottom: 1px solid #ccc;
    display: flex; align-items: center; justify-content: space-between;
}
.ios-back { color: var(--ios-blue); font-size: 1.2rem; font-weight: 500; display: flex; align-items: center; cursor: pointer; }
.ios-profile { display: flex; flex-direction: column; align-items: center; flex: 1; }
.ios-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; margin-bottom: 2px; }
.ios-name { font-size: 0.85rem; font-weight: 700; color: #000; line-height: 1; }
.ios-status { font-size: 0.65rem; color: #888; margin-top: 2px; }
.ios-icons { display: flex; gap: 15px; color: var(--ios-blue); font-size: 1.2rem; }

.wa-chat {
    flex: 1; background: #e5ddd5; padding: 15px; overflow-y: auto; 
    display: flex; flex-direction: column; gap: 10px;
}

/* --- MESSAGES & BUTTONS --- */
.msg { padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; max-width: 85%; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,0.1); line-height: 1.4; }
.msg.in { background: #ffffff; align-self: flex-start; border-top-left-radius: 0; }
.msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 0; }
.msg-label { font-size: 0.7rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 4px; text-transform: uppercase; }

.forwarded-label {
    font-size: 0.75rem; color: #666; font-style: italic; margin-bottom: 6px; display: flex; align-items: center; gap: 4px;
}

.chat-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; width: 100%; }
.chat-btn {
    background: white; color: var(--ios-blue); border: none;
    padding: 12px; text-align: center; border-radius: 10px; font-weight: 600; cursor: pointer;
    font-size: 0.95rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: 0.1s;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.chat-btn:hover { background: #f2f2f7; transform: scale(1.02); }

/* --- SECTIONS & FOOTER --- */
.value-section { padding: 100px 0; background: white; border-top: 1px solid var(--border-color); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.benefit-list { list-style: none; padding: 0; }
.benefit-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.check-icon { color: var(--accent); font-weight: bold; font-size: 1.2rem; }
.investor-card { background: var(--primary); color: white; padding: 50px; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.investor-card h3 { color: white; margin-bottom: 15px; }
.investor-card p { color: #94a3b8; margin-bottom: 0; }

footer { background: #f8fafc; padding: 80px 0 40px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-links a { color: #64748b; margin: 0 15px; font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.8rem; text-align: center; }
    .hero-p { text-align: center; }
    .badge { display: table; margin: 0 auto 20px; }
    .value-grid { grid-template-columns: 1fr; }
    .control-box { order: -1; margin-bottom: 20px; text-align: center; }
    .trigger-btn { justify-content: center; }
    .phone-frame { width: 100%; height: 600px; border-width: 8px; }
}