/* ========================================
   Nexus Website - Main Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #F5F3FF;
    --secondary: #0F172A;
    --text: #111827;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-dark: #0F172A;
    --border: #E5E7EB;
    --green: #10B981;
    --green-light: #ECFDF5;
    --purple: #7C3AED;
    --purple-light: #F5F3FF;
    --blue: #3B82F6;
    --blue-light: #EFF6FF;
    --amber: #F59E0B;
    --amber-light: #FFFBEB;
    --pink: #EC4899;
    --pink-light: #FDF2F8;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --transition: all 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
    font-size: 15px; cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); font-family: var(--font); line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); padding: 14px 32px; font-size: 16px; }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.navbar-brand { display: flex; align-items: center; gap: 8px; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); }
.navbar-brand img { height: 32px; width: auto; }
.navbar-menu {
    display: flex; align-items: center; gap: 8px;
}
.nav-link {
    padding: 8px 16px; font-size: 15px; font-weight: 500;
    color: var(--text-light); border-radius: var(--radius);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-cta { margin-left: 8px; }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }

/* --- Mobile Drawer --- */
.mobile-drawer { display: none; }
.mobile-drawer.open { display: block; }
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 1001; animation: fadeIn 0.2s ease;
}
.drawer-content {
    position: fixed; top: 0; right: 0; bottom: 0; width: 300px;
    background: #fff; z-index: 1002; padding: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}
.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.drawer-close { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-light); }
.drawer-body { display: flex; flex-direction: column; gap: 4px; }
.drawer-link {
    display: block; padding: 12px 16px; font-size: 16px; font-weight: 500;
    color: var(--text); border-radius: var(--radius);
}
.drawer-link:hover { background: var(--bg-light); color: var(--primary); }
.drawer-body .btn { margin-top: 16px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; background: var(--primary-light); border-radius: 50px;
    font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 20px;
}
.hero h1 {
    font-size: 52px; font-weight: 800; line-height: 1.15;
    color: var(--text); margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero p.subtitle {
    font-size: 18px; color: var(--text-light); line-height: 1.7;
    margin-bottom: 32px; max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
    position: relative;
}
.hero-image img, .hero-image .hero-placeholder {
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
}
.hero-placeholder {
    width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 80px; font-weight: 800;
}

/* Page Hero (Features, Pricing) */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
    text-align: center;
}
.page-hero h1 {
    font-size: 44px; font-weight: 800; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.page-hero p {
    font-size: 18px; color: var(--text-light); max-width: 600px;
    margin: 0 auto 32px; line-height: 1.7;
}
.page-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   PARTNERS / TRUSTED BY
   ======================================== */
.partners {
    padding: 60px 0;
    text-align: center;
}
.partners p.label {
    font-size: 14px; color: var(--text-lighter); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 28px;
}
.partners-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap;
}
.partner-item {
    font-size: 22px; font-weight: 700; color: var(--text-lighter);
    opacity: 0.5; transition: var(--transition);
}
.partner-item:hover { opacity: 0.8; }
.partner-item img { height: 32px; width: auto; filter: grayscale(100%); opacity: 0.5; transition: var(--transition); }
.partner-item img:hover { filter: grayscale(0); opacity: 1; }

/* ========================================
   FEATURES SECTION
   ======================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-header {
    text-align: center; max-width: 640px; margin: 0 auto 48px;
}
.section-header h2 {
    font-size: 36px; font-weight: 800; color: var(--text);
    margin-bottom: 12px; letter-spacing: -0.02em;
}
.section-header p {
    font-size: 16px; color: var(--text-light); line-height: 1.7;
}

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
    padding: 32px; background: var(--bg); border-radius: var(--radius-xl);
    border: 1px solid var(--border); transition: var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent;
}
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: #fff;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1E293B 100%);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    text-align: center;
}
.stat-item h3 {
    font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 4px;
}
.stat-item p { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ========================================
   FEATURE DETAILS
   ======================================== */
.feature-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    padding: 40px 0;
}
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail-img {
    border-radius: var(--radius-xl); overflow: hidden;
}
.feature-detail-img img {
    width: 100%; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.feature-detail-img .img-placeholder {
    width: 100%; aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; color: rgba(255,255,255,0.3); font-weight: 800;
}
.feature-detail-content h3 {
    font-size: 32px; font-weight: 800; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.01em;
}
.feature-detail-content p {
    font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 24px;
}
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-bullets li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; color: var(--text);
}
.bullet-icon {
    width: 24px; height: 24px; min-width: 24px;
    border-radius: 50%; background: var(--green-light); color: var(--green);
    display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.testimonial-card {
    padding: 32px; background: var(--bg); border-radius: var(--radius-xl);
    border: 1px solid var(--border); transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 16px; }
.testimonial-content {
    font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px;
    overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-light); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #fff;
}
.cta h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta p { font-size: 18px; opacity: 0.9; max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   PRICING
   ======================================== */
.pricing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 48px;
}
.pricing-toggle span { font-size: 15px; font-weight: 500; color: var(--text-light); }
.pricing-toggle span.active { color: var(--text); font-weight: 600; }
.toggle-switch {
    width: 52px; height: 28px; background: var(--primary);
    border-radius: 50px; cursor: pointer; position: relative;
    transition: var(--transition); border: none;
}
.toggle-switch::after {
    content: ''; position: absolute; width: 22px; height: 22px;
    background: #fff; border-radius: 50%; top: 3px; left: 3px;
    transition: var(--transition);
}
.toggle-switch.yearly::after { transform: translateX(24px); }

.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    align-items: start;
}
.pricing-card {
    padding: 36px; background: var(--bg); border-radius: var(--radius-xl);
    border: 2px solid var(--border); transition: var(--transition);
    position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.popular {
    border-color: var(--primary); transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 4px 16px;
    border-radius: 50px; font-size: 13px; font-weight: 600;
}
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price {
    font-size: 44px; font-weight: 800; color: var(--text); margin-bottom: 4px;
}
.pricing-card .price span { font-size: 16px; font-weight: 500; color: var(--text-light); }
.pricing-card .price-desc {
    font-size: 14px; color: var(--text-light); margin-bottom: 24px;
}
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text);
}
.pricing-features .check-icon { color: var(--green); min-width: 20px; }

/* ========================================
   FAQ
   ======================================== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; background: none; border: none; cursor: pointer;
    font-size: 16px; font-weight: 600; color: var(--text); text-align: left;
    font-family: var(--font);
}
.faq-question .faq-icon {
    transition: transform 0.3s ease; min-width: 24px; color: var(--text-light);
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-answer-inner {
    padding: 0 24px 18px; font-size: 15px; color: var(--text-light); line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark); color: #fff; padding: 64px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 12px; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-social a:hover { color: #fff; }
.footer-links h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: rgba(255,255,255,0.8); }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: #fff; }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content { max-width: 720px; margin: 0 auto; }
.about-content p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.about-content h3 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .hero-grid { gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-menu { display: none; }
    .navbar-toggle { display: block; }

    .hero { padding: 100px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero h1 { font-size: 34px; }
    .hero p.subtitle { margin: 0 auto 28px; font-size: 16px; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: -1; }

    .page-hero { padding: 110px 0 48px; }
    .page-hero h1 { font-size: 32px; }
    .page-hero p { font-size: 16px; }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }

    .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .feature-detail { grid-template-columns: 1fr; gap: 32px; }
    .feature-detail.reverse { direction: ltr; }
    .feature-detail-content h3 { font-size: 26px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item h3 { font-size: 32px; }

    .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .cta h2 { font-size: 28px; }
    .cta p { font-size: 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 28px; }
    .page-hero h1 { font-size: 26px; }
    .section-header h2 { font-size: 24px; }
    .stat-item h3 { font-size: 28px; }
    .pricing-card .price { font-size: 36px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; }
}
