/* ===== Reset & Normalize ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p,
a, ul, ol, li, footer, header, nav, section, article {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #14141f;
    --text-primary: #e8e8ed;
    --text-secondary: #9999aa;
    --accent: #dc2626;
    --accent-dim: rgba(220, 38, 38, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --font: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.nav-logo:hover {
    opacity: 1;
}

.nav-logo .nav-logo-q {
    color: var(--accent) !important;
}

.nav-links {
    display: -webkit-flex;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    padding-top: 18vh;
    padding-top: 18dvh;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: url('/assets/hero-bg.jpg') center bottom no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(
        top,
        #0a0a0f 0%,
        rgba(10, 10, 15, 0.7) 30%,
        rgba(10, 10, 15, 0.2) 70%,
        rgba(10, 10, 15, 0.4) 100%
    );
    background: linear-gradient(
        to bottom,
        #0a0a0f 0%,
        rgba(10, 10, 15, 0.7) 30%,
        rgba(10, 10, 15, 0.2) 70%,
        rgba(10, 10, 15, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.hero-logo-text {
    font-size: 9rem;
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-f, .hero-t {
    color: var(--text-primary);
}

.hero-q {
    color: var(--accent);
}

.hero-company-name {
    font-size: 1rem;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.2rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-cta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 3rem;
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.hero-cta:hover {
    background: var(--accent-dim);
    opacity: 1;
}

/* ===== Venue Logo Strip ===== */
.venue-strip {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.venue-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.venue-logos {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 2.5rem;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.venue-logos img {
    height: 22px;
    width: auto;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    opacity: 0.4;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.venue-logos img:hover {
    opacity: 0.8;
}

/* ===== About ===== */
.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

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

/* ===== Capabilities ===== */
.capabilities-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    min-width: 0;
    -webkit-transition: border-color 0.3s, transform 0.3s;
    transition: border-color 0.3s, transform 0.3s;
}

.capability-card:hover {
    border-color: rgba(220, 38, 38, 0.25);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.capability-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.capability-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.capability-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Careers ===== */
.career-culture {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.career-culture p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.career-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    -webkit-transition: border-color 0.3s;
    transition: border-color 0.3s;
}

.career-card:last-of-type {
    margin-bottom: 0;
}

.career-card:hover {
    border-color: rgba(220, 38, 38, 0.25);
}

.career-header {
    margin-bottom: 1.5rem;
}

.career-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.3rem 0.85rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.career-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.career-body {
    margin-bottom: 1.75rem;
}

.career-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.career-requirements {
    padding: 0;
}

.career-requirements li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.career-requirements li:last-child {
    margin-bottom: 0;
}

.career-requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.career-apply {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.career-apply:hover {
    background: var(--accent-dim);
    opacity: 1;
}

/* ===== Contact ===== */
.contact-content {
    text-align: center;
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
    .capabilities-grid {
        gap: 1rem;
    }

    .capability-card {
        padding: 1.5rem;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: -webkit-flex;
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        -webkit-flex-direction: column;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: -webkit-flex;
        display: flex;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        padding-top: 20vh;
        padding-top: 20dvh;
    }

    .hero-cta {
        margin-bottom: 2rem;
        margin-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }

    .hero-content {
        padding: 1.5rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .venue-logos {
        gap: 1rem 1.25rem;
    }

    .venue-logos img {
        height: 14px;
    }

    .career-card {
        padding: 1.75rem;
    }

    .contact-email {
        font-size: 1.2rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 400px) {
    .hero-logo-text {
        font-size: 4rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
