:root {
    --ink: #111111;
    --ink-soft: #242424;
    --paper: #f2efe7;
    --paper-deep: #ded9ce;
    --white: #ffffff;
    --acid: #d9ff43;
    --acid-deep: #bce51f;
    --signal: #ff4d23;
    --blue: #2454ff;
    --muted: #77766f;
    --line: rgba(17, 17, 17, 0.18);
    --profile-accent: #9c70ff;
    --display: "Archivo Black", Impact, sans-serif;
    --mono: "IBM Plex Mono", Consolas, monospace;
    --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}
body[data-profile-theme="emerald"] { --profile-accent: var(--acid-deep); }
body[data-profile-theme="blue"] { --profile-accent: var(--blue); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.skip-link {
    position: fixed;
    z-index: 999;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--acid);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-family: var(--display);
    font-size: 25px;
    letter-spacing: -1.7px;
    cursor: pointer;
}
.wordmark b { color: var(--acid); font-family: var(--mono); font-size: 18px; letter-spacing: -5px; }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    color: var(--white);
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
    height: 74px;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
    align-items: center;
    gap: 36px;
    padding: 0 clamp(20px, 4vw, 72px);
}
.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a {
    position: relative;
    padding: 27px 0 24px;
    color: rgba(255,255,255,.66);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.desktop-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    background: var(--acid);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.desktop-nav a:hover { color: var(--white); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions, .header-user { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.24);
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}
.theme-toggle:hover { color: var(--ink); background: var(--acid); transform: translate(-2px, -2px); }
.header-account {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 5px 6px 5px 5px;
    border: 1px solid rgba(255,255,255,.22);
    color: var(--white);
    background: transparent;
    cursor: pointer;
}
.header-account > span:not(.avatar) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.header-account > i { padding: 0 8px 0 2px; color: var(--acid); font-size: 11px; }

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.28);
    background: transparent;
}
.mobile-menu-button span { display: block; width: 18px; height: 2px; background: var(--white); }
.mobile-nav { padding: 0 20px 22px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.12); }
.mobile-nav > a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 12px; }
.mobile-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 18px; }

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 currentColor; }
.button:active:not(:disabled) { transform: translate(0, 0); box-shadow: none; }
.button i { transition: transform .14s steps(2, end); }
.button:hover:not(:disabled) i { transform: translateX(4px); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-small { min-height: 38px; padding: 0 15px; font-size: 11px; }
.button-large { min-height: 58px; padding: 0 26px; font-size: 14px; }
.button-full { width: 100%; }
.button-acid { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--blue); }
.button-quiet { color: rgba(255,255,255,.82); background: transparent; border-color: rgba(255,255,255,.22); }
.button-quiet:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--acid); }
.button-outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.site-header .button-outline { color: var(--white); border-color: rgba(255,255,255,.4); }
.button.disabled { opacity: .45; pointer-events: none; }

.hero {
    min-height: calc(100vh - 74px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    overflow: hidden;
    padding: clamp(76px, 8vw, 126px) clamp(24px, 6vw, 105px) 112px;
    background: var(--paper);
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .34;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, #000, transparent 88%);
}
.hero::after {
    content: "R";
    position: absolute;
    z-index: 0;
    right: -2vw;
    bottom: -16vw;
    color: transparent;
    -webkit-text-stroke: 2px rgba(17,17,17,.06);
    font-family: var(--display);
    font-size: min(68vw, 850px);
    line-height: .8;
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 790px; }
.hero-index { display: flex; gap: 34px; margin-bottom: 36px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.hero-index span:last-child { color: var(--muted); }
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(58px, 7.6vw, 132px);
    font-weight: 400;
    letter-spacing: clamp(-6px, -.06em, -2px);
    line-height: .82;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 580px; margin: 34px 0 0; color: #4c4b47; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.text-action { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font-weight: 800; cursor: pointer; }
.text-action i { width: 26px; height: 26px; display: grid; place-items: center; color: var(--white); background: var(--ink); font-size: 9px; }

.hero-console {
    position: relative;
    z-index: 3;
    width: min(100%, 620px);
    justify-self: end;
    border: 2px solid var(--ink);
    color: var(--white);
    background: var(--ink);
    box-shadow: 18px 18px 0 var(--acid);
    transform: rotate(1.7deg);
}
.console-topbar { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.16); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }
.console-topbar span:last-child { text-align: right; color: rgba(255,255,255,.45); }
.console-live { display: flex; align-items: center; gap: 7px; color: var(--acid); }
.console-live i { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 4px rgba(217,255,67,.12); }
.console-body { min-height: 410px; display: grid; grid-template-columns: 56px 1fr; }
.console-rail { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 20px 0; border-right: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: 9px; }
.console-rail b { margin-bottom: 14px; color: var(--acid); font-size: 16px; }
.console-rail span { color: rgba(255,255,255,.34); }
.console-rail span:first-of-type { color: var(--white); }
.console-main { padding: 42px 36px 28px; }
.console-heading small, .console-key span, .console-metrics small { color: rgba(255,255,255,.42); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.console-heading h2 { margin: 7px 0 28px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 50px); font-weight: 400; letter-spacing: -2px; text-transform: uppercase; }
.signal-visual { height: 112px; display: flex; align-items: flex-end; gap: 8px; padding: 16px 14px 0; background: #191919; border-left: 3px solid var(--acid); }
.signal-visual span { flex: 1; height: 44%; background: rgba(217,255,67,.24); }
.signal-visual span:nth-child(2) { height: 72%; }
.signal-visual span:nth-child(3) { height: 58%; }
.signal-visual span:nth-child(4) { height: 92%; background: var(--acid); }
.signal-visual span:nth-child(5) { height: 68%; }
.signal-visual span:nth-child(6) { height: 82%; }
.signal-visual span:nth-child(7) { height: 100%; background: var(--blue); }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: rgba(255,255,255,.12); }
.console-metrics div { padding: 15px 12px; background: var(--ink); }
.console-metrics strong { display: block; margin-top: 7px; color: var(--acid); font-family: var(--mono); font-size: 11px; }
.console-key { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.console-key code { color: var(--white); font-family: var(--mono); font-size: 12px; }
.console-stamp { position: absolute; right: -30px; bottom: -34px; width: 114px; height: 114px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: var(--signal); border: 2px solid var(--ink); transform: rotate(-8deg); }
.console-stamp span { font-family: var(--display); font-size: 45px; }
.console-stamp small { font-family: var(--mono); font-size: 7px; font-weight: 700; line-height: 1.5; }
.hero-footnote { position: absolute; z-index: 2; bottom: 26px; left: clamp(24px, 6vw, 105px); display: flex; align-items: center; gap: 14px; }
.hero-footnote > span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: var(--mono); font-size: 9px; }
.hero-footnote p { margin: 0; font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: .08em; }

.ticker { overflow: hidden; padding: 17px 0; color: var(--acid); background: var(--blue); border-block: 2px solid var(--ink); }
.ticker > div { width: max-content; display: flex; align-items: center; gap: 28px; padding-left: 24px; font-family: var(--display); font-size: 18px; animation: ticker 24s linear infinite; }
.ticker i { width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-shell { padding: clamp(84px, 10vw, 150px) clamp(24px, 6vw, 105px); }
.section-label { display: flex; align-items: center; gap: 13px; font-family: var(--mono); }
.section-label span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 9px; }
.section-label p { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.section-label.light { color: rgba(255,255,255,.7); }
.eyebrow, .panel-kicker { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .14em; }

.manifesto { display: grid; grid-template-columns: 220px 1fr; gap: 40px; border-bottom: 1px solid var(--line); }
.manifesto-copy { max-width: 1040px; }
.manifesto-copy .eyebrow { color: var(--blue); }
.manifesto h2, .community-copy h2, .faq-title h2, .final-cta h2 {
    margin: 18px 0 0;
    font-family: var(--display);
    font-size: clamp(52px, 7vw, 114px);
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.055em;
}
.manifesto h2 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.section-lead { max-width: 650px; margin: 34px 0 0 30%; color: #56544e; font-size: 18px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 0; }
.feature-card { min-height: 650px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 2px solid var(--ink); }
.feature-card + .feature-card { border-left: 0; }
.feature-card-dark { color: var(--white); background: var(--ink); }
.feature-card-acid { background: var(--acid); }
.feature-card-paper { background: var(--white); }
.feature-number { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.feature-card h3 { margin: 0; font-family: var(--display); font-size: clamp(34px, 3.3vw, 56px); font-weight: 400; letter-spacing: -.04em; line-height: .94; text-transform: uppercase; }
.feature-card p { max-width: 340px; margin: 20px 0 0; color: inherit; opacity: .68; font-size: 14px; line-height: 1.65; }
.identity-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid rgba(255,255,255,.2); background: #181818; transform: rotate(-3deg); }
.identity-card > div { display: flex; flex-direction: column; gap: 4px; }
.identity-card small, .identity-card span { color: rgba(255,255,255,.4); font-family: var(--mono); font-size: 8px; }
.identity-card strong { font-family: var(--mono); font-size: 13px; }
.sync-orbit { position: relative; width: min(80%, 290px); aspect-ratio: 1; display: grid; place-items: center; align-self: center; border: 2px solid var(--ink); border-radius: 50%; }
.sync-orbit::before, .sync-orbit::after { content: ""; position: absolute; border: 1px solid rgba(17,17,17,.35); border-radius: 50%; }
.sync-orbit::before { inset: 14%; }
.sync-orbit::after { inset: 31%; }
.sync-orbit span { font-family: var(--display); font-size: 76px; }
.sync-orbit i { position: absolute; width: 17px; height: 17px; background: var(--blue); border: 2px solid var(--ink); border-radius: 50%; }
.sync-orbit i:nth-of-type(1) { top: 8%; left: 23%; }
.sync-orbit i:nth-of-type(2) { right: 4%; bottom: 32%; background: var(--signal); }
.sync-orbit i:nth-of-type(3) { bottom: 8%; left: 24%; background: var(--white); }
.key-art { width: min(80%, 280px); align-self: center; padding: 24px; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--blue); transform: rotate(3deg); }
.key-art small, .key-art span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.key-art strong { display: block; margin: 20px 0; font-family: var(--display); font-size: 55px; font-weight: 400; line-height: .83; }

.community-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 130px); color: var(--white); background: var(--blue); }
.community-copy h2 { max-width: 760px; }
.community-copy h2 em { color: var(--acid); font-style: normal; }
.community-copy > p { max-width: 580px; margin: 32px 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.7; }
.roster-preview { align-self: center; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 16px 16px 0 var(--acid); transform: rotate(-1deg); }
.roster-head { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: var(--white); background: var(--ink); font-family: var(--mono); font-size: 10px; }
.roster-head b { color: var(--acid); font-size: 18px; }
.roster-row { display: grid; grid-template-columns: 28px 44px 1fr auto 8px; align-items: center; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: 0; }
.roster-rank, .roster-row small { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.roster-row img { width: 44px; height: 44px; background: var(--paper-deep); border: 1px solid var(--ink); }
.roster-row strong { font-family: var(--mono); font-size: 12px; }
.roster-row i { width: 8px; height: 8px; background: var(--acid-deep); border: 1px solid var(--ink); border-radius: 50%; }

.steps { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.steps-list { border-top: 2px solid var(--ink); }
.steps-list article { display: grid; grid-template-columns: 90px minmax(200px, .7fr) 1fr; align-items: center; gap: 26px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.steps-list article > span { font-family: var(--mono); font-size: 11px; }
.steps-list h3 { margin: 0; font-family: var(--display); font-size: clamp(27px, 3vw, 44px); font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.steps-list p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }

.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 150px); background: var(--white); border-block: 1px solid var(--line); }
.faq-title h2 { font-size: clamp(48px, 6vw, 94px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-weight: 800; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { transition: transform .2s ease; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details p { max-width: 620px; margin: -6px 0 28px; color: var(--muted); line-height: 1.7; }

.final-cta { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 170px) clamp(24px, 6vw, 105px); color: var(--ink); background: var(--acid); }
.final-cta::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(90deg, transparent 49.8%, var(--ink) 50%, transparent 50.2%); background-size: 80px 100%; pointer-events: none; }
.final-cta > * { position: relative; z-index: 1; }
.cta-mark { position: absolute; top: 32px; right: clamp(24px, 6vw, 105px); font-family: var(--display); font-size: 32px; }
.final-cta > p { margin: 0 0 25px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.final-cta h2 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.final-cta .button { margin-top: 42px; }

.site-footer { padding: 64px clamp(24px, 6vw, 105px) 26px; color: var(--white); background: var(--ink); }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-wordmark { font-size: clamp(52px, 8vw, 120px); }
.footer-wordmark b { font-size: .5em; }
.footer-main p { margin: 8px 0 0; color: rgba(255,255,255,.45); font-family: var(--mono); font-size: 10px; line-height: 1.6; text-align: right; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; max-width: 690px; margin: 52px 0 64px auto; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links strong { margin-bottom: 7px; color: var(--acid); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.footer-links a, .footer-links button { padding: 0; border: 0; color: rgba(255,255,255,.62); background: transparent; font-size: 13px; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.36); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }

.avatar { position: relative; flex: 0 0 auto; display: inline-block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-deep); border: 1px solid currentColor; }
.avatar-small { width: 30px; height: 30px; }
.avatar-large { width: 62px; height: 62px; }
.avatar-xlarge { width: 104px; height: 104px; }
.presence-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; background: var(--acid); border: 2px solid var(--ink); border-radius: 50%; }
.presence-dot.recent { background: #aaa; }
.presence-dot.static { position: static; display: inline-block; width: 8px; height: 8px; border-width: 1px; }

/* Dashboard */
.dashboard-view { min-height: 100vh; color: var(--ink); background: #e9e5dc; }
.dashboard-topbar { min-height: 68px; display: grid; grid-template-columns: 225px 1fr auto auto auto; align-items: center; gap: 16px; padding: 0 28px; color: var(--white); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.14); }
.dashboard-theme-toggle { width: 34px; height: 34px; }
.dashboard-wordmark { font-size: 22px; }
.dashboard-context { display: flex; gap: 12px; color: rgba(255,255,255,.45); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.dashboard-context strong { max-width: 220px; overflow: hidden; color: var(--white); text-overflow: ellipsis; white-space: nowrap; }
.platform-state { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.5); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.platform-state > span { width: 6px; height: 6px; background: var(--signal); border-radius: 50%; }
.platform-state.connected { color: var(--acid); }
.platform-state.connected > span { background: var(--acid); }
.dashboard-exit { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); background: transparent; font-family: var(--mono); font-size: 9px; cursor: pointer; }
.dashboard-shell { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 250px minmax(0, 1fr) 310px; }
.dashboard-sidebar { display: flex; flex-direction: column; padding: 26px 18px 22px; color: var(--white); background: #1a1a1a; border-right: 1px solid #343434; }
.sidebar-profile { display: flex; align-items: center; gap: 13px; padding: 0 8px 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-profile > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.sidebar-profile strong { max-width: 130px; overflow: hidden; color: rgba(255,255,255,.65); font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-badge { padding: 3px 5px; color: var(--ink); background: var(--acid); font-family: var(--mono); font-size: 7px; font-weight: 700; }
.dashboard-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.dashboard-nav button { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; min-height: 48px; padding: 0 12px; border: 1px solid transparent; color: rgba(255,255,255,.5); background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
.dashboard-nav button > span { color: rgba(255,255,255,.25); font-family: var(--mono); font-size: 8px; }
.dashboard-nav button > b { min-width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); font-family: var(--mono); font-size: 8px; }
.dashboard-nav button:hover { color: var(--white); border-color: rgba(255,255,255,.12); }
.dashboard-nav button.active { color: var(--ink); background: var(--acid); }
.dashboard-nav button.active > span { color: rgba(17,17,17,.5); }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 10px; border: 0; color: rgba(255,255,255,.42); background: transparent; font-family: var(--mono); font-size: 8px; cursor: pointer; }
.dashboard-content { min-width: 0; padding: clamp(30px, 4vw, 62px); overflow: hidden; }
.dashboard-panel { max-width: 1040px; margin: 0 auto; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.panel-title-row h1 { max-width: 800px; margin: 10px 0 8px; font-family: var(--display); font-size: clamp(40px, 4.8vw, 72px); font-weight: 400; letter-spacing: -.05em; line-height: .96; text-transform: uppercase; }
.panel-title-row p { margin: 0; color: var(--muted); line-height: 1.6; }
.account-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); font-family: var(--mono); font-size: 8px; }
.account-chip i { width: 6px; height: 6px; background: var(--acid-deep); border-radius: 50%; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-card { position: relative; min-height: 138px; padding: 22px; border: 1px solid var(--ink); background: var(--paper); }
.metric-card small { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.metric-card strong { display: block; max-width: 80%; margin-top: 26px; font-size: 18px; }
.metric-card > span { position: absolute; top: 18px; right: 18px; color: var(--blue); font-family: var(--display); font-size: 28px; }
.overview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; margin-top: 10px; }
.dashboard-card { border: 1px solid var(--ink); background: var(--paper); }
.license-summary { min-height: 270px; padding: 25px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-header h2, .download-summary h2, .license-detail-top h2, .download-copy h2, .release-notes h2 { margin: 7px 0 0; font-family: var(--display); font-size: 27px; font-weight: 400; letter-spacing: -.04em; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 8px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 7px; font-weight: 600; text-transform: uppercase; }
.status-badge.warning { background: var(--paper-deep); }
.status-badge.success { background: var(--acid); }
.key-display { margin: 28px 0 14px; padding: 16px; overflow: hidden; color: var(--acid); background: var(--ink); font-family: var(--mono); font-size: clamp(15px, 2vw, 22px); letter-spacing: .1em; white-space: nowrap; text-overflow: ellipsis; }
.license-summary > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.download-summary { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; color: var(--white); background: var(--blue); }
.download-summary p { color: rgba(255,255,255,.6); font-size: 12px; }
.download-glyph, .download-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); font-family: var(--display); font-size: 17px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; }
.download-summary .icon-button { align-self: flex-end; }

.profile-editor-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 12px; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px; }
.profile-form > label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 700; }
.profile-form > label:nth-of-type(3), .profile-form .profile-upload-field, .profile-form fieldset, .profile-form .button { grid-column: 1 / -1; }
.profile-form input, .profile-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--white); resize: vertical; }
.field-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 500; }
.field-meta b { color: var(--blue); }
.profile-upload-field { display: flex; flex-direction: column; gap: 8px; }
.profile-field-label { font-size: 11px; font-weight: 700; }
.avatar-upload-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line); background: rgba(255,255,255,.42); }
.file-picker { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--white); background: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.file-picker input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.file-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-details strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-details small { color: var(--muted); font-size: 8px; }
.remove-avatar { padding: 8px 0; border: 0; color: #b72e14; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.profile-form fieldset { padding: 0; border: 0; }
.profile-form legend { margin-bottom: 10px; font-size: 11px; font-weight: 700; }
.theme-options { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-options label { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); background: var(--white); font-size: 10px; cursor: pointer; }
.theme-dot { width: 9px; height: 9px; display: inline-block; background: #9c70ff; border-radius: 50%; }
.theme-dot.emerald { background: var(--acid-deep); }
.theme-dot.blue { background: var(--blue); }
.profile-live-preview { min-height: 570px; padding: 28px; color: var(--white); background: var(--ink); }
.large-profile-card { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 28px; padding: 34px; border: 1px solid rgba(255,255,255,.16); text-align: center; }
.large-profile-card::before { content: "RİVAL ID"; align-self: flex-start; margin-bottom: 35px; color: var(--profile-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.large-profile-card h2 { margin: 20px 0 10px; font-family: var(--display); font-size: 34px; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.large-profile-card p { color: rgba(255,255,255,.55); }
.profile-meta { margin-top: 20px; color: rgba(255,255,255,.45); font-family: var(--mono); font-size: 9px; }

.license-detail-card { padding: 28px; }
.license-detail-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.license-key-box { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: clamp(20px, 4vw, 38px); color: var(--acid); background: var(--ink); }
.license-key-box code { min-width: 0; flex: 1; overflow: hidden; font-family: var(--mono); font-size: clamp(17px, 3vw, 35px); letter-spacing: .08em; white-space: nowrap; text-overflow: ellipsis; }
.license-key-box .icon-button { flex: 0 0 auto; }
.license-key-box .icon-button:disabled { opacity: .35; }
.license-notice { display: flex; gap: 13px; margin-top: 18px; padding: 15px; border-left: 3px solid var(--blue); background: rgba(36,84,255,.07); }
.license-notice p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.license-actions { display: flex; gap: 10px; margin-top: 24px; }

.download-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px; }
.download-icon { width: 86px; height: 86px; font-size: 25px; }
.download-copy p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.requirement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.requirement-grid article { min-height: 90px; padding: 20px; border: 1px solid var(--ink); background: var(--paper); }
.requirement-grid span { display: block; margin-bottom: 18px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.requirement-grid strong { font-size: 13px; }
.release-notes { margin-top: 10px; padding: 28px; }
.release-notes-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.release-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.release-list li { display: flex; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.release-list li > span { color: var(--blue); font-family: var(--display); font-size: 24px; }
.release-list strong { font-size: 11px; }
.release-list p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.dashboard-presence { padding: 24px 18px; background: #dcd7cc; border-left: 1px solid var(--ink); }
.presence-panel-top, .presence-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.presence-panel-top > div { display: flex; align-items: center; gap: 8px; }
.presence-panel-top > span { color: var(--muted); font-family: var(--mono); font-size: 7px; }
.presence-panel-title { margin: 28px 0 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.presence-panel-title h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.presence-panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.presence-count { width: 35px; height: 35px; display: grid; place-items: center; color: var(--acid); background: var(--ink); font-family: var(--mono); font-size: 10px; }
.community-member { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.community-member .avatar { width: 38px; height: 38px; }
.community-member > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.community-member strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-status { color: var(--muted); font-family: var(--mono); font-size: 7px; }
.member-status.online, .member-status.admin { color: #5f7c00; }
.community-source { display: flex; align-items: center; gap: 5px; color: var(--muted); font-family: var(--mono); font-size: 6px; text-transform: uppercase; }
.empty-state { padding: 36px 12px; text-align: center; }
.empty-state > span { display: block; color: var(--blue); font-family: var(--display); font-size: 42px; }
.empty-state strong { display: block; margin-top: 9px; }
.empty-state p { color: var(--muted); font-size: 10px; }

/* Authentication */
.auth-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 18px 18px 0 rgba(0,0,0,.28); }
.auth-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.auth-shell { min-height: 650px; display: grid; grid-template-columns: .9fr 1.1fr; position: relative; }
.dialog-close { position: absolute; z-index: 5; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; min-height: 650px; padding: 34px; color: var(--white); background: var(--blue); }
.auth-wordmark { font-size: 31px; }
.auth-code { color: var(--acid); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.auth-aside h2 { margin: 16px 0 0; font-family: var(--display); font-size: clamp(45px, 5vw, 68px); font-weight: 400; line-height: .88; letter-spacing: -.05em; }
.auth-aside h2 em { color: var(--acid); font-style: normal; }
.auth-aside > p { max-width: 320px; margin: 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.7; }
.auth-signal { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.auth-signal i { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; }
.auth-signal.connected i { background: var(--acid); box-shadow: 0 0 0 5px rgba(217,255,67,.15); }
.auth-content { display: flex; flex-direction: column; padding: 66px clamp(28px, 5vw, 65px) 42px; background: var(--paper); }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; padding: 0 0 13px; border: 0; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.auth-tabs button.active { color: var(--ink); }
.auth-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--blue); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-heading { margin-bottom: 8px; }
.auth-heading > span { color: var(--blue); font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .12em; }
.auth-heading h2 { margin: 8px 0 7px; font-family: var(--display); font-size: 40px; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-form > label { display: flex; flex-direction: column; gap: 8px; font-size: 10px; font-weight: 800; }
.input-wrap { position: relative; display: block; }
.input-wrap > input { width: 100%; height: 50px; padding: 0 48px 0 14px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); }
.input-wrap > input:hover { border-color: var(--ink); }
.input-wrap > input:focus { border-color: var(--blue); outline: 2px solid rgba(36,84,255,.15); }
.input-wrap > i { position: absolute; top: 50%; right: 16px; color: var(--muted); transform: translateY(-50%); }
.password-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 50px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.auth-helper { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-helper label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.auth-helper button, .auth-back { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.terms-check { flex-direction: row !important; align-items: flex-start; color: var(--muted); font-weight: 500 !important; line-height: 1.5; }
.terms-check input { margin-top: 2px; accent-color: var(--blue); }
.auth-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.auth-setup-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px; color: #7d2410; background: #ffd9cf; border-left: 3px solid var(--signal); font-size: 10px; line-height: 1.5; }

.toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 15px 16px; color: var(--white); background: var(--ink); border-left: 5px solid var(--blue); box-shadow: 7px 7px 0 rgba(0,0,0,.18); font-size: 11px; line-height: 1.5; animation: toastIn .22s ease both; }
.toast.success { border-color: var(--acid); }
.toast.error { border-color: var(--signal); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Optional black theme; the choice is remembered on this device. */
html[data-theme="dark"] { color-scheme: dark; --line: rgba(242,239,231,.18); --muted: #9b9991; --paper-deep: #252525; }
html[data-theme="dark"] body { color: #f2efe7; background: #090909; }
html[data-theme="dark"] .hero { color: #f2efe7; background: #0b0b0b; }
html[data-theme="dark"] .hero-grid { background-image: linear-gradient(rgba(242,239,231,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(242,239,231,.11) 1px, transparent 1px); }
html[data-theme="dark"] .hero::after { -webkit-text-stroke-color: rgba(242,239,231,.06); }
html[data-theme="dark"] .hero-copy > p,
html[data-theme="dark"] .section-lead,
html[data-theme="dark"] .steps-list p,
html[data-theme="dark"] .faq-list details p { color: #a8a69e; }
html[data-theme="dark"] .text-action { color: #f2efe7; border-color: #f2efe7; }
html[data-theme="dark"] .text-action i { color: #111; background: var(--acid); }
html[data-theme="dark"] .manifesto,
html[data-theme="dark"] .steps { background: #0b0b0b; border-color: rgba(242,239,231,.16); }
html[data-theme="dark"] .manifesto h2 span { -webkit-text-stroke-color: #f2efe7; }
html[data-theme="dark"] .feature-card-dark { border-color: #444; }
html[data-theme="dark"] .feature-card-paper { color: #f2efe7; background: #151515; border-color: #444; }
html[data-theme="dark"] .key-art { border-color: #f2efe7; }
html[data-theme="dark"] .faq-section { color: #f2efe7; background: #101010; border-color: rgba(242,239,231,.18); }
html[data-theme="dark"] .faq-list { border-color: #f2efe7; }
html[data-theme="dark"] .dashboard-view { color: #f2efe7; background: #0b0b0b; }
html[data-theme="dark"] .dashboard-content { background: #0b0b0b; }
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .requirement-grid article { color: #f2efe7; background: #151515; border-color: #494949; }
html[data-theme="dark"] .download-summary { background: var(--blue); }
html[data-theme="dark"] .dashboard-presence { color: #f2efe7; background: #151515; border-color: #494949; }
html[data-theme="dark"] .profile-form input,
html[data-theme="dark"] .profile-form textarea,
html[data-theme="dark"] .theme-options label { color: #f2efe7; background: #0c0c0c; }
html[data-theme="dark"] .avatar-upload-control { background: #0c0c0c; }
html[data-theme="dark"] .file-picker { color: #111; background: var(--acid); }
html[data-theme="dark"] .button-dark { color: #111; background: #f2efe7; border-color: #f2efe7; }
html[data-theme="dark"] .button-dark:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--acid); }
html[data-theme="dark"] .button-outline { color: #f2efe7; border-color: #f2efe7; }
html[data-theme="dark"] .status-badge { color: #f2efe7; border-color: #777; }
html[data-theme="dark"] .status-badge.warning { background: #252525; }
html[data-theme="dark"] .status-badge.success { color: #111; background: var(--acid); border-color: var(--acid); }
html[data-theme="dark"] .download-glyph,
html[data-theme="dark"] .download-icon { color: #111; }
html[data-theme="dark"] .auth-dialog { color: #f2efe7; background: #0d0d0d; border-color: #555; }
html[data-theme="dark"] .auth-content { background: #101010; }
html[data-theme="dark"] .input-wrap > input { color: #f2efe7; background: #181818; }
html[data-theme="dark"] .dialog-close { color: #f2efe7; }

/* Short, hard-edged RİVAL motion language */
.motion-enabled:not(.site-ready) .hero-index,
.motion-enabled:not(.site-ready) .hero h1,
.motion-enabled:not(.site-ready) .hero-copy > p,
.motion-enabled:not(.site-ready) .hero-actions,
.motion-enabled:not(.site-ready) .hero-console,
.motion-enabled:not(.site-ready) .hero-footnote { opacity: 0; }
.motion-enabled.site-ready .hero-index { animation: rivalSnapIn .24s .02s cubic-bezier(.2,.9,.2,1) both; }
.motion-enabled.site-ready .hero h1 { animation: rivalTitleCut .38s .06s cubic-bezier(.15,.85,.2,1) both; }
.motion-enabled.site-ready .hero-copy > p { animation: rivalSnapIn .28s .14s cubic-bezier(.2,.9,.2,1) both; }
.motion-enabled.site-ready .hero-actions { animation: rivalSnapIn .25s .19s cubic-bezier(.2,.9,.2,1) both; }
.motion-enabled.site-ready .hero-console { animation: rivalConsoleCut .36s .1s cubic-bezier(.15,.9,.15,1) both; }
.motion-enabled.site-ready .hero-footnote { animation: rivalSnapIn .22s .26s cubic-bezier(.2,.9,.2,1) both; }
.motion-enabled.site-ready .signal-visual span { animation: signalStrike .26s steps(2, end) both; transform-origin: bottom; }
.motion-enabled.site-ready .signal-visual span:nth-child(2) { animation-delay: .04s; }
.motion-enabled.site-ready .signal-visual span:nth-child(3) { animation-delay: .08s; }
.motion-enabled.site-ready .signal-visual span:nth-child(4) { animation-delay: .12s; }
.motion-enabled.site-ready .signal-visual span:nth-child(5) { animation-delay: .16s; }
.motion-enabled.site-ready .signal-visual span:nth-child(6) { animation-delay: .20s; }
.motion-enabled.site-ready .signal-visual span:nth-child(7) { animation-delay: .24s; }
.motion-enabled .motion-reveal { opacity: 0; transform: translateY(22px); clip-path: inset(0 0 16% 0); }
.motion-enabled .motion-reveal.is-visible { animation: rivalReveal .3s var(--reveal-delay, 0ms) cubic-bezier(.15,.85,.2,1) both; }
.motion-enabled .dashboard-panel.panel-enter { animation: panelCutIn .24s cubic-bezier(.2,.85,.2,1) both; }
.motion-enabled .auth-shell.auth-enter { animation: authCutIn .24s cubic-bezier(.2,.9,.2,1) both; }
.motion-enabled .view-enter { animation: viewCutIn .26s cubic-bezier(.2,.85,.2,1) both; }
.faq-list details[open] p { animation: detailCutIn .2s cubic-bezier(.2,.85,.2,1) both; }
.console-live i, .presence-dot.static { animation: hardPulse 1.8s steps(2, end) infinite; }

@keyframes rivalSnapIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rivalTitleCut {
    from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(20px); }
    to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes rivalConsoleCut {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(28px) rotate(1.7deg); }
    72% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(-4px) rotate(1.7deg); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0) rotate(1.7deg); }
}
@keyframes signalStrike {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}
@keyframes rivalReveal {
    from { opacity: 0; transform: translateY(22px); clip-path: inset(0 0 16% 0); }
    to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes panelCutIn {
    0% { opacity: 0; clip-path: inset(0 0 0 10%); transform: translateX(18px); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0); }
}
@keyframes authCutIn {
    0% { opacity: 0; clip-path: inset(5% 5% 5% 5%); transform: translateY(12px) scale(.985); }
    100% { opacity: 1; clip-path: inset(0); transform: translateY(0) scale(1); }
}
@keyframes viewCutIn {
    from { opacity: 0; clip-path: inset(0 0 8% 0); }
    to { opacity: 1; clip-path: inset(0); }
}
@keyframes detailCutIn {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hardPulse {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: .35; }
}

@media (max-width: 1220px) {
    .hero { grid-template-columns: 1fr 470px; padding-inline: 42px; }
    .hero-console { transform: scale(.9) rotate(1.7deg); transform-origin: right center; }
    .motion-enabled.site-ready .hero-console { animation-name: rivalConsoleCutCompact; }
    .hero-footnote { left: 42px; }
    .dashboard-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .dashboard-presence { grid-column: 2; border-top: 1px solid var(--ink); border-left: 0; }
    .presence-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
}

@keyframes rivalConsoleCutCompact {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(28px) scale(.9) rotate(1.7deg); }
    100% { opacity: 1; clip-path: inset(0); transform: translateX(0) scale(.9) rotate(1.7deg); }
}

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .header-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
    .mobile-menu-button { display: grid; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 70px; padding: 80px 30px 130px; }
    .hero-copy { max-width: 800px; }
    .hero-console { width: min(86vw, 620px); justify-self: center; transform: rotate(1.2deg); }
    .motion-enabled.site-ready .hero-console { animation-name: rivalConsoleCutTablet; }
    .hero-footnote { left: 30px; }
    .manifesto, .steps { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 540px; }
    .feature-card + .feature-card { border-top: 0; border-left: 2px solid var(--ink); }
    .community-section, .faq-section { grid-template-columns: 1fr; }
    .roster-preview { width: min(100%, 620px); justify-self: center; }
    .dashboard-topbar { grid-template-columns: auto 1fr auto auto; }
    .dashboard-context { display: none; }
    .dashboard-shell { grid-template-columns: 190px minmax(0, 1fr); }
    .dashboard-content { padding: 36px 24px; }
    .overview-grid, .profile-editor-grid { grid-template-columns: 1fr; }
    .profile-live-preview { min-height: 480px; }
    .dashboard-presence { grid-column: 2; }
    .auth-shell { grid-template-columns: .75fr 1.25fr; }
    .auth-aside { padding: 28px; }
}

@keyframes rivalConsoleCutTablet {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(24px) rotate(1.2deg); }
    100% { opacity: 1; clip-path: inset(0); transform: translateX(0) rotate(1.2deg); }
}

@media (max-width: 720px) {
    .site-header { position: relative; }
    .header-inner { height: 66px; padding: 0 18px; }
    .header-actions .button-quiet { display: none; }
    .header-actions .button-acid { min-height: 36px; padding: 0 11px; font-size: 9px; }
    .header-user .header-account > span:not(.avatar) { display: none; }
    .hero { padding: 65px 20px 112px; }
    .hero h1 { font-size: clamp(50px, 18vw, 76px); }
    .hero-index { justify-content: space-between; gap: 10px; }
    .hero-copy > p { font-size: 15px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
    .text-action { align-self: flex-start; }
    .hero-console { width: calc(100% - 10px); box-shadow: 10px 10px 0 var(--acid); }
    .console-body { min-height: 340px; grid-template-columns: 40px 1fr; }
    .console-main { padding: 30px 18px 22px; }
    .console-heading h2 { font-size: 30px; }
    .console-metrics { grid-template-columns: 1fr; }
    .console-metrics div { display: flex; justify-content: space-between; padding: 10px; }
    .console-metrics strong { margin-top: 0; }
    .console-key { align-items: flex-start; flex-direction: column; }
    .console-stamp { right: -8px; width: 90px; height: 90px; }
    .hero-footnote { left: 20px; }
    .section-shell { padding: 80px 20px; }
    .manifesto h2, .community-copy h2, .faq-title h2, .final-cta h2 { font-size: clamp(46px, 15vw, 72px); }
    .section-lead { margin-left: 0; font-size: 15px; }
    .feature-grid { padding-top: 0; }
    .feature-card { min-height: 500px; padding: 23px; }
    .community-section { padding-block: 84px 95px; }
    .steps-list article { grid-template-columns: 45px 1fr; gap: 16px; }
    .steps-list article p { grid-column: 2; }
    .faq-list summary { min-height: 74px; font-size: 13px; }
    .final-cta { padding: 95px 20px; }
    .site-footer { padding-inline: 20px; }
    .footer-main { flex-direction: column; padding-bottom: 44px; }
    .footer-main p { text-align: left; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 42px 30px; margin-left: 0; }
    .footer-bottom { gap: 20px; }

    .dashboard-topbar { min-height: 62px; grid-template-columns: 1fr auto auto auto; padding: 0 14px; gap: 9px; }
    .dashboard-wordmark { font-size: 19px; }
    .platform-state { width: 9px; height: 9px; padding: 0; overflow: hidden; border: 0; }
    .platform-state > span { flex: 0 0 auto; }
    .dashboard-exit { width: 36px; height: 36px; justify-content: center; padding: 0; }
    .dashboard-exit { font-size: 0; }
    .dashboard-exit i { font-size: 12px; }
    .dashboard-shell { display: block; }
    .dashboard-sidebar { position: sticky; z-index: 10; top: 0; display: block; padding: 10px 12px; overflow-x: auto; border-right: 0; }
    .sidebar-profile, .back-link { display: none; }
    .dashboard-nav { min-width: max-content; flex-direction: row; gap: 6px; margin: 0; }
    .dashboard-nav button { min-height: 40px; grid-template-columns: auto auto; padding: 0 11px; font-size: 9px; }
    .dashboard-nav button > span { display: none; }
    .dashboard-nav button > b { min-width: 18px; height: 18px; }
    .dashboard-content { padding: 38px 16px; }
    .panel-title-row { flex-direction: column; }
    .panel-title-row h1 { font-size: 42px; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 105px; }
    .metric-card strong { margin-top: 15px; }
    .profile-form { grid-template-columns: 1fr; padding: 19px; }
    .profile-form > label, .profile-form > label:nth-of-type(3), .profile-form .profile-upload-field, .profile-form fieldset, .profile-form .button { grid-column: 1; }
    .avatar-upload-control { grid-template-columns: 1fr; }
    .file-picker { justify-content: center; }
    .remove-avatar { justify-self: start; }
    .license-detail-card { padding: 18px; }
    .license-detail-top { grid-template-columns: auto 1fr; }
    .license-detail-top .status-badge { grid-column: 1 / -1; justify-self: start; }
    .license-key-box { padding: 20px 14px; }
    .license-key-box code { font-size: 14px; }
    .download-hero { grid-template-columns: auto 1fr; padding: 20px; }
    .download-hero .button { grid-column: 1 / -1; }
    .download-icon { width: 58px; height: 58px; }
    .requirement-grid, .release-list { grid-template-columns: 1fr; }
    .dashboard-presence { padding: 28px 16px; border-top: 1px solid var(--ink); }
    .presence-list { grid-template-columns: 1fr 1fr; }

    .auth-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); box-shadow: 7px 7px 0 rgba(0,0,0,.25); }
    .auth-shell { display: block; min-height: 0; }
    .auth-aside { min-height: 180px; padding: 24px; }
    .auth-aside > div:nth-child(2), .auth-aside > p { display: none; }
    .auth-signal { margin-top: auto; }
    .auth-content { padding: 46px 22px 28px; }
    .dialog-close { top: 16px; right: 16px; color: var(--white); border-color: rgba(255,255,255,.35); }
    .auth-tabs { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .motion-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
