:root {
    --header-height-desktop: 104px;
    --header-height-mobile: 88px;
    --header-background: #1f2330;
    --header-overlay: rgba(13, 16, 27, 0.28);
    --header-overlay-menu: rgba(20, 23, 35, 0.96);
    --header-text: #f4f4f5;
    --header-muted: #a1a1aa;
    --header-accent: #f0512b;
    --header-focus: #f59e0b;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    color: #18181b;
    background: #f7f7f8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    color: #18181b;
    background: #ffffff;
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-page--home {
    background: #111521;
}

.site-header {
    z-index: 1000;
    width: 100%;
    color: var(--header-text);
}

.site-page--home .site-header {
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.7) 0%, var(--header-overlay) 70%, transparent 100%);
}

.site-page--inner .site-header {
    position: relative;
    background: var(--header-background);
}

.site-header__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: min(100%, 1440px);
    height: var(--header-height-desktop);
    margin: 0 auto;
    padding: 0 clamp(28px, 5vw, 80px);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header__nav--left {
    justify-self: start;
}

.site-header__nav--actions {
    justify-self: end;
    gap: 10px;
}

.site-header__link,
.site-header__action {
    color: var(--header-text);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header__link,
.site-header__action--login {
    opacity: 0.86;
    transition: color 160ms ease, opacity 160ms ease;
}

.site-header__link:hover,
.site-header__action--login:hover {
    color: #ffffff;
    opacity: 1;
}

.site-header__separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.34);
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.site-header__logo {
    display: block;
    width: 104px;
    height: auto;
}

.site-header__action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
}

.site-header__action--register {
    border: 1px solid var(--header-accent);
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-header__action--register:hover {
    color: #ffffff;
    background: var(--header-accent);
    border-color: var(--header-accent);
}

.site-header__link:focus-visible,
.site-header__action:focus-visible,
.site-header__brand:focus-visible,
.site-header__menu-button:focus-visible,
.site-header__mobile-menu a:focus-visible {
    outline: 2px solid var(--header-focus);
    outline-offset: 4px;
}

.site-header__menu-button,
.site-header__mobile-menu {
    display: none;
}

.site-main {
    min-height: calc(100vh - var(--header-height-desktop));
}

.site-page--home .site-main {
    min-height: 100vh;
}

.test-hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: flex-end;
    padding: calc(var(--header-height-desktop) + 80px) clamp(28px, 7vw, 112px) clamp(72px, 9vw, 128px);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(7, 10, 18, 0.9) 0%, rgba(7, 10, 18, 0.57) 42%, rgba(7, 10, 18, 0.13) 72%),
        linear-gradient(180deg, rgba(7, 10, 18, 0.08) 45%, rgba(7, 10, 18, 0.72) 100%),
        url("/images/hero-test-runner.png") center center / cover no-repeat;
}

.test-hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
}

.test-hero__eyebrow,
.test-inner-page__eyebrow {
    margin: 0 0 18px;
    color: var(--header-accent);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.test-hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(48px, 6.2vw, 92px);
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 0.95;
    text-wrap: balance;
}

.test-hero__description {
    max-width: 560px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
}

.test-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.test-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 999px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.test-button:hover {
    transform: translateY(-2px);
}

.test-button--primary {
    background: var(--header-accent);
    border: 1px solid var(--header-accent);
}

.test-button--secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.event-footprint {
    color: #202330;
    background: #bd95d8;
}

.event-footprint__inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
    align-items: center;
    width: min(100%, 1440px);
    min-height: 680px;
    margin: 0 auto;
    padding: clamp(72px, 8vw, 120px) clamp(28px, 7vw, 112px);
}

.event-footprint h2 {
    margin: 0;
    color: #202330;
    line-height: 0.92;
    text-transform: uppercase;
}

.event-footprint h2 span,
.event-footprint h2 strong {
    display: block;
}

.event-footprint h2 span {
    font-size: clamp(54px, 5.5vw, 84px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.event-footprint h2 strong {
    margin-top: 12px;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 550;
    letter-spacing: 0.035em;
}

.event-footprint__stats {
    display: grid;
    gap: 12px;
    margin: clamp(52px, 6vw, 84px) 0 0;
}

.event-footprint__stat {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    min-height: 72px;
}

.event-footprint__stat dt,
.event-footprint__stat dd {
    margin: 0;
}

.event-footprint__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 50%;
}

.event-footprint__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.event-footprint__icon svg circle {
    fill: currentColor;
    stroke: none;
}

.event-footprint__stat dd {
    font-size: clamp(24px, 2.3vw, 36px);
    font-weight: 730;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.event-footprint__stat dd strong {
    font-weight: 900;
}

.event-footprint__map {
    width: 100%;
}

.event-footprint__map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.event-footprint__country {
    fill: #202330;
}

.event-footprint__markers {
    fill: #f72549;
}

.event-showcase {
    padding: 18px 0 28px;
    color: #ffffff;
    background: #bd95d8;
}

.event-showcase__track {
    display: grid;
    grid-auto-columns: clamp(330px, 27vw, 430px);
    grid-auto-flow: column;
    gap: clamp(18px, 2.6vw, 40px);
    padding: 0 clamp(18px, 3vw, 48px) 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: clamp(18px, 3vw, 48px);
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.event-showcase__track::-webkit-scrollbar {
    display: none;
}

.event-card {
    height: min(68vw, 680px);
    min-height: 560px;
    scroll-snap-align: start;
}

.event-card__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    background: #202330;
    border-radius: 30px;
    isolation: isolate;
}

.event-card__link > img {
    position: absolute;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08);
    transform: scale(1.015);
    transition: filter 420ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.event-card__image--bursa {
    object-position: 63% center;
}

.event-card__image--ankara {
    object-position: 44% center;
}

.event-card__image--cesme {
    object-position: 58% center;
}

.event-card__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 19, 29, 0.05) 20%, rgba(16, 19, 29, 0.22) 54%, rgba(16, 19, 29, 0.92) 100%);
    transition: opacity 420ms ease;
}

.event-card__date {
    position: absolute;
    top: 34px;
    left: 34px;
    display: grid;
    grid-template-columns: 34px auto;
    align-items: center;
    column-gap: 10px;
    text-transform: uppercase;
}

.event-card__date svg {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.event-card__date strong {
    font-size: 18px;
    line-height: 1;
}

.event-card__date small {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.event-card__body {
    position: absolute;
    right: 34px;
    bottom: 34px;
    left: 34px;
    display: grid;
}

.event-card__title {
    max-width: calc(100% - 72px);
    font-size: clamp(28px, 2.3vw, 38px);
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-transform: uppercase;
}

.event-card__distance {
    margin-top: 28px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-card__location {
    margin-top: 22px;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-card__arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    color: #202330;
    background: #bd95d8;
    border-radius: 50%;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.event-card__arrow svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.event-card__link:focus-visible {
    outline: 4px solid var(--header-focus);
    outline-offset: -4px;
}

@media (hover: hover) and (pointer: fine) {
    .event-card__link:hover > img,
    .event-card__link:focus-visible > img {
        filter: grayscale(0) contrast(1);
        transform: scale(1.055);
    }

    .event-card__link:hover .event-card__shade,
    .event-card__link:focus-visible .event-card__shade {
        opacity: 0.84;
    }

    .event-card__link:hover .event-card__arrow,
    .event-card__link:focus-visible .event-card__arrow {
        color: #ffffff;
        background: var(--header-accent);
        transform: rotate(-4deg);
    }
}

.event-showcase__controls {
    display: flex;
    justify-content: space-between;
    padding: 18px clamp(18px, 3vw, 48px) 0;
}

.event-showcase__controls button {
    display: inline-flex;
    min-width: 150px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    color: #bd95d8;
    background: #202330;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-style: italic;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-showcase__controls button:disabled {
    cursor: default;
    opacity: 0.42;
}

.event-showcase__controls svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.brand-story {
    color: #d8d6d7;
    background: #202330;
}

.brand-story__inner {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
    gap: clamp(56px, 7vw, 120px);
    align-items: center;
    width: min(100%, 1500px);
    min-height: 800px;
    margin: 0 auto;
    padding: clamp(78px, 8vw, 126px) clamp(28px, 6vw, 96px);
}

.brand-story__content {
    max-width: 700px;
}

.brand-story h2 {
    margin: 0 0 42px;
    color: #e0dddd;
    font-size: clamp(64px, 6vw, 100px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.88;
    text-transform: uppercase;
}

.brand-story p {
    max-width: 680px;
    margin: 0;
    color: rgba(237, 235, 236, 0.78);
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.65;
}

.brand-story p + p {
    margin-top: 28px;
}

.brand-story .brand-story__lead {
    color: #e0dddd;
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 760;
    letter-spacing: 0.045em;
    line-height: 1.5;
    text-transform: uppercase;
}

.brand-story__visual {
    position: relative;
    width: min(100%, 650px);
    aspect-ratio: 0.92;
    justify-self: end;
    margin: 0;
}

.brand-story__visual > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% 42%;
}

.brand-story__hand {
    position: absolute;
    bottom: 2%;
    left: -18%;
    width: 45%;
    overflow: visible;
    fill: none;
    stroke: #d2f53c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 11;
}

.brand-story__motion-mark {
    position: absolute;
    top: 53%;
    right: -13%;
    width: 49%;
    fill: #bd95d8;
}

.test-inner-page {
    min-height: calc(100svh - var(--header-height-desktop));
    padding: clamp(72px, 9vw, 140px) clamp(28px, 8vw, 128px);
    background: #ece9e7;
}

.test-inner-page__content {
    width: min(100%, 760px);
}

.test-inner-page h1 {
    margin: 0;
    color: #1f2330;
    font-size: clamp(58px, 8vw, 112px);
    font-weight: 820;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.test-inner-page p:not(.test-inner-page__eyebrow) {
    max-width: 660px;
    margin: 32px 0 0;
    color: #52525b;
    font-size: 18px;
    line-height: 1.7;
}

.test-text-link {
    display: inline-flex;
    margin-top: 32px;
    color: #1f2330;
    font-size: 14px;
    font-weight: 750;
    text-underline-offset: 5px;
}

@media (max-width: 767px) {
    .site-header__inner {
        display: flex;
        height: var(--header-height-mobile);
        justify-content: flex-end;
        padding: 0 22px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__brand {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        padding: 6px;
        transform: translate(-50%, -50%);
    }

    .site-header__logo {
        width: 78px;
    }

    .site-header__menu-button {
        position: relative;
        z-index: 2;
        display: inline-flex;
        width: 46px;
        height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        color: inherit;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .site-header__menu-button span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--header-muted);
        transform-origin: center;
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .site-header__menu-button[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .site-header__menu-button[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header__menu-button[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-header__mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: grid;
        width: 100%;
        gap: 2px;
        padding: 10px 22px 24px;
        background: var(--header-background);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
    }

    .site-page--home .site-header__mobile-menu {
        background: var(--header-overlay-menu);
        backdrop-filter: blur(14px);
    }

    .site-header__mobile-menu[hidden] {
        display: none;
    }

    .site-header__mobile-menu a {
        display: flex;
        min-height: 48px;
        align-items: center;
        padding: 0 12px;
        color: var(--header-text);
        font-size: 14px;
        font-weight: 650;
        letter-spacing: 0.06em;
        text-decoration: none;
        text-transform: uppercase;
        border-radius: 8px;
    }

    .site-header__mobile-menu a:hover {
        background: rgba(255, 255, 255, 0.07);
    }

    .site-header__mobile-menu .site-header__mobile-register {
        justify-content: center;
        margin-top: 8px;
        border: 1px solid var(--header-accent);
    }

    .site-main {
        min-height: calc(100vh - var(--header-height-mobile));
    }

    .site-page--home .site-main {
        min-height: 100vh;
    }

    .test-hero {
        min-height: 100svh;
        padding: calc(var(--header-height-mobile) + 64px) 22px 54px;
        background-position: 68% center;
    }

    .test-hero h1 {
        font-size: clamp(44px, 14vw, 62px);
    }

    .test-hero__description {
        max-width: 320px;
        font-size: 16px;
    }

    .test-hero__actions {
        display: grid;
        width: 100%;
    }

    .test-button {
        width: 100%;
    }

    .event-footprint__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 64px 22px 42px;
    }

    .event-footprint h2 span {
        font-size: clamp(46px, 14vw, 62px);
    }

    .event-footprint h2 strong {
        margin-top: 8px;
        font-size: clamp(25px, 8vw, 34px);
        letter-spacing: 0.045em;
    }

    .event-footprint__stats {
        gap: 6px;
        margin-top: 34px;
    }

    .event-footprint__stat {
        grid-template-columns: 48px 1fr;
        min-height: 48px;
    }

    .event-footprint__icon {
        width: 40px;
        height: 40px;
    }

    .event-footprint__icon svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
    }

    .event-footprint__stat dd {
        font-size: clamp(17px, 5.2vw, 22px);
    }

    .event-footprint__map {
        width: calc(100% + 30px);
        margin: 28px -15px 0;
    }

    .event-showcase {
        padding: 10px 0 34px;
    }

    .event-showcase__track {
        grid-auto-columns: min(72vw, 280px);
        gap: 16px;
        padding: 0 22px 14px;
        scroll-padding-inline: 22px;
    }

    .event-card {
        height: min(108vw, 420px);
        min-height: 374px;
    }

    .event-card__link {
        border-radius: 28px;
    }

    .event-card__date {
        top: 22px;
        left: 18px;
        grid-template-columns: 25px auto;
        column-gap: 7px;
    }

    .event-card__date svg {
        width: 25px;
        height: 25px;
    }

    .event-card__date strong {
        font-size: 14px;
    }

    .event-card__date small {
        font-size: 10px;
    }

    .event-card__body {
        right: 18px;
        bottom: 20px;
        left: 18px;
    }

    .event-card__title {
        max-width: calc(100% - 50px);
        font-size: 21px;
    }

    .event-card__distance {
        margin-top: 14px;
        font-size: 11px;
    }

    .event-card__location {
        margin-top: 10px;
        font-size: 9px;
    }

    .event-card__arrow {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .event-card__arrow svg {
        width: 23px;
        height: 23px;
    }

    .event-showcase__controls {
        display: none;
    }

    .brand-story__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 72px;
        padding: 78px 22px 84px;
    }

    .brand-story__visual {
        order: -1;
        width: min(84vw, 320px);
        aspect-ratio: 0.89;
        align-self: center;
    }

    .brand-story__hand {
        bottom: -3%;
        left: -10%;
        width: 42%;
        stroke-width: 10;
    }

    .brand-story__motion-mark {
        top: 53%;
        right: -12%;
        width: 46%;
    }

    .brand-story__content {
        width: 100%;
    }

    .brand-story h2 {
        margin-bottom: 34px;
        font-size: clamp(48px, 14vw, 64px);
        line-height: 0.92;
    }

    .brand-story p,
    .brand-story .brand-story__lead {
        font-size: 14px;
        line-height: 1.55;
    }

    .brand-story p + p {
        margin-top: 24px;
    }

    .test-inner-page {
        min-height: calc(100svh - var(--header-height-mobile));
        padding: 68px 22px;
    }

    .test-inner-page h1 {
        font-size: clamp(52px, 18vw, 76px);
    }

    .test-inner-page p:not(.test-inner-page__eyebrow) {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
