:root {
  color-scheme: dark;
  --bg: #111316;
  --sidebar: #15171a;
  --surface: #1b1e23;
  --ink: #f2f3f5;
  --muted: #a7adb6;
  --line: #31353d;
  --accent: #97b6ff;
  --font: "Inter","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --mono: "IBM Plex Mono","Cascadia Mono",Consolas,monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button,input,select,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
h1,h2,h3,p { margin: 0; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: #e5eaf5; color: #121720; padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { top: 8px; }
.portal { min-height: 100svh; display: grid; grid-template-columns: 212px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 31px 14px 16px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding-left: 12px; width: max-content; }
.brand img { object-fit: contain; }
.brand span { display: grid; gap: 4px; }
.brand strong { font: 700 28px/.88 "Inter","Segoe UI",Arial,sans-serif; letter-spacing: -.045em; }
.brand small { font-size: 12px; color: #bdc1c9; letter-spacing: .12em; line-height: 1.4; }
.side-nav { display: grid; gap: 22px; padding-top: 45px; }
.side-group { display: grid; gap: 4px; }
.side-label { padding: 0 13px 5px; color: #969da6; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.side-item { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 8px 13px; font-size: 14px; color: #bfc4cb; border-radius: 7px; }
.side-item:hover { background: #202328; color: #fff; }
.side-item.active { color: #eff3fa; background: #272d36; box-shadow: inset 2px 0 #8eb1fc; }
.side-item.active .ico { color: #aac6ff; }
.ico { display: inline-block; flex: none; width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: middle; }
.side-account { margin-top: auto; border-top: 1px solid var(--line); padding: 17px 4px 0; }
.side-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-text { min-width: 0; display: grid; gap: 2px; }
.profile-text strong { font-size: 14px; line-height: 1.4; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-text small { font-size: 12px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border: 1px solid #414650; background: #252930; color: #dce2ec; display: grid; place-items: center; flex: none; border-radius: 50%; font-size: 15px; font-weight: 600; }
.main-column { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; padding: 11px clamp(20px, 3.3vw, 55px); border-bottom: 1px solid var(--line); }
.topbar-start,.top-account { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.crumb-base,.crumb-slash { color: var(--muted); }
.crumb-slash { opacity: .5; }
.top-link { padding: 7px; color: #d2d5da; white-space: nowrap; }
.top-link:hover { color: white; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 8px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; line-height: 1.5; font-weight: 650; }
.btn-primary { background: #ecf0f7; color: #171c24; border-color: #ecf0f7; }
.btn-primary:hover { background: #fff; }
.btn-secondary { border-color: #464c55; color: #e5e8ef; background: #252931; }
.btn-secondary:hover { background: #30353d; }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); }
.icon-btn:hover { background: #23272e; color: #fff; }
.nav-button,.scrim { display: none; }
.page-main { width: 100%; min-width: 0; }
.page-main:focus { outline: 0; }
.container { width: min(100%,1470px); margin-inline: auto; padding: 28px clamp(20px,3.3vw,55px) 48px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.muted { color: var(--muted); }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; color: var(--muted); }
.pill { display: inline-flex; align-items: center; width: fit-content; font-size: 13px; border-radius: 20px; background: #2c323a; padding: 3px 10px; color: #d2d8e4; }
.home-layout { display: grid; gap: 29px; }
.hero { position: relative; min-height: clamp(295px,24vw,379px); isolation: isolate; display: flex; align-items: center; overflow: hidden; border-radius: 13px; background: #111113; border: 1px solid #36363d; }
.hero::before { position: absolute; z-index: -2; content: ""; inset: 0; background-image: url("/assets/evolution-core.webp"); background-size: cover; background-position: center 41%; }
.hero::after { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg,rgba(12,12,16,.94),rgba(12,12,16,.75) 32%,rgba(12,12,16,.18) 57%,rgba(12,12,16,0) 82%); }
.hero-copy { position: relative; padding: 38px clamp(24px,3.3vw,58px); max-width: 66%; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: #d0c6ba; font-size: 12px; letter-spacing: .15em; }
.hero .eyebrow::before { content: ""; width: 23px; height: 1px; background: #d3bda1; }
.hero h1 { margin: 17px 0 11px; font-size: clamp(38px,4.35vw,76px); line-height: 1.16; letter-spacing: -.055em; font-weight: 700; }
.hero p { font-size: clamp(14px,1.1vw,17px); color: #d5d5d9; line-height: 1.7; }
.hero .btn { margin-top: 23px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(22px,1.9vw,30px); line-height: 1.3; letter-spacing: -.035em; }
.section-heading .sub-label { color: var(--muted); font-size: 13px; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 224px; padding: clamp(18px,1.8vw,29px); transition: border-color .18s, background .18s; }
.service-card:hover,.service-card:focus-within { border-color: #515967; background: #1d2127; }
.service-top { display: flex; align-items: center; gap: 12px; }
.service-icon { height: 43px; width: 43px; display: inline-grid; place-items: center; border-radius: 11px; background: #26354c; color: #a9c7ff; border: 1px solid #354963; }
.service-icon .ico { width: 23px; height: 23px; }
.service-card.research .service-icon { background: #332e40; color: #d0b9ef; border-color: #494057; }
.service-card h3 { margin: 0; font-size: clamp(20px,1.6vw,27px); line-height: 1.25; letter-spacing: -.035em; }
.service-card .service-en { display: block; margin-top: 2px; color: #a0a8b4; font: 500 12px/1.4 var(--mono); }
.service-card p { margin: 16px 0 19px; font-size: 14px; line-height: 1.72; color: #b4bac4; }
.service-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.price { color: #f0f2f6; font: 600 clamp(22px,1.7vw,28px)/1.2 "Inter","Segoe UI",Arial,sans-serif; letter-spacing: -.025em; }
.price .currency { margin-right: 3px; font-size: 16px; font-weight: 500; }
.price small { margin-left: 5px; font: 400 13px/1.5 var(--font); color: var(--muted); letter-spacing: 0; }
.service-rate { font-size: .95rem; font-weight: 600; color: #d2d8e3; }
.sample-card,.sample-reader { display: flex; align-items: center; gap: clamp(17px,2.4vw,32px); padding: clamp(17px,2vw,30px); }
.sample-cover { flex: none; object-fit: contain; height: auto; border: 1px solid #66626b; border-radius: 2px 4px 4px 2px; }
.sample-meta { font: 500 12px/1.5 var(--mono); color: var(--muted); }
.sample-copy { min-width: 0; }
.sample-copy h3 { margin: 4px 0; font-size: 21px; }
.sample-copy p { color: var(--muted); font-size: 14px; }
.sample-link { display: inline-flex; align-items:center; gap: 5px; color: var(--accent); font-size: 14px; margin-top: 10px; }
.sample-link:hover { text-decoration: underline; }
.case-index-link,.case-proof figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.case-index-link:hover,.case-proof figcaption a:hover { color: var(--ink); }
.wf-case-link { display: inline-block; margin-top: 12px; font-size: 14px; }
.algorithm-cases > h1 { margin: 18px 0 22px; font-size: clamp(30px,3.2vw,46px); line-height: 1.2; }
.case-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); align-items: start; gap: 18px; }
.case-result { min-width: 0; padding: clamp(17px,2vw,28px); }
.case-result h2 { margin: 5px 0 10px; font-size: clamp(20px,1.9vw,29px); line-height: 1.3; }
.case-result p { color: var(--muted); line-height: 1.75; }
.case-result p strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-proof { margin: 17px 0 0; }
.case-proof > a { display: block; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.case-proof img { display: block; width: 100%; height: clamp(112px,14vw,175px); object-fit: contain; }
.case-proof figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; }
.case-related { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 0 12px; }
.case-related .case-proof img { height: 96px; }
.sample-reader { margin-top: 16px; }
.sample-reader .sample-cover { width: clamp(88px,19vw,180px); }
.sample-reader h1 { line-height: 1.3; font-size: clamp(23px,3vw,37px); margin: 6px 0; }
.sample-reader .btn { margin-top: 16px; }
.question-panel, .research-options { min-width: 0; }
.question-panel { margin-block: 12px 16px; }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.question-heading strong { font-size: clamp(1.04rem,2.3vw,1.2rem); }
.wf-fields .question-panel textarea { min-height: 144px; max-height: clamp(160px,34svh,320px); margin-top: 8px; scrollbar-width: thin; overscroll-behavior: contain; resize: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick-links button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; min-height: 35px; padding: 5px 12px; font-size: .82rem; background: #252930; color: #c5cedc; }
.quick-links button:hover { border-color: var(--accent); }
.research-options { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; }
.options-heading { cursor: pointer; font-weight: 650; }
.options-heading .muted { margin-inline-start: 8px; font-weight: 400; font-size: .8rem; }
.options-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 11px; margin-top: 12px; }
.options-fields label { display: grid; gap: 5px; font-weight: 550; font-size: .9rem; }
.options-fields input,.options-fields textarea { font-weight: 400; }
.service-cta { min-height: 34px; padding: 5px 13px; font-size: 13px; }
.process-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 18px 5px; margin: 0; }
.process-list li { display: flex; gap: 10px; align-items: center; padding: 0 15px; border-left: 1px solid var(--line); }
.process-list li:first-child { border-left: 0; }
.process-list li > .ico { color: #a3b4cd; width: 21px; height: 21px; }
.process-list li strong { display: block; font-size: 14px; font-weight: 600; }
.process-list li span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 550; }
input:not([type=radio]):not([type=checkbox]):not([type=file]),textarea,select { width: 100%; background: #15181d; border: 1px solid #3d4350; color: var(--ink); border-radius: 7px; padding: 10px 13px; }
input::placeholder,textarea::placeholder { color: #89909c; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b2bdce' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 35px; }
.auth-wrap { width: min(100%,520px); margin: clamp(32px,7vh,90px) auto; padding: 0 17px; }
.auth-card { padding: clamp(24px,3vw,38px); }
.auth-card h1 { margin: 16px 0 4px; font-size: 31px; letter-spacing: -.05em; }
.auth-card p { color: var(--muted); font-size: 14px; }
.auth-brand { width: 42px; height: 42px; object-fit: contain; }
.auth-form { display: grid; gap: 17px; margin-top: 24px; }
#smsForm { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; column-gap: 10px; }
#smsForm label:first-of-type { grid-area: 1 / 1 / 2 / 3; }
#smsForm label:last-of-type { grid-area: 2 / 1 / 3 / 2; }
#sendCodeBtn { grid-area: 2 / 2 / 3 / 3; height: 44px; white-space: nowrap; min-width: 110px; padding-inline: 12px; }
#smsForm button[type="submit"] { grid-area: 3 / 1 / 4 / 3; }
#loginMsg:not(:empty) { margin-top: 10px; }
.auth-card .sms-message { font-size: 14px; }
.sms-message:empty { display: none; }
.auth-card .sms-message[data-type="ok"] { color: #a0d9af; }
.auth-card .sms-message[data-type="error"] { color: #ffa8a8; }
.account-details { display: grid; gap: 10px; margin-block: 20px; font-size: 14px; }
.account-details div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-title { font-size: 20px; border-top: 1px solid var(--line); margin-top: 20px; padding: 20px 0 6px; }
.auth-card .btn-primary { min-height: 44px; width: 100%; }
.auth-bottom { margin-top: 21px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-bottom a { margin-left: 6px; color: #c0d3ff; font-weight: 600; }
.auth-error { font-size: 14px; color: #ffa8a8; }
.auth-error:empty { display: none; }
.toast { position: fixed; z-index: 65; left: 50%; bottom: 24px; max-width: calc(100% - 28px); transform: translateX(-50%); padding: 10px 18px; background: #eff1f5; color: #111821; font-size: 14px; border-radius: 9px; box-shadow: 0 6px 32px #0008; }
.mining-reply { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid #363e49; border-radius: 10px; background: #1d2229; }
.mining-reply strong { display: block; color: #d3dbe7; font-size: 14px; margin-bottom: 4px; }
.mining-reply p { font-size: 14px; line-height: 1.65; color: #c0c7d1; }
.case-demo,.route-problem { display: grid; gap: 17px; justify-items: start; }
.case-demo h1,.route-problem h1 { font-size: clamp(27px,3vw,40px); }
.case-demo-grid { display: grid; gap: 18px; width: 100%; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.case-demo-grid h2 { font-size: 18px; margin-bottom: 10px; }
.mining-reply .mining-animation { flex: 0 0 78px; }
.mining-animation {
  position: relative;
  width: 78px;
  height: 68px;
}

.miner-head,
.miner-body,
.miner-arm,
.miner-pick,
.ore,
.spark {
  position: absolute;
  display: block;
}

.miner-head {
  left: 21px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9d9d9;
}

.miner-body {
  left: 20px;
  top: 29px;
  width: 24px;
  height: 26px;
  border-radius: 10px 10px 8px 8px;
  background: #8f8f8f;
}

.miner-arm {
  left: 37px;
  top: 30px;
  width: 25px;
  height: 7px;
  border-radius: 999px;
  background: #bdbdbd;
  transform-origin: 3px 50%;
  animation: miner-arm-swing 920ms ease-in-out infinite;
}

.miner-pick {
  left: 51px;
  top: 15px;
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: #dddddd;
  transform-origin: 50% 95%;
  animation: pick-swing 920ms ease-in-out infinite;
}

.miner-pick::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 1px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #dddddd;
}

.ore {
  right: 7px;
  bottom: 8px;
  width: 24px;
  height: 20px;
  border-radius: 12px 12px 7px 7px;
  background: #3a3a3a;
}

.ore-b {
  right: 0;
  bottom: 5px;
  width: 15px;
  height: 13px;
  opacity: 0.75;
}

.spark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6e6e6;
  opacity: 0;
  animation: spark-pop 920ms ease-out infinite;
}

.spark-a {
  right: 28px;
  top: 30px;
}

.spark-b {
  right: 14px;
  top: 25px;
  animation-delay: 140ms;
}

@keyframes miner-arm-swing {
  0%, 100% { transform: rotate(-23deg); }
  48% { transform: rotate(32deg); }
}

@keyframes pick-swing {
  0%, 100% { transform: rotate(-38deg); }
  48% { transform: rotate(24deg); }
}

@keyframes spark-pop {
  0%, 45% { opacity: 0; transform: scale(0.5); }
  58% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.7); }
}
@media (min-width:1600px) { .portal { grid-template-columns: 242px minmax(0,1fr); } }
@media (max-width:1150px) {
  .portal { grid-template-columns: 183px minmax(0,1fr); }
  .container { padding-inline: 23px; }
  .topbar { padding-inline: 23px; }
  .process-list li { padding-inline: 10px; gap: 8px; }
}
@media (max-width:840px) {
  .portal { display: block; }
  .sidebar { position: fixed; z-index: 55; width: min(266px,84vw); inset: 0 auto 0 0; transform: translateX(-105%); transition: transform .18s ease; visibility: hidden; }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-button { display: inline-grid; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 51; border: 0; background: #0009; }
  .topbar { min-height: 58px; }
}
@media (max-width:620px) {
  .container { padding: 16px 16px 32px; }
  .topbar { padding-inline: 10px 16px; }
  .topbar-start,.top-account { gap: 7px; }
  .home-layout { gap: 24px; }
  .hero { min-height: 257px; align-items: end; }
  .hero-copy { padding: 22px; max-width: 100%; }
  .hero::before { background-position: 63% 35%; }
  .hero::after { background: linear-gradient(90deg,#101015e6,#10101565 60%,transparent),linear-gradient(0deg,#101015df,transparent 80%); }
  .hero h1 { font-size: clamp(33px,9vw,50px); }
  .hero p { max-width: 235px; font-size: 14px; }
  .hero .eyebrow { font-size: 12px; }
  .hero .btn { margin-top: 16px; min-height: 37px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 194px; }
  .process-list { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 15px 4px; gap: 16px 0; }
  .process-list li:nth-child(odd) { border-left: 0; }
  .process-list li { padding-inline: 12px; }
  .mining-reply { gap: 9px; padding: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
