:root {
    --blue-900: #0B2545;
    --blue-700: #1E5AA8;
    --blue-500: #3B82C4;
    --blue-300: #5BA3D9;
    --blue-100: #E8F1FA;
    --gold: #D4A853;
    --cream: #FAF8F5;
    --slate: #4A5568;
    --midnight: #1A202C;
    --white: #FFFFFF;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--midnight);
    line-height: 1.65;
    font-size: 16px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 90, 168, 0.08);
}

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

.logo-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--midnight);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--blue-700);
}

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

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

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

.nav-cta {
    background: var(--blue-700);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--blue-900) !important;
}

/* Hero */
.hero {
    min-height: auto;
    padding: 150px 3rem 100px 3rem;
    position: relative;
    box-sizing: border-box;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--midnight);
}

.hero h1 em {
    font-style: italic;
    color: var(--blue-700);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: 0.75rem;
    max-width: 480px;
}

.hero-sub-2 {
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-700);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.hero-cta:hover {
    background: var(--blue-900);
    transform: translateY(-2px);
}

.hero-cta svg {
    transition: transform 0.2s;
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

/* Hero Visual - Tile Pattern */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(11, 37, 69, 0.08);
}

.tile {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    animation: tileIn 0.6s ease-out both;
}

.tile:nth-child(1) { background: var(--blue-700); animation-delay: 0.1s; }
.tile:nth-child(2) { background: var(--blue-500); animation-delay: 0.15s; }
.tile:nth-child(3) { background: var(--blue-300); animation-delay: 0.2s; }
.tile:nth-child(4) { background: var(--blue-500); animation-delay: 0.25s; }
.tile:nth-child(5) { background: var(--blue-700); animation-delay: 0.3s; }
.tile:nth-child(6) { background: var(--blue-500); animation-delay: 0.35s; }
.tile:nth-child(7) { background: var(--blue-300); animation-delay: 0.4s; }
.tile:nth-child(8) { background: var(--blue-500); animation-delay: 0.45s; }
.tile:nth-child(9) { background: var(--blue-700); animation-delay: 0.5s; }

.tile svg {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

@keyframes tileIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Services */
.services {
    padding: 6rem 3rem;
    background: var(--white);
}

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

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-700);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--blue-300);
    transform: translateY(-4px);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
    color: var(--white);
    grid-column: span 2;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--blue-700);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--slate);
    margin-bottom: 1rem;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.85);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: var(--blue-100);
    color: var(--blue-700);
}

.service-card.featured .service-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* About */
.about {
    padding: 6rem 3rem;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--blue-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 0.5rem;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact */
.contact {
    padding: 6rem 3rem;
    background: var(--blue-900);
    color: var(--white);
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact h2 em {
    font-style: italic;
    color: var(--blue-300);
}

.contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--blue-900);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-details {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--blue-300);
}

/* Footer */
footer {
    background: var(--blue-900);
    padding: 1.5rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-logo .logo-mark {
    width: 32px;
    height: 32px;
}

.footer-logo .logo-text {
    font-size: 1rem;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 900px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero, .services, .about, .contact {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .tile-grid {
        padding: 1.5rem;
    }

    .tile {
        width: 60px;
        height: 60px;
    }

    .service-card.featured {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        order: 1;
    }

    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    footer {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

}
