/* ============================================
   FlowLab — SaaS Landing Template
   © KodTree — All rights reserved
   ============================================ */

:root {
    --fl-primary: #6366f1;
    --fl-primary-dark: #4f46e5;
    --fl-accent: #8b5cf6;
    --fl-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --fl-gradient-soft: linear-gradient(135deg, #eef2ff 0%, #fae8ff 100%);
    --fl-text: #0f172a;
    --fl-text-muted: #64748b;
    --fl-border: #e2e8f0;
    --fl-bg-alt: #f8fafc;
    --fl-radius: 0.75rem;
    --fl-radius-lg: 1.25rem;
    --fl-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --fl-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --fl-shadow-lg: 0 25px 50px -12px rgba(99, 102, 241, 0.18);
    --bs-body-font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base ───────────────────────────────────── */
* { -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--bs-body-font-family);
    color: var(--fl-text);
    background: #fff;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.text-gradient {
    background: var(--fl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--fl-border);
    box-shadow: var(--fl-shadow-sm);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    background: var(--fl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-link { font-weight: 500; color: var(--fl-text-muted) !important; }
.nav-link:hover, .nav-link.active { color: var(--fl-primary) !important; }

/* ── Buttons ────────────────────────────────── */
.btn { font-weight: 600; padding: 0.625rem 1.25rem; border-radius: var(--fl-radius); transition: all 0.2s ease; }
.btn-primary {
    background: var(--fl-gradient);
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.btn-outline-primary {
    border: 1.5px solid var(--fl-border);
    color: var(--fl-text);
    background: transparent;
}
.btn-outline-primary:hover {
    border-color: var(--fl-primary);
    color: var(--fl-primary);
    background: transparent;
}
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ── Hero ───────────────────────────────────── */
.hero {
    padding: 8rem 0 5rem;
    background: var(--fl-gradient-soft);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
}
.hero__content { position: relative; z-index: 1; }
.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fl-primary);
    margin-bottom: 1.25rem;
}
.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero__subtitle {
    font-size: 1.125rem;
    color: var(--fl-text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__visual {
    position: relative;
    z-index: 1;
    border-radius: var(--fl-radius-lg);
    box-shadow: var(--fl-shadow-lg);
    overflow: hidden;
}
.hero__mockup {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-lg);
    padding: 1.5rem;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hero__mockup-row { display: flex; gap: 0.5rem; align-items: center; }
.hero__mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fl-border); }
.hero__mockup-dot:first-child { background: #ef4444; }
.hero__mockup-dot:nth-child(2) { background: #f59e0b; }
.hero__mockup-dot:nth-child(3) { background: #10b981; }
.hero__mockup-bar {
    height: 0.625rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fl-primary), var(--fl-accent));
    opacity: 0.6;
}
.hero__mockup-bar.short { width: 40%; opacity: 0.3; }
.hero__mockup-bar.mid { width: 65%; opacity: 0.5; }
.hero__mockup-block {
    flex: 1;
    border-radius: var(--fl-radius);
    background: var(--fl-gradient-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
}
.hero__mockup-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: var(--fl-shadow-sm);
}

/* ── Sections ───────────────────────────────── */
section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-label {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    background: var(--fl-gradient-soft);
    color: var(--fl-primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.section-subtitle { color: var(--fl-text-muted); font-size: 1.0625rem; }

/* ── Feature Card ───────────────────────────── */
.feature-card {
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-lg);
    height: 100%;
    transition: all 0.25s ease;
}
.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--fl-shadow);
    transform: translateY(-2px);
}
.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--fl-radius);
    background: var(--fl-gradient-soft);
    color: var(--fl-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card__text { color: var(--fl-text-muted); font-size: 0.9375rem; margin: 0; }

/* ── Stats ──────────────────────────────────── */
.stats { padding: 4rem 0; background: var(--fl-bg-alt); }
.stat-item { text-align: center; }
.stat-item__num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--fl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item__label { color: var(--fl-text-muted); font-size: 0.9375rem; font-weight: 500; }

/* ── Pricing Card ───────────────────────────── */
.pricing-card {
    padding: 2.5rem 2rem;
    background: #fff;
    border: 1.5px solid var(--fl-border);
    border-radius: var(--fl-radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.pricing-card.featured {
    border-color: var(--fl-primary);
    box-shadow: var(--fl-shadow-lg);
    position: relative;
}
.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.875rem;
    background: var(--fl-gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pricing-card__name { font-size: 1rem; font-weight: 600; color: var(--fl-text-muted); margin-bottom: 0.5rem; }
.pricing-card__price { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.pricing-card__per { color: var(--fl-text-muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.pricing-card__features li {
    padding: 0.5rem 0;
    color: var(--fl-text);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.pricing-card__features li::before {
    content: "✓";
    color: var(--fl-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Testimonial ────────────────────────────── */
.testimonial {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-lg);
    height: 100%;
}
.testimonial__quote { font-size: 1rem; color: var(--fl-text); margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial__author { display: flex; align-items: center; gap: 0.875rem; }
.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fl-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.testimonial__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.testimonial__role { color: var(--fl-text-muted); font-size: 0.8125rem; }

/* ── CTA Section ────────────────────────────── */
.cta {
    background: var(--fl-gradient);
    color: #fff;
    border-radius: var(--fl-radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before, .cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.cta::before { width: 200px; height: 200px; top: -80px; left: -80px; }
.cta::after { width: 280px; height: 280px; bottom: -120px; right: -120px; }
.cta > * { position: relative; z-index: 1; }
.cta__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
.cta__text { font-size: 1.0625rem; opacity: 0.92; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta .btn-light { background: #fff; color: var(--fl-primary); border: none; }
.cta .btn-light:hover { transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────── */
.footer {
    padding: 4rem 0 1.5rem;
    background: var(--fl-text);
    color: #cbd5e1;
}
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer a { color: #cbd5e1; text-decoration: none; transition: color 0.15s ease; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { padding: 0.25rem 0; font-size: 0.9375rem; }
.footer__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #94a3b8;
}
.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 0.5rem;
}
.footer__social a:hover { background: var(--fl-primary); }

/* ── Page Hero (sub pages) ──────────────────── */
.page-hero {
    padding: 8rem 0 4rem;
    background: var(--fl-gradient-soft);
    text-align: center;
}
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero__subtitle { color: var(--fl-text-muted); font-size: 1.0625rem; }

/* ── Contact Form ───────────────────────────── */
.form-control, .form-select {
    border-radius: var(--fl-radius);
    border: 1.5px solid var(--fl-border);
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--fl-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-label { font-weight: 500; font-size: 0.9375rem; margin-bottom: 0.375rem; }

/* ── 404 Page ───────────────────────────────── */
.error-page {
    padding: 8rem 0 5rem;
    text-align: center;
}
.error-page__code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: var(--fl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 991.98px) {
    .hero { padding: 6rem 0 4rem; }
    section { padding: 4rem 0; }
    .cta { padding: 3rem 1.5rem; }
}
