/* Base Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji; line-height: 1.5; background: var(--bg); color: var(--text); opacity: 0; transition: opacity .35s ease; }
body.mounted { opacity: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Theme Tokens */
.root, :root {
    --bg: #07080c;
    --bg-elev: rgba(15, 17, 25, 0.6);
    --text: #e9f2ff;
    --muted: #9fb3c8;
    --primary: #6bf3ff; /* neon cyan */
    --primary-strong: #1fd0ff;
    --ring: rgba(31, 208, 255, 0.45);
    --card: rgba(12,14,20,0.55);
    --border: rgba(120, 200, 255, 0.18);
    --accent: #8b7cfa; /* violet */
    --success: #22ff9a;
    --warning: #ffd166;
    --danger: #ff6b6b;
    --shadow: 0 30px 60px rgba(4,8,22,0.65);
}

.light {
    --bg: #f6f9ff;
    --bg-elev: rgba(255,255,255,0.7);
    --text: #0b1828;
    --muted: #44576b;
    --primary: #0066ff;
    --primary-strong: #0050cc;
    --ring: rgba(0, 102, 255, 0.28);
    --card: rgba(255,255,255,0.75);
    --border: rgba(0, 60, 130, 0.12);
    --accent: #6a4dff;
}

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 32px; 
    align-items: stretch;
}
/* Mobile and Tablet Responsive Design */
@media (max-width: 1200px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) { 
    .grid-3 { grid-template-columns: 1fr; } 
    .grid-2 { grid-template-columns: 1fr; }
    
    /* Header navigation mobile */
    header .container {
        flex-direction: row;
        gap: 16px;
        padding: 16px 0;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: var(--shadow);
    }
    
    header nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    header nav a {
        font-size: 0.9rem;
        padding: 12px 16px;
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    header nav a:hover {
        background: var(--primary);
        color: white;
    }
    
    /* Logo mobile sizing */
    .brand-logo {
        width: 120px;
        height: 38px;
    }
}
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 20px; top: 20px; width: auto; height: auto; background: var(--bg-elev); color: var(--text); padding: 10px 14px; border-radius: 8px; outline: 2px solid var(--primary); }

/* Header/Footer/Global injected by JS */
header, footer { background: transparent; }
/* Brand logo handling */
.brand { display:inline-flex; gap:10px; align-items:center; font-weight:800; letter-spacing:-0.02em; }
.brand-logo { width: 150px; height: 48px; display: inline-block; }
.brand-wordmark { display:none; height: 20px; }
.brand-logo.light-only { display: none; }
.brand-logo.dark-only { display: inline-block; }
.light .brand-logo.dark-only { display: none; }
.light .brand-logo.light-only { display: inline-block; }
@media (min-width: 840px) { .brand-wordmark { display:inline-block; } }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; isolation: isolate; }
.bg-canvas { 
    position: absolute; 
    inset: 0; 
    z-index: -1; 
    overflow: hidden; 
    min-height: 100%;
    /* Improve rendering quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Prevent rendering artifacts */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Smooth scaling */
    transform-origin: center center;
}
/* Futuristic animated aurora fallback (CSS-only) */
.bg-canvas::before,
.bg-canvas::after { content: ""; position: absolute; inset: -20%; pointer-events: none; }
.bg-canvas::before {
    background: conic-gradient(from 0deg at 50% 50%, rgba(31,208,255,0.35), rgba(138,80,255,0.28), rgba(31,208,255,0.35));
    filter: blur(60px) saturate(140%);
    animation: aurora-rotate 18s linear infinite;
}
.bg-canvas::after {
    background-image:
      radial-gradient(ellipse at 20% 0%, rgba(107,243,255,0.28), transparent 55%),
      radial-gradient(ellipse at 80% 100%, rgba(167,139,250,0.22), transparent 50%),
      linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
    mix-blend-mode: screen;
    opacity: .7;
    animation: aurora-drift 24s ease-in-out infinite alternate;
}
@keyframes aurora-rotate { to { transform: rotate(360deg) scale(1.1); } }
@keyframes aurora-drift { 0% { transform: translateY(-2%) scale(1.02); } 100% { transform: translateY(2%) scale(1.06); } }
.hero-content { 
    padding: 80px 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    min-height: 100vh; 
    position: relative; 
    z-index: 2; 
}
.display { 
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); 
    letter-spacing: -0.03em; 
    font-weight: 800; 
    margin: 0 0 24px; 
    background: linear-gradient(135deg, var(--text), var(--primary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    animation: fadeInUp 0.8s ease-out; 
}
.lead { 
    font-size: clamp(1.1rem, 1.2vw + 1rem, 1.4rem); 
    color: var(--muted); 
    max-width: 65ch; 
    line-height: 1.6; 
    margin-bottom: 32px; 
    animation: fadeInUp 0.8s ease-out 0.2s both; 
}
.cta-row { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 24px; 
    align-items: center; 
    flex-wrap: wrap; 
    justify-content: center; 
    animation: fadeInUp 0.8s ease-out 0.4s both; 
}
.micro-proof { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    color: var(--muted); 
    font-size: 0.9rem; 
    animation: fadeInUp 0.8s ease-out 0.6s both; 
}
.badge { 
    display: inline-flex; 
    align-items: center; 
    padding: 6px 12px; 
    border: 1px solid var(--border); 
    border-radius: 999px; 
    background: var(--bg-elev); 
    font-size: 0.8rem; 
    font-weight: 500; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
}
.divider { opacity: 0.6; }

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 12px 20px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); 
    color: var(--text); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.04); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    font-weight: 600; 
    text-decoration: none; 
}
.btn:hover { 
    transform: translateY(-2px) scale(1.02); 
    border-color: var(--primary); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(31, 208, 255, 0.2); 
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); 
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: #03121a; 
    border: none; 
    box-shadow: 0 15px 35px rgba(31, 208, 255, 0.3), inset 0 0 0 1px rgba(255,255,255,0.1); 
}
.btn-primary:hover { 
    filter: brightness(1.1) saturate(1.1); 
    box-shadow: 0 25px 50px rgba(31, 208, 255, 0.4), 0 0 30px rgba(31, 208, 255, 0.3); 
}
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-lg { 
    padding: 16px 24px; 
    font-weight: 700; 
    font-size: 1.1rem; 
}

/* Cards and sections */
.features { 
    padding: 80px 0; 
    position: relative; 
    z-index: 2; 
}
.card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 24px; 
    box-shadow: var(--shadow); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative; 
    overflow: hidden; 
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover::before {
    opacity: 1;
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 20px rgba(31, 208, 255, 0.1); 
    border-color: var(--primary); 
}
.card h3 { 
    margin-top: 0; 
    margin-bottom: 12px; 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--text); 
}
.card p { 
    color: var(--muted); 
    line-height: 1.6; 
    margin-bottom: 16px; 
}

.cta-band { 
    position: relative; 
    padding: 80px 0; 
    background: linear-gradient(135deg, rgba(31, 208, 255, 0.05), rgba(139, 124, 250, 0.05)); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
}
.band { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 24px; 
}
.band-title { 
    margin: 0; 
    font-size: 1.8rem; 
    font-weight: 700; 
    background: linear-gradient(135deg, var(--text), var(--primary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
@media (max-width: 700px) { .band { flex-direction: column; text-align: center; } }

/* Footer spacing */
footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 60px; }

/* Accessibility controls */
.accessibility-controls { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 50; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); }
.icon-button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Background canvas container ensures no CLS */
.bg-canvas { 
    min-height: 60vh;
    /* Additional quality improvements */
    contain: layout style paint;
    isolation: isolate;
}

/* Reduced motion considerations */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    body { transition: none !important; opacity: 1 !important; }
}

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; display: none; gap: 12px; align-items: center; justify-content: space-between; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); z-index: 60; }
.cookie-banner.show { display: flex; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-outline { background: transparent; border: 1px solid var(--border); }

/* Motion hint */
.motion-hint { position: fixed; right: 16px; bottom: 76px; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow); display: none; z-index: 55; }
.motion-hint.show { display: block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal, .revealed { opacity: 1; transform: none; transition: none; }
}

/* Welcome animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced grid spacing */
.grid-3 { gap: 32px; }

/* Form enhancements */
input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    padding: 12px 16px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
    transform: translateY(-1px);
}

/* Pricing specific styles */
.pricing-badge { 
    position: absolute; 
    top: -8px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: #03121a; 
    padding: 4px 12px; 
    border-radius: 999px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    white-space: nowrap; 
}

.price { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin: 16px 0; 
    color: var(--text); 
}
.price span { 
    font-size: 1rem; 
    color: var(--muted); 
    font-weight: 500; 
}

.commitment { 
    color: var(--muted); 
    font-size: 0.9rem; 
    margin-bottom: 16px; 
    font-weight: 500; 
}

.features-list { 
    list-style: none; 
    padding: 0; 
    margin: 20px 0; 
    flex-grow: 1; 
}
.features-list li { 
    padding: 8px 0; 
    color: var(--muted); 
    position: relative; 
    padding-left: 20px; 
}
.features-list li::before { 
    content: "✓"; 
    position: absolute; 
    left: 0; 
    color: var(--primary); 
    font-weight: bold; 
}

.pricing-card { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    align-items: stretch;
    justify-content: space-between;
}
.pricing-card .btn { 
    margin-top: auto; 
    width: 100%; 
    align-self: flex-end;
}

.pricing-card.featured { 
    border: 2px solid var(--primary); 
    box-shadow: 0 25px 50px rgba(31, 208, 255, 0.15); 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 32px; 
    align-items: stretch;
}
@media (max-width: 900px) { 
    .grid-2 { grid-template-columns: 1fr; } 
}

.section-header { 
    text-align: center; 
    margin-bottom: 40px; 
}
.section-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 12px; 
    background: linear-gradient(135deg, var(--text), var(--primary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
.section-header p { 
    font-size: 1.2rem; 
    color: var(--muted); 
    max-width: 65ch; 
    margin: 0 auto; 
}

.hero-subtitle { 
    font-size: 1rem; 
    color: var(--muted); 
    max-width: 60ch; 
    margin: 0 auto; 
    animation: fadeInUp 0.8s ease-out 0.4s both; 
}

/* Services specific styles */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minimum(300px, 1fr)); 
    gap: 32px; 
}
@media (max-width: 768px) { 
    .services-grid { grid-template-columns: 1fr; } 
    
    /* Service cards mobile */
    .service-card {
        margin-bottom: 24px;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .service-features {
        margin-bottom: 20px;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    /* Typography mobile */
    .display {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }
    
    .lead {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    h1, h2, h3 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    
    /* Container mobile */
    .container {
        padding: 0 16px;
    }
    
    /* Cards mobile */
    .card {
        padding: 20px;
        margin: 16px 0;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin: 8px 0;
    }
    
    .btn-lg {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    /* Hero mobile */
    .hero {
        padding: 40px 0;
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px;
    }
    
    /* Footer mobile */
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    footer nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    footer nav a {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

.service-card { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    position: relative; 
}
.service-icon { 
    font-size: 2.5rem; 
    margin-bottom: 16px; 
    display: block; 
}
.service-description { 
    color: var(--muted); 
    font-size: 1rem; 
    margin-bottom: 20px; 
    flex-grow: 0; 
}
.service-features { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 24px 0; 
    flex-grow: 1; 
}
.service-features li { 
    padding: 8px 0; 
    color: var(--muted); 
    position: relative; 
    padding-left: 20px; 
    font-size: 0.95rem; 
}
.service-features li::before { 
    content: "✓"; 
    position: absolute; 
    left: 0; 
    color: var(--primary); 
    font-weight: bold; 
}
.service-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    padding: 12px 0; 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}
.delivery-time { 
    color: var(--muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
}
.starting-price { 
    color: var(--primary); 
    font-size: 0.9rem; 
    font-weight: 600; 
}

/* Process section styles */
.process-section {
    width: 100%;
    margin: 0;
}

.process-grid { 
    display: grid; 
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: 32px; 
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 900px) { 
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}
@media (max-width: 600px) { 
    .process-grid { grid-template-columns: 1fr; } 
}
.process-step { 
    text-align: center; 
    padding: 24px 16px; 
}
.step-number { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: #03121a; 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
}
.process-step h3 { 
    margin: 0 0 12px; 
    font-size: 1.3rem; 
    font-weight: 700; 
}
.process-step p { 
    color: var(--muted); 
    margin: 0; 
    line-height: 1.6;
}

.process-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Case studies section alignment */
.case-studies-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog section alignment */
.post-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing section alignment */
.pricing-section .grid-3 {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer responsive design */
@media (max-width: 768px) {
    footer .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    footer .container > div:first-child > div:last-child {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 600px) {
    footer .container > div:first-child > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    footer .container > div:first-child > div:first-child > div:last-child {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
}

/* Case Studies specific styles */
.featured-case-study { 
    margin-bottom: 60px; 
    padding: 40px; 
}
.case-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 32px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid var(--border); 
}
@media (max-width: 768px) { 
    .case-header { flex-direction: column; gap: 20px; } 
}
.client-info h3 { 
    margin: 0 0 8px; 
    font-size: 1.8rem; 
}
.client-industry { 
    color: var(--muted); 
    margin: 0; 
}
.case-metrics { 
    display: flex; 
    gap: 32px; 
}
.metric { 
    text-align: center; 
}
.metric-number { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--primary); 
    line-height: 1; 
}
.metric-label { 
    display: block; 
    font-size: 0.9rem; 
    color: var(--muted); 
    margin-top: 4px; 
}
.case-content { 
    display: grid; 
    gap: 32px; 
}
.case-section h4 { 
    margin: 0 0 16px; 
    font-size: 1.4rem; 
    font-weight: 700; 
}
.strategy-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.strategy-list li { 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.strategy-list strong { 
    color: var(--primary); 
}
.results-highlights { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 24px; 
    margin: 24px 0; 
}
.highlight { 
    text-align: center; 
    padding: 20px; 
    background: rgba(31, 208, 255, 0.05); 
    border-radius: 12px; 
    border: 1px solid rgba(31, 208, 255, 0.1); 
}
.highlight-number { 
    display: block; 
    font-size: 2rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin-bottom: 8px; 
}
.highlight-text { 
    color: var(--muted); 
    font-size: 0.95rem; 
}
.testimonial { 
    background: var(--bg-elev); 
    padding: 24px; 
    border-radius: 12px; 
    border-left: 4px solid var(--primary); 
    margin: 24px 0; 
    font-style: italic; 
}
.testimonial cite { 
    display: block; 
    margin-top: 12px; 
    font-style: normal; 
    color: var(--muted); 
    font-weight: 600; 
}

.case-studies-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px; 
}
.case-study-card { 
    padding: 24px; 
    transition: transform 0.3s ease; 
}
.case-study-card:hover { 
    transform: translateY(-4px); 
}
.case-thumbnail { 
    height: 120px; 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    border-radius: 12px; 
    margin-bottom: 16px; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.industry-badge { 
    background: rgba(255,255,255,0.15); 
    backdrop-filter: blur(10px); 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    color: white; 
}
.case-summary h3 { 
    margin: 0 0 8px; 
    font-size: 1.3rem; 
}
.case-metrics-small { 
    display: flex; 
    gap: 12px; 
    margin: 12px 0; 
    flex-wrap: wrap; 
}
.metric-small { 
    background: rgba(31, 208, 255, 0.1); 
    color: var(--primary); 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 600; 
}
.case-services { 
    display: flex; 
    gap: 8px; 
    margin-top: 12px; 
    flex-wrap: wrap; 
}
.service-tag { 
    background: var(--bg-elev); 
    border: 1px solid var(--border); 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    color: var(--muted); 
}

.methodology-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 32px; 
}
.methodology-step ul { 
    list-style: none; 
    padding: 0; 
    margin: 16px 0 0; 
}
.methodology-step li { 
    padding: 4px 0; 
    color: var(--muted); 
    position: relative; 
    padding-left: 16px; 
}
.methodology-step li::before { 
    content: "•"; 
    position: absolute; 
    left: 0; 
    color: var(--primary); 
}

/* Blog specific styles */
.blog-header { 
    text-align: center; 
    margin-bottom: 60px; 
}
.featured-post { 
    grid-column: 1 / -1; 
    margin-bottom: 40px; 
    padding: 32px; 
    background: linear-gradient(135deg, rgba(31, 208, 255, 0.05), rgba(139, 124, 250, 0.05)); 
    border-radius: 16px; 
    border: 1px solid rgba(31, 208, 255, 0.1); 
}
.post-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px; 
}
.blog-card { 
    padding: 24px; 
    transition: transform 0.3s ease; 
}
.blog-card:hover { 
    transform: translateY(-4px); 
}
.blog-categories { 
    display: flex; 
    gap: 12px; 
    margin: 32px 0; 
    flex-wrap: wrap; 
    justify-content: center; 
}
.category-filter { 
    background: var(--bg-elev); 
    border: 1px solid var(--border); 
    padding: 8px 16px; 
    border-radius: 20px; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}
.category-filter:hover, .category-filter.active { 
    background: var(--primary); 
    color: #03121a; 
    border-color: var(--primary); 
}
.post-meta { 
    display: flex; 
    gap: 16px; 
    margin: 16px 0; 
    font-size: 0.9rem; 
    color: var(--muted); 
    flex-wrap: wrap; 
}
.reading-time { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}
.author-info { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.newsletter-signup { 
    background: linear-gradient(135deg, rgba(31, 208, 255, 0.05), rgba(139, 124, 250, 0.05)); 
    padding: 40px; 
    border-radius: 20px; 
    margin: 60px 0; 
    text-align: center; 
    border: 1px solid rgba(31, 208, 255, 0.1); 
}
.newsletter-form { 
    display: flex; 
    gap: 12px; 
    max-width: 400px; 
    margin: 20px auto 0; 
}
.newsletter-form input { 
    flex: 1; 
    margin: 0; 
}
/* Tablet specific optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 24px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .brand-logo {
        width: 130px;
        height: 42px;
    }
    
    header nav a {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

/* Small mobile devices */
@media (max-width: 600px) { 
    .newsletter-form { flex-direction: column; } 
    
    /* Extra small mobile */
    .container {
        padding: 0 12px;
    }
    
    .card {
        padding: 16px;
        margin: 12px 0;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .brand-logo {
        width: 100px;
        height: 32px;
    }
    
    header nav {
        gap: 8px;
    }
    
    header nav a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .hero {
        min-height: 60vh;
        padding: 30px 0;
    }
    
    .hero-content {
        padding: 16px;
    }
    
    /* Typography extra small */
    .display {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .lead {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
}


