/* ===========================
   FutureSoft.bg — styles.css
   Modern, minimalist AI business website
   =========================== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --foreground: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #3b82f6;
    --primary-glow: #0ea5e9;
    --primary-fg: #ffffff;
    --radius: 0.75rem;
    --shadow-card: 0 4px 24px -4px rgba(59,130,246,0.08);
    --shadow-elevated: 0 12px 40px -8px rgba(59,130,246,0.15);
    --gradient: linear-gradient(135deg, #3b82f6, #0ea5e9);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--foreground);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-4 { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 500; font-size: 0.875rem; border: none; cursor: pointer;
    border-radius: 9999px; padding: 0.625rem 1.5rem; transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--gradient); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--surface); }
.btn-white { background: var(--bg); color: var(--foreground); }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; height: 3rem; }
.btn-full { width: 100%; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all 0.3s;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-card); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.logo { font-size: 1.25rem; font-weight: 700; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--foreground); }
.btn-nav { display: inline-flex; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--foreground); transition: all 0.3s; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; position: relative; overflow: hidden; }
.hero-bg-dots { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px); background-size: 40px 40px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-glow-1 { top: 5rem; right: 0; width: 600px; height: 600px; background: rgba(59,130,246,0.05); }
.hero-glow-2 { bottom: 0; left: 0; width: 400px; height: 400px; background: rgba(14,165,233,0.05); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.1);
    border-radius: 9999px; padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500;
    color: var(--primary); margin-bottom: 1.5rem;
}
.badge svg { color: var(--primary); }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }
.hero-ctas { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* Hero graphic */
.hero-graphic { display: flex; justify-content: center; position: relative; height: 480px; }
.orbit { position: absolute; border-radius: 50%; border: 2px solid rgba(59,130,246,0.1); }
.orbit-1 { inset: 0; animation: spin 30s linear infinite; }
.orbit-2 { inset: 1.5rem; border-width: 1px; border-color: rgba(59,130,246,0.15); animation: spin 20s linear infinite reverse; }
.orbit-3 { inset: 3rem; border-width: 1px; border-style: dashed; border-color: rgba(59,130,246,0.1); animation: spin 25s linear infinite; }
.orb-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 8rem; height: 8rem; background: var(--gradient); opacity: 0.2; border-radius: 50%; filter: blur(30px); }
.orb {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 5rem; height: 5rem; background: var(--gradient); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-elevated);
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Sections */
.section { padding: 6rem 0; }
.bg-surface { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.section-header h2, .section-narrow h2 { font-size: 2.25rem; font-weight: 800; margin-top: 0.75rem; margin-bottom: 1rem; }
.section-header p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.section-narrow { text-align: center; max-width: 720px; margin: 0 auto; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
    background: var(--bg); border-radius: var(--radius); padding: 1.5rem;
    border: 1px solid rgba(226,232,240,0.5); box-shadow: var(--shadow-card);
    transition: all 0.3s;
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* Service card */
.service-card:hover { box-shadow: var(--shadow-elevated); border-color: rgba(59,130,246,0.2); }
.service-card:hover .card-icon { background: var(--gradient); }
.service-card:hover .card-icon svg { stroke: white; }
.card-icon {
    width: 3rem; height: 3rem; border-radius: 0.5rem; background: rgba(59,130,246,0.1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: all 0.3s;
}
.card-icon svg { color: var(--primary); transition: all 0.3s; }
.card-icon-sm {
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(59,130,246,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-icon-sm svg { color: var(--primary); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.step-line { display: none; position: absolute; top: 2rem; left: 20%; right: 20%; height: 2px; background: linear-gradient(to right, rgba(59,130,246,0.2), rgba(59,130,246,0.4), rgba(59,130,246,0.2)); }
.step { text-align: center; }
.step-circle {
    width: 4rem; height: 4rem; border-radius: 50%; background: var(--gradient);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-elevated); position: relative; z-index: 1;
}
.step-num { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.step h3 { font-size: 1.25rem; font-weight: 700; margin: 0.5rem 0 0.75rem; }
.step p { font-size: 0.875rem; color: var(--muted); max-width: 280px; margin: 0 auto; }

/* Benefits */
.benefit-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.benefit-stat { font-size: 0.75rem; font-weight: 700; color: var(--primary); background: rgba(59,130,246,0.05); border-radius: 9999px; padding: 0.25rem 0.75rem; }
.benefit-card { padding: 2rem; }
.benefit-card h3 { font-size: 1.125rem; }

/* Why Choose */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-left h2 { font-size: 2.25rem; font-weight: 800; margin-top: 0.75rem; margin-bottom: 1.5rem; }
.why-left p { color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.why-stat-box { text-align: center; padding: 1rem; border-radius: var(--radius); background: var(--surface); }
.why-right { display: flex; flex-direction: column; gap: 1.25rem; }
.reason-card { display: flex; gap: 1rem; padding: 1.25rem; align-items: flex-start; }
.reason-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.reason-card p { font-size: 0.875rem; color: var(--muted); }

/* About */
.about-text { font-size: 1.125rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.about-text-sub { color: var(--muted); line-height: 1.7; }

/* Testimonials */
.testimonial-card { padding: 2rem; }
.stars { color: var(--primary); margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author strong { display: block; color: var(--foreground); }
.testimonial-author span { font-size: 0.75rem; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 960px; margin: 0 auto; }
.pricing-card { padding: 2rem; text-align: left; position: relative; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; }
.price { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0; }
.price-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.features { margin-bottom: 2rem; }
.features li { font-size: 0.875rem; color: var(--muted); padding: 0.375rem 0; }
.pricing-highlighted {
    background: var(--gradient); color: white; border-color: transparent;
    box-shadow: var(--shadow-elevated); transform: scale(1.05);
}
.pricing-highlighted .price-desc, .pricing-highlighted .features li { color: rgba(255,255,255,0.8); }
.popular-badge {
    position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
    background: var(--foreground); color: var(--bg); font-size: 0.75rem; font-weight: 700;
    padding: 0.25rem 1rem; border-radius: 9999px;
}

/* CTA */
.cta-box {
    background: var(--gradient); border-radius: 1.5rem; padding: 4rem;
    text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.cta-box p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg); border-radius: var(--radius); border: 1px solid rgba(226,232,240,0.5); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.faq-question {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; font-size: 0.9375rem; font-weight: 500; text-align: left;
    color: var(--foreground); font-family: inherit;
}
.faq-icon { font-size: 1.25rem; color: var(--muted); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 1.5rem 1.25rem; font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* Contact Form */
.contact-form { padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.625rem 0.75rem; font-size: 0.875rem; font-family: inherit;
    border: 1px solid var(--border); border-radius: 0.5rem; background: var(--bg);
    color: var(--foreground); transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: none; }
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: #ef4444; }
.form-error { font-size: 0.75rem; color: #ef4444; margin-top: 0.25rem; display: block; min-height: 0; }
.form-captcha-row { align-items: flex-start; }
.captcha-label { font-size: 0.875rem; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.captcha-input { width: 6rem !important; }
.form-check { padding-top: 1.5rem; }
.form-check label { font-size: 0.875rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--primary); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 3rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--foreground); }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--bg);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: all 0.2s;
}
.social-links a:hover { color: var(--primary); border-color: rgba(59,130,246,0.3); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
    width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--gradient);
    color: white; border: none; cursor: pointer; font-size: 1.25rem;
    box-shadow: var(--shadow-elevated); opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (min-width: 768px) {
    .step-line { display: block; }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-graphic { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-highlighted { transform: none; }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px); padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border);
    }
    .btn-nav.open { display: inline-flex; margin-top: 0.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-line { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-value { font-size: 1.5rem; }
    .section { padding: 4rem 0; }
    .section-header h2, .section-narrow h2 { font-size: 1.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-box h2 { font-size: 1.75rem; }
    .footer-content { flex-direction: column; text-align: center; }
}
