:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #070a18;
  color: #eef4ff;
  --cyan: #4eeaff;
  --violet: #ae62ff;
  --pink: #ff4fc3;
  --panel: rgba(14, 22, 49, .86);
  --line: rgba(78, 234, 255, .22);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #192867 0, transparent 38%), radial-gradient(circle at 90% 20%, #40195c 0, transparent 32%), #070a18; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: linear-gradient(rgba(78,234,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(78,234,255,.06) 1px, transparent 1px); background-size: 42px 42px; }
header, main { position: relative; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
header { padding: 64px 0 28px; }
h1 { margin: 0; font-size: clamp(48px, 9vw, 96px); line-height: .9; text-transform: uppercase; letter-spacing: -.05em; text-shadow: 0 0 28px rgba(78,234,255,.3); }
h2 { margin: 4px 0 0; font-size: 24px; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.lede { color: #aebbd6; max-width: 720px; }
.status { display: inline-flex; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #9fefff; background: rgba(5, 14, 35, .72); }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 14px; }
nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #aebbd6; text-decoration: none; }
nav a:hover, nav a.active { color: #06101f; background: var(--cyan); }
main { display: grid; gap: 18px; padding-bottom: 64px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(14px); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
label { color: #aebbd6; font-size: 13px; }
input, select { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #080e24; color: #fff; }
button { border: 0; border-radius: 10px; padding: 12px 18px; color: #06101f; background: linear-gradient(135deg, var(--cyan), #7c8cff); font-weight: 800; cursor: pointer; }
form button { align-self: end; }
button.secondary { background: #152044; color: #c9f8ff; border: 1px solid var(--line); }
button.danger { background: transparent; color: #ff8fbf; border: 1px solid rgba(255,79,195,.45); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(19,34,73,.9), rgba(22,12,49,.9)); }
.metric span { display: block; color: #93a4c9; font-size: 12px; text-transform: uppercase; }
.metric strong { display: block; margin-top: 5px; font-size: 28px; }
.leagues { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.league { border: 1px solid rgba(174,98,255,.3); border-radius: 14px; padding: 16px; background: rgba(7,11,30,.72); }
.league-head { display: flex; justify-content: space-between; align-items: baseline; }
.league h3 { margin: 0; color: #d8c0ff; }
.skill { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; font-size: 13px; }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 9px; background: #151d3a; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.empty, .message { color: #91a0be; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 9px; border-top: 1px solid rgba(255,255,255,.07); text-align: left; }
th { color: #8191b4; font-size: 11px; text-transform: uppercase; }
.badge { padding: 4px 8px; border-radius: 999px; background: #162348; color: #9fefff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.toolbar label { min-width: 180px; }
.target-ok { color: #73f3b1; }
.target-warn { color: #ffd37c; }
.league-table th, .league-table td { white-space: nowrap; }
.league-table tr.alert { background: rgba(255, 79, 195, .08); }
.league-note { color: #91a0be; font-size: 12px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.skill-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(7,11,30,.72); }
.skill-card h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.skill-meta { color: #93a4c9; font-size: 12px; }
.mode { margin-top: 14px; padding: 12px; border-left: 3px solid var(--violet); background: rgba(174,98,255,.07); }
.mode.ultimate { border-left-color: #ffb84e; }
.mode h3 { margin: 0 0 6px; font-size: 14px; color: #d8c0ff; }
.formula { overflow-wrap: anywhere; color: #9fefff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.lore { color: #c8d2e8; }
.scope { padding: 14px; border: 1px solid rgba(255,184,78,.35); border-radius: 12px; color: #ffdca3; }

/* Public landing */
.landing-page { overflow-x: hidden; }
.landing-header { width: min(1240px, calc(100% - 32px)); min-height: 720px; padding-top: 18px; }
.top-nav { align-items: center; justify-content: space-between; margin: 0; padding: 10px 0 28px; }
.top-nav .brand { border: 0; padding: 8px 0; color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.top-nav .brand b { color: var(--pink); }
.top-nav .brand:hover { color: #fff; background: transparent; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.nav-links a { border-color: transparent; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: clamp(28px, 6vw, 90px); padding: clamp(70px, 10vw, 130px) 0 90px; }
.hero h1 { font-size: clamp(70px, 10vw, 132px); }
.hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--pink); text-shadow: 0 0 42px rgba(255,79,195,.42); }
.hero-lede { max-width: 680px; color: #c4d0e8; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions, .account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; color: #07111f; background: linear-gradient(135deg, var(--cyan), #7c8cff); font-weight: 800; text-decoration: none; }
.button.secondary { color: #c9f8ff; border-color: var(--line); background: #152044; }
.button.disabled { color: #7f8ba8; border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.035); cursor: not-allowed; }
.service-state { margin-top: 18px; color: #73f3b1; font-size: 13px; }
.service-state.degraded { color: #ffd37c; }
.hero-die { display: grid; place-items: center; perspective: 900px; }
.die-core { position: relative; display: grid; place-items: center; width: clamp(220px, 29vw, 350px); aspect-ratio: 1; border: 2px solid rgba(78,234,255,.82); border-radius: 28%; background: radial-gradient(circle at 50% 45%, rgba(78,234,255,.28), transparent 33%), linear-gradient(145deg, rgba(48,32,111,.92), rgba(4,15,36,.94)); box-shadow: 0 0 30px rgba(78,234,255,.3), 0 0 100px rgba(174,98,255,.32), inset 0 0 60px rgba(78,234,255,.16); transform: rotate(8deg); }
.die-core::before, .die-core::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.18); border-radius: 24%; transform: rotate(45deg); }
.die-core::after { inset: 28%; border-color: rgba(255,79,195,.66); }
.die-core span { color: #fff; font-size: clamp(62px, 10vw, 120px); filter: drop-shadow(0 0 15px var(--cyan)); }
.die-core i { position: absolute; width: 14px; aspect-ratio: 1; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.die-core i:nth-of-type(1) { top: 12%; left: 15%; }
.die-core i:nth-of-type(2) { top: 12%; right: 15%; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.die-core i:nth-of-type(3) { bottom: 12%; left: 15%; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.die-core i:nth-of-type(4) { right: 15%; bottom: 12%; }
.hero-die p { color: #8ea2cb; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.landing-main { width: min(1240px, calc(100% - 32px)); gap: 88px; padding-bottom: 90px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-intro { grid-column: 1 / -1; padding: clamp(28px, 4vw, 52px); }
.story-intro h2, .section-heading h2, .account-panel h2 { max-width: 800px; font-size: clamp(31px, 5vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.story-intro p:last-child { max-width: 880px; color: #b6c3dc; font-size: 18px; line-height: 1.6; }
.feature-card { min-height: 240px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg, rgba(19,34,73,.84), rgba(13,8,38,.86)); }
.feature-card b { color: var(--cyan); font-size: 13px; letter-spacing: .16em; }
.feature-card h3 { margin: 45px 0 8px; font-size: 29px; }
.feature-card p { color: #9eacc9; line-height: 1.55; }
.section-heading { margin-bottom: 24px; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card { display: grid; grid-template-columns: 1fr auto; min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; color: #fff; background: rgba(12,20,48,.82); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.link-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.link-card span { font-size: 23px; font-weight: 800; }
.link-card small { grid-column: 1 / -1; align-self: end; color: #91a0be; font-size: 14px; }
.link-card b { color: var(--cyan); font-size: 25px; }
.account-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 70px); padding: clamp(28px, 5vw, 60px); }
.account-copy { color: #b6c3dc; font-size: 17px; line-height: 1.6; }
.account-card { padding: 24px; border: 1px solid rgba(174,98,255,.4); border-radius: 16px; background: rgba(7,11,30,.76); }
.account-label { margin: 0 0 9px; color: #8292b5; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.account-card strong { display: block; font-size: 22px; }
.account-card code { display: block; overflow-wrap: anywhere; margin-top: 12px; color: #9fefff; }
.account-note { display: block; margin-top: 16px; color: #8292b5; line-height: 1.45; }
.clients .client-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.client-row article { padding: 24px; border-top: 1px solid var(--cyan); background: rgba(10,17,40,.7); }
.client-row span { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.client-row h3 { margin-bottom: 8px; font-size: 22px; }
.client-row p { min-height: 48px; color: #91a0be; }
.client-row b { color: #d8c0ff; font-size: 12px; text-transform: uppercase; }
footer { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 42px; border-top: 1px solid var(--line); color: #7181a5; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

@media (max-width: 860px) {
  .hero, .account-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }
  .hero-die { margin-top: 30px; }
  .die-core { width: min(68vw, 310px); }
  .story-grid, .link-grid, .clients .client-row { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .feature-card h3 { margin-top: 28px; }
}
@media (max-width: 760px) { form, .metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .top-nav { align-items: flex-start; }
  .nav-links { max-width: 230px; }
  .nav-links a { padding: 7px 8px; font-size: 12px; }
  .hero h1 { font-size: clamp(59px, 19vw, 88px); }
}
@media (max-width: 520px) { form, .metrics { grid-template-columns: 1fr; } .section-title { align-items: flex-start; flex-direction: column; } }
