:root {
    --terra-light: #fbf5f3;
    --terra-light-hover: #f9f0ed;
    --terra-light-active: #f3e0da;
    --terra-normal: #825e51;
    --terra-normal-hover: #755549;
    --terra-normal-active: #684b41;
    --terra-dark: #4c372f;
    --terra-dark-hover: #2e211c;
    --terra-dark-active: #221915;

    --sand-light: #fcfaf7;
    --sand-light-hover: #fbf7f3;
    --sand-light-active: #f6eee7;
    --sand-normal: #e1c8b2;
    --sand-normal-hover: #cbb4a0;
    --sand-normal-active: #b4a08e;
    --sand-dark: #a99686;
    --sand-dark-hover: #87786b;
    --sand-dark-active: #655a50;
    --sand-darker: #4f463e;

    --bone-light: #fcfbfa;
    --bone-light-hover: #fbf9f7;
    --bone-light-active: #f6f4ef;
    --bone-normal: #e3dacb;
    --bone-normal-hover: #ccc4b7;
    --bone-normal-active: #b6aea2;
    --bone-dark: #aaa498;
    --bone-dark-hover: #88837a;
    --bone-dark-active: #66625b;
    --bone-darker: #4f4c47;

    --ashGreen-light: #f8f9f7;
    --ashGreen-light-hover: #f5f5f3;
    --ashGreen-light-active: #ebebe6;
    --ashGreen-normal: #bdbfad;
    --ashGreen-normal-hover: #aaac9c;
    --ashGreen-normal-active: #97998a;
    --ashGreen-dark: #8e8f82;
    --ashGreen-dark-hover: #717368;
    --ashGreen-dark-active: #55564e;
    --ashGreen-darker: #42433d;

    --platinum-light: #fbfcfc;
    --platinum-light-hover: #f9fafa;
    --platinum-light-active: #f3f5f4;
    --platinum-normal: #d8e0dd;
    --platinum-normal-hover: #c2cac7;
    --platinum-normal-active: #adb3b1;
    --platinum-dark: #a2a8a6;
    --platinum-dark-hover: #828685;
    --platinum-dark-active: #616563;
    --platinum-darker: #4c4e4d;

    --text-dark: #171717;
    --text-dark-secondary: #4f4f4f;
    --text-light: #d9d9d9;
    --text-white: #ffffff;

    --danger-light: #f2e8e8;
    --danger-normal: #7f1d1d;
    --danger-normal-hover: #721a1a;
    --danger-normal-active: #661717;

    --gray-light: #E8E0D5;
    --gray-medium: #CBBBAA;

    --surface-soft: #00000008;
    --surface-subtle: #0000000F;

    font-size: 62.5%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Outfit";
    src: url("fonts/Outfit/Outfit-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("fonts/Outfit/Outfit-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("fonts/Outfit/Outfit-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    color: var(--text-dark);

    background-color: #ffffff;
    background-image: linear-gradient(to bottom, rgba(225, 200, 178, 0.7) 0%, rgba(227, 218, 203, 0.7) 50%);
    background-repeat: no-repeat;
    background-attachment: scroll;
}

#home, #about {
    scroll-margin-top: 90px;
}

#features {
    scroll-margin-top: 30px;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    max-width: 1024px;
    margin: 0 auto;
    padding: 64px 24px 32px;
    align-items: center;
    flex-direction: column;
    display: flex;
}

.container.home {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    padding: 48px 28px 24px;
}

.section {
    padding: clamp(56px, 8vw, 96px) 24px;
}

.section--features {
    padding: clamp(48px, 6vw, 84px) 24px;
    overflow: clip;
}

.section__inner {
    max-width: 720px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section__inner--wide {
    max-width: 1200px;
}

.section__title {
    font-family: "Outfit";
    font-weight: 600;
    font-size: clamp(22px, 4.5vw, 26px);
    color: var(--bone-darker);
    margin: 0 0 8px;
}

.section__text {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;

    color: rgba(23, 23, 23, 0.72);
    margin: 0;
}

.section__eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(23, 23, 23, 0.65);
    margin-bottom: 2px;
}

.section__title--main {
    font-size: 26px;
    margin-top: 0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgb(252, 250, 247);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;

    font-family: "Outfit";
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--terra-dark);
}

.logo__icon {
    width: 40px;
    height: 40px;

    object-fit: contain;
    display: inline-block;
}

.logo__text {
    line-height: 1;
}

.navbar__links {
    margin-left: auto;
    display: flex;
    gap: 18px;
    align-items: center;
}

.navbar__links a {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;

    text-decoration: none;
    color: rgba(23, 23, 23, 0.65);
    padding: 8px 12px;
    border-radius: 999px;

    transition: color 160ms ease,
    background-color 160ms ease,
    transform 120ms ease;
}

.navbar__links a:hover {
    color: var(--text-dark);
    background-color: var(--terra-light-hover);
    transform: translateY(-1px);
}

.navbar__links a[aria-current="page"] {
    color: var(--terra-dark);
    background-color: rgba(130, 94, 81, 0.14);
}


.home__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.home__content {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 320px);
    gap: 56px;
    align-items: center;
}

.home__copy {
    text-align: left;
    max-width: 560px;
}

.home__headline {
    font-family: "Outfit";
    font-weight: 600;
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--bone-darker);
}

.home__text {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 10px;
    color: rgba(23, 23, 23, 0.65);
}

.home__visual {
    display: flex;
    justify-content: center;
}

.home__image {
    width: min(260px, 100%);
    height: auto;
    display: block;
}

.home__video {
    width: 100%;
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.home__video-frame {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 740px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bone-light);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
}

.home__video-el {
    width: 100%;
    height: auto;
    display: block;
}

.features-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: rgba(252, 250, 247, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 18px 18px 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(0) scale(1);
    transition: transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    backdrop-filter 180ms ease,
    -webkit-backdrop-filter 180ms ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: rgba(252, 250, 247, 0.60);
    z-index: 2;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.feature-card__title {
    margin: 0 0 8px;
    font-family: "Outfit";
    font-weight: 600;
    font-size: 18px;
    color: var(--terra-dark);
}

.feature-card__text {
    margin: 0 auto 16px;
    max-width: 34ch;

    font-family: "Outfit";
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: rgba(23, 23, 23, 0.65);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.feature-card__media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 6px 4px;
}

.feature-card__media img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0px 14px 28px rgba(0, 0, 0, 0.20));
    transform: translateZ(0);
}

.features-grid--mini {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card--mini {
    padding: 14px 14px 12px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bone-light);
    min-height: 92px;
}

.feature-card--mini .feature-card__title {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-card--mini .feature-card__text {
    font-size: 13px;
    line-height: 19px;
    margin-bottom: 0;
    max-width: none;
}

.feature-card--mini:hover {
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
}

.container__title {
    font-family: "Outfit";
    font-weight: 600;
    font-size: clamp(30px, 6vw, 38px);
    letter-spacing: -0.4px;
    color: var(--terra-dark);
    margin: 0 0 10px;
}

.container__subtitle {
    font-family: "Outfit";
    font-weight: 500;
    font-size: clamp(14px, 3.2vw, 16px);
    line-height: 25px;

    color: var(--terra-normal);
    margin: 0;
    max-width: 520px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.video-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: none;
    background: none;
    cursor: pointer;
}

.video-play:before {
    content: "";
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-play:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-42%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent white;
}

.video-wrapper.is-playing .video-thumbnail, .video-wrapper.is-playing .video-play {
    display: none;
}

.partner-label {
    width: 100%;
    text-align: center;
    margin: 24px 0 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(23, 23, 23, 0.55);
}

.partner-project {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 18px 0 16px;
}

.partner-grid {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.partner-card {
    height: 64px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(252, 250, 247, 0.35);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.partner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.10;
    pointer-events: none;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.06);
    background-color: rgba(0, 0, 0, 0.02);
}

.partner-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-logo--uni {
    max-height: 44px;
    max-width: 260px;
    transform-origin: center;
}

.partner-logo--mlab {
    max-height: 30px;
    max-width: 220px;
}

.partner-logo--hamd {
    max-height: 46px;
    max-width: 260px;
    transform: scale(1.10);
    transform-origin: center;
}

.partner-card--uni {
    border-color: rgba(210, 80, 80, 0.28);
    background: rgba(210, 80, 80, 0.06);
}

.partner-card--mlab {
    border-color: rgba(90, 140, 220, 0.26);
    background: rgba(90, 140, 220, 0.06);
}

.partner-card--hamd {
    border-color: rgba(142, 196, 156, 0.26);
    background: rgba(142, 196, 156, 0.06);
}

.partner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.partner-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.partner-meta, .partner-subtext {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(23, 23, 23, 0.55);
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

.partner-card--stableaid {
    height: auto;
    width: fit-content;
    min-width: 230px;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    background: rgba(225, 200, 178, 0.22);
    border: 1px solid rgba(130, 94, 81, 0.18);
    box-shadow: 0 10px 26px rgba(76, 55, 47, 0.08);
    text-decoration: none;
}

.partner-logo--stableaid {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.partner-card--stableaid .partner-subtext {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: rgba(23, 23, 23, 0.65);
    line-height: 1.1;
}

.footer {
    margin-top: 80px;
    background: rgba(252, 250, 247, 0.75);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 28px 22px;
    text-align: center;
}

.footer__disclaimer {
    font-size: 12px;
    color: rgba(23, 23, 23, 0.60);
}

.footer__link {
    color: var(--terra-normal);
    text-decoration: none;
    font-weight: 500;
}


.footer__link:hover {
    color: var(--terra-normal-hover);
    text-decoration: underline;
}


@media (max-width: 980px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-card__media img {
        max-width: 320px;
    }

    .features-grid--mini {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
        justify-items: stretch;
    }

    .partner-card {
        width: min(320px, 100%);
        height: 66px;
    }
}

@media (max-width: 900px) {
    .home__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .home__copy {
        text-align: center;
    }

    .home__image {
        width: min(340px, 100%);
    }
}

@media (max-width: 560px) {
    .section {
        padding: 72px 16px;
    }

    .section--features {
        padding: 64px 16px 48px;
    }

    #about.section {
        padding: 54px 16px 30px;
    }

    #about .partner-project {
        margin: 16px 0 14px;
    }

    #about .partner-label {
        margin: 16px 0 12px;
    }

    #about .partner-grid {
        gap: 12px;
    }

    .container {
        padding: 56px 16px 28px;
    }

    .container.home {
        padding: 28px 16px 18px;
    }

    .home__hero {
        margin-bottom: 28px;
    }

    .container__title {
        font-size: 30px;
        margin-bottom: 6px;
    }

    .container__subtitle {
        font-size: 1.6rem;
        line-height: 2.4rem;
        max-width: 30ch;
    }

    .home__headline {
        font-size: 2.0rem;
        margin: 18px 0 8px;
    }

    .home__text {
        font-size: 1.45rem;
        line-height: 2.15rem;
        max-width: 42ch;
        margin-left: auto;
        margin-right: auto;
    }

    .home__image {
        width: min(230px, 68vw);
    }

    .home__visual {
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .home__content {
        gap: 28px;
    }

    .home__video {
        margin-top: 22px;
    }

    .home__video-frame {
        width: min(680px, 92vw);
    }

    .navbar__inner {
        padding: 12px 16px;
        flex-wrap: nowrap;
        gap: 22px;
    }

    .logo {
        gap: 10px;
        font-size: 16px;
        letter-spacing: 0.6px;
        flex: 0 0 auto;
        min-width: 0;
    }

    .logo__icon {
        width: 30px;
        height: 30px;
    }

    .navbar__links {
        margin-left: auto;
        justify-content: flex-end;
        gap: 8px;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .navbar__links a {
        font-size: 11px;
        padding: 6px 9px;
        letter-spacing: 0.8px;
    }

    .features-grid--mini {
        grid-template-columns: 1fr;
        margin-top: 28px;
        gap: 12px;
    }

    .features-grid {
        width: 100%;
    }

    .feature-card {
        width: 100%;
        max-width: none;
    }

    .feature-card--mini {
        width: 100%;
        padding: 12px 14px;
        min-height: unset;
        border-radius: 14px;
    }

    .feature-card--mini .feature-card__title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .feature-card--mini .feature-card__text {
        font-size: 13px;
        line-height: 18px;
    }

    .feature-card__media {
        padding: 10px 0 2px;
    }

    .feature-card__media img {
        max-width: min(210px, 68vw);
        width: auto;
        height: auto;
        filter: none;
    }

    .feature-card__title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .feature-card__text {
        font-size: 13px;
        line-height: 19px;
        margin-bottom: 10px;
        -webkit-line-clamp: 5;
        max-width: 42ch;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 12px;
        justify-items: center;
    }

    .partner-card {
        height: 66px;
        padding: 10px 12px;
        width: min(320px, 100%);
    }

    .partner-meta {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .partner-card--stableaid {
        min-width: 200px;
        padding: 10px 14px;
        border-radius: 16px;
    }

    .partner-logo--stableaid {
        height: 38px;
        width: 38px;
        border-radius: 10px;
    }

    .footer {
        margin-top: 36px;
    }
}

@supports not (overflow: clip) {
    .section--features {
        overflow-x: hidden;
    }
}

@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        background-color: rgba(252, 250, 247, 0.78);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    .navbar__links a:hover {
        transform: none;
    }
}
