:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-gradient: linear-gradient(135deg, #a855f7, #ec4899);
    --primary-color: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Inter', sans-serif;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Global Elements */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

.btn {
    display: inline-block; padding: 14px 32px; border-radius: 12px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition);
    border: none; font-family: inherit; text-align: center;
}
.btn-primary { background: var(--primary-gradient); color: white; box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(168, 85, 247, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-warning { background: linear-gradient(135deg, #ef4444, #f97316); color: white; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }
.btn-warning:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(239, 68, 68, 0.4); }
.btn-large { padding: 18px 40px; font-size: 1.1rem; border-radius: 16px; }
.btn-outline-sm { padding: 10px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }
.btn-outline-sm:hover { background: rgba(255,255,255,0.1); }

/* Background glows */
.background-glow {
    position: fixed; top: -20%; left: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(11, 15, 25, 0) 70%); border-radius: 50%; z-index: -1; pointer-events: none;
}
.background-glow::after {
    content: ''; position: absolute; bottom: -50%; right: -50%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(11, 15, 25, 0) 70%); border-radius: 50%;
}

/* Header */
.header {
    padding: 20px 0; position: sticky; top: 0; z-index: 100;
    background: rgba(11, 15, 25, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 0.95rem; color: var(--text-muted); transition: var(--transition); }
.nav-links a:not(.btn):hover { color: var(--text-main); }

/* Hero Section */
.hero { text-align: center; padding: 80px 20px 100px; animation: fadeInDown 0.8s ease-out; }
.badge-offer {
    display: inline-block; background: rgba(236, 72, 153, 0.15); color: #fbcfe8;
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 25px; border: 1px solid rgba(236, 72, 153, 0.3);
}
.hero h2 {
    font-size: 4rem; line-height: 1.1; margin-bottom: 25px; font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; }

/* Info Sections */
.info-section { padding: 60px 20px; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.step-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 40px 30px; position: relative; overflow: hidden; }
.step-num { position: absolute; top: -10px; right: -10px; font-size: 8rem; font-weight: 800; color: rgba(255,255,255,0.03); line-height: 1; }
.step-card h3 { font-size: 1.4rem; margin-bottom: 15px; position: relative; z-index: 2; }
.step-card p { color: var(--text-muted); position: relative; z-index: 2; }

.features-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 35px; backdrop-filter: blur(10px); }
.info-card h3 { margin-bottom: 15px; color: #fff; font-size: 1.3rem; }
.info-card p { color: var(--text-muted); font-size: 1rem; }

/* Bonuses Grid */
.bonuses-grid .bonus-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border-color: rgba(168, 85, 247, 0.3); text-align: center;
}
.bonus-icon { font-size: 3rem; margin-bottom: 20px; }

/* AI Section */
.ai-section { margin-top: -30px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.ai-card { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.02)); border: 1px solid rgba(168, 85, 247, 0.2); }

/* Lead Bumper */
.lead-bumper { padding: 80px 20px; }
.lead-content {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 30px; padding: 60px 40px; text-align: center;
}
.lead-content h2 { margin-bottom: 15px; font-size: 2rem; }
.lead-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; }
.lead-form { display: flex; justify-content: center; gap: 15px; max-width: 500px; margin: 0 auto; }
.lead-form input {
    flex: 1; padding: 16px 20px; border-radius: 12px; background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1rem; font-family: inherit;
}
.lead-form input:focus { outline: none; border-color: var(--primary-color); }

/* Quiz Section */
.quiz-section { padding: 80px 20px 120px; }
.quiz-container {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 30px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); position: relative; overflow: hidden;
}
.quiz-step { display: none; animation: fadeIn 0.4s ease-out; }
.quiz-step.active { display: block; }
.quiz-step h3 { font-size: 2rem; margin-bottom: 15px; }
.subtitle { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }

/* Options Grid */
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.option-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
    padding: 30px 20px; text-align: center; cursor: pointer; transition: var(--transition);
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.option-card:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.15); }
.option-card input[type="radio"], .option-card input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; }
.option-card.selected { border-color: var(--primary-color); background: rgba(168, 85, 247, 0.1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
.option-card .icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.option-card .icon-img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 16px; margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.option-card .title { font-weight: 600; font-size: 1.1rem; }
.option-card small { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; margin-top: 8px; display: block; }
.option-card .price-tag { color: #ec4899; font-weight: 600; margin-top: 10px; background: rgba(236,72,153,0.1); padding: 4px 8px; border-radius: 8px; display: inline-block; }

/* Custom Input inside Option Card */
.custom-input-field {
    margin-top: 15px; width: 100%; padding: 10px; border-radius: 8px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 0.9rem; text-align: center; transition: var(--transition);
}
.custom-input-field:focus { outline: none; border-color: var(--primary-color); background: rgba(0,0,0,0.5); }
.option-card.selected .custom-input-field { border-color: var(--primary-color); }

/* Budget Grid */
.budget-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.budget-card { padding: 25px; }
.tx-note { color: #ec4899 !important; }

/* Actions */
.actions { display: flex; justify-content: flex-end; margin-top: 40px; }
.actions.split { justify-content: space-between; }

/* Form Styles */
.form-container { width: 100%; max-width: 500px; margin: 0 auto; }
.form-left { margin: 0; max-width: 100%; }
.form-group { margin-bottom: 24px; text-align: left; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 1rem; }
.form-group input {
    width: 100%; padding: 18px; border-radius: 12px;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; font-size: 1.1rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2); }

/* Split Screen Layout (Step 4) */
.split-screen-layout { display: flex; gap: 60px; align-items: center; }
.split-left { flex: 0 0 auto; display: flex; justify-content: center; }
.split-right { flex: 1; }
.split-right h3 { font-size: 2.2rem; margin-bottom: 15px; }
.split-right .subtitle { margin-bottom: 40px; font-size: 1.1rem; line-height: 1.6; }

/* CSS iPhone Mockup (Premium UI) */
.iphone-mockup {
    width: 300px; height: 600px; background: #000; border-radius: 45px;
    border: 10px solid #222; box-shadow: 0 0 0 2px #444, 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.1);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.iphone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 110px; height: 28px; background: #222; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; z-index: 10;
}
.iphone-screen { width: 100%; height: 100%; background: #0f172a; position: relative; display: flex; flex-direction: column; }
.premium-header { padding: 45px 20px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); }
.premium-header h4 { font-size: 1.2rem; color: #fff; font-weight: 600;}
.premium-content { flex: 1; padding: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.banner-skeleton { height: 120px; border-radius: 16px; background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(236,72,153,0.4)); }
.cards-grid-skel { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.card-skel { height: 100px; background: rgba(255,255,255,0.05); border-radius: 12px; }
.list-item-skel { height: 60px; background: rgba(255,255,255,0.03); border-radius: 12px; }

.app-tabbar {
    height: 70px; background: rgba(15,23,42,0.95); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-around; align-items: center; padding-bottom: 15px;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--text-muted); opacity: 0.6; }
.tab.active { opacity: 1; color: var(--primary-color); }
.tab-icon { font-size: 1.2rem; }

/* Success Step */
.success-step { text-align: center; padding: 40px 0; }
.success-icon { font-size: 5rem; margin-bottom: 20px; animation: bounce 2s infinite; }
.summary-box {
    background: rgba(0, 0, 0, 0.3); border-radius: 20px; padding: 30px;
    margin: 40px auto; max-width: 600px; text-align: left; border: 1px solid rgba(255, 255, 255, 0.05);
}
.summary-box p { margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 12px; font-size: 1.1rem; }
.summary-box p:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 20px 40px; margin-top: 50px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; }
.footer-logo span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contacts p { color: var(--text-muted); margin-bottom: 10px; }
.footer-bottom { text-align: center; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; font-size: 0.9rem; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Responsive */
@media (max-width: 900px) {
    .split-screen-layout { flex-direction: column; }
    .split-right { text-align: center; }
    .form-left { margin: 0 auto; }
}
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .quiz-container { padding: 30px 20px; }
    .nav-links { display: none; }
    .lead-form { flex-direction: column; }
}

/* AI Chat Widget */
.ai-chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; font-family: var(--font-family); }
.chat-button {
    width: 65px; height: 65px; border-radius: 50%; background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4); transition: transform 0.3s; position: relative;
    animation: bounce 3s infinite;
}
.chat-button:hover { transform: scale(1.1); }
.chat-icon { font-size: 2rem; }
.chat-badge {
    position: absolute; top: -5px; right: -5px; background: #ef4444; color: #fff;
    width: 22px; height: 22px; border-radius: 50%; font-size: 0.8rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center; border: 2px solid #0b0f19;
}
.chat-window {
    position: absolute; bottom: 85px; right: 0; width: 340px; height: 480px;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; display: none; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform-origin: bottom right; animation: scaleIn 0.3s ease-out;
}
.chat-window.open { display: flex; }
.chat-header {
    padding: 15px 20px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-icon { font-size: 1.8rem; }
.chat-header h4 { font-size: 1rem; color: #fff; margin: 0; }
.chat-header small { color: #10b981; font-size: 0.8rem; font-weight: 600; }
.chat-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.chat-close:hover { color: #fff; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message { display: flex; flex-direction: column; max-width: 85%; }
.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; }
.msg-content { padding: 12px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.4; }
.bot .msg-content { background: rgba(255,255,255,0.05); border-bottom-left-radius: 4px; color: var(--text-main); }
.user .msg-content { background: var(--primary-gradient); border-bottom-right-radius: 4px; color: #fff; }
.typing-indicator { display: none; align-self: flex-start; background: rgba(255,255,255,0.05); padding: 10px 16px; border-radius: 18px; border-bottom-left-radius: 4px; gap: 5px; align-items: center; }
.typing-indicator.active { display: flex; }
.dot { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: blink 1.4s infinite both; }
.dot:nth-child(1) { animation-delay: 0.2s; }
.dot:nth-child(2) { animation-delay: 0.4s; }
.dot:nth-child(3) { animation-delay: 0.6s; }
.chat-input-area {
    padding: 15px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; gap: 10px;
}
.chat-input-area input {
    flex: 1; padding: 12px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: #fff; font-size: 0.95rem; outline: none;
}
.chat-input-area input:focus { border-color: var(--primary-color); }
.chat-input-area button {
    width: 45px; height: 45px; border-radius: 12px; background: var(--primary-gradient);
    border: none; color: #fff; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes blink { 0% { opacity: 0.2; } 20% { opacity: 1; } 100% { opacity: 0.2; } }
@media (max-width: 480px) {
    .ai-chat-widget { bottom: 15px; right: 15px; }
    .chat-window { width: calc(100vw - 30px); height: 420px; right: 0; bottom: 75px; }
}
