/* ===== CSS Variables ===== */
:root {
    --primary: #667EEA;
    --primary-dark: #5A6FD6;
    --secondary: #764BA2;
    --gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --text: #1A1A2E;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-alt: #F9FAFB;
    --bg-dark: #0F0F23;
    --border: #E5E7EB;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(102,126,234,0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102,126,234,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102,126,234,0.45);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
}
.logo-icon { font-size: 1.6rem; }
.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}
.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    padding: 6px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1A1A2E;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 30px 60px rgba(0,0,0,0.15);
    position: relative;
}
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1A1A2E;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mock-header {
    background: var(--gradient);
    padding: 40px 20px 16px;
    color: #fff;
}
.mock-title {
    font-weight: 700;
    font-size: 1.1rem;
}
.mock-chat {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}
.mock-msg {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    max-width: 80%;
    line-height: 1.4;
}
.mock-msg.sent {
    background: var(--gradient);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.mock-msg.received {
    background: #F0F0F5;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--bg-alt);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Details ===== */
.details {
    padding: 100px 0;
}
.details-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.detail-block.reverse { direction: rtl; }
.detail-block.reverse > * { direction: ltr; }
.detail-visual { display: flex; justify-content: center; }
.detail-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--gradient);
    color: #fff;
    width: 300px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(102,126,234,0.3);
}
.card-icon { font-size: 3rem; margin-bottom: 16px; }
.detail-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.detail-card p { font-size: 0.9rem; opacity: 0.9; }
.detail-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.detail-content > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-list li {
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}
.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--bg-alt);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.stat {
    text-align: center;
    padding: 28px 12px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Pricing ===== */
.pricing {
    padding: 100px 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
}
.pricing-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
    transition: all 0.3s;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.pricing-card.featured::after {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-badge {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-features li {
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.92rem;
}
.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== Business ===== */
.business {
    padding: 100px 0;
    background: var(--bg-alt);
}
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.business-item {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.business-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.business-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.business-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}
.business-item a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 968px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .business-grid { grid-template-columns: 1fr; }
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-dark);
    color: #fff;
}
.cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
}
.footer-brand .logo-text {
    -webkit-text-fill-color: #fff;
}
.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--primary); }

/* ===== Legal Pages ===== */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-page .last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
}
.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
}
.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal-page p, .legal-page li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page a {
    color: var(--primary);
    text-decoration: underline;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
}
.legal-table th,
.legal-table td {
    padding: 16px 20px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.7;
    vertical-align: top;
}
.legal-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text);
    width: 220px;
    text-align: left;
}
.legal-table td {
    color: var(--text-light);
}
.legal-table a {
    color: var(--primary);
    text-decoration: underline;
}
@media (max-width: 640px) {
    .legal-table th { width: 120px; font-size: 0.85rem; }
    .legal-table td { font-size: 0.85rem; }
}

/* ===== Support Page ===== */
.support-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}
.support-page .container {
    max-width: 800px;
}
.support-page h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.support-page > .container > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}
.contact-card {
    padding: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
}
.contact-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.contact-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}
.contact-card a {
    color: var(--primary);
    font-weight: 600;
}
.faq-section { margin-top: 48px; }
.faq-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.faq-item p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-badges { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-block, .detail-block.reverse { grid-template-columns: 1fr; text-align: center; direction: ltr; }
    .detail-block.reverse > * { direction: ltr; }
    .detail-list { align-items: center; }
    .about-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2.4rem; }
    .hero { padding: 120px 0 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.8rem; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 99;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.2rem; color: var(--text); }
    .nav-toggle { display: flex; z-index: 101; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-actions { flex-direction: column; align-items: center; }
    .phone-mockup { width: 240px; height: 480px; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta h2 { font-size: 1.8rem; }
}
