/*
 * Bio-Tech page (page-bio-tech.php)
 * Desktop values follow the Figma frame "bio-tech berlinvn" (1920px);
 * breakpoints: 1199px (laptop), 991px (tablet), 767px / 479px (mobile).
 */

.bio-tech-page {
    --bt-red: #e30613;
    --bt-red-hover: #ff1f2c;
    --bt-text: #e5e2e1;
    --bt-text-muted: #8b949e;
    --bt-text-dim: #797979;
    --bt-zinc-300: #d4d4d8;
    --bt-zinc-400: #a1a1aa;
    --bt-zinc-500: #71717a;
    --bt-strain: rgba(248, 113, 113, 0.9);
    --bt-border: rgba(255, 255, 255, 0.08);
    --bt-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --bt-gutter: 24px;

    background-color: #000000;
    color: var(--bt-text);
    font-family: var(--font-inter);
}

.bio-tech-page p {
    margin: 0;
}

.bt-text-red {
    display: block;
    color: var(--bt-red);
}

.bt-hero__title,
.bt-science__title,
.bt-quality__title,
.bt-solutions__title {
    text-wrap: balance;
}

.bt-container {
    width: 100%;
    max-width: calc(1200px + 2 * var(--bt-gutter));
    margin: 0 auto;
    padding: 0 var(--bt-gutter);
}

.bt-container--wide {
    max-width: calc(1216px + 2 * var(--bt-gutter));
}

.bt-eyebrow {
    display: block;
    font-family: var(--bt-font-mono);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--bt-red);
}

/* --- BUTTONS --- */
.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bt-btn:hover {
    transform: translateY(-2px);
}

.bt-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.bt-btn__icon {
    flex-shrink: 0;
}

.bt-btn--primary {
    background-color: var(--bt-red);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(227, 6, 19, 0.2), 0 2px 4px -2px rgba(227, 6, 19, 0.2);
}

.bt-btn--primary:hover {
    background-color: var(--bt-red-hover);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(227, 6, 19, 0.55);
}

.bt-btn--ghost {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: var(--bt-text);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.bt-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.bt-btn--dark {
    border-color: var(--bt-border);
    background-color: #11151f;
    color: var(--bt-zinc-300);
    font-weight: 500;
}

.bt-btn--dark:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.bt-btn--lg {
    padding: 17px 32px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.bt-btn--wide {
    padding: 14px 80px;
}

/* --- HERO --- */
.bt-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 886px;
    padding: 80px var(--bt-gutter) 0;
    overflow: hidden;
    background-color: #000000;
}

.bt-hero__visual {
    position: absolute;
    top: 216px;
    left: calc(50% - 121px);
    width: 1013px;
    aspect-ratio: 1013 / 510;
    overflow: hidden;
    pointer-events: none;
}

.bt-hero__building {
    position: absolute;
    top: -10.62%;
    left: 0;
    width: 100%;
    height: 115.21%;
    max-width: none;
    opacity: 0.3;
}

/* Fades the illustration into the text column, as in the design */
.bt-hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000000 6.248%, rgba(0, 0, 0, 0) 19.705%);
}

.bt-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
}

.bt-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 650px;
}

.bt-hero__eyebrow {
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #9a9a9a;
}

.bt-hero__title {
    margin: 15px 0 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.28px;
    color: var(--bt-text);
}

.bt-hero__desc {
    max-width: 576px;
    margin-top: 22px !important;
    font-size: 18px;
    line-height: 28.8px;
    color: var(--bt-text-dim);
}

.bt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.bt-hero__orb {
    position: absolute;
    top: -10px;
    left: 1176px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bt-hero__orb-dot {
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background-color: #9a9a9a;
    box-shadow: 0 0 10px #ffb4aa;
}

/* --- MAIN (red flow background) --- */
.bt-main {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 100px 0 50px;
    background-color: #000000;
    background-image:
        linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 6.25%, rgba(0, 0, 0, 0) 92.788%, #000000 100%),
        var(--bt-main-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.bt-section {
    position: relative;
    max-width: none;
    overflow: visible;
    /* Keeps anchored headings clear of the fixed top nav */
    scroll-margin-top: 96px;
}

/* --- CARD SHARED --- */
.bt-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: normal;
    color: #ffffff;
}

.bt-card-desc {
    font-size: 14px;
    line-height: 22.75px;
    color: var(--bt-text-muted);
}

.bt-card-desc em {
    color: var(--bt-zinc-300);
}

.bt-tags {
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-family: var(--bt-font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.3px;
    color: var(--bt-zinc-300);
}

.bt-tags--soft {
    border-top-color: rgba(255, 255, 255, 0.4);
}

.bt-tags i {
    color: var(--bt-strain);
}

.bt-tags__muted {
    color: var(--bt-zinc-400);
}

.bt-tags__sans {
    font-family: var(--font-inter);
}

/* --- WHERE BIOLOGY MEETS AGRICULTURE --- */
.bt-solutions__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bt-solutions__title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 38.4px;
    letter-spacing: normal;
    text-align: center;
    color: var(--bt-text);
}

.bt-solutions__bar {
    width: 80px;
    height: 4px;
    background-color: var(--bt-red);
}

.bt-core-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    margin: 21px 0 30px;
}

.bt-core-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid var(--bt-border);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.52);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.bt-core-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10.8px;
    padding-bottom: 24px;
}

.bt-core-card__dot {
    width: 8px;
    height: 8px;
    margin-bottom: 9.2px;
    border-radius: 50%;
    background-color: var(--bt-red);
}

/* --- THE SCIENCE --- */
.bt-science {
    padding: 70px 0;
}

.bt-science__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.bt-science__title {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.2px;
    color: #ffffff;
}

.bt-science__desc {
    max-width: 740px;
    padding-top: 8px;
    font-size: 18px;
    line-height: 28px;
    color: var(--bt-text-muted);
}

.bt-mechanism-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(238.5px, auto);
    gap: 24px;
}

.bt-mechanism {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    border: 1px solid var(--bt-border);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bt-mechanism:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.bt-mechanism--blue   { background-color: rgba(0, 18, 107, 0.3); }
.bt-mechanism--purple { background-color: rgba(36, 0, 109, 0.3); }
.bt-mechanism--green  { background-color: rgba(0, 99, 26, 0.3); }
.bt-mechanism--red    { background-color: rgba(99, 0, 2, 0.3); }

.bt-mechanism__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0 24px;
}

.bt-mechanism__label {
    font-family: var(--bt-font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: var(--bt-zinc-500);
}

.bt-mechanism .bt-card-desc {
    padding-top: 3px;
}

/* --- QUALITY STANDARDS --- */
.bt-quality {
    padding: 30px 0;
}

.bt-quality__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
}

.bt-quality__intro {
    grid-column: 1 / span 5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bt-quality__title {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -0.9px;
    color: #ffffff;
}

.bt-quality__desc {
    padding: 4px 0 16px;
    font-size: 16px;
    line-height: 24px;
    color: var(--bt-text-muted);
}

.bt-notice {
    display: flex;
    flex-direction: column;
    gap: 3.75px;
    margin-top: 1px;
    padding: 16px;
    border: 1px solid var(--bt-border);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    line-height: 19.5px;
}

.bt-notice__title {
    font-weight: 500;
    color: var(--bt-zinc-300);
}

.bt-notice__text {
    color: var(--bt-text-muted);
}

.bt-quality__specs {
    grid-column: 6 / span 7;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bt-spec-table {
    margin: 0;
    border: 1px solid var(--bt-border);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.bt-spec-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.bt-spec-table__row + .bt-spec-table__row {
    border-top: 1px solid var(--bt-border);
}

.bt-spec-table__label {
    font-family: var(--bt-font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--bt-red);
}

.bt-spec-table__value {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: right;
    color: #ffffff;
}

.bt-quality__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* --- RESPONSIVE: LAPTOP --- */
@media (max-width: 1199px) {
    .bt-hero {
        min-height: 760px;
    }

    .bt-hero__visual {
        top: 200px;
        left: auto;
        right: -120px;
        width: 860px;
    }

    .bt-hero__title {
        font-size: 56px;
    }

    .bt-hero__orb {
        display: none;
    }

    .bt-btn--wide {
        padding: 14px 56px;
    }
}

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 991px) {
    .bt-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 140px var(--bt-gutter) 0;
    }

    .bt-hero__content {
        max-width: 640px;
    }

    .bt-hero__title {
        font-size: 48px;
        letter-spacing: -1px;
    }

    /* Illustration moves under the copy instead of behind it */
    .bt-hero__visual {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% + 2 * var(--bt-gutter));
        max-width: none;
        margin: -16px calc(-1 * var(--bt-gutter)) 0;
        order: 2;
    }

    .bt-hero__visual::after {
        background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 80%, #000000 100%);
    }

    .bt-hero__building {
        opacity: 0.35;
    }

    .bt-main {
        padding-top: 72px;
        background-size: auto 100%;
        background-position: 30% top;
    }

    .bt-core-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .bt-core-card:last-child {
        grid-column: 1 / -1;
    }

    .bt-science {
        padding: 56px 0;
    }

    .bt-science__title {
        font-size: 40px;
    }

    .bt-mechanism {
        padding: 28px;
    }

    .bt-quality__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .bt-quality__intro,
    .bt-quality__specs {
        grid-column: 1 / -1;
    }

    .bt-quality__desc {
        max-width: 640px;
    }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 767px) {
    .bio-tech-page {
        --bt-gutter: 16px;
    }

    .bt-hero {
        padding-top: 112px;
    }

    .bt-hero__eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .bt-hero__title {
        margin-top: 14px;
        font-size: 36px;
        letter-spacing: -0.72px;
    }

    .bt-hero__desc {
        margin-top: 16px !important;
        font-size: 16px;
        line-height: 26px;
    }

    .bt-hero__actions {
        flex-direction: column;
        align-self: stretch;
        gap: 12px;
        margin-top: 28px;
    }

    .bt-hero__actions .bt-btn {
        width: 100%;
        padding: 15px 24px;
    }

    .bt-hero__visual {
        margin-top: 0;
    }

    .bt-main {
        padding: 56px 0 32px;
        gap: 8px;
    }

    .bt-solutions__title {
        font-size: 26px;
        line-height: 1.25;
    }

    .bt-core-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 24px;
    }

    .bt-core-card {
        padding: 24px;
    }

    .bt-btn--wide {
        width: 100%;
        padding: 14px 24px;
    }

    .bt-science {
        padding: 48px 0;
    }

    .bt-science__title {
        font-size: 34px;
        line-height: 1.06;
        letter-spacing: -0.8px;
    }

    .bt-science__desc {
        font-size: 16px;
        line-height: 26px;
    }

    .bt-eyebrow {
        font-size: 12px;
        letter-spacing: 2.4px;
    }

    .bt-mechanism-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 16px;
    }

    .bt-mechanism {
        padding: 24px;
    }

    .bt-tags {
        line-height: 18px;
    }

    .bt-quality__title {
        font-size: 30px;
        line-height: 36px;
    }

    .bt-spec-table__row {
        padding: 18px 20px;
    }

    .bt-spec-table__value {
        font-size: 15px;
    }

    .bt-quality__actions .bt-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 479px) {
    .bt-spec-table__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bt-spec-table__value {
        text-align: left;
    }

    .bt-quality__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-btn,
    .bt-mechanism {
        transition: none;
    }

    .bt-btn:hover,
    .bt-mechanism:hover {
        transform: none;
    }
}
