/* === VARIABLES === */
:root {
    /* Colors */
    --color-bg: #F0F0F0;
    --color-text: #111111;
    --color-text-light: #666666;
    --color-accent: #FF3E00;
    /* Lab Orange */
    --color-white: #FFFFFF;
    --color-border: #D1D1D1;
    --color-card-bg: #FFFFFF;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 120px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* === TYPOGRAPHY === */
.reveal-text {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.highlight {
    color: var(--color-accent);
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn--primary {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-accent);
}

.btn--text {
    background: transparent;
    color: var(--color-text);
    padding-left: 0;
}

.btn--text:hover {
    color: var(--color-accent);
    gap: 15px;
    /* Micro-interaction: gap expansion */
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo__sub {
    font-size: 0.8rem;
    background: var(--color-text);
    color: var(--color-white);
    padding: 2px 6px;
    border-radius: 2px;
}

.nav__list {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav__link:hover::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-smooth);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 99;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* === HERO === */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid var(--color-border);
    padding: 4px 8px;
    margin-bottom: 24px;
    border-radius: 100px;
}

.hero__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 5.5rem;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.hero__description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.hero__meta {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.meta-value {
    font-family: var(--font-mono);
    font-weight: 500;
}

.hero__visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 4px;
    /* Slight rounding but almost sharp */
    overflow: hidden;
    background: #ccc;
    aspect-ratio: 4/5;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    /* Lab vibe */
    transition: var(--transition-smooth);
}

.image-wrapper:hover .hero__img {
    filter: grayscale(0%);
    /* Color reveal on hover */
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === PHILOSOPHY === */
.philosophy {
    padding: var(--section-spacing) 0;
    background: var(--color-white);
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.section-line {
    height: 1px;
    background: var(--color-border);
    flex-grow: 1;
}

.grid-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.philosophy__card {
    background: var(--color-bg);
    padding: 60px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.philosophy__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card__number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 40px;
    color: var(--color-accent);
}

.card__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.card__text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 400px;
    line-height: 1.6;
}

.card--accent {
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* === JOIN === */
.join {
    padding: var(--section-spacing) 0;
}

.join__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.join__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 30px;
}

.join__description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form__group {
    position: relative;
    padding-top: 15px;
}

.form__label {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.form__input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    outline: none;
    transition: var(--transition-fast);
}

.form__input::placeholder {
    color: rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
}

.form__focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.form__input:focus {
    border-bottom-color: transparent;
}

.form__input:focus+.form__focus-line {
    width: 100%;
}

.btn--submit {
    margin-top: 20px;
    background: var(--color-text);
    color: var(--color-white);
    width: 100%;
    justify-content: space-between;
    height: 60px;
}

.form__status {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-height: 20px;
}

.form__status.success {
    color: #2fb344;
}

/* === FOOTER === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer__container {
    display: flex;
    justify-content: space-between;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__copy,
.footer__link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.footer__link:hover {
    color: var(--color-accent);
}

/* === MEDIA QUERIES === */
@media (max-width: 992px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

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

    .hero__visual {
        order: -1;
    }

    .floating-badge {
        width: 80px;
        height: 80px;
        right: 0;
    }

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

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

    .footer__container {
        flex-direction: column;
        gap: 20px;
    }
}