/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #4361ee;
    --primary-dark: #3046c4;
    --primary-light: #eef2ff;
    --secondary: #0f172a;
    --text-dark: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

/* --- UTILITIES --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.badge { background: var(--primary-light); color: var(--primary); padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 20px; letter-spacing: 0.5px; }

/* --- NAVBAR (Glassmorphism) --- */
.navbar { height: 80px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: fixed; top: 0; width: 100%; z-index: 1000; display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow-sm); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

.desktop-auth { display: flex; gap: 10px; align-items: center; }
.btn-text { color: var(--text-dark); font-weight: 600; padding: 10px 20px; border-radius: 8px; }
.btn-text:hover { background: var(--light-bg); color: var(--primary); }
.btn-primary { background: var(--primary); color: white; padding: 10px 24px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2); border: 1px solid transparent; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3); }

/* --- HERO SECTION --- */
.hero-section { padding: 160px 0 100px; background: radial-gradient(circle at 60% 50%, #f0f5ff 0%, #ffffff 60%); overflow: hidden; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.hero-content h1 { font-size: 52px; line-height: 1.15; margin-bottom: 24px; color: var(--secondary); font-weight: 800; letter-spacing: -1.5px; }
.highlight { background: linear-gradient(to right, var(--primary), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 18px; color: var(--text-light); margin-bottom: 40px; max-width: 540px; line-height: 1.7; }

.hero-btns { display: flex; gap: 16px; margin-bottom: 50px; flex-wrap: wrap; }
.btn-lg-primary { background: var(--primary); color: white; padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px; box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3); transition: all 0.3s; }
.btn-lg-primary:hover { transform: translateY(-3px); background: var(--primary-dark); box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4); }
.btn-lg-secondary { background: white; color: var(--text-dark); border: 2px solid var(--border); padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; transition: all 0.3s; }
.btn-lg-secondary:hover { border-color: var(--text-dark); background: var(--light-bg); transform: translateY(-3px); }

.hero-stats { display: flex; gap: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat-item strong { display: block; font-size: 32px; color: var(--secondary); font-weight: 800; line-height: 1; margin-bottom: 5px; }
.stat-item span { font-size: 14px; color: var(--text-light); font-weight: 600; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.hero-image img { width: 100%; filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.1)); animation: float 4s ease-in-out infinite; }

/* --- COMMON SECTIONS --- */
.section-padding { padding: 100px 0; }
.bg-light { background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 70px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 36px; margin-bottom: 16px; color: var(--secondary); font-weight: 800; letter-spacing: -0.5px; }
.section-header p { font-size: 18px; color: var(--text-light); }

/* --- PAGE HEADER (For Terms, Privacy, Contact) --- */
.page-header { padding: 140px 0 60px; background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%); text-align: center; }
.page-header h1 { font-size: 42px; font-weight: 800; color: var(--secondary); margin-bottom: 15px; }
.page-header p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* --- LEGAL CONTENT STYLES --- */
.legal-container { max-width: 900px; margin: 0 auto; background: white; padding: 50px; border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-top: -40px; margin-bottom: 80px; position: relative; z-index: 10; }
.legal-content h3 { font-size: 24px; color: var(--secondary); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
.legal-content p { margin-bottom: 15px; color: var(--text-dark); line-height: 1.8; font-size: 16px; }
.legal-content ul { padding-left: 20px; margin-bottom: 20px; list-style: disc; color: var(--text-dark); }
.legal-content li { margin-bottom: 10px; }

/* --- FEATURES, SERVICES, PRICING --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 40px 30px; border-radius: 24px; border: 1px solid var(--border); transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.f-icon { width: 60px; height: 60px; background: var(--primary-light); color: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--secondary); }
.feature-card p { color: var(--text-light); font-size: 15px; line-height: 1.6; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 35px; border-radius: 24px; border: 1px solid var(--border); transition: 0.3s; display: flex; flex-direction: column; height: 100%; }
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.s-icon { width: 55px; height: 55px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 24px; }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 15px; margin-bottom: 24px; flex-grow: 1; }
.s-link a { color: var(--primary); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; }
.price-card { background: white; border-radius: 24px; padding: 40px 30px; position: relative; transition: 0.3s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.price-card.popular { border: 2px solid var(--primary); background: #fcfdff; transform: scale(1.05); z-index: 2; box-shadow: 0 25px 50px rgba(67, 97, 238, 0.15); }
.price-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 8px 20px; border-radius: 30px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.price-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--secondary); font-weight: 700; }
.price { font-size: 42px; font-weight: 800; color: var(--secondary); margin-bottom: 5px; letter-spacing: -1px; }
.price-features { margin: 35px 0; flex-grow: 1; }
.price-features li { margin-bottom: 16px; font-size: 15px; color: var(--text-dark); display: flex; align-items: center; gap: 12px; }
.price-features i { color: #10b981; font-size: 20px; flex-shrink: 0; }
.price-features span { width: 100%; display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 4px; }
.btn-price { width: 100%; padding: 14px; border-radius: 10px; font-weight: 700; text-align: center; border: 2px solid var(--primary); background: transparent; color: var(--primary); transition: 0.3s; font-size: 16px; }
.price-card.popular .btn-price, .btn-price:hover { background: var(--primary); color: white; }

/* --- CONTACT SECTION --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; background: white; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.contact-info { background: var(--secondary); padding: 60px; color: white; }
.contact-info h3 { font-size: 32px; margin-bottom: 20px; color: white; font-weight: 800; }
.contact-info p { color: #94a3b8 !important; font-size: 16px; line-height: 1.6; }
.c-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 35px; }
.c-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.1); color: var(--primary-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-form { padding: 60px; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); font-size: 14px; }
.form-input, .form-textarea { width: 100%; padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: var(--light-bg); transition: 0.3s; }
.form-input:focus, .form-textarea:focus { border-color: var(--primary); background: white; outline: none; box-shadow: 0 0 0 4px var(--primary-light); }

/* --- CTA SECTION --- */
.cta-section { background: var(--primary); padding: 80px 0; }
.cta-container { display: flex; justify-content: space-between; align-items: center; }
.cta-text h2 { color: white; font-size: 36px; margin-bottom: 15px; font-weight: 800; }
.cta-text p { color: rgba(255,255,255,0.9); font-size: 20px; }
.btn-white { background: white; color: var(--primary); padding: 16px 36px; border-radius: 10px; font-weight: 700; font-size: 17px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.btn-white:hover { background: #f8fafc; transform: translateY(-4px); }

/* --- FOOTER --- */
footer { background: #0b1120; color: #94a3b8; padding: 80px 0 30px; border-top: 1px solid #1e293b; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { color: white; margin-bottom: 24px; font-size: 18px; font-weight: 700; }
.footer-col a { display: block; color: #94a3b8; margin-bottom: 14px; font-size: 15px; transition: 0.3s; }
.footer-col a:hover { color: white; transform: translateX(5px); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 30px; text-align: center; font-size: 14px; }

/* --- MOBILE & TABLET --- */
.mobile-toggle, .mobile-close, .mobile-auth-buttons { display: none; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998; backdrop-filter: blur(4px); }

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .price-card.popular { transform: scale(1); border-width: 1px; }
    .price-card.popular:hover { transform: translateY(-10px); scale(1); }
    .hero-container { gap: 40px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .page-header { padding-top: 120px; }
    .desktop-auth { display: none; }
    .mobile-toggle { display: block; font-size: 28px; cursor: pointer; color: var(--secondary); }
    .nav-links { position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh; background: white; flex-direction: column; padding: 90px 30px 40px; gap: 15px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; align-items: flex-start; overflow-y: auto; }
    .nav-links.active { right: 0; }
    .nav-links a { width: 100%; font-size: 18px; padding: 12px; border-radius: 10px; }
    .mobile-auth-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
    .mobile-auth-buttons .btn-text, .mobile-auth-buttons .btn-primary { width: 100%; text-align: center; padding: 14px; font-size: 16px; }
    .mobile-close { display: block; position: absolute; top: 25px; right: 25px; font-size: 28px; color: var(--text-light); cursor: pointer; }
    .mobile-overlay.active { display: block; }
    .hero-container, .pricing-grid, .contact-wrapper, .footer-container, .cta-container { grid-template-columns: 1fr; }
    .hero-container { text-align: center; }
    .hero-content { order: 2; }
    .hero-image { order: 1; max-width: 90%; margin: 0 auto; }
    .hero-btns, .hero-stats { justify-content: center; }
    .hero-content h1 { font-size: 36px; }
    .legal-container, .contact-info, .contact-form { padding: 30px 20px; }
}