:root {
  color-scheme: light;
  --ink: #12233f;
  --muted: #64748b;
  --navy: #10284b;
  --blue: #2563eb;
  --gold: #e5a928;
  --surface: #ffffff;
  --line: #dce5ef;
  --canvas: #f4f7fb;
  --success: #147d54;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.site-header { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid rgba(18,35,63,.08); }
.header-inner { width: min(1160px, calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 47px; height: 47px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { color: var(--navy); font-size: 1rem; letter-spacing: .03em; }
.brand-copy span { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.header-link { color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; }
.header-link:hover { color: var(--blue); }

.hero { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 88px) 20px 74px; background: radial-gradient(ellipse at 80% 5%, rgba(229,169,40,.2), transparent 30%), linear-gradient(135deg, #10284b, #183d6b 75%, #20518a); color: #fff; }
.hero::after { position: absolute; inset: auto -4% -115px 43%; height: 210px; content: ""; background: rgba(255,255,255,.06); transform: rotate(-8deg); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; width: min(1120px, 100%); margin: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: clamp(32px, 7vw, 84px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: #f3c65c; font-weight: 800; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 27px; height: 2px; content: ""; background: currentColor; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.5rem, 6.6vw, 5rem); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy { max-width: 620px; margin: 22px 0 28px; color: rgba(255,255,255,.79); font-size: clamp(1rem, 1.8vw, 1.15rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 23px; border: 0; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #1b2c45; box-shadow: 0 9px 24px rgba(0,0,0,.16); }
.button-primary:hover:not(:disabled) { background: #f0ba41; }
.button-secondary { color: var(--navy); background: #fff; }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.registration-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; font-size: .84rem; font-weight: 700; }
.registration-badge::before { width: 8px; height: 8px; content: ""; border-radius: 50%; background: #63dfaa; box-shadow: 0 0 0 4px rgba(99,223,170,.15); }
.registration-badge.is-closed::before { background: #ff9b91; box-shadow: 0 0 0 4px rgba(255,155,145,.15); }

.event-card { padding: 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 23px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 24px 64px rgba(2,15,36,.28); transform: rotate(1.2deg); }
.event-image-wrap { min-height: 190px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #eef3f9; }
.event-logo { width: 100%; height: 210px; object-fit: contain; padding: 24px; }
.event-image-placeholder { display: grid; place-items: center; width: 100%; height: 210px; color: #8293aa; font-size: .82rem; }
.event-card-body { padding: 21px 13px 16px; }
.event-card-label { margin: 0 0 7px; color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.event-card h2 { margin: 0; color: var(--navy); font-size: 1.4rem; line-height: 1.25; }
.event-details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 19px; }
.event-detail { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .85rem; }
.detail-icon { color: var(--blue); font-size: 1rem; }
.event-description { margin: 17px 0 0; color: var(--muted); font-size: .9rem; }

.content-section { width: min(1100px, calc(100% - 40px)); margin: auto; padding: 82px 0; }
.section-heading { max-width: 650px; margin: 0 auto 38px; text-align: center; }
.section-kicker { margin: 0 0 8px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading p:last-child { margin: 13px 0 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { min-height: 185px; padding: 23px 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 7px 22px rgba(18,35,63,.045); }
.step-number { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #edf4ff; color: var(--blue); font-size: .84rem; font-weight: 900; }
.step-card h3 { margin: 17px 0 7px; color: var(--navy); font-size: 1.04rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.no-event { width: min(900px, calc(100% - 40px)); margin: 40px auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.no-event h1 { margin: 0 0 8px; color: var(--navy); }
.no-event p { margin: 0; color: var(--muted); }
.page-message { width: min(1120px, calc(100% - 40px)); margin: 16px auto 0; color: rgba(255,255,255,.8); font-size: .88rem; }
.page-message[hidden] { display: none; }
.site-footer { padding: 25px 20px; background: #0b1c34; color: rgba(255,255,255,.7); text-align: center; font-size: .83rem; }
.site-footer p { margin: 3px 0; }
.footer-brand { color: #fff; font-weight: 800; }

.register-main { width: min(1120px, calc(100% - 40px)); margin: 48px auto 80px; }
.register-layout { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); gap: 27px; align-items: start; }
.register-intro { position: sticky; top: 25px; padding: 31px; border-radius: 21px; background: linear-gradient(150deg, #10284b, #1d467b); color: #fff; }
.register-intro .eyebrow { margin-bottom: 13px; }
.register-intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }
.register-intro p { color: rgba(255,255,255,.77); }
.register-event-summary { margin-top: 27px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.register-event-summary strong { display: block; margin-bottom: 5px; }
.register-event-summary span { color: rgba(255,255,255,.77); font-size: .9rem; }
.form-card, .success-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 12px 34px rgba(18,35,63,.07); }
.form-card h2 { margin: 0; color: var(--navy); font-size: 1.55rem; }
.form-subtitle { margin: 6px 0 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 15px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .87rem; font-weight: 750; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; outline: none; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.13); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.form-error { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fff1f0; color: #9b1c1c; font-size: .9rem; }
.form-success { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #a7f3d0; border-radius: 10px; background: #ecfdf5; color: #126b49; font-size: .9rem; }
.form-submit { width: 100%; margin-top: 23px; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.success-card { text-align: center; }
.success-icon { width: 57px; height: 57px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: #e4f8ef; color: var(--success); font-size: 1.6rem; font-weight: 900; }
.success-card h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
.success-card > p { color: var(--muted); }
.ticket-number { margin: 23px 0; padding: 17px; border: 1px dashed #b5c9e3; border-radius: 13px; background: #f5f9ff; }
.ticket-number span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ticket-number strong { display: block; margin-top: 3px; color: var(--navy); font-size: clamp(1.25rem, 4vw, 1.8rem); letter-spacing: .08em; }
.qr-wrap { width: fit-content; margin: 0 auto 21px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.qr-wrap canvas { display: block; max-width: 100%; height: auto; }
.ticket-note { max-width: 490px; margin: 0 auto 23px !important; font-size: .9rem; }
.loading-card { padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--muted); text-align: center; }
.loading-card[hidden], .form-card[hidden], .success-card[hidden], .no-event[hidden] { display: none; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr minmax(240px, .75fr); gap: 25px; }
  .event-image-wrap { min-height: 155px; }
  .event-logo, .event-image-placeholder { height: 175px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .register-layout { grid-template-columns: 1fr; }
  .register-intro { position: static; }
}
@media (max-width: 620px) {
  .header-inner { width: calc(100% - 28px); min-height: 69px; }
  .brand-logo { width: 41px; height: 41px; }
  .brand-copy span { max-width: 190px; font-size: .62rem; }
  .header-link { font-size: .83rem; }
  .hero { padding: 42px 16px 48px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .event-card { max-width: 440px; width: 100%; margin: 4px auto 0; transform: none; }
  .event-image-wrap { min-height: 150px; }
  .event-logo, .event-image-placeholder { height: 166px; }
  .content-section { width: calc(100% - 30px); padding: 58px 0; }
  .steps { gap: 11px; }
  .step-card { min-height: 164px; padding: 17px 15px; }
  .step-card h3 { margin-top: 13px; }
  .register-main { width: calc(100% - 28px); margin-top: 25px; }
  .register-intro { padding: 23px; }
}
@media (max-width: 390px) {
  .brand-copy span { max-width: 150px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .event-details, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
