/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --accent: #06b6d4;
    --dark: #060b18;
    --dark-card: #0c1225;
    --dark-lighter: #131b32;
    --dark-surface: #1a2342;
    --gray-700: #9ca3af;
    --gray-500: #6b7280;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --white: #f1f5f9;
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(59, 130, 246, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-300);
    background: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }

p { color: var(--gray-400); }

/* Animated Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--border-hover);
    padding: 13px 27px;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 22px;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.btn-nav:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 11, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(6, 11, 24, 0.95);
    border-bottom-color: var(--border);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
}

.navbar.scrolled .logo-img {
    height: 52px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 11, 24, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero */
.hero {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Trust Bar */
.trust-bar {
    padding: 60px 0;
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--white) 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Services */
.services {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 64px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px var(--primary-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Process / How We Work */
.process {
    padding: 120px 0;
    background: var(--dark-card);
    position: relative;
    z-index: 1;
}

.process-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 40px 32px;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 16px;
    flex: 1;
    max-width: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.1);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.step-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.92rem;
    line-height: 1.7;
}

.process-connector {
    color: var(--gray-500);
    opacity: 0.3;
    flex-shrink: 0;
}

/* Why Us */
.why-us {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.why-us .section-title {
    margin-bottom: 64px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-item {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: var(--dark-card);
    border-color: var(--border);
}

.why-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.why-item h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.why-item p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About */
.about {
    padding: 120px 0;
    background: var(--dark-card);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 680px;
    margin: 40px auto 0;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.08rem;
    line-height: 1.8;
}

.about-highlight {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--white) !important;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Contact */
.contact {
    padding: 120px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-note {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--dark);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.6;
}

.footer p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grid items */
.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }

.trust-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.trust-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.trust-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 160px 0 80px;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

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

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .trust-number {
        font-size: 2rem;
    }

    .process-grid {
        flex-direction: column;
    }

    .process-connector {
        transform: rotate(90deg);
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}
