@font-face {
    font-family: AudiType;
    src: url('AudiType-ExtendedNormal_4.03.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: AudiType;
    src: url('AudiType-ExtendedBold_4.03.otf') format('opentype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #07121e;
    --ink-soft: #101e2c;
    --panel: #142331;
    --line: #314351;
    --paper: #f3f5f6;
    --muted: #9daab5;
    --white: #f8fafb;
    --red: #ee283d;
    --red-dark: #b81f32;
    --blue: #173149;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: AudiType, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.hero {
    position: relative;
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
    min-height: 0;
    overflow: hidden;
    background: #081522;
}

.hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 15, 25, .86) 0%, rgba(5, 15, 25, .22) 52%, rgba(5, 15, 25, .45) 100%), linear-gradient(0deg, rgba(7, 18, 30, .9), transparent 42%);
    display: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 64px));
    min-height: 450px;
    margin: 0 auto;
    padding: 86px 0 66px;
    display: none;
}

.eyebrow, .section-kicker {
    margin: 0 0 16px;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 630px;
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
}

.hero h1 span { color: #ff3448; }

.hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    color: #d9e0e5;
    font-size: 12px;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.hero__meta i { width: 24px; height: 1px; background: var(--red); }

.page-shell {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

.event-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    padding: 90px 0 74px;
    border-bottom: 1px solid var(--line);
}

.event-intro h2, .form-heading h3, .modal h2, .success-card h1 {
    margin: 0;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.event-intro h2 { font-size: clamp(38px, 5vw, 62px); }

em { color: var(--red); font-style: normal; }

.event-intro__copy {
    max-width: 380px;
    margin: 0 0 6px auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.alert {
    margin-top: 28px;
    padding: 16px 20px;
    border-left: 3px solid var(--red);
    background: rgba(238, 40, 61, .12);
    color: #ffdfe2;
}

.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert--warning { border-color: #f2b84b; background: rgba(242, 184, 75, .12); color: #ffe8b7; }

.registration-layout {
    display: grid;
    grid-template-columns: 33% 67%;
    margin: 74px 0 0;
    border: 1px solid var(--line);
    background: var(--panel);
}

.info-panel {
    position: relative;
    min-height: 520px;
    padding: 43px 42px;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(39, 62, 83, .96), rgba(11, 25, 38, .96));
}

.info-panel::after {
    position: absolute;
    right: -72px;
    bottom: -85px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(238, 40, 61, .5);
    border-radius: 50%;
    content: '';
    box-shadow: 0 0 0 26px rgba(238, 40, 61, .03), 0 0 0 52px rgba(238, 40, 61, .03);
}

.info-panel__number, .details__item > span { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.info-panel h3 { position: relative; z-index: 1; margin: 60px 0 20px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.055em; line-height: 1.06; }
.info-panel p { position: relative; z-index: 1; margin: 0; color: #d4dde3; font-size: 14px; line-height: 1.8; }
.info-panel__line { width: 42px; height: 2px; margin: 30px 0 25px; background: var(--red); }
.info-panel .info-panel__small { max-width: 210px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.registration-form { padding: 46px 58px 50px; }
.form-heading { margin-bottom: 34px; }
.form-heading h3 { font-size: 31px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field span { color: #c3cdd4; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.field input, .field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #405363;
    border-radius: 0;
    background: #0e1b28;
    color: var(--white);
    padding: 14px 15px;
    outline: none;
    transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #e9eef1 50%), linear-gradient(135deg, #e9eef1 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; padding-right: 38px; }
.field input::placeholder { color: #728392; }
.field input:focus, .field select:focus { border-color: var(--red); background-color: #122535; }
.field option { background: #0e1b28; color: var(--white); }
.form-note { max-width: 560px; margin: 28px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 54px;
    border: 1px solid transparent;
    padding: 14px 22px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--red); color: #fff; }
.button--primary:hover { background: #ff3b50; }
.button--secondary { border-color: #506273; color: var(--white); }
.button--secondary:hover { border-color: var(--red); }

.details { display: none; grid-template-columns: repeat(3, 1fr); gap: 50px; padding: 82px 0 100px; }
.details__item { padding-top: 18px; border-top: 1px solid var(--line); }
.details__item h3 { margin: 25px 0 10px; font-size: 18px; }
.details__item p { max-width: 270px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.footer { display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 24px 0 30px; border-top: 1px solid var(--line); color: #6d7d89; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.footer img { width: 66px; height: auto; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 7, 12, .86); backdrop-filter: blur(5px); }
.modal__dialog { position: relative; z-index: 1; width: min(700px, 100%); max-height: min(810px, calc(100vh - 40px)); overflow: auto; padding: 42px 45px 38px; border: 1px solid #536575; background: #112131; box-shadow: 0 20px 70px rgba(0, 0, 0, .5); }
.modal__dialog--error { width: min(520px, 100%); }
.modal__close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #d9e0e5; cursor: pointer; font-size: 28px; line-height: 1; }
.modal h2 { max-width: 550px; margin-bottom: 27px; font-size: clamp(25px, 4vw, 38px); }
.terms-copy { height: min(430px, calc(100vh - 285px)); overflow-y: scroll; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin-bottom: 28px; padding-right: 18px; color: #c5d0d7; font-size: 13px; line-height: 1.65; scrollbar-color: #ee283d #1b3042; }
.terms-copy ol { margin: 0; padding-left: 22px; }
.terms-copy li { padding-left: 6px; }
.terms-copy li + li { margin-top: 13px; }
.terms-copy a { color: #ff5c6b; }
.error-list { margin: 0 0 27px; padding: 15px 18px; border-left: 3px solid var(--red); background: rgba(238, 40, 61, .12); color: #ffdfe2; }
.error-list p { margin: 0; }
.error-list p + p { margin-top: 7px; }

.success-page { min-height: 100vh; display: grid; place-items: center; padding: 45px 20px; background: radial-gradient(circle at 20% 0%, #18334b, transparent 37%), var(--ink); }
.success-card { width: min(860px, 100%); padding: 45px; border: 1px solid var(--line); background: rgba(16, 29, 43, .96); text-align: left; }
.success-card__mark { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 0 26px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-size: 25px; }
.success-card__mark--error { color: #f2b84b; border-color: #f2b84b; }
.success-card h1 { font-size: clamp(37px, 6vw, 60px); }
.success-card__lead { max-width: 450px; margin: 25px 0 32px; color: var(--muted); line-height: 1.75; }
.confirmation { margin: 0 0 28px; border-top: 1px solid var(--line); text-align: left; }
.confirmation > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.confirmation span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.confirmation strong { color: var(--white); font-size: 13px; text-align: right; }
.qr-card { display: inline-block; margin-bottom: 28px; padding: 15px 15px 10px; background: white; }
.qr-card img { display: block; width: 190px; height: 190px; }
.qr-card p { margin: 8px 0 0; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.success-card__qr { display: flex; justify-content: center; }
.success-card__content > .button--secondary { display: flex; width: fit-content; margin: 0 auto; }
.success-card .alert { margin: 0 0 25px; text-align: left; }
.verify-card { width: min(570px, 100%); }

@media (max-width: 760px) {
    .hero { width: min(100% - 36px, 1120px); }
    .hero__content { min-height: 0; }
    .hero__content, .page-shell, .footer { width: min(100% - 36px, 1120px); }
    .event-intro { grid-template-columns: 1fr; gap: 24px; padding: 60px 0 50px; }
    .event-intro__copy { margin: 0; }
    .registration-layout { grid-template-columns: 1fr; margin-top: 50px; }
    .info-panel { min-height: auto; padding: 30px; }
    .info-panel h3 { margin-top: 34px; }
    .info-panel__small { display: none; }
    .registration-form { padding: 38px 26px 32px; }
    .details { grid-template-columns: 1fr; gap: 30px; padding: 60px 0 70px; }
    .details__item p { max-width: none; }
    .modal__dialog { padding: 36px 24px 28px; }
    .terms-copy { height: calc(100vh - 270px); }
    .success-card { padding: 35px 22px; }
}

@media (max-width: 500px) {
    .hero h1 { font-size: 39px; }
    .hero__meta { flex-wrap: wrap; gap: 8px 12px; font-size: 10px; }
    .field-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .button { width: 100%; }
    .confirmation > div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .confirmation strong { text-align: left; }
    .footer { align-items: flex-start; flex-direction: column; gap: 16px; }
}

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