/* NiliAI – shared styles (landing / business / personal) */
:root {
    --bg-0: #0b0716;
    --bg-1: #140a2a;
    --bg-2: #1b0e3a;
    --ink: #f3f1ff;
    --ink-dim: rgba(243, 241, 255, 0.72);
    --ink-mute: rgba(243, 241, 255, 0.55);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --purple: #667eea;
    --purple-2: #764ba2;
    --pink: #ff6b9d;
    --pink-2: #e0457b;
    --success: #3ddc97;
    --warn: #ffb84d;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-lg: 0 30px 80px -20px rgba(118, 75, 162, 0.45);
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b9d 100%);
    --grad-text: linear-gradient(135deg, #ff6b9d, #c2a6ff 55%, #8ec5ff);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', 'Inter', 'Segoe UI', -apple-system, sans-serif;
    background: radial-gradient(1200px 800px at 80% -10%, rgba(255, 107, 157, 0.22), transparent 60%),
                radial-gradient(900px 600px at 0% 10%, rgba(102, 126, 234, 0.22), transparent 55%),
                linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ============ NAV ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(11, 7, 22, 0.65);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(255, 107, 157, 0.55);
}
.brand-name {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--ink-dim);
    transition: all 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--card); }
.nav-links a.cta {
    background: var(--grad-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 24px -10px rgba(255, 107, 157, 0.7);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    padding: 8px 12px;
    cursor: pointer;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 18px 40px -14px rgba(255, 107, 157, 0.6);
}
.btn-primary:hover { box-shadow: 0 22px 48px -12px rgba(255, 107, 157, 0.75); }
.btn-ghost {
    background: var(--card);
    border-color: var(--border-strong);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--card-hover); }
.btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.btn-whatsapp:hover { background: #1fb857; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ============ SECTIONS ============ */
section { padding: 90px 0; position: relative; }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 107, 157, 0.12);
    color: #ffb8d2;
    border: 1px solid rgba(255, 107, 157, 0.25);
    margin-bottom: 16px;
}
.h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.lede {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink-dim);
}
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ HERO ============ */
.hero {
    padding: 100px 0 60px;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 400px at 70% 30%, rgba(255, 107, 157, 0.18), transparent 60%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--ink-dim);
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat span { color: var(--ink-mute); font-size: 0.9rem; }

.hero-visual {
    position: relative;
    perspective: 1200px;
}
.chat-preview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-4deg) rotateX(3deg);
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: rotateY(-4deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(-4deg) rotateX(3deg) translateY(-10px); }
}
.chat-preview .pv-head {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.pv-dot.red { background: #ff5f57; }
.pv-dot.yellow { background: #febc2e; }
.pv-dot.green { background: #28c840; }
.pv-title { font-size: 0.85rem; color: var(--ink-dim); }
.pv-msgs { display: flex; flex-direction: column; gap: 10px; }
.pv-msg {
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    animation: slideUp 0.5s ease both;
}
.pv-msg.user {
    background: var(--grad-primary);
    border-bottom-right-radius: 4px;
    margin-inline-start: auto;
    color: #fff;
}
.pv-msg.bot {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.25s, background 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.feature::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.4), transparent 50%);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}
.feature:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--border-strong);
}
.feature .icon {
    font-size: 2rem;
    margin-bottom: 14px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(255, 107, 157, 0.25));
    border: 1px solid var(--border);
}
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--ink-dim); font-size: 0.96rem; }

/* ============ PRICING ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}
.plan {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan.featured {
    background: linear-gradient(180deg, rgba(255, 107, 157, 0.08), rgba(118, 75, 162, 0.04));
    border-color: rgba(255, 107, 157, 0.35);
    box-shadow: 0 30px 60px -30px rgba(255, 107, 157, 0.4);
}
.plan-tag {
    position: absolute;
    top: 16px;
    inset-inline-start: 20px;
    padding: 4px 12px;
    background: var(--grad-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.plan h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan .sub { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 18px; }
.plan .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}
.plan .price .amount {
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.plan .price .unit { color: var(--ink-mute); font-size: 0.95rem; }
.plan .setup { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 18px; }
.plan ul {
    list-style: none;
    margin: 14px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.plan ul li {
    display: flex;
    gap: 10px;
    font-size: 0.96rem;
    color: var(--ink-dim);
}
.plan ul li::before {
    content: "✓";
    color: var(--pink);
    font-weight: 700;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
}
.testimonial .quote { color: var(--ink-dim); margin-bottom: 16px; font-size: 0.98rem; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.testimonial .who strong { display: block; font-size: 0.95rem; }
.testimonial .who span { color: var(--ink-mute); font-size: 0.82rem; }
.stars { color: #ffcc33; margin-bottom: 12px; font-size: 0.95rem; letter-spacing: 2px; }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: background 0.2s;
}
.faq details[open] { background: var(--card-hover); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--pink);
    transition: transform 0.2s;
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-dim); margin-top: 10px; font-size: 0.96rem; }

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    padding: 44px 0 28px;
    margin-top: 40px;
    color: var(--ink-dim);
    font-size: 0.92rem;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.footer a:hover { color: var(--ink); }
.footer-legal {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--ink-mute);
    font-size: 0.85rem;
}

/* ============ FORM ============ */
.lead-form {
    display: grid;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 6px; display: block; }
.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--pink);
    background: rgba(255, 255, 255, 0.06);
}
.lead-form textarea { resize: vertical; min-height: 90px; }
.form-msg { min-height: 22px; font-size: 0.92rem; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: #ff7a7a; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ INDUSTRY / STEPS ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-lg {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(255, 107, 157, 0.25));
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 16px;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--grad-primary); color: #fff; font-weight: 700;
    margin-bottom: 14px;
}

/* ============ ROI ============ */
.roi-box {
    background: linear-gradient(180deg, rgba(255, 107, 157, 0.08), rgba(118, 75, 162, 0.04));
    border: 1px solid rgba(255, 107, 157, 0.25);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 720px;
    margin: 0 auto;
}
.roi-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.roi-row label { flex: 1; font-size: 0.95rem; min-width: 180px; }
.roi-row input[type=range] { flex: 2; accent-color: #ff6b9d; min-width: 180px; }
.roi-row .val { width: 80px; font-weight: 700; text-align: center; color: var(--pink); }
.roi-result {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    margin-top: 20px;
}
.roi-result .big {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ COMPARISON ============ */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 720px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.compare-table th, .compare-table td {
    padding: 14px 18px;
    text-align: start;
    border-bottom: 1px solid var(--border);
}
.compare-table th {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
}
.compare-table td.good { color: var(--success); font-weight: 600; }
.compare-table td.bad { color: var(--ink-mute); }
.compare-table tr:last-child td { border-bottom: none; }

/* ============ DEMO ============ */
.demo-card {
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 22px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}
.demo-log {
    min-height: 220px;
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    margin-bottom: 14px;
}
.demo-log .pv-msg { max-width: 82%; }
.demo-row { display: flex; gap: 10px; }
.demo-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
}
.demo-row input:focus { border-color: var(--pink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cards-3 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    section { padding: 64px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; position: absolute; top: 60px; inset-inline-end: 16px; flex-direction: column; padding: 10px; background: rgba(11, 7, 22, 0.95); border: 1px solid var(--border); border-radius: 14px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .lead-form .row { grid-template-columns: 1fr; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
