/* ========================================
   BitBlox — Main Stylesheet
   Color palette derived from logo gradient:
   Green (#34D399) → Teal (#2BB8A4) → Blue (#2563EB)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
    --color-green: #34D399;
    --color-teal: #2BB8A4;
    --color-blue: #2563EB;
    --color-blue-dark: #1D4ED8;

    --gradient-brand: linear-gradient(135deg, #34D399 0%, #2BB8A4 40%, #2563EB 100%);
    --gradient-brand-hover: linear-gradient(135deg, #2CC78D 0%, #25A696 40%, #1D4ED8 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(52,211,153,0.08) 0%, rgba(37,99,235,0.08) 100%);

    --color-dark: #0F172A;
    --color-dark-soft: #1E293B;
    --color-gray-900: #111827;
    --color-gray-800: #1F2937;
    --color-gray-700: #374151;
    --color-gray-600: #4B5563;
    --color-gray-500: #6B7280;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;
    --color-gray-200: #E5E7EB;
    --color-gray-100: #F3F4F6;
    --color-gray-50: #F9FAFB;
    --color-white: #FFFFFF;

    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;

    /* Shorthand aliases for convenience */
    --primary: #2563EB;
    --accent: #34D399;
    --dark: #0F172A;
    --white: #FFFFFF;
    --text: #111827;
    --text-light: #6B7280;
    --border: #E5E7EB;

    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --max-width: 1200px;
    --header-height: 72px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-primary); font-size: 16px; line-height: 1.7; color: var(--color-gray-700); background: var(--color-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { color: var(--color-dark); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; }
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.header.scrolled {
    border-bottom-color: var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo { display: flex; align-items: center; gap: 0; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: var(--transition-fast);
}
.nav a:hover, .nav a.active {
    color: var(--color-dark);
    background: var(--color-gray-100);
}
.nav-cta {
    margin-left: 8px;
    padding: 8px 20px !important;
    background: var(--gradient-brand) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
}
.nav-cta:hover {
    opacity: 0.9;
    background: var(--gradient-brand-hover) !important;
    transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--color-gray-100); }

@media (max-width: 768px) {
    .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    .nav.open { transform: translateX(0); box-shadow: -4px 0 24px rgba(0,0,0,0.1); }
    .nav a { padding: 14px 16px; font-size: 1rem; width: 100%; border-radius: 8px; }
    .nav a:hover, .nav a.active { background: var(--color-gray-100); }
    .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 12px; }
}

/* ── Hero ── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: var(--color-white);
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52,211,153,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-blue);
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-green);
    border-radius: 50%;
}
.hero h1 { margin-bottom: 20px; }
.hero p {
    font-size: 1.15rem;
    color: var(--color-gray-500);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    line-height: 1;
}
.btn-primary {
    background: var(--gradient-brand);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border: 1.5px solid var(--color-gray-300);
}
.btn-outline:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: rgba(37,99,235,0.04);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Section Headers ── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-blue);
    margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--color-gray-500); font-size: 1.05rem; }

/* ── Features / Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    color: var(--color-blue);
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--color-gray-500); font-size: 0.92rem; margin-bottom: 0; line-height: 1.7; }

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.service-card:hover {
    border-color: rgba(37,99,235,0.18);
    box-shadow: 0 12px 40px rgba(37,99,235,.08), 0 4px 12px rgba(0,0,0,.04);
    transform: translateY(-6px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: white;
    margin-bottom: 20px;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(37,99,235,.25);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card .service-desc { color: var(--color-gray-500); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.service-features { border-top: 1px solid var(--color-gray-100); padding-top: 16px; margin-bottom: 20px; }
.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-gray-600);
    padding: 4px 0;
}
.service-features li svg { color: var(--color-green); flex-shrink: 0; }
.service-price {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-100);
}
.service-price strong { color: var(--color-dark); font-weight: 700; }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About / Stats ── */
.about-content { max-width: 720px; }
.about-content p { font-size: 1.05rem; color: var(--color-gray-600); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.stat-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--gradient-subtle);
    border: 1px solid rgba(37,99,235,0.08);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label { font-size: 0.9rem; color: var(--color-gray-500); font-weight: 500; }

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── Blog ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, border-color .35s ease;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: rgba(37,99,235,0.15);
    box-shadow: 0 12px 40px rgba(37,99,235,.07), 0 4px 12px rgba(0,0,0,.04);
    transform: translateY(-6px);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-subtle);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover .blog-card-image { transform: scale(1.04); }
.blog-card-img-wrap { overflow: hidden; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.blog-card-date { font-size: 0.78rem; color: var(--color-gray-400); }
.blog-card-readtime { font-size: 0.72rem; color: var(--color-gray-400); background: var(--color-gray-100); padding: 2px 8px; border-radius: 4px; }
.blog-card-body h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body h3 a:hover { color: var(--color-blue); }
.blog-card-body p { font-size: 0.86rem; color: var(--color-gray-500); margin-bottom: 16px; flex: 1; }
.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .25s ease;
}
.blog-card-link:hover { gap: 8px; }
.blog-card-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.blog-card:hover .blog-card-link svg { transform: translateX(3px); }

.blog-post-content { max-width: 740px; margin: 0 auto; }
.blog-post-content h1 { margin-bottom: 16px; }
.blog-post-meta { color: var(--color-gray-400); font-size: 0.9rem; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--color-gray-200); }
.blog-post-body { font-size: 1.05rem; line-height: 1.9; }
.blog-post-body p { margin-bottom: 1.5rem; }
.blog-post-body h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.blog-post-body h3 { margin: 2rem 0 0.8rem; }
.blog-post-body ul, .blog-post-body ol { margin: 1rem 0; padding-left: 1.5rem; list-style: disc; }
.blog-post-body li { margin-bottom: 0.5rem; }
.blog-post-body img { border-radius: var(--radius-md); margin: 1.5rem 0; height: auto; display: block; }
.blog-post-body blockquote {
    border-left: 3px solid var(--color-blue);
    padding: 16px 20px;
    margin: 1.5rem 0;
    background: var(--color-gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-gray-600);
    font-style: italic;
}
.blog-post-body code {
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.88em;
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── No image placeholder ── */
.no-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-300);
}

/* ── Contact ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    color: var(--color-blue);
    flex-shrink: 0;
}
.contact-item-text h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-item-text p { font-size: 0.9rem; color: var(--color-gray-500); margin-bottom: 0; }
.contact-item-text a { color: var(--color-blue); }
.contact-item-text a:hover { text-decoration: underline; }

.contact-form {
    background: var(--color-gray-50);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 0.92rem;
    transition: var(--transition-fast);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Alert Messages ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: rgba(16,185,129,0.1); color: #065F46; border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: #991B1B; border: 1px solid rgba(239,68,68,0.2); }

/* ── Page Header ── */
.page-header {
    padding: calc(var(--header-height) + 48px) 0 48px;
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--color-gray-500); font-size: 1.05rem; margin-bottom: 0; max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.82rem; color: var(--color-gray-400); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-gray-400); }
.breadcrumb a:hover { color: var(--color-blue); }

/* ── CTA Section ── */
.cta-section {
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0.08;
}
.cta-inner {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-inner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-inner p { color: var(--color-gray-400); margin-bottom: 32px; font-size: 1.05rem; }

/* ── Footer ── */
.footer {
    background: var(--color-dark);
    color: var(--color-gray-400);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; margin-top: 16px; line-height: 1.7; max-width: 300px; }
.footer-brand .logo img { filter: brightness(0) invert(1); height: 28px; }
.footer h4 { color: var(--color-white); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.88rem; color: var(--color-gray-400); transition: var(--transition-fast); }
.footer ul a:hover { color: var(--color-white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--color-gray-400);
    transition: var(--transition-fast);
}
.footer-social a:hover { background: var(--color-blue); color: var(--color-white); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .hero { min-height: auto; padding-top: calc(var(--header-height) + 40px); padding-bottom: 60px; }
    .section { padding: 64px 0; }
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-left { opacity: 0; transform: translateX(-24px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(24px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(.92); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger delays for grid items */
.fade-up:nth-child(1) { transition-delay: 0ms; }
.fade-up:nth-child(2) { transition-delay: 100ms; }
.fade-up:nth-child(3) { transition-delay: 200ms; }
.fade-up:nth-child(4) { transition-delay: 280ms; }
.fade-up:nth-child(5) { transition-delay: 360ms; }
.fade-up:nth-child(6) { transition-delay: 440ms; }
.fade-up:nth-child(7) { transition-delay: 500ms; }
.fade-up:nth-child(8) { transition-delay: 560ms; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ── Misc ── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--color-gray-400);
}
.empty-state svg { margin-bottom: 16px; color: var(--color-gray-300); }
.empty-state p { font-size: 0.95rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    margin-bottom: 32px;
}
.back-link:hover { color: var(--color-blue); }

/* ═══════════════════════════════════════
   FAQ Accordion
   ═══════════════════════════════════════ */
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.faq-cat { padding: 8px 18px; border: 1px solid var(--border); background: var(--white); border-radius: 24px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-light); transition: all .2s; }
.faq-cat:hover { border-color: var(--color-blue); color: var(--color-blue); background: rgba(37,99,235,.04); }
.faq-cat.active { background: var(--color-blue); color: #fff; border-color: var(--color-blue); box-shadow: 0 2px 8px rgba(37,99,235,.25); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); transition: box-shadow .2s; }
.faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 20px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; gap: 12px; }
.faq-chevron { flex-shrink: 0; transition: transform .3s; color: var(--text-light); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 20px 18px; color: var(--text-light); font-size: 14px; line-height: 1.7; }
.faq-cta { text-align: center; margin-top: 40px; padding: 28px; background: linear-gradient(135deg, rgba(52,211,153,.06), rgba(37,99,235,.06)); border-radius: 16px; }
.faq-cta p { margin-bottom: 16px; color: var(--text-light); }

/* ═══════════════════════════════════════
   Cookie Banner
   ═══════════════════════════════════════ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #0F172A; padding: 0; animation: slideUp .4s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text strong { color: #FFFFFF; font-size: 14px; display: block; margin-bottom: 4px; }
.cookie-text p { color: #CBD5E1; font-size: 13px; margin: 0; line-height: 1.5; }
.cookie-text a { color: #34D399; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn-outline { border-color: rgba(255,255,255,.3); color: #FFFFFF; }
.cookie-actions .btn-outline:hover { border-color: #FFFFFF; background: rgba(255,255,255,.1); }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; text-align: center; } .cookie-actions { width: 100%; justify-content: center; } }

/* ═══════════════════════════════════════
   Back to Top
   ═══════════════════════════════════════ */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: #2563EB; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); transition: all .3s; z-index: 90; box-shadow: 0 4px 16px rgba(37,99,235,.3); }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(37,99,235,.4); }

/* ═══════════════════════════════════════
   Legal Pages
   ═══════════════════════════════════════ */
.legal-content h2 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 14px; font-size: 14px; }
.legal-content strong { color: var(--text); }

.footer-legal { display: flex; gap: 24px; justify-content: center; padding: 16px 0; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal a { color: rgba(255,255,255,.5); font-size: 13px; transition: color .2s; }
.footer-legal a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   Skeleton Loader
   ═══════════════════════════════════════ */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 12px; }
.skeleton-img { height: 200px; margin-bottom: 16px; }

/* ═══════════════════════════════════════
   Stats Counter Section
   ═══════════════════════════════════════ */
.stats-section { background: var(--color-dark); position: relative; overflow: hidden; padding: 28px 0; margin: 0; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: var(--gradient-brand); opacity: 0.07; }
.stats-section .container { padding-top: 0; padding-bottom: 0; }
.stats-section .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; margin: 0; padding: 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 4px; }
.stat-label { color: var(--color-gray-400); font-size: 0.85rem; font-weight: 500; }
.stat-divider { width: 1px; background: rgba(255,255,255,.1); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ═══════════════════════════════════════
   Process / How We Work
   ═══════════════════════════════════════ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-card { position: relative; padding: 32px 24px; text-align: center; }
.process-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-brand); color: var(--color-white); font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(37,99,235,.25); }
.process-card h3 { font-size: 1rem; margin-bottom: 8px; }
.process-card p { color: var(--color-gray-500); font-size: 0.88rem; line-height: 1.6; }
.process-connector { display: none; }
@media (min-width: 769px) {
    .process-connector { display: block; position: absolute; top: 55px; right: -16px; width: 32px; height: 2px; background: var(--color-gray-200); }
    .process-connector::after { content: ''; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-top: 2px solid var(--color-gray-300); border-right: 2px solid var(--color-gray-300); transform: rotate(45deg); }
    .process-card:last-child .process-connector { display: none; }
}
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   Trust / Social Proof
   ═══════════════════════════════════════ */
.trust-badges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; padding: 24px 0; }
.trust-badge { display: flex; align-items: center; gap: 10px; color: var(--color-gray-500); font-size: 0.88rem; font-weight: 500; }
.trust-badge svg { color: var(--color-green); }

/* ═══════════════════════════════════════
   Tech Stack Marquee
   ═══════════════════════════════════════ */
.tech-marquee { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--color-gray-200); border-bottom: 1px solid var(--color-gray-200); }
.tech-marquee-inner { display: flex; gap: 48px; animation: marquee 30s linear infinite; width: max-content; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.tech-item { font-size: 0.85rem; font-weight: 600; color: var(--color-gray-400); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.tech-item svg { opacity: .5; }

/* ═══════════════════════════════════════
   Floating Shapes (Hero Enhancement)
   ═══════════════════════════════════════ */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; opacity: 0.06; }
.hero-shape-1 { width: 400px; height: 400px; background: var(--color-blue); top: -100px; right: -80px; animation: floatShape 8s ease-in-out infinite; }
.hero-shape-2 { width: 300px; height: 300px; background: var(--color-green); bottom: -50px; left: -60px; animation: floatShape 10s ease-in-out infinite reverse; }
.hero-shape-3 { width: 150px; height: 150px; background: var(--color-teal); top: 30%; right: 20%; animation: floatShape 6s ease-in-out infinite 1s; }
@keyframes floatShape { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -30px) scale(1.05); } }

/* ═══════════════════════════════════════
   Gradient Text Utility
   ═══════════════════════════════════════ */
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ═══════════════════════════════════════
   Card Hover Glow Effect
   ═══════════════════════════════════════ */
.glow-hover { position: relative; overflow: hidden; }
.glow-hover::before { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent); transform: skewX(-25deg); transition: left .5s; }
.glow-hover:hover::before { left: 125%; }

/* ═══════════════════════════════════════
   Enhanced Page Header with gradient
   ═══════════════════════════════════════ */
.page-header { background: linear-gradient(135deg, var(--color-gray-50) 0%, rgba(37,99,235,.03) 100%); }

/* ═══════════════════════════════════════
   Pulse animation for badges
   ═══════════════════════════════════════ */
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.hero-badge::before { animation: pulse 1.5s ease-in-out infinite; }

/* ═══════════════════════════════════════
   Hero SVG Animations
   ═══════════════════════════════════════ */
.hero-svg-float { animation: svgFloat 6s ease-in-out infinite; transform-origin: center; }
@keyframes svgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-svg-orbit { animation: svgOrbit 5s ease-in-out infinite; }
@keyframes svgOrbit { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -12px); } }
.hero-svg-orbit2 { animation: svgOrbit2 7s ease-in-out infinite; }
@keyframes svgOrbit2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 8px); } }
.hero-svg-orbit3 { animation: svgOrbit3 6s ease-in-out infinite 0.5s; }
@keyframes svgOrbit3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -10px); } }
.hero-svg-cursor { animation: svgCursor 4s ease-in-out infinite; }
@keyframes svgCursor { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-20px, 10px); } 50% { transform: translate(-40px, -5px); } 75% { transform: translate(-10px, -15px); } }

@media (max-width: 768px) {
    .hero .container > div[style*="grid"] { grid-template-columns: 1fr !important; gap: 24px !important; }
    .hero-illustration { max-width: 320px; margin: 0 auto; }
    .hero-illustration svg { max-width: 320px; }
}

.content-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.content-sidebar-wide { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }

@media (max-width: 900px) {
    .content-sidebar, .content-sidebar-wide, .portal-grid { grid-template-columns: 1fr !important; gap: 24px; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .page-header { padding: 80px 0 32px; }
    .page-header h1 { font-size: 1.6rem; }

    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.75rem; }

    .blog-grid { grid-template-columns: 1fr !important; }
    .blog-card-image { height: 180px; }

    .services-grid { grid-template-columns: 1fr !important; }

    .process-grid { grid-template-columns: 1fr 1fr; }

    .feature-icon { width: 40px !important; height: 40px !important; }

    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .btn + .btn { margin-left: 0; }
    .btn-group, [style*="display:flex"][style*="gap:8px"] { flex-wrap: wrap; }

    .form-row { grid-template-columns: 1fr !important; }
    .trust-badges { gap: 8px; font-size: 0.75rem; }
    .trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

    .legal-content h2 { font-size: 1.2rem; }
    .legal-content h3 { font-size: 1rem; }
    .legal-content { font-size: 0.92rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats-section .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .process-grid { grid-template-columns: 1fr; }
    .hero h1, h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
}
