:root {
    color-scheme: light;
    --bg: #050816;
    --surface: rgba(15, 23, 42, 0.8);
    --surface-light: rgba(255, 255, 255, 0.04);
    --card: rgba(255, 255, 255, 0.08);
    --primary: #7dd3fc;
    --secondary: #c084fc;
    --accent: #f472b6;
    --text: #f8fafc;
    --muted: #cbd5f5;
    --border: rgba(255, 255, 255, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --gutter: clamp(1.5rem, 4vw, 3rem);
    --transition: 200ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0%, #050816 55%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(130deg, rgba(125, 211, 252, 0.15), rgba(192, 132, 252, 0.12));
    filter: blur(120px);
    z-index: -2;
}

.texture {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1' d='M0 0h160v160H0zM20 0v160M40 0v160M60 0v160M80 0v160M100 0v160M120 0v160M140 0v160M0 20h160M0 40h160M0 60h160M0 80h160M0 100h160M0 120h160M0 140h160'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: -1;
}

main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 5rem;
}

section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.site-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem var(--gutter);
    background: transparent;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
    isolation: isolate;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 8, 22, 0.9), rgba(15, 23, 42, 0.75)), url("../images/hero-background.jpg") center/cover no-repeat;
    opacity: 0.9;
    z-index: -1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    padding: 6px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--muted);
}

.brand-text strong {
    color: var(--text);
    font-size: 1rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.primary-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

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

.pill-button {
    background: linear-gradient(120deg, var(--secondary), var(--accent));
    border: none;
    color: #050816;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

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

.ghost-button {
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    padding: 0.45rem 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-nav {
    display: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: clamp(4rem, 8vw, 7rem);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 8, 22, 0.85), rgba(15, 23, 42, 0.75)), url("../images/hero-background.jpg") center/cover no-repeat;
    filter: saturate(1.2);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-copy {
    background: var(--surface);
    border-radius: var(--radius);
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.signal-card,
.contact-chip {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.signal-card ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.contact-chip a {
    color: var(--text);
    font-weight: 600;
    display: block;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    margin: 0 0 1rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 0;
}

.hero-stats dt {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
}

.section-header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0;
}

.section-header p {
    color: var(--muted);
}

.expertise-grid,
.about-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.expertise-grid article,
.about-grid article,
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    min-height: 240px;
}

.clients {
    padding-top: 1rem;
}

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

.client-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition);
}

.client-card:hover {
    transform: translateY(-6px);
}

.client-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.client-card img[src$=".png"] {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.role {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.35rem;
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}

.contact-info span {
    color: var(--muted);
}

.contact-info a {
    color: #fef9c3;
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

form {
    display: grid;
    gap: 1rem;
}

label span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

input,
textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(5, 8, 22, 0.6);
    color: var(--text);
    padding: 0.85rem;
    font-family: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus,
.pill-button:focus-visible,
.ghost-button:focus-visible,
.menu-toggle:focus-visible,
.primary-nav a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-result {
    min-height: 1.5rem;
    font-size: 0.9rem;
}

.form-result.sending {
    color: var(--primary);
}

.form-result.success {
    color: #22c55e;
}

.form-result.error {
    color: #f87171;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem var(--gutter) 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    background: rgba(5, 8, 22, 0.9);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

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

.footer-contact p {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.footer-contact a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary);
}

@media (max-width: 960px) {
    .primary-nav,
    .site-header > .pill-button {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .mobile-nav[hidden] {
        display: none !important;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem var(--gutter) 2rem;
        background: rgba(5, 8, 22, 0.9);
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav a {
        color: var(--text);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 600px) {
    .hero-copy,
    .signal-card,
    .contact-form-wrapper,
    .expertise-grid article,
    .about-grid article,
    .team-card,
    .client-card {
        padding: 1.5rem;
    }

    .contact-info li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
