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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --bg: #ffffff;
    --surface: #f8f9ff;
    --surface2: #f1f3ff;
    --text: #0f0f1a;
    --text-muted: #6b7280;
    --border: #e5e7f0;
    --green: #16a34a;
    --red: #dc2626;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(99,102,241,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.logo span { color: var(--primary); }

.btn-nav {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
}
.btn-nav:hover { background: #e0e7ff; text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: flex; gap: 0.3rem; }
.lang-switcher a {
    font-size: 0.75rem; font-weight: 600; color: var(--muted);
    padding: 0.2rem 0.4rem; border-radius: 4px; text-decoration: none;
}
.lang-switcher a:hover { color: var(--primary); }
.lang-switcher a.active { color: var(--primary); background: var(--primary-light); }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: white; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* Main */
main { flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 0 1.5rem; }

/* Alerts */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.95rem;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--green); }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0 4rem;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }
.trial-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; }

/* Phone mockup */
.phone-mockup {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.chat-bubble {
    padding: 0.7rem 1rem;
    border-radius: 14px;
    max-width: 82%;
    font-size: 0.9rem;
    line-height: 1.4;
}
.chat-bubble.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
    background: var(--surface);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

/* How it works */
.how {
    padding: 4rem 0;
    text-align: center;
    background: var(--surface);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.how h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2.5rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.step {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: left;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* Features */
.features { padding: 4rem 0; text-align: center; }
.features h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    text-align: left;
    font-weight: 500;
}

/* Pricing */
.pricing { padding: 4rem 0; text-align: center; }
.pricing h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.price-card {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(99,102,241,0.12);
}
.price-trial {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary-light);
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.price-amount { font-size: 2.8rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--text); }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin-bottom: 2rem; text-align: left; }
.price-card li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border: none; }

/* CTA */
.cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    color: white;
}
.cta h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: white; }
.cta .btn-primary { background: white; color: var(--primary); }
.cta .btn-primary:hover { background: #f5f5ff; }

/* Form pages */
.form-page { max-width: 500px; margin: 4rem auto; text-align: center; }
.form-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.form-page > p { color: var(--text-muted); margin-bottom: 2rem; }

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    box-shadow: var(--shadow);
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

label { font-size: 0.88rem; font-weight: 600; color: var(--text); }

input[type="text"], input[type="email"] {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    background: white;
}

small { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
small a { color: var(--primary); }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.82rem; }

/* Dashboard */
.dashboard { padding: 3rem 0; max-width: 700px; }
.dashboard h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.dashboard h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.trial-banner {
    background: var(--primary-light);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: var(--primary-dark);
}
.trial-banner a { color: var(--primary-dark); font-weight: 700; }

.bot-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}
.channel-badge {
    background: var(--surface2);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 0.8rem;
}
.bot-status { font-size: 0.9rem; font-weight: 500; }
.status-running { color: var(--green); }
.status-pending { color: #d97706; }
.status-error { color: var(--red); }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 0.6rem 1rem; background: var(--surface); color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border: none; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* Responsive */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .steps, .feature-grid { grid-template-columns: 1fr; }
    .phone-mockup { display: none; }
}
