:root {
    color-scheme: light;
    --brand-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --brand-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --brand-canvas: #f6f9ff;
    --brand-surface: #ffffff;
    --brand-surface-raised: #ffffff;
    --brand-ink: #111827;
    --brand-muted: #667085;
    --brand-soft: #98a2b3;
    --brand-line: #dbe4f0;
    --brand-line-strong: #bccbe0;
    --brand-primary: #2563eb;
    --brand-primary-dark: #1d4ed8;
    --brand-primary-soft: #eff6ff;
    --brand-primary-faint: #dbeafe;
    --brand-teal: #0f766e;
    --brand-teal-soft: #ecfdf5;
    --brand-green: #28745a;
    --brand-green-soft: #edfdf6;
    --brand-red-soft: #fff1ef;
    --brand-red-line: #dfaaa4;
    --brand-radius-sm: 6px;
    --brand-radius-md: 8px;
    --brand-radius-lg: 12px;
    --brand-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    --brand-container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--brand-canvas);
}

body {
    margin: 0;
    background: var(--brand-canvas);
    color: var(--brand-ink);
    font-family: var(--brand-font-sans);
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
}

.brand-container {
    width: min(var(--brand-container), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(219, 228, 240, .88);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
}

.site-nav {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    min-height: 72px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-ink);
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--brand-radius-md);
    background: linear-gradient(135deg, var(--brand-primary), #0f766e);
    color: var(--brand-surface);
    font-size: 13px;
    font-weight: 700;
}

.brand-name {
    font-size: 19px;
    line-height: 1;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.nav-links,
.locale-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link,
.locale-link,
.nav-form-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--brand-radius-sm);
    background: transparent;
    color: var(--brand-ink);
    font-weight: 600;
    line-height: 1;
    padding: 0 10px;
    text-decoration: none;
}

.nav-link:hover,
.locale-link:hover,
.nav-form-button:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--brand-primary-dark);
}

.locale-switcher {
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius-sm);
    padding: 3px;
    background: rgba(255, 255, 255, .72);
}

.locale-link {
    min-height: 30px;
    padding-inline: 8px;
    color: var(--brand-muted);
    font-size: 12px;
}

.locale-link.is-active {
    background: var(--brand-primary);
    color: #fff;
}

.page-main {
    padding: 44px 0 64px;
}

.site-footer {
    border-top: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: 14px;
}

.site-footer-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-stack,
.stack {
    display: grid;
    gap: 22px;
}

.page-header {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.eyebrow {
    margin: 0;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 650;
    text-transform: uppercase;
}

.page-title,
.hero-title {
    margin: 0;
    color: var(--brand-ink);
    font-weight: 650;
    letter-spacing: 0;
}

.page-title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
}

.hero-title {
    max-width: 420px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.08;
}

.lead {
    max-width: 440px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 17px;
}

.muted {
    color: var(--brand-muted);
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(260px, .85fr);
    gap: clamp(28px, 5vw, 56px);
    min-height: 360px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    padding: clamp(28px, 6vw, 56px);
    box-shadow: var(--brand-shadow);
}

.hero-panel::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 460px;
}

.hero-visual {
    order: -1;
}

.hero-panel .eyebrow,
.hero-panel .lead {
    color: var(--brand-muted);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    border: 1px solid rgba(188, 203, 224, .82);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--brand-shadow);
    padding: 16px;
}

.hero-photo-frame {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 14px;
    background: #dbeafe;
}

.hero-photo-frame::before {
    content: "";
    position: absolute;
    inset: 28px 24px auto auto;
    width: 44%;
    height: 34%;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 14px 14px 4px 4px;
    transform: skewX(-12deg);
}

.hero-photo-frame::after {
    content: "001";
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    min-height: 46px;
    min-width: 74px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-ink);
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

.hero-visual-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.hero-visual-title {
    margin: 0;
    color: var(--brand-ink);
    font-weight: 650;
}

.hero-visual-text {
    margin: 0;
    color: var(--brand-muted);
    font-size: 14px;
}

.action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.section {
    padding-top: 34px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.15;
}

.card-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.surface,
.card,
.form-card {
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    background: var(--brand-surface);
    box-shadow: var(--brand-shadow);
}

.card,
.form-card {
    padding: 22px;
}

.card h2,
.card h3,
.surface h2,
.surface h3 {
    margin-top: 0;
}

.event-card {
    display: grid;
    gap: 10px;
}

.event-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.2;
}

.meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--brand-muted);
    font-size: 14px;
}

.meta-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary-dark);
    font-size: 13px;
    font-weight: 650;
    padding: 0 10px;
}

.empty-state {
    border: 1px dashed var(--brand-line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--brand-muted);
    padding: 22px;
}

.btn,
.button,
.button-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--brand-radius-sm);
    font-weight: 650;
    line-height: 1;
    padding: 0 16px;
    text-decoration: none;
}

.btn-primary,
.button,
.button-link {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover,
.button:hover,
.button-link:hover {
    background: var(--brand-primary-dark);
}

.btn-secondary {
    border-color: var(--brand-line);
    background: var(--brand-surface-raised);
    color: var(--brand-ink);
}

.btn-secondary:hover {
    border-color: var(--brand-line-strong);
    color: var(--brand-primary-dark);
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 32px;
    align-items: start;
}

.auth-copy {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.form,
.brand-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
    color: var(--brand-ink);
    font-weight: 650;
}

.form-field span {
    display: inline-flex;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius-sm);
    background: #fff;
    color: var(--brand-ink);
    padding: 12px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    outline: none;
}

textarea {
    min-height: 142px;
    resize: vertical;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--brand-muted);
    font-weight: 600;
}

.check-row input {
    width: auto;
}

.status,
.errors {
    border-radius: var(--brand-radius-md);
    margin-bottom: 20px;
    padding: 14px 16px;
}

.status {
    border: 1px solid #b7d6b3;
    background: var(--brand-green-soft);
    color: var(--brand-green);
}

.errors {
    border: 1px solid var(--brand-red-line);
    background: var(--brand-red-soft);
    color: #7d2018;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 24px;
    align-items: start;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.metric {
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius-md);
    background: #fff;
    padding: 16px;
}

.metric-label {
    margin: 0 0 6px;
    color: var(--brand-muted);
    font-size: 13px;
    font-weight: 650;
}

.metric-value {
    margin: 0;
    color: var(--brand-ink);
    font-size: 20px;
    font-weight: 650;
}

.list-stack {
    display: grid;
    gap: 10px;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--brand-line);
    padding-top: 12px;
}

@media (max-width: 820px) {
    .site-header {
        position: static;
    }

    .site-nav,
    .hero-panel,
    .auth-wrap,
    .split {
        grid-template-columns: 1fr;
    }

    .nav-panel {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
    }

    .nav-links,
    .locale-switcher {
        justify-content: flex-start;
    }

    .nav-link,
    .nav-form-button {
        min-height: 34px;
        padding-inline: 8px;
    }

    .hero-panel::after {
        display: none;
    }

    .section-header,
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-main {
        padding-top: 30px;
    }

    .hero-visual {
        order: -1;
    }
}
