:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-muted: #eef2f7;
    --text: #111827;
    --text-muted: #5f6b7a;
    --border: #d9e0ea;
    --accent: #1d4ed8;
    --accent-dark: #173ea5;
    --accent-soft: #e6efff;
    --success: #138a52;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 34rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
    background: rgba(247, 248, 251, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(217, 224, 234, 0.75);
}

.brand {
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.section {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: center;
    min-height: calc(100vh - 92px);
    padding-top: 3rem;
}

.hero-copy {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

h3 {
    margin-bottom: 0.55rem;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.hero-text {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.button.primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button.secondary {
    background: var(--surface);
    color: var(--text);
}

.button.secondary:hover {
    border-color: var(--accent);
}

.availability-card,
.service-card,
.metric-card,
.project-card,
.contact-card-large {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.availability-card {
    padding: 1.5rem;
}

.status-dot {
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    background: var(--success);
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(19, 138, 82, 0.12);
}

.availability-title {
    margin: 1rem 0 0.5rem;
    font-weight: 800;
}

.availability-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.availability-card li+li {
    margin-top: 0.35rem;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 1.5rem;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
    align-items: end;
}

.services-grid,
.metrics-grid {
    display: grid;
    gap: 1rem;
}

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

.service-card {
    padding: 1.35rem;
}

.service-card p,
.project-summary,
.metric-label,
.contact-card-large p {
    color: var(--text-muted);
}

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

.metric-card {
    padding: 1.35rem;
}

.metric-value,
.metric-label {
    display: block;
}

.metric-value {
    margin-bottom: 0.25rem;
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.metric-label {
    font-size: 0.95rem;
}

.project-tools {
    width: min(100%, 360px);
}

.search-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
}

input[type="search"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
}

.filter-button {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    color: var(--text-muted);
    background: var(--surface);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.project-count {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-grid {
    display: grid;
    gap: 1rem;
}

.featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.project-type {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-language {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-summary {
    flex: 1;
    margin-bottom: 1rem;
    font-size: 0.96rem;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.1rem;
    padding: 0;
    list-style: none;
}

.stack-list li {
    padding: 0.28rem 0.48rem;
    color: #334155;
    background: var(--surface-muted);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
}

.project-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.contact-section {
    padding-bottom: 5.5rem;
}

.contact-card-large {
    padding: clamp(1.5rem, 5vw, 3rem);
}

.site-footer {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 980px) {
    .hero,
    .split-heading {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: auto;
    }
    .services-grid,
    .metrics-grid,
    .featured-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }
    .split-heading {
        display: block;
    }
    .project-tools {
        width: 100%;
        margin-top: 1.25rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    .section {
        padding: 3.25rem 0;
    }
    .button {
        width: 100%;
    }
}