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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-secondary: #555555;
    --color-text-muted: #888888;
    --color-accent: #2563eb;
    --color-border: #e8e8e8;
    --color-grid: #f0f0f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 900px;
    --section-padding: 120px;
    --section-padding-mobile: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle grid background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--color-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    color: var(--color-accent);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Hero */
.hero {
    padding-top: calc(64px + var(--section-padding));
    padding-bottom: var(--section-padding);
    position: relative;
}

.hero-accent-line {
    position: absolute;
    top: calc(64px + 60px);
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0.8;
}

.hero h1 {
    font-size: 46px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 720px;
}

.hero-subtitle {
    font-size: 19px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.55;
    max-width: 620px;
}

.hero-subtitle + .hero-subtitle {
    margin-top: 12px;
}

/* Who we work with - nested section */
.who {
    padding: 64px 0 0 0;
    border-bottom: none;
}

.who .container {
    padding: 0;
}

.who h2 {
    margin-bottom: 16px;
}

.who p {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* Sections */
section {
    padding: var(--section-padding) 0;
    background-color: var(--color-surface);
    position: relative;
}

section:not(:last-of-type) {
    border-bottom: 1px solid var(--color-border);
}

h2 {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 48px;
}

/* About */
.about p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    max-width: 720px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Capabilities */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
}

.capability {
    position: relative;
}

.capability-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.capability-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.capability h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.capability p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Approach */
.approach-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.approach-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.approach-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    min-width: 28px;
    flex-shrink: 0;
    padding-top: 2px;
}

.approach-line {
    position: absolute;
    left: 52px;
    top: 28px;
    width: 1px;
    height: calc(100% + 48px);
    background: linear-gradient(180deg, var(--color-border), transparent);
}

.approach-item:last-child .approach-line {
    display: none;
}

.approach-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.approach-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* Contact */
.contact {
    padding-bottom: 80px;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.contact p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: 16px;
    transition: opacity 0.2s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

.email-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    background-color: var(--color-bg);
}

.footer p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .header .container {
        height: 56px;
    }

    .logo-icon {
        width: 18px;
        height: 18px;
    }

    .nav {
        gap: 20px;
    }

    .nav a {
        font-size: 13px;
    }

    .hero {
        padding-top: calc(56px + var(--section-padding));
    }

    .hero-accent-line {
        top: calc(56px + 40px);
        width: 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .who {
        padding-top: 48px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .capability-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
    }

    .approach-item {
        gap: 16px;
    }

    .approach-line {
        left: 44px;
    }

    .about p {
        font-size: 15px;
    }

    .contact-email {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    h2 {
        margin-bottom: 32px;
    }

    .capability h3 {
        font-size: 15px;
    }

    .approach-item h3 {
        font-size: 15px;
    }

    .logo {
        font-size: 15px;
    }
}