:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 113, 227, 0.11), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.8), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 62%, #ececf0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
output {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #ffffff;
  background: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 54px;
  margin: 8px auto 0;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(251, 251, 253, 0.78), rgba(251, 251, 253, 0.52));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64), 0 8px 28px rgba(0, 0, 0, 0.04);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.44fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero {
  position: sticky;
  top: 86px;
  max-width: 390px;
  margin: 0;
  padding-top: 18px;
  text-align: left;
  animation: rise-in 520ms ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.profile-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(26px) saturate(150%);
  animation: rise-in 640ms ease both;
}

.profile-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 640px);
  justify-self: end;
  padding: clamp(18px, 2.6vw, 26px);
}

.profile-card::before {
  position: absolute;
  inset: -35% auto auto -20%;
  width: 360px;
  height: 360px;
  pointer-events: none;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 68%);
}

.profile-card.is-refreshing {
  animation: card-refresh 520ms ease both;
}

.card-topline,
.field-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-topline {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.card-topline output {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.identity-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: clamp(18px, 3vw, 30px) 0 18px;
}

.avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 19px;
  color: #ffffff;
  background: linear-gradient(145deg, #1d1d1f, #4b4b52);
  box-shadow: var(--shadow-soft);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.identity-copy-group {
  min-width: 0;
}

.field-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.identity-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4.8vw, 48px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.field-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.field-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label copy"
    "value copy";
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.field-wide {
  grid-column: 1 / -1;
}

.field-item dt {
  grid-area: label;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field-item dd {
  grid-area: value;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.field-copy {
  grid-area: copy;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #8e8e93;
  background: rgba(246, 246, 248, 0.72);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.field-copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.field-copy:hover {
  color: #6e6e73;
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.identity-copy {
  grid-area: auto;
}

.card-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.24);
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.field-copy:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
}

.copy-status {
  justify-self: end;
  min-height: 17px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-refresh {
  0% {
    transform: translateY(0) scale(1);
  }

  42% {
    transform: translateY(-5px) scale(1.006);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero {
    position: static;
    max-width: 720px;
    padding-top: 0;
    text-align: center;
    margin: 0 auto 8px;
  }

  .hero-copy {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
  }

  .profile-area {
    grid-template-columns: 1fr;
  }

  .profile-card {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 50px;
    padding: 0 14px;
  }

  .header-note {
    display: none;
  }

  .page-shell {
    padding: 24px 0 56px;
  }

  .hero {
    margin-bottom: 18px;
    text-align: left;
  }

  .hero-copy {
    margin-left: 0;
    font-size: 14px;
  }

  .profile-card {
    border-radius: 24px;
  }

  .identity-panel {
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    margin: 24px 0 20px;
  }

  .avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .copy-status {
    justify-self: start;
  }
}
