:root {
  color-scheme: light;
  --bg: #f3f7f9;
  --panel: #ffffff;
  --ink: #252c34;
  --muted: #667380;
  --line: #dce7ee;
  --brand: #078dab;
  --brand-dark: #252c34;
  --brand-soft: #e7f7fb;
  --blue: #176fce;
  --blue-soft: #eaf4ff;
  --teal: #0097b2;
  --teal-soft: #e5f8fb;
  --amber: #b7791f;
  --amber-soft: #fff7e6;
  --green: #2f855a;
  --green-soft: #edf8f1;
  --shadow: 0 18px 46px rgba(37, 44, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Source Han Sans SC",
    "Noto Sans CJK SC",
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.home-shell,
.auth-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  padding: 22px clamp(18px, 5vw, 64px) 56px;
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.98), rgba(231, 247, 251, 0.72)),
    #f3f7f9;
}

.home-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.home-brand img {
  width: 170px;
  height: auto;
  padding: 6px 8px;
  border: 1px solid rgba(220, 231, 238, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 44, 52, 0.08);
}

.home-brand strong {
  color: var(--brand-dark);
}

.home-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-nav div a,
.ghost-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.home-nav div a,
.ghost-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.primary-link {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 141, 171, 0.2);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: min(540px, 100%);
  padding-top: clamp(92px, 15vh, 154px);
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.hero-copy h1 {
  font-size: clamp(42px, 5.4vw, 66px);
  letter-spacing: 0;
}

.home-shell .hero-copy h1 {
  font-size: clamp(42px, 5.4vw, 60px);
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

.hero-logo-row img {
  width: min(500px, 100%);
  height: auto;
  padding: clamp(8px, 1.2vw, 12px);
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-copy p {
  max-width: 560px;
  color: #344054;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-panel {
  position: absolute;
  border: 1px solid rgba(200, 210, 221, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.scene-dashboard {
  right: clamp(22px, 7vw, 100px);
  bottom: 80px;
  width: min(520px, 42vw);
  min-height: 330px;
  padding: 18px;
  border-top: 4px solid var(--brand);
}

.scene-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.scene-topline span,
.scene-phone span,
.brand-band span,
.auth-card label span,
.test-account span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scene-topline strong {
  font-size: 22px;
}

.scene-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.scene-metrics span {
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.scene-metrics span:nth-child(2) {
  background: var(--blue-soft);
  color: var(--blue);
}

.scene-metrics span:nth-child(3) {
  background: var(--amber-soft);
  color: var(--amber);
}

.scene-metrics span:nth-child(4) {
  background: var(--green-soft);
  color: var(--green);
}

.scene-bars {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  height: 160px;
  margin-top: 34px;
}

.scene-bars i {
  display: block;
  min-height: 28px;
  border-radius: 7px 7px 0 0;
  background: var(--teal);
}

.scene-bars i:nth-child(even) {
  background: var(--blue);
}

.scene-phone {
  right: clamp(18px, 5vw, 72px);
  top: 132px;
  width: 190px;
  padding: 16px;
  background: #252c34;
  color: #fff;
}

.scene-phone strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 54px;
}

.scene-phone p {
  color: #c8d2dd;
  line-height: 1.6;
}

.scene-flow {
  right: clamp(250px, 29vw, 460px);
  top: 106px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  padding: 12px;
}

.scene-flow span {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
  text-align: center;
}

.brand-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px clamp(18px, 5vw, 64px) 42px;
}

.brand-band div {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
}

.brand-band strong {
  font-size: 24px;
}

.brand-band p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  background: #edf5f8;
}

.auth-showcase {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 42px clamp(22px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.98), rgba(231, 247, 251, 0.72)),
    #f3f7f9;
}

.auth-showcase .hero-copy {
  padding-top: 0;
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: 22px;
  background: var(--panel);
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card header {
  display: grid;
  gap: 6px;
}

.auth-card h1 {
  font-size: 26px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.6;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.login-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.login-tabs button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 3px 10px rgba(31, 41, 51, 0.08);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-card label {
  display: grid;
  gap: 6px;
}

.auth-card input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  color: var(--ink);
}

.login-submit {
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(7, 141, 171, 0.18);
}

.test-accounts {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.test-account {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.test-account strong {
  font-size: 13px;
}

.test-account code {
  color: var(--brand);
  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
}

.test-account.generated-account {
  border-color: rgba(7, 141, 171, 0.32);
  background: var(--brand-soft);
}

.form-message {
  min-height: 22px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .scene-dashboard {
    right: 18px;
    bottom: 34px;
    width: min(92vw, 520px);
    opacity: 0.72;
  }

  .scene-phone,
  .scene-flow {
    display: none;
  }

  .brand-band,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: auto;
    padding: 28px 18px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 82vh;
    padding: 16px 16px 40px;
  }

  .home-nav {
    align-items: start;
    flex-direction: column;
  }

  .home-nav div {
    justify-content: flex-start;
  }

  .hero-copy {
    padding-top: 74px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .home-brand img {
    width: 148px;
  }

  .scene-dashboard {
    bottom: -32px;
    min-height: 250px;
  }

  .scene-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-bars {
    height: 96px;
    margin-top: 20px;
  }

  .brand-band {
    padding: 14px 16px 28px;
  }

  .auth-panel {
    padding: 16px;
  }
}
