/* ============================================================
   ROOT VARIABLES – UBWIRU AI
   ============================================================ */
:root {
    --primary-dark: #1a4a3a;
    --primary-emerald: #2d7a5a;
    --primary-blue: #1a3a6a;
    --blue-bright: #3a7abe;
    --gold: #d4a843;
    --gold-light: #f0d080;
    --gold-dark: #b8922f;
    --dark-bg: #0d1f1a;
    --light-bg: #f5f8f6;
    --text-dark: #1a2a2a;
    --text-light: #f5f8f6;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 16px; transition: var(--transition); cursor: pointer; border: none; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,67,0.3); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary-dark); }
.btn-outline:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary-dark); transform: translateY(-2px); }
.btn-large { padding: 16px 36px; font-size: 18px; }
.btn-block { width: 100%; justify-content: center; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0; transition: var(--transition); background: transparent; }
.header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.06); padding: 10px 0; }
.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--white); }
.header.scrolled .logo { color: var(--primary-dark); }
.logo img { width: 40px; height: 40px; object-fit: contain; }
.navbar { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { color: var(--white); font-weight: 500; font-size: 15px; transition: var(--transition); position: relative; }
.header.scrolled .nav-menu a { color: var(--text-dark); }
.nav-menu a:hover { color: var(--gold); }
.nav-menu a.active { color: var(--gold); }
.nav-menu a.nav-cta { background: var(--gold); color: var(--white); padding: 8px 20px; border-radius: 6px; }
.nav-menu a.nav-cta:hover { background: var(--gold-dark); color: var(--white); }
.desktop-cta { display: inline-flex; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }
.header.scrolled .hamburger span { background: var(--text-dark); }

.hero { background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-dark) 50%, var(--primary-blue) 100%); min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,168,67,0.15); color: var(--gold); padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.hero-title { font-family: var(--font-heading); font-size: 56px; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 540px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; align-items: center; gap: 30px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--white); }
.stat-label { color: rgba(255,255,255,0.6); font-size: 14px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-image { position: relative; }
.hero-illustration { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-illustration img { max-width: 100%; }
.floating-card { position: absolute; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); padding: 12px 18px; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 14px; animation: float 3s ease-in-out infinite; }
.card-1 { top: 10%; right: 5%; animation-delay: 0s; }
.card-2 { bottom: 20%; left: 5%; animation-delay: 1.5s; }
.floating-card i { color: var(--gold); font-size: 18px; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

.trusted { padding: 60px 0; background: var(--light-bg); text-align: center; }
.trusted-label { color: var(--text-dark); opacity: 0.6; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }
.trusted-logos { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; }
.trusted-logos span { font-size: 18px; font-weight: 600; opacity: 0.4; color: var(--text-dark); }

.services, .testimonials, .faq, .pricing { padding: 80px 0; }
.how-it-works { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag { display: inline-block; background: rgba(212,168,67,0.1); color: var(--gold-dark); padding: 4px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.section-header p { color: rgba(26,42,42,0.7); font-size: 18px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(0,0,0,0.04); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.service-icon { width: 60px; height: 60px; background: rgba(26,74,58,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary-dark); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.service-card p { color: rgba(26,42,42,0.7); margin-bottom: 16px; font-size: 15px; }
.service-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(26,42,42,0.7); padding: 4px 0; }
.service-features li i { color: var(--primary-emerald); font-size: 12px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); font-weight: 600; margin-top: 16px; transition: var(--transition); }
.service-link:hover { color: var(--gold); gap: 12px; }

.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; }
.step { text-align: center; padding: 40px 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.step-number { font-family: var(--font-heading); font-size: 48px; font-weight: 800; color: rgba(26,74,58,0.08); margin-bottom: -20px; }
.step-icon { width: 70px; height: 70px; margin: 0 auto 16px; background: rgba(212,168,67,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--gold); }
.step h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.step p { color: rgba(26,42,42,0.7); font-size: 15px; }
.step-arrow { font-size: 24px; color: rgba(26,42,42,0.2); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testimonial-stars { color: var(--gold); margin-bottom: 12px; font-size: 14px; }
.testimonial-card p { font-size: 16px; line-height: 1.7; color: var(--text-dark); margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: rgba(26,42,42,0.6); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.pricing-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: var(--transition); position: relative; }
.pricing-card.featured { border: 2px solid var(--gold); transform: scale(1.02); }
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-5px); }
.pricing-badge { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; background: rgba(26,74,58,0.08); color: var(--primary-dark); margin-bottom: 16px; }
.pricing-badge.gold { background: var(--gold); color: var(--white); }
.pricing-card h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-family: var(--font-heading); font-size: 44px; font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: rgba(26,42,42,0.5); }
.pricing-features { text-align: left; margin-bottom: 30px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; color: rgba(26,42,42,0.8); }
.pricing-features li i { font-size: 14px; }
.pricing-features li .fa-check { color: var(--primary-emerald); }
.pricing-features li .fa-times { color: #ccc; }

.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); padding: 8px 0; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--text-dark); transition: var(--transition); }
.faq-question:hover { color: var(--primary-dark); }
.faq-question i { transition: var(--transition); color: var(--gold); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 20px; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 20px; }
.faq-answer p { color: rgba(26,42,42,0.7); font-size: 16px; line-height: 1.7; }

.cta-section { padding: 100px 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue)); }
.cta-content { text-align: center; color: var(--white); max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.cta-content p { font-size: 18px; opacity: 0.8; margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.footer { background: var(--dark-bg); padding: 60px 0 0; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand .logo { color: var(--white); font-size: 20px; margin-bottom: 12px; display: inline-flex; }
.footer-brand p { font-size: 15px; line-height: 1.7; margin-bottom: 20px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--white); }
.footer-social a:hover { background: var(--gold); transform: translateY(-2px); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.footer-links ul li, .footer-contact ul li { padding: 6px 0; font-size: 15px; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--gold); }
.footer-contact ul li i { width: 20px; color: var(--gold); margin-right: 8px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 14px; opacity: 0.6; }
.footer-bottom i { color: var(--gold); }

.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-dark); color: var(--white); border: none; font-size: 24px; cursor: pointer; box-shadow: 0 10px 30px rgba(26,74,58,0.3); transition: var(--transition); position: relative; }
.chat-toggle:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(26,74,58,0.4); }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--white); font-size: 11px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-container { position: absolute; bottom: 80px; right: 0; width: 380px; max-height: 600px; background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; }
.chat-container.open { display: flex; }
.chat-header { padding: 16px 20px; background: var(--primary-dark); color: var(--white); display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-info img { border-radius: 50%; }
.chat-header-info strong { display: block; font-size: 15px; }
.chat-header-info span { font-size: 12px; opacity: 0.7; }
.chat-close { background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; opacity: 0.7; transition: var(--transition); }
.chat-close:hover { opacity: 1; }
.chat-messages { flex: 1; padding: 16px 20px; overflow-y: auto; max-height: 350px; background: var(--light-bg); }
.chat-message { margin-bottom: 12px; display: flex; flex-direction: column; }
.chat-message.bot { align-items: flex-start; }
.chat-message.user { align-items: flex-end; }
.message-bubble { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.chat-message.bot .message-bubble { background: var(--white); color: var(--text-dark); border-top-left-radius: 4px; }
.chat-message.user .message-bubble { background: var(--primary-dark); color: var(--white); border-top-right-radius: 4px; }
.message-time { font-size: 10px; opacity: 0.5; margin-top: 4px; }
.chat-quick-replies { display: flex; gap: 8px; padding: 8px 16px; flex-wrap: wrap; border-top: 1px solid rgba(0,0,0,0.06); }
.quick-reply { padding: 6px 14px; border-radius: 50px; border: 1px solid rgba(26,74,58,0.2); background: transparent; font-size: 12px; cursor: pointer; transition: var(--transition); color: var(--primary-dark); }
.quick-reply:hover { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }
.chat-input { display: flex; padding: 12px 16px; gap: 10px; border-top: 1px solid rgba(0,0,0,0.06); background: var(--white); }
.chat-input input { flex: 1; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; font-family: var(--font-body); font-size: 14px; outline: none; transition: var(--transition); }
.chat-input input:focus { border-color: var(--gold); }
.chat-input input:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-input button { padding: 10px 16px; background: var(--gold); border: none; border-radius: 8px; color: var(--white); cursor: pointer; transition: var(--transition); }
.chat-input button:hover { background: var(--gold-dark); }
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-footer { padding: 8px 16px; font-size: 10px; text-align: center; color: rgba(26,42,42,0.4); border-top: 1px solid rgba(0,0,0,0.04); }
.chat-footer a { color: var(--primary-dark); text-decoration: underline; }

[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }
