:root {
    --bg: #071425;
    --bg-soft: #0d2035;
    --surface-strong: #102944;
    --text: #eaf2ff;
    --muted: #9bb3cd;
    --border: rgba(118, 154, 194, 0.28);
    --primary: #14b8c7;
    --secondary: #2b6cb0;
    --accent-red: #ef4444;
    --container: 1140px;
    --radius: 0.5rem;
    --transition: 200ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

.display {
    font-family: "Space Grotesk", sans-serif;
}

h1, h2, h3, h4 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 60ch;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.page-offset {
    padding-top: 5rem;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.header-inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    color: var(--muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: var(--bg-soft);
}

.header-cta {
    color: var(--text);
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.header-cta:hover {
    background: #0da8b6;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: background var(--transition), border-color var(--transition);
}

.btn-primary {
    color: var(--text);
    background: var(--primary);
}

.btn-primary:hover {
    background: #0da8b6;
}

.btn-secondary {
    color: var(--text);
    border-color: var(--border);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-soft);
}

.btn-savorly {
    color: white;
    background: var(--accent-red);
}

.btn-savorly:hover {
    background: #dc2626;
}

/* Sections */
main section {
    padding: 5rem 0;
}

/* Home Hero */
.hero {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 45ch;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Build pipeline signature element */
.pipeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem 0;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.pipeline-step::after {
    content: '→';
    color: var(--primary);
}

.pipeline-step:last-child::after {
    display: none;
}

.pipeline-step.active {
    color: var(--primary);
}

/* Services Section */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    background: var(--bg-soft);
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface-strong);
    border-radius: var(--radius);
    color: var(--muted);
}

/* Work/Portfolio */
.case-study {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    background: var(--bg-soft);
    margin-top: 3rem;
}

.case-study h3 {
    color: var(--primary);
    margin-top: 2rem;
}

.case-study-brand {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-red);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.case-study-visual {
    margin: 2rem 0;
}

.case-study-visual img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.case-study-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-block h4 {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-block p {
    font-size: 0.95rem;
}

.case-study ul {
    margin-left: 1.5rem;
}

.case-study li {
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.contact-form {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
    }

    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 5rem 0 auto 0;
        padding: 1rem;
        gap: 0.25rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .site-nav.open a {
        width: 100%;
        padding: 0.75rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .case-study-header {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove default outline and use custom focus styles */
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
}