/* ============================
   Nitro.bg — Styles
   ============================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Variables --- */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-soft: linear-gradient(135deg, #eff6ff, #ecfeff);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
    transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--gradient); color: #fff; border-color: transparent; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* --- Section --- */
.section { padding: 100px 0; }
.section:nth-child(even) { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 13px;
    font-weight: 600; color: var(--primary); background: #eff6ff; margin-bottom: 16px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.section-header h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; color: var(--text); }
.section-subtitle { color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
.logo-icon { font-size: 20px; }
.logo-dot { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta { background: var(--gradient); color: #fff !important; padding: 8px 20px; border-radius: 8px; }
.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ========== HERO ========== */
.hero { padding: 140px 0 100px; position: relative; overflow: hidden; background: var(--bg); }
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.06), transparent); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(6,182,212,0.06), transparent); bottom: -50px; left: -50px; }
.shape-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(37,99,235,0.04), transparent); top: 50%; left: 30%; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-block; padding: 8px 16px; background: #eff6ff; color: var(--primary);
    border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; color: var(--text); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.8; max-width: 540px; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat { display: flex; flex-direction: column; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-suffix { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); max-width: 120px; }

/* Hero Graphic */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-graphic { position: relative; width: 400px; height: 400px; }
.graphic-circle {
    position: absolute; border-radius: 50%; border: 1px solid var(--border);
    top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse-ring 4s ease-in-out infinite;
}
.graphic-circle-1 { width: 200px; height: 200px; border-color: rgba(37,99,235,0.15); }
.graphic-circle-2 { width: 300px; height: 300px; border-color: rgba(6,182,212,0.12); animation-delay: 1s; }
.graphic-circle-3 { width: 380px; height: 380px; border-color: rgba(37,99,235,0.08); animation-delay: 2s; }
.graphic-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: var(--gradient); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 24px; color: #fff;
    box-shadow: 0 10px 40px rgba(37,99,235,0.3);
}
.graphic-node {
    position: absolute; width: 48px; height: 48px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite;
}
.node-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 5%; animation-delay: 1.5s; }
.node-3 { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 3s; }
.node-4 { top: 50%; left: 5%; animation-delay: 4.5s; }

/* ========== SERVICES ========== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 24px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--text); }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ========== HOW IT WORKS ========== */
.steps-container { display: flex; align-items: center; gap: 0; max-width: 900px; margin: 0 auto; }
.step {
    flex: 1; text-align: center; padding: 40px 24px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius); position: relative;
    transition: all 0.3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-number {
    font-family: 'Poppins', sans-serif; font-size: 48px; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 12px; }
.step p { font-size: 14px; color: var(--text-secondary); }
.step-connector { width: 60px; height: 2px; background: var(--border); flex-shrink: 0; }

/* ========== BENEFITS ========== */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.benefit-card {
    text-align: center; padding: 40px 24px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-icon { font-size: 40px; margin-bottom: 16px; }
.benefit-card h3 { font-size: 17px; margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: var(--text-secondary); }

/* ========== WHY NITRO ========== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.why-card {
    padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon { font-size: 32px; margin-bottom: 12px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-secondary); }

/* ========== USE CASES ========== */
.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.use-case-card {
    padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); text-align: center; transition: all 0.3s;
}
.use-case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.use-case-icon { font-size: 40px; margin-bottom: 12px; }
.use-case-card h3 { font-size: 17px; margin-bottom: 8px; }
.use-case-card p { font-size: 14px; color: var(--text-secondary); }

/* ========== ABOUT ========== */
.about-container { max-width: 800px; margin: 0 auto; }
.about-content p { font-size: 17px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: flex; gap: 48px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.about-stat { text-align: center; }
.about-stat-number { display: block; font-family: 'Poppins', sans-serif; font-size: 36px; font-weight: 700; color: var(--primary); }
.about-stat-label { font-size: 14px; color: var(--text-secondary); }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: #f59e0b; font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px; background: var(--gradient); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--text); }
.testimonial-author span { font-size: 13px; color: var(--text-secondary); }

/* ========== CTA SECTION ========== */
.cta-section { background: var(--gradient) !important; padding: 80px 0; }
.cta-content { text-align: center; max-width: 650px; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.cta-content h2 .gradient-text { -webkit-text-fill-color: #fff; }
.cta-content p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 32px; }
.cta-content .btn-primary { background: #fff; color: var(--primary); }
.cta-content .btn-primary:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ========== PRICING ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
    padding: 40px 32px; background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius-lg); text-align: center; position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-featured { border-color: var(--primary); transform: scale(1.05); }
.pricing-featured:hover { transform: scale(1.05) translateY(-4px); }
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 6px 20px; background: var(--gradient); color: #fff; border-radius: 50px;
    font-size: 13px; font-weight: 600;
}
.pricing-header h3 { font-size: 22px; margin-bottom: 12px; }
.price-amount { display: block; font-family: 'Poppins', sans-serif; font-size: 40px; font-weight: 800; color: var(--primary); }
.price-period { font-size: 14px; color: var(--text-secondary); }
.pricing-features { margin: 28px 0; text-align: left; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }

/* ========== FAQ ========== */
.faq-container { max-width: 750px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--bg-card); }
.faq-question {
    width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600;
    color: var(--text); text-align: left; font-family: 'Inter', sans-serif; transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 20px; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ========== CONTACT ========== */
.contact-container { max-width: 700px; margin: 0 auto; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 15px; font-family: 'Inter', sans-serif; transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff; color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }
.form-error { display: block; font-size: 12px; color: #ef4444; margin-top: 4px; min-height: 16px; }
.checkbox-group { display: flex; flex-direction: column; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.captcha-group { max-width: 300px; }
.form-status { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 500; }
.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* ========== FOOTER ========== */
.footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer .nav-logo { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #cbd5e1; transition: all 0.2s; }
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 13px; }

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
    background: var(--gradient); color: #fff; border: none; border-radius: 50%;
    font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden;
    transition: all 0.3s; z-index: 999; box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ========== ANIMATIONS ========== */
@keyframes pulse-ring { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.node-1 { animation-name: float; }
.node-3 { animation-name: float; }

[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].visible { opacity: 1; transform: translate(0, 0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
    .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); }
    .section { padding: 70px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-container { flex-direction: column; gap: 16px; }
    .step-connector { width: 2px; height: 30px; }
    .why-grid { grid-template-columns: 1fr; }
    .use-cases-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-4px); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .about-stats { flex-direction: column; gap: 24px; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}
