:root {
  color-scheme: dark;
  --abyss: #071019;
  --deep: #0a2235;
  --mist: #e8f4f2;
  --muted: rgba(232, 244, 242, 0.64);
  --line: rgba(232, 244, 242, 0.34);
  --cyan: #24c7d9;
  --green: #45f0a6;
  --ink: #061019;
  --paper: #eef8f6;
  --paper-line: rgba(6, 16, 25, 0.18);
  font-family:
    "Aptos", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--abyss);
  scroll-behavior: auto;
}

body {
  min-width: 1180px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(36, 199, 217, 0.18), transparent 34vw),
    radial-gradient(circle at 86% 18%, rgba(69, 240, 166, 0.13), transparent 28vw),
    linear-gradient(180deg, #061019 0%, #092131 48%, #040b12 100%);
  color: var(--mist);
}

html[data-view="console"] body {
  background: var(--paper);
  color: var(--ink);
}

body.is-loading {
  overflow: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img {
  display: block;
}

.site-view {
  display: block;
}

.login-view,
.console-view {
  display: none;
}

html[data-view="console"] .site-view {
  display: none;
}

html[data-view="login"] .site-view,
html[data-view="login"] .console-view {
  display: none;
}

html[data-view="login"] .login-view {
  display: block;
}

html[data-view="console"] .console-view {
  display: grid;
}

.site-view {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.site-view::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 15, 24, 0.12), rgba(8, 15, 24, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 9.5vw
    );
  mix-blend-mode: screen;
}

.site-view::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(69, 240, 166, 0.08) 48%, transparent 55%),
    repeating-linear-gradient(
      0deg,
      rgba(232, 244, 242, 0.055) 0,
      rgba(232, 244, 242, 0.055) 1px,
      transparent 1px,
      transparent 36px
  );
  opacity: 0.52;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 7vw;
  color: rgba(232, 244, 242, 0.72);
}

.site-header.is-scrolled {
  background: rgba(5, 14, 22, 0.58);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 760;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 560;
}

.site-nav a,
.language-switch button {
  opacity: 0.72;
}

.site-nav a:hover,
.language-switch button:hover,
.language-switch button.active {
  color: var(--cyan);
  opacity: 1;
}

.language-switch {
  justify-self: end;
  display: flex;
  gap: 14px;
  margin-left: 28px;
  font-size: 14px;
  font-weight: 800;
}

.stage {
  position: relative;
  min-height: 100vh;
  padding: 108px 7vw 96px;
  overflow: hidden;
}

.hero-stage {
  display: grid;
  place-items: center;
  padding-top: 104px;
}

.stealth-band {
  position: absolute;
  top: 14vh;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  color: rgba(232, 244, 242, 0.1);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(58px, 7vw, 132px);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-5deg);
}

.stealth-track {
  display: flex;
  width: max-content;
  animation: stealthSlide 30s linear infinite;
}

.stealth-segment {
  display: flex;
  gap: 5vw;
  padding-right: 5vw;
}

.stealth-segment span {
  -webkit-text-stroke: 1px rgba(232, 244, 242, 0.28);
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(36, 199, 217, 0.14));
}

.stealth-segment span:nth-child(2n) {
  -webkit-text-stroke-color: rgba(69, 240, 166, 0.26);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 1500px;
  text-align: center;
}

.eyebrow {
  color: rgba(232, 244, 242, 0.72);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 48px;
  color: rgba(232, 244, 242, 0.9);
  font-size: clamp(120px, 12vw, 230px);
  font-weight: 900;
  line-height: 0.72;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 0 34px rgba(36, 199, 217, 0.22));
}

.hero-title .word {
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 780px;
  margin-top: 42px;
  color: rgba(232, 244, 242, 0.9);
  font-size: 34px;
  line-height: 1.18;
  text-wrap: balance;
}

.login-action {
  display: grid;
  place-items: center;
  width: 240px;
  height: 68px;
  margin-top: 40px;
  border: 1px solid rgba(232, 244, 242, 0.72);
  background: rgba(232, 244, 242, 0.92);
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-action:hover {
  background: #fff;
}

.login-view {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 76%, rgba(36, 199, 217, 0.18), transparent 28vw),
    linear-gradient(180deg, #071019 0%, #061019 100%);
  color: var(--mist);
}

.login-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(232, 244, 242, 0.16);
}

.login-main {
  display: grid;
  grid-template-columns: minmax(480px, 0.78fr) minmax(520px, 0.7fr);
  gap: 8vw;
  min-height: 72vh;
  align-items: center;
  padding: 64px 7vw 84px;
}

.login-copy h1 {
  max-width: 860px;
  font-size: clamp(48px, 4.6vw, 84px);
  font-weight: 300;
  line-height: 1.02;
}

.login-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(232, 244, 242, 0.7);
  font-size: 20px;
  line-height: 1.34;
}

.cloud-readout {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 42px;
  color: rgba(232, 244, 242, 0.72);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(69, 240, 166, 0.74);
}

.auth-surface {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 78px;
  border-bottom: 1px solid currentColor;
}

.auth-mode button {
  border-right: 1px solid currentColor;
  font-size: 15px;
  font-weight: 860;
  text-transform: uppercase;
}

.auth-mode button:last-child {
  border-right: 0;
}

.auth-mode button.active,
.submit-line:hover {
  background: var(--mist);
  color: var(--ink);
}

.notice {
  padding: 17px 20px;
  border-bottom: 1px solid currentColor;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice.error {
  color: #ff9d7e;
}

.notice.success {
  color: var(--green);
}

.notice[hidden] {
  display: none;
}

label {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 92px;
  border-bottom: 1px solid currentColor;
}

label span {
  display: flex;
  align-items: center;
  border-right: 1px solid currentColor;
  color: rgba(232, 244, 242, 0.66);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: currentColor;
  padding: 0 22px;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 22px;
}

input::placeholder {
  color: rgba(232, 244, 242, 0.42);
}

.submit-line {
  min-height: 82px;
  width: 100%;
  color: currentColor;
  font-size: 24px;
  font-weight: 300;
  text-transform: uppercase;
  transition:
    background 0.24s ease,
    color 0.24s ease;
}

.word,
.char {
  display: inline-block;
}

.console-view {
  min-height: 100vh;
  grid-template-columns: 220px minmax(860px, 1fr);
  background:
    linear-gradient(90deg, rgba(6, 16, 25, 0.04) 0 1px, transparent 1px 100%) 0 0 / 84px
      84px,
    var(--paper);
}

.console-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: 78px 1fr auto;
  border-right: 1px solid var(--paper-line);
  background: rgba(238, 248, 246, 0.72);
  backdrop-filter: blur(18px);
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 22px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 20px;
  font-weight: 760;
}

.console-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1);
}

.console-rail nav {
  display: grid;
  align-content: start;
}

.console-rail nav button,
.console-rail-bottom > button {
  min-height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
  font-size: 13px;
  font-weight: 840;
  text-transform: uppercase;
}

.console-rail nav button.active,
.console-rail nav button:hover,
.console-rail-bottom > button:hover {
  background: var(--ink);
  color: var(--paper);
}

.console-rail-bottom {
  border-top: 1px solid var(--paper-line);
}

.console-lang {
  justify-content: start;
  padding: 18px 22px;
}

.console-lang button.active,
.console-lang button:hover {
  color: #008ea1;
}

.console-main {
  min-width: 0;
  padding: 28px 5vw 56px;
}

.console-top {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: end;
  min-height: 104px;
  border-bottom: 1px solid var(--paper-line);
}

.console-top span,
.console-locked span {
  display: block;
  color: rgba(6, 16, 25, 0.52);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.console-top h1 {
  margin-top: 10px;
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 300;
  line-height: 0.92;
}

.console-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
}

.console-actions button {
  height: 50px;
  border-right: 1px solid var(--paper-line);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.console-actions button:last-child {
  border-right: 0;
}

.console-actions button:hover,
.console-locked button:hover,
.redeem-surface button:hover {
  background: var(--ink);
  color: var(--paper);
}

.console-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.console-locked {
  margin-top: 54px;
  padding: 38px 0 44px;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.console-locked h2 {
  max-width: 980px;
  margin-top: 24px;
  font-size: clamp(34px, 3.5vw, 58px);
  font-weight: 300;
  line-height: 1;
}

.console-locked button {
  width: 300px;
  height: 72px;
  margin-top: 38px;
  border: 1px solid var(--paper-line);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-surface {
  margin-top: 54px;
  border-top: 1px solid var(--paper-line);
}

.account-surface[hidden],
.console-locked[hidden],
.console-pane[hidden] {
  display: none;
}

.account-topline {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.42fr);
  min-height: 92px;
  border-bottom: 1px solid var(--paper-line);
}

.account-topline strong,
.account-topline span {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-topline strong {
  padding-right: 30px;
  font-size: 27px;
  font-weight: 300;
}

.account-topline span {
  border-left: 1px solid var(--paper-line);
  padding-left: 30px;
  color: rgba(6, 16, 25, 0.55);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--paper-line);
}

.status-strip > div {
  min-height: 190px;
  padding: 28px 30px;
  border-right: 1px solid var(--paper-line);
}

.status-strip > div:last-child {
  border-right: 0;
}

.status-strip span {
  color: rgba(6, 16, 25, 0.56);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 32px;
  overflow-wrap: anywhere;
  font-size: 38px;
  font-weight: 300;
  line-height: 0.98;
  text-transform: uppercase;
}

.status-strip em {
  display: block;
  margin-top: 20px;
  color: rgba(6, 16, 25, 0.58);
  font-style: normal;
  overflow-wrap: anywhere;
}

.console-ledger {
  display: grid;
}

.console-ledger > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 92px;
  border-bottom: 1px solid var(--paper-line);
}

.console-ledger span,
.console-ledger p {
  display: flex;
  align-items: center;
}

.console-ledger span {
  border-right: 1px solid var(--paper-line);
  color: #008ea1;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-weight: 850;
}

.console-ledger p {
  padding-left: 30px;
  color: rgba(6, 16, 25, 0.74);
  font-size: 18px;
}

.pane-heading {
  padding: 46px 0 42px;
  border-bottom: 1px solid var(--paper-line);
}

.pane-heading h2 {
  font-size: clamp(42px, 4.5vw, 82px);
  font-weight: 300;
  line-height: 0.96;
}

.pane-heading p {
  max-width: 740px;
  margin-top: 24px;
  color: rgba(6, 16, 25, 0.62);
  font-size: 20px;
}

.redeem-surface {
  display: grid;
  grid-template-columns: 1fr 240px;
}

.redeem-surface label {
  border-bottom: 0;
  color: var(--ink);
}

.redeem-surface label span {
  color: rgba(6, 16, 25, 0.58);
}

.redeem-surface input::placeholder {
  color: rgba(6, 16, 25, 0.36);
}

.redeem-surface button {
  border-left: 1px solid var(--paper-line);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.credit-ruler {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 340px;
  border-bottom: 1px solid var(--paper-line);
}

.credit-ruler span {
  border-right: 1px solid var(--paper-line);
  background: linear-gradient(180deg, transparent, rgba(36, 199, 217, 0.12));
}

.credit-ruler span:nth-child(2n) {
  background: linear-gradient(180deg, transparent, rgba(69, 240, 166, 0.12));
}

.credit-ruler span:last-child {
  border-right: 0;
}

@keyframes stealthSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
