:root {
    --ink: #16233a;
    --muted: #64748b;
    --line: #dfe6ee;
    --surface: #ffffff;
    --soft: #f4f8fb;
    --primary: #5b4be1;
    --primary-dark: #4032ba;
    --accent: #12a594;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 18px 50px rgba(35, 45, 75, .10);
    --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 230, 238, .9);
    backdrop-filter: blur(14px);
}

.nav-shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.25rem; font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(91, 75, 225, .25);
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > a { color: var(--ink); font-weight: 650; }
.nav-user { color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.button,
.asp-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: #fff !important;
    background: var(--primary);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(91, 75, 225, .22);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover,
.asp-button:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.button:disabled,
.asp-button:disabled { cursor: wait; opacity: .68; transform: none; }
.button-small { min-height: 40px; padding: 0 17px; border-radius: 10px; }
.button-secondary { color: var(--ink) !important; background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button-secondary:hover { background: #f8fafc; }

.hero {
    padding: 86px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(18, 165, 148, .16), transparent 28%),
        radial-gradient(circle at 12% 14%, rgba(91, 75, 225, .16), transparent 30%),
        linear-gradient(180deg, #fff, var(--soft));
}
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 68px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: .82rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.05em; }
.hero-copy { max-width: 670px; margin: 24px 0 30px; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 900; }

.exchange-card {
    position: relative;
    padding: 30px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.person-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--soft); border-radius: 16px; }
.avatar { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 850; }
.avatar.green { background: var(--accent); }
.person-row strong, .person-row span { display: block; }
.person-row span { color: var(--muted); font-size: .9rem; }
.relay-line { display: grid; place-items: center; height: 58px; color: var(--primary); font-size: 1.4rem; font-weight: 900; }

.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(35,45,75,.05); }
.feature-card h3 { margin: 12px 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--primary); background: #efedff; border-radius: 14px; font-size: 1.25rem; font-weight: 900; }

.page-wrap { min-height: calc(100vh - 220px); padding: 54px 0 80px; }
.auth-shell { width: min(520px, calc(100% - 36px)); margin: 0 auto; }
.auth-card, .panel { padding: clamp(24px, 5vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-card h1, .panel h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.03em; }
.lead { margin: 0 0 26px; color: var(--muted); }

.form-group { margin-bottom: 18px; }
.form-group label, .field-label { display: block; margin-bottom: 7px; font-weight: 720; }
.text-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    font: inherit;
    outline: none;
}
.text-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,75,225,.12); }
.field-help { margin-top: 5px; color: var(--muted); font-size: .84rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; color: #334155; }
.checkbox-row input { margin-top: 5px; }
.validation { display: block; margin-top: 5px; color: var(--danger); font-size: .86rem; }
.validation-summary, .message { margin: 0 0 20px; padding: 13px 15px; border-radius: 11px; }
.validation-summary, .message-error { color: #7a271a; background: #fef3f2; border: 1px solid #fecdca; }
.message-success { color: #05603a; background: #ecfdf3; border: 1px solid #abefc6; }
.message-info { color: #344054; background: #f2f4f7; border: 1px solid #e4e7ec; }
.form-footer { margin: 22px 0 0; color: var(--muted); text-align: center; }
.full-button { width: 100%; }

.dashboard-header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.dashboard-header h1 { margin: 0 0 5px; font-size: 2.3rem; letter-spacing: -.04em; }
.dashboard-header p { margin: 0; color: var(--muted); }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip { padding: 7px 11px; color: var(--primary-dark); background: #efedff; border-radius: 999px; font-size: .82rem; font-weight: 800; text-transform: capitalize; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.action-card { display: block; padding: 25px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(35,45,75,.05); }
.action-card:hover { border-color: #b8b0fa; text-decoration: none; transform: translateY(-2px); }
.action-card h2 { margin: 15px 0 8px; font-size: 1.22rem; }
.action-card p { margin: 0; color: var(--muted); }
.coming { display: inline-block; margin-top: 18px; color: var(--primary); font-size: .82rem; font-weight: 800; }

.legal { width: min(820px, calc(100% - 36px)); margin: 0 auto; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { margin-top: 34px; }
.legal p, .legal li { color: #475569; }

.site-footer { padding: 36px 0; color: #cbd5e1; background: #101828; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand { color: #fff; font-size: 1.15rem; font-weight: 850; }
.site-footer p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #e2e8f0; }

@media (max-width: 820px) {
    .hero-grid, .feature-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 62px; }
    .exchange-card { max-width: 520px; }
    .dashboard-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 28px, 1160px); }
    .nav-shell { min-height: 66px; }
    .main-nav { gap: 13px; font-size: .9rem; }
    .main-nav > a:first-child, .nav-user { display: none; }
    .hero h1 { font-size: 2.65rem; }
    .hero-actions .button { width: 100%; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
}
