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

:root {
    --navy: #0f172a;
    --blue: #3b82f6;
    --blue-hover: #2563eb;
    --violet: #8b5cf6;
    --sky: #f0f9ff;
    --line: #e2e8f0;
    --text: #334155;
    --text-dark: #0f172a;
    --muted: #64748b;
    --white: #ffffff;
    --soft: #f8fafc;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.18);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
i { line-height: 1; }

/* Background Blobs for Glassmorphism effect */
.bg-blob-1, .bg-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}
.bg-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--sky);
    top: -100px;
    left: -100px;
}
.bg-blob-2 {
    width: 300px;
    height: 300px;
    background: #ede9fe;
    top: 20%;
    right: -50px;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 10px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 clamp(16px, 5vw, 60px);
    padding: 12px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glass);
    transition: all 0.3s ease;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-dark);
}
.brand span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 100px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.site-nav a:hover { 
    color: var(--blue); 
    background: rgba(59, 130, 246, 0.08); 
}
.nav-toggle { display: none; }

/* Sections */
.section { 
    position: relative;
    padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px); 
}
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    padding-top: clamp(100px, 12vw, 160px);
}
.hero-copy { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 14px;
    color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
h1, h2, h3 { 
    color: var(--text-dark);
    letter-spacing: -0.02em; 
}
.hero h1, .case-hero h1 {
    margin: 0;
    font-size: clamp(44px, 5.5vw, 80px);
    line-height: 1.1;
    font-weight: 800;
}
.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-copy > p:not(.eyebrow), .case-hero p {
    max-width: 600px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 10px;
    border: none;
}
.btn:hover { 
    transform: translateY(-3px); 
}
.btn.primary { 
    color: var(--white); 
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.btn.primary:hover {
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}
.btn.ghost { 
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.btn.ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--shadow-md);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--muted);
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}
.trust-strip span:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Hero Visuals */
.hero-visual {
    position: relative;
    perspective: 1000px;
}
.hero-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-visual:hover img {
    transform: rotateY(0) rotateX(0);
}
.visual-card {
    position: absolute;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease;
}
.visual-card:hover {
    transform: translateY(-5px) scale(1.02);
}
.visual-card > i {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
    color: var(--white);
    background: var(--gradient-primary);
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.visual-card.top { top: -20px; left: -30px; width: 240px; }
.visual-card.bottom { right: -20px; bottom: 30px; width: 260px; }
.visual-card strong { display: block; color: var(--text-dark); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.visual-card span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* General Layouts */
.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
h2 {
    margin: 0 0 20px;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.15;
    font-weight: 800;
}
h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.rich-copy p, .seo-band p { margin-top: 0; font-size: 18px; color: var(--muted); }
.section-head { margin-bottom: 48px; max-width: 700px; }
.section-head.center { text-align: center; margin: 0 auto 48px; }

/* Grids & Cards */
.stats, .card-grid { display: grid; gap: 24px; }
.stats { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.stats div {
    padding: 30px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}
.stats div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.stats div > i {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: var(--blue);
    background: var(--sky);
    font-size: 20px;
}
.stats strong { display: block; color: var(--text-dark); font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 8px;}
.stat-number { display: inline-block; transition: all 0.3s ease; }
.stat-number.is-counting { opacity: 0.5; transform: scale(0.95); }
.stats span { color: var(--muted); font-size: 15px; font-weight: 500; }

.three { grid-template-columns: repeat(3, 1fr); }

/* Service Card */
.service-card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: -1;
    opacity: 0.05;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
    height: 100%;
}
.icon-pill {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: var(--white);
    background: var(--gradient-primary);
    font-size: 22px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    transition: transform 0.3s ease;
}
.service-card:hover .icon-pill {
    transform: scale(1.1) rotate(-5deg);
}
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 0;}

/* SEO Band */
.seo-band {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin: 40px clamp(20px, 5vw, 80px);
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.seo-band::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%; width: 50%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, rgba(15,23,42,0) 70%);
}
.seo-band h2 { color: var(--white); margin-top: 16px; }
.seo-band p { max-width: 800px; color: #94a3b8; font-size: 20px; }
.seo-band .eyebrow { background: rgba(255,255,255,0.1); color: #93c5fd; }

/* Workflow */
.workflow-section {
    background: var(--soft);
}
.workflow-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}
@media (min-width: 1041px) {
    .workflow-track::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 32px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--blue), transparent);
        opacity: 0.2;
    }
}
.workflow-card {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: workflow-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--delay);
}
.workflow-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.workflow-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 16px;
    background: var(--sky);
    padding: 4px 10px;
    border-radius: 100px;
}
.workflow-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--blue);
    font-size: 20px;
    margin-bottom: 20px;
}
.workflow-card h3 { font-size: 18px; margin-bottom: 8px; }
.workflow-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.portfolio-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.project-media {
    display: block;
    height: 240px;
    background-color: var(--sky);
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .project-media {
    transform: scale(1.05);
}
.portfolio-card > div {
    padding: 24px;
    position: relative;
    background: var(--white);
}
.portfolio-card span {
    display: inline-block;
    color: var(--violet);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--blue);
    font-weight: 700;
    font-size: 15px;
    transition: gap 0.3s ease;
}
.text-link:hover { gap: 12px; }

/* FAQ */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
details {
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
details:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
details[open] { border-color: var(--blue); }
summary { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
}
summary::-webkit-details-marker { display: none; }
summary span { display: inline-flex; align-items: center; gap: 12px; }
summary i.fa-circle-question { color: var(--blue); font-size: 20px; }
summary > i.fa-chevron-down { color: var(--muted); transition: transform 0.3s ease; }
details[open] summary > i.fa-chevron-down { transform: rotate(180deg); color: var(--blue); }
details p { margin: 16px 0 0 32px; color: var(--muted); font-size: 15px; }

/* CTA Contact */
.cta {
    margin: 60px clamp(20px, 5vw, 80px);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -100px; right: -50px;
}
.cta h2 { color: var(--white); }
.cta .eyebrow { background: rgba(255,255,255,0.2); color: var(--white); }
.cta p { color: rgba(255,255,255,0.9); font-size: 18px; }
.contact-box {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.contact-box a, .contact-box p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}
.contact-box a { color: var(--text-dark); word-break: break-word; }
.contact-box a:hover { color: var(--blue); }
.contact-box i { 
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    background: var(--sky);
    color: var(--blue);
    border-radius: 8px;
}
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    gap: 8px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--muted);
    transition: all 0.3s ease;
}
.socials a i { background: transparent; width: auto; height: auto; font-size: 18px; color: inherit; }
.socials a:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

/* Footer */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px clamp(20px, 5vw, 80px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    background: var(--white);
}

/* Internal Pages */
.case-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    background: var(--soft);
    padding-top: 140px;
    padding-bottom: 80px;
}
.case-image {
    min-height: 480px;
    border-radius: var(--radius-lg);
    background: var(--sky) center/cover;
    box-shadow: var(--shadow-lg);
}

/* Utilities & Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes workflow-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 1040px) {
    .hero, .split, .cta, .case-hero { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 120px; text-align: center; }
    .hero-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .trust-strip { justify-content: center; }
    .portfolio-grid, .three { grid-template-columns: repeat(2, 1fr); }
    .workflow-track { grid-template-columns: repeat(2, 1fr); }
    .section-head.center { text-align: left; margin-left: 0; }
    .cta { padding: 40px; margin: 40px 20px; }
}

@media (max-width: 768px) {
    .site-header { margin: 10px; padding: 12px 16px; border-radius: var(--radius-md); }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--white);
        color: var(--text-dark);
        font-size: 18px;
    }
    .site-nav {
        position: absolute;
        left: 0; right: 0; top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { justify-content: center; padding: 12px; }
    
    .section { padding: 60px 20px; }
    .hero h1, .case-hero h1 { font-size: 38px; }
    .btn { width: 100%; }
    
    .visual-card { position: relative; width: 100%; top: auto; left: auto; right: auto; bottom: auto; margin-top: 16px; }
    .portfolio-grid, .three, .stats, .faq-list, .workflow-track { grid-template-columns: 1fr; }
    
    .seo-band { padding: 40px 20px; margin: 20px; border-radius: var(--radius-md); }
    .cta { margin: 20px; padding: 30px 20px; border-radius: var(--radius-md); }
}
