:root {
  color-scheme: dark;
  --bg: #070b16;
  --panel: rgba(16, 24, 48, 0.78);
  --panel-strong: #111a33;
  --text: #eef2ff;
  --muted: #aab6d8;
  --line: rgba(170, 184, 220, 0.18);
  --brand: #7c6cff;
  --brand-bright: #72e3f6;
  --ok: #5ee6a8;
  --danger: #ff8b9b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(101, 76, 238, 0.2), transparent 36rem),
    radial-gradient(circle at 90% 16%, rgba(72, 209, 232, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

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

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; }
.brand img { width: 158px; height: auto; display: block; }

.nav { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.nav a { border-radius: 9px; padding: 8px 10px; font-size: 0.94rem; }
.nav a:hover, .nav a:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.06); outline: none; }
.nav a[aria-current="page"] { color: var(--text); background: rgba(114, 227, 246, .09); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(114, 227, 246, .45); outline-offset: 2px; }
.button-primary { background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #0a1020; box-shadow: 0 12px 28px rgba(112, 102, 255, .22); }
.button-primary:hover { background: linear-gradient(135deg, #94effb, #9386ff); }
.button-secondary { background: rgba(255,255,255,.045); border-color: var(--line); color: var(--text); }
.button-secondary:hover { background: rgba(255,255,255,.08); }

.hero { padding: 72px 0 58px; display: grid; grid-template-columns: 1.16fr .84fr; gap: 34px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--brand-bright); font-size: .86rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 20px; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1.08; letter-spacing: -.06em; }
.lead { max-width: 640px; margin-bottom: 30px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.terminal, .card, .activation-card, .registration-card, .code-card { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.terminal { border-radius: 20px; overflow: hidden; }
.terminal-head { display: flex; align-items: center; gap: 7px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035); }
.terminal-head span { width: 9px; height: 9px; border-radius: 50%; background: #ff6680; }
.terminal-head span:nth-child(2) { background: #ffcb67; }
.terminal-head span:nth-child(3) { background: #61e2a0; }
.terminal-code { margin: 0; padding: 22px; overflow-x: auto; color: #d8e2ff; font: .86rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-code .accent { color: #71e5f6; }
.terminal-code .muted-code { color: #91a1c9; }

.status-row { display: flex; align-items: center; gap: 9px; margin-top: 19px; color: var(--muted); font-size: .9rem; }
.status-dot { width: 9px; height: 9px; border-radius: 99px; background: #7582a7; box-shadow: 0 0 0 4px rgba(117,130,167,.12); }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(94,230,168,.13); }

.section { padding: 28px 0 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); text-align: right; }

.model-grid, .feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.model-chip, .card { border-radius: 15px; }
.model-chip { min-height: 92px; border: 1px solid var(--line); background: rgba(16,24,48,.63); padding: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.model-chip strong { font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.model-chip span { color: var(--ok); font-size: .78rem; }

.feature-grid { grid-template-columns: repeat(3, 1fr); }
.card { padding: 22px; }
.card h3 { margin-bottom: 8px; font-size: 1.04rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 11px; background: rgba(119,102,255,.16); color: var(--brand-bright); font-size: 1.18rem; }

.ranking { display: grid; grid-template-columns: 1fr .92fr; gap: 18px; }
.ranking-list { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { color: var(--brand-bright); font-weight: 800; }
.rank-name { font-weight: 650; }
.rank-value { color: var(--muted); font: .84rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ranking-aside { padding: 25px; border: 1px solid rgba(114,227,246,.18); border-radius: 18px; background: linear-gradient(150deg, rgba(88,77,215,.17), rgba(20,36,70,.5)); }
.ranking-aside h3 { margin-bottom: 10px; }
.ranking-aside p { color: var(--muted); }
.demo-badge { display: inline-flex; border: 1px solid rgba(114,227,246,.28); border-radius: 999px; padding: 5px 9px; color: var(--brand-bright); font-size: .76rem; font-weight: 700; }

.support-card { display: grid; grid-template-columns: 1fr minmax(250px, 340px); gap: 34px; align-items: center; border: 1px solid rgba(114,227,246,.2); border-radius: 20px; padding: 30px; background: linear-gradient(145deg, rgba(88,77,215,.16), rgba(16,24,48,.78)); box-shadow: var(--shadow); }
.support-copy h3 { margin-bottom: 12px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.support-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.support-note { margin-bottom: 0; font-size: .88rem; }
.support-qr { margin: 0; text-align: center; }
.support-qr img { display: block; width: 100%; height: auto; border: 8px solid #fff; border-radius: 16px; background: #fff; }
.support-qr figcaption { margin-top: 10px; color: var(--muted); font-size: .84rem; }

.support-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1000;
}
.support-launcher {
  display: flex;
  min-width: 142px;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(7, 193, 96, .42);
  border-radius: 8px;
  padding: 6px 12px 6px 6px;
  background: #fff;
  color: #102119;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .34);
  cursor: pointer;
}
.support-launcher:hover { border-color: #07c160; transform: translateY(-1px); }
.support-launcher:focus-visible { outline: 3px solid rgba(7, 193, 96, .36); outline-offset: 3px; }
.support-launcher img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px; object-fit: cover; }
.support-launcher span { display: grid; text-align: left; }
.support-launcher strong { font-size: .91rem; line-height: 1.25; }
.support-launcher small { margin-top: 2px; color: #527060; font-size: .72rem; line-height: 1.2; }
.support-dialog {
  width: min(420px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #101830;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}
.support-dialog::backdrop { background: rgba(2, 6, 16, .78); backdrop-filter: blur(5px); }
.support-dialog-inner { position: relative; padding: 25px; text-align: center; }
.support-dialog-inner h2 { margin-bottom: 8px; font-size: 1.45rem; }
.support-dialog-inner > p:not(.eyebrow) { color: var(--muted); }
.support-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.support-dialog-close:hover { background: rgba(255, 255, 255, .12); }
.support-dialog-close:focus-visible { outline: 3px solid rgba(114, 227, 246, .38); outline-offset: 2px; }
.support-dialog-qr { display: block; width: min(300px, 100%); height: auto; margin: 18px auto 12px; border: 8px solid #fff; border-radius: 8px; background: #fff; }
.support-dialog-note { margin-bottom: 0; font-size: .88rem; }

.page-main { padding: 44px 0 78px; }
.page-intro { max-width: 700px; margin: 14px auto 31px; text-align: center; }
.page-intro h1 { margin: 0 auto 14px; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.page-intro p { color: var(--muted); }
.activation-card, .registration-card { width: min(590px, 100%); margin: 0 auto; border-radius: 20px; padding: 27px; }
.activation-card h2, .registration-card h2 { margin-bottom: 6px; }
.activation-card > p, .registration-card > p { color: var(--muted); font-size: .94rem; }
.form-grid { display: grid; gap: 15px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .91rem; font-weight: 650; }
.field small { color: var(--muted); font-size: .8rem; }
.field input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; color: var(--text); background: rgba(0,0,0,.17); outline: none; }
.field input:focus { border-color: rgba(114,227,246,.65); box-shadow: 0 0 0 3px rgba(114,227,246,.12); }
.form-message { min-height: 1.45em; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--ok); }
.activation-result { display: none; margin-top: 23px; border-top: 1px solid var(--line); padding-top: 22px; }
.activation-result.visible { display: block; }
.registration-result { display: none; margin-top: 23px; border-top: 1px solid var(--line); padding-top: 22px; }
.registration-result.visible { display: block; }
.secret-box { position: relative; margin: 12px 0; border: 1px solid rgba(114,227,246,.3); border-radius: 12px; padding: 12px 54px 12px 12px; background: rgba(3,8,19,.6); overflow-wrap: anywhere; color: var(--brand-bright); font: .84rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-button { position: absolute; top: 8px; right: 8px; min-height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: rgba(255,255,255,.07); color: var(--text); cursor: pointer; font-size: .76rem; }
.result-meta { margin: 0; color: var(--muted); font-size: .88rem; }

.docs-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.code-card { border-radius: 18px; padding: 22px; overflow: hidden; }
.code-card h3 { margin-bottom: 10px; }
.code-card p { color: var(--muted); }
.code-card pre { margin: 14px 0 0; overflow-x: auto; border-radius: 11px; padding: 15px; background: rgba(0,0,0,.24); color: #d8e2ff; font: .8rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.steps { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.steps li { padding: 5px 0; }

.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0 35px; color: var(--muted); font-size: .86rem; }
.footer a { color: #c9d4f4; }

.ranking-hero, .about-hero { padding: 74px 0 54px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.ranking-hero h1, .about-hero h1 { margin-bottom: 20px; font-size: clamp(2.65rem, 5vw, 4.7rem); }
.ranking-hero .lead, .about-hero .lead { max-width: 680px; }
.ranking-disclosure { display: flex; align-items: flex-start; gap: 8px; max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: .84rem; }
.ranking-disclosure span { color: var(--brand-bright); }
.ranking-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.overview-card { min-height: 154px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: rgba(16, 24, 48, .72); box-shadow: 0 18px 54px rgba(0, 0, 0, .2); }
.overview-card-primary { background: linear-gradient(145deg, rgba(114, 227, 246, .17), rgba(101, 76, 238, .22)); border-color: rgba(114, 227, 246, .28); }
.overview-card strong { margin-bottom: 7px; color: var(--text); font-size: clamp(1.85rem, 4vw, 2.65rem); line-height: 1; letter-spacing: -.055em; }
.overview-card span { font-weight: 750; }
.overview-card small { margin-top: 3px; color: var(--muted); font-size: .77rem; }

.ranking-board-section { padding-top: 50px; }
.ranking-heading { align-items: flex-end; }
.ranking-heading .eyebrow, .about-heading .eyebrow { margin-bottom: 8px; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.leaderboard-card { --board-accent: #9386ff; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: linear-gradient(145deg, rgba(16, 24, 48, .88), rgba(10, 16, 34, .72)); box-shadow: 0 18px 62px rgba(0, 0, 0, .23); }
.leaderboard-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--board-accent), transparent 82%); }
.leaderboard-violet { --board-accent: #9386ff; }
.leaderboard-cyan { --board-accent: #72e3f6; }
.leaderboard-orange { --board-accent: #ffb868; }
.leaderboard-green { --board-accent: #5ee6a8; }
.leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.leaderboard-head > div { display: flex; align-items: center; gap: 10px; }
.leaderboard-head h3 { margin: 0; font-size: 1.15rem; }
.board-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 35px; border-radius: 10px; color: var(--board-accent); background: color-mix(in srgb, var(--board-accent) 13%, transparent); }
.board-label { border: 1px solid color-mix(in srgb, var(--board-accent) 35%, transparent); border-radius: 999px; padding: 4px 8px; color: var(--board-accent); font-size: .72rem; font-weight: 750; }
.leaderboard-card > p { margin: 14px 0 18px; color: var(--muted); font-size: .88rem; }
.leaderboard-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.leaderboard-list li { display: grid; grid-template-columns: 31px 1fr auto; gap: 11px; align-items: center; min-height: 67px; border: 1px solid rgba(170, 184, 220, .13); border-radius: 13px; padding: 10px 11px; background: rgba(255, 255, 255, .025); }
.leaderboard-list li:first-child { border-color: color-mix(in srgb, var(--board-accent) 25%, transparent); background: color-mix(in srgb, var(--board-accent) 7%, rgba(255, 255, 255, .02)); }
.rank-medal { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .055); font-size: .78rem; font-weight: 850; }
.leaderboard-list li:first-child .rank-medal { color: #08101d; background: var(--board-accent); }
.rank-model { display: grid; min-width: 0; }
.rank-model strong { overflow-wrap: anywhere; font-size: .91rem; }
.rank-model small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.rank-tag { color: var(--board-accent); font-size: .72rem; font-weight: 750; }

.model-guide-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.model-guide-card { min-height: 245px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: rgba(16, 24, 48, .68); }
.model-guide-card.featured { border-color: rgba(114, 227, 246, .32); background: linear-gradient(150deg, rgba(114, 227, 246, .12), rgba(101, 76, 238, .14)); }
.model-guide-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.model-guide-top span { color: var(--brand-bright); font: .75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.model-guide-top strong { max-width: 145px; text-align: right; overflow-wrap: anywhere; font-size: .85rem; }
.model-guide-card h3 { margin: 30px 0 7px; font-size: 1.08rem; }
.model-guide-card p { flex: 1; margin-bottom: 17px; color: var(--muted); font-size: .84rem; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; color: #cbd6f5; font-size: .68rem; }

.method-card { display: grid; grid-template-columns: .76fr 1.24fr; gap: 46px; align-items: center; border: 1px solid rgba(114, 227, 246, .2); border-radius: 22px; padding: 34px; background: linear-gradient(145deg, rgba(101, 76, 238, .16), rgba(16, 24, 48, .72)); }
.method-card h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.method-card > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.method-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.method-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; border-bottom: 1px solid var(--line); padding: 9px 0 14px; }
.method-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.method-steps li > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-bright); background: rgba(114, 227, 246, .1); font-weight: 850; }
.method-steps strong { display: block; margin-bottom: 2px; }
.method-steps p { margin: 0; color: var(--muted); font-size: .84rem; }

.about-hero { grid-template-columns: 1.12fr .88fr; }
.endpoint-card { border: 1px solid rgba(114, 227, 246, .24); border-radius: 21px; padding: 27px; background: linear-gradient(150deg, rgba(114, 227, 246, .12), rgba(101, 76, 238, .16), rgba(16, 24, 48, .82)); box-shadow: var(--shadow); }
.endpoint-label { margin-bottom: 8px; color: var(--brand-bright); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.endpoint-card > code { display: block; margin-bottom: 23px; overflow-wrap: anywhere; color: var(--text); font: 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.endpoint-line { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: .86rem; }
.endpoint-line span { color: var(--muted); }
.endpoint-line strong { text-align: right; }
.endpoint-card > small { display: block; margin-top: 8px; color: var(--muted); }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 24, 48, .64); overflow: hidden; }
.about-facts > div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding: 20px 24px; }
.about-facts > div:last-child { border-right: 0; }
.about-facts strong { margin-bottom: 5px; color: var(--brand-bright); font-size: 1.5rem; letter-spacing: -.04em; }
.about-facts span { color: var(--muted); font-size: .84rem; }
.about-heading { align-items: flex-end; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.purpose-card { min-height: 230px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: rgba(16, 24, 48, .69); }
.purpose-index { color: var(--brand-bright); font: .75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.purpose-card h3 { margin: 45px 0 9px; font-size: 1.15rem; }
.purpose-card p { margin-bottom: 0; color: var(--muted); font-size: .89rem; }
.purpose-card code { color: #d9e5ff; }

.model-lineup { display: grid; grid-template-columns: .88fr 1.12fr; gap: 42px; align-items: center; border: 1px solid rgba(114, 227, 246, .18); border-radius: 22px; padding: 34px; background: linear-gradient(145deg, rgba(101, 76, 238, .13), rgba(16, 24, 48, .73)); }
.model-lineup-copy h2 { margin-bottom: 12px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.model-lineup-copy > p:last-of-type { color: var(--muted); }
.model-lineup-copy a { color: var(--brand-bright); font-size: .9rem; font-weight: 750; }
.model-lineup-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.model-lineup-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(0, 0, 0, .11); }
.model-lineup-list code { overflow-wrap: anywhere; color: #dce5ff; font-size: .84rem; }
.model-lineup-list span { color: var(--muted); font-size: .78rem; white-space: nowrap; }

.start-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.start-timeline li { min-height: 236px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(16, 24, 48, .66); }
.timeline-number { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: #08101d; background: linear-gradient(135deg, var(--brand-bright), #9587ff); font-weight: 900; }
.start-timeline h3 { margin: 5px 0 9px; }
.start-timeline p { min-height: 85px; margin-bottom: 12px; color: var(--muted); font-size: .87rem; }
.start-timeline a { color: var(--brand-bright); font-size: .84rem; font-weight: 750; }

.principles-card { display: grid; grid-template-columns: .72fr 1.28fr; gap: 46px; border: 1px solid var(--line); border-radius: 22px; padding: 34px; background: rgba(16, 24, 48, .7); }
.principles-copy h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.principles-copy p:last-child { color: var(--muted); }
.principles-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.principles-list > div { display: grid; grid-template-columns: 27px 1fr; gap: 9px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: rgba(255, 255, 255, .02); }
.principles-list > div > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ok); background: rgba(94, 230, 168, .1); font-size: .78rem; }
.principles-list p { margin: 0; color: var(--muted); font-size: .79rem; }
.principles-list strong { display: block; margin-bottom: 3px; color: var(--text); font-size: .87rem; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 68px; border: 1px solid rgba(114, 227, 246, .22); border-radius: 22px; padding: 32px; background: linear-gradient(120deg, rgba(114, 227, 246, .13), rgba(101, 76, 238, .19), rgba(16, 24, 48, .74)); }
.final-cta h2 { margin-bottom: 9px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.final-cta > div > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.final-cta .hero-actions { flex: 0 0 auto; }

.staff-body { min-height: 100vh; background: radial-gradient(circle at 50% -10%, rgba(101, 76, 238, .22), transparent 34rem), var(--bg); }
.staff-topbar { border-bottom: 1px solid var(--line); }
.staff-product-label { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: .78rem; }
.staff-main { min-height: calc(100vh - 170px); padding: 48px 0 72px; }
.staff-login-card { width: min(470px, 100%); margin: 32px auto; border: 1px solid var(--line); border-radius: 21px; padding: 30px; background: var(--panel); box-shadow: var(--shadow); }
.staff-login-card h1 { margin-bottom: 9px; font-size: 2rem; }
.staff-login-card > p:not(.eyebrow) { color: var(--muted); }
.staff-workspace-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 24px; }
.staff-workspace-head h1 { margin-bottom: 7px; font-size: clamp(2rem, 4vw, 3.35rem); }
.staff-workspace-head > div:first-child > p:last-child { margin: 0; color: var(--muted); }
.staff-account { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.staff-account strong { color: var(--text); }
.staff-compliance-note { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin-bottom: 18px; border: 1px solid rgba(255, 184, 104, .28); border-radius: 15px; padding: 15px; background: rgba(255, 184, 104, .07); }
.staff-compliance-note > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #ffbd75; background: rgba(255, 184, 104, .12); font-weight: 900; }
.staff-compliance-note p { margin: 0; color: var(--muted); font-size: .85rem; }
.staff-compliance-note strong { display: block; margin-bottom: 2px; color: #ffd19d; }
.staff-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-bottom: 16px; }
.staff-panel { border: 1px solid var(--line); border-radius: 19px; padding: 23px; background: rgba(16, 24, 48, .76); box-shadow: 0 18px 54px rgba(0, 0, 0, .18); }
.staff-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.staff-panel-head .eyebrow { margin-bottom: 5px; }
.staff-panel-head h2 { margin-bottom: 0; font-size: 1.35rem; }
.staff-quota-badge { border: 1px solid rgba(94, 230, 168, .28); border-radius: 999px; padding: 5px 9px; color: var(--ok); font-size: .73rem; font-weight: 750; white-space: nowrap; }
.staff-generator { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 24px; }
.staff-generator select { min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--text); background: #10182e; outline: none; }
.staff-generator select:focus { border-color: rgba(114, 227, 246, .65); box-shadow: 0 0 0 3px rgba(114, 227, 246, .12); }
.issued-result { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.issued-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.issued-result-head h3 { margin-bottom: 0; }
.issued-result > p { margin: 12px 0 0; color: var(--muted); font-size: .81rem; }
.issued-code-list { display: grid; gap: 8px; margin-top: 13px; }
.issued-code-list > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid rgba(114, 227, 246, .21); border-radius: 11px; padding: 10px 11px; background: rgba(0, 0, 0, .2); }
.issued-code-list code { overflow-wrap: anywhere; color: var(--brand-bright); font-size: .82rem; }
.copy-button-inline, .table-action { border: 0; padding: 4px 6px; color: var(--brand-bright); background: transparent; cursor: pointer; font-size: .75rem; }
.copy-button-inline:hover, .table-action:hover { text-decoration: underline; }
.table-action.danger { color: var(--danger); }
.staff-safety-panel h2 { margin-bottom: 20px; font-size: 1.35rem; }
.staff-checklist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.staff-checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.staff-checklist li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--brand-bright); background: rgba(114, 227, 246, .09); font-size: .75rem; font-weight: 850; }
.staff-checklist p { margin: 0; color: var(--muted); font-size: .81rem; }
.staff-checklist strong { display: block; margin-bottom: 2px; color: var(--text); font-size: .86rem; }
.staff-history { padding-bottom: 14px; }
.staff-table-wrap { margin-top: 18px; overflow-x: auto; }
.staff-code-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.staff-code-table th, .staff-code-table td { border-top: 1px solid var(--line); padding: 12px 10px; text-align: left; font-size: .8rem; }
.staff-code-table th { color: var(--muted); font-weight: 650; }
.staff-code-table td { color: #cbd6f5; }
.staff-code-table td code { margin-right: 8px; color: var(--text); font-size: .78rem; }
.staff-empty { padding: 28px !important; color: var(--muted) !important; text-align: center !important; }
.code-status { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: .7rem; font-weight: 750; }
.code-status.available { color: var(--ok); background: rgba(94, 230, 168, .1); }
.code-status.used { color: var(--brand-bright); background: rgba(114, 227, 246, .1); }
.code-status.disabled, .code-status.expired { color: var(--muted); background: rgba(170, 184, 220, .08); }

@media (max-width: 900px) {
  .hero, .ranking, .docs-grid, .support-card, .ranking-hero, .about-hero, .method-card, .model-lineup, .principles-card { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 48px; }
  .support-qr { width: min(340px, 100%); margin: 0 auto; }
  .ranking-hero, .about-hero { padding-top: 48px; }
  .ranking-overview { max-width: 680px; }
  .model-guide-grid { grid-template-columns: repeat(3, 1fr); }
  .method-card, .model-lineup, .principles-card { gap: 26px; }
  .purpose-grid { grid-template-columns: repeat(3, 1fr); }
  .start-timeline { grid-template-columns: 1fr; }
  .start-timeline li { min-height: 0; }
  .start-timeline p { min-height: 0; }
}

@media (max-width: 780px) {
  .nav a:not(.login-link) { display: none; }
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .topbar { min-height: 70px; }
  .brand img { width: 128px; }
  .nav { gap: 0; }
  .nav a { padding: 7px; font-size: .82rem; }
  .nav a:not(.login-link) { display: none; }
  .model-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; text-align: left; }
  .footer { display: block; }
  .footer p + p { margin-top: 8px; }
  .activation-card, .registration-card { padding: 21px 17px; }
  .support-card { padding: 21px 17px; }
  .support-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .support-launcher { min-width: 130px; min-height: 54px; padding-right: 10px; }
  .support-launcher img { width: 40px; height: 40px; flex-basis: 40px; }
  .support-dialog-inner { padding: 22px 17px 18px; }
  .ranking-hero, .about-hero { padding-bottom: 38px; }
  .ranking-overview, .leaderboard-grid, .model-guide-grid, .purpose-grid, .principles-list { grid-template-columns: 1fr; }
  .overview-card { min-height: 125px; }
  .leaderboard-card, .method-card, .model-lineup, .principles-card { padding: 20px 16px; }
  .leaderboard-head { align-items: flex-start; }
  .leaderboard-list li { grid-template-columns: 31px minmax(0, 1fr) auto; }
  .model-guide-card { min-height: 215px; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .about-facts > div { min-height: 96px; border-bottom: 1px solid var(--line); padding: 15px; }
  .about-facts > div:nth-child(2) { border-right: 0; }
  .about-facts > div:nth-child(n+3) { border-bottom: 0; }
  .purpose-card { min-height: 195px; }
  .purpose-card h3 { margin-top: 32px; }
  .start-timeline li { grid-template-columns: 39px 1fr; padding: 18px 15px; }
  .final-cta { display: block; margin-bottom: 50px; padding: 24px 18px; }
  .final-cta .hero-actions { margin-top: 22px; }
  .staff-main { padding-top: 30px; }
  .staff-login-card { margin-top: 15px; padding: 23px 17px; }
  .staff-product-label { display: none; }
  .staff-workspace-head { display: block; }
  .staff-account { justify-content: space-between; margin-top: 18px; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-panel { padding: 19px 15px; }
  .staff-panel-head { display: block; }
  .staff-panel-head > .button, .staff-quota-badge { display: inline-flex; margin-top: 12px; }
  .staff-generator { grid-template-columns: 1fr; }
}
