:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: #d2d2d7;
  --paper: #ffffff;
  --wash: #f5f5f7;
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.45;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 clamp(18px, 5vw, 72px) 0 clamp(12px, 2.8vw, 36px);
  background: rgba(251, 251, 253, 0.82);
  border-bottom: 1px solid rgba(210, 210, 215, 0.62);
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand strong {
  color: var(--text);
  font-weight: 700;
}

.nav-actions {
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 13px;
}

.nav-actions a,
.nav-actions button {
  white-space: nowrap;
}

.nav-actions a:hover,
.nav-actions button:hover {
  color: var(--text);
}

.nav-secondary,
.nav-primary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.nav-secondary {
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid rgba(0, 113, 227, 0.58);
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.16);
}

.nav-actions .nav-secondary:hover {
  color: var(--blue-dark);
  background: #f0f7ff;
  border-color: var(--blue);
}

.nav-primary {
  color: var(--paper);
  background: var(--blue);
  border: 0;
}

.nav-actions .nav-primary:hover {
  color: var(--paper);
  background: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  min-height: calc(100vh - 52px);
  padding: clamp(58px, 9vh, 94px) clamp(18px, 5vw, 72px) 42px;
  overflow: hidden;
  text-align: center;
}

.hero-copy {
  width: min(920px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-copy > .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
}

.hero-copy > .eyebrow::before,
.hero-copy > .eyebrow::after {
  content: "";
  display: block;
  width: clamp(72px, 12vw, 180px);
  height: 1px;
  background: rgba(110, 110, 115, 0.46);
}

.hero h1,
.section h2,
.cta-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 77px);
  font-weight: 700;
  white-space: nowrap;
}

.hero-copy p:not(.eyebrow) {
  width: min(680px, 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 25px);
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.button.primary {
  color: var(--paper);
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue);
  background: transparent;
}

.button.secondary:hover {
  color: var(--blue-dark);
}

.hero-visual {
  width: min(1180px, 112%);
  margin: clamp(34px, 6vh, 60px) 0 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(70px, 10vw, 124px) clamp(18px, 5vw, 72px);
}

.intro {
  padding-top: clamp(16px, 2vw, 25px);
  padding-bottom: clamp(45px, 5.3vw, 73px);
  background: var(--wash);
  text-align: center;
}

.section > .eyebrow,
.intro > h2 {
  width: min(820px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section h2,
.cta-section h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
}

.intro > h2 {
  font-size: clamp(30px, 4vw, 48px);
  text-align: center;
  white-space: nowrap;
}

.report-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.cta-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-copy > .eyebrow,
.cta-section > .eyebrow {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 34px auto 0;
  text-align: left;
}

.intro-grid article,
.report-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 210, 215, 0.82);
  border-radius: 8px;
}

.intro-grid article {
  min-height: 208px;
  padding: 28px;
}

.intro-grid span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.intro-grid h3 {
  margin: 18px 0 12px;
  font-size: 25px;
  line-height: 1.16;
}

.intro-grid p,
.section-copy p,
.report-panel strong {
  color: var(--muted);
}

.intro-grid p,
.section-copy p {
  margin: 0;
  font-size: 16px;
}

.report-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  width: min(1180px, 100%);
  padding-top: clamp(54px, 7vw, 86px);
  padding-bottom: clamp(38px, 4.7vw, 60px);
  margin: 0 auto;
}

.section-copy p {
  margin-top: 20px;
  font-size: 19px;
}

.report-panel {
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.06);
}

.report-panel ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-panel li {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8ed;
}

.report-panel li:first-child {
  padding-top: 0;
}

.report-panel li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.report-panel span {
  font-size: 15px;
  font-weight: 600;
}

.report-panel strong {
  font-size: 15px;
  font-weight: 500;
}

.cta-section {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(16px, 2.4vw, 28px) clamp(18px, 5vw, 72px) clamp(38px, 5.5vw, 64px);
  text-align: center;
}

.site-footer {
  flex-wrap: wrap;
  gap: 12px 24px;
  min-height: 70px;
  padding: 22px clamp(18px, 5vw, 72px) 22px clamp(12px, 2.8vw, 36px);
  color: var(--muted);
  background: var(--wash);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
}

.auth-modal.is-open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.auth-dialog {
  position: relative;
  width: min(644px, 100%);
  max-height: calc(100vh - 32px);
  overflow: visible;
  background: var(--paper);
  border: 1px solid rgba(210, 210, 215, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  outline: 0;
}

.auth-dialog-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 10px 20px;
  background: rgba(251, 251, 253, 0.88);
  border-bottom: 1px solid rgba(210, 210, 215, 0.72);
  backdrop-filter: blur(18px);
}

.auth-dialog-header .eyebrow {
  margin-bottom: 2px;
  font-size: 12px;
}

.auth-dialog-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.auth-close {
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.auth-close:hover {
  color: var(--text);
  background: #f0f0f2;
}

.floating-close {
  position: absolute;
  top: 0;
  right: -54px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  font-weight: 300;
}

.floating-close:hover {
  color: var(--paper);
  background: rgba(0, 0, 0, 0.58);
}

.auth-dialog-body {
  display: grid;
  grid-template-columns: 224px minmax(0, 420px);
  height: 362px;
  overflow: hidden;
  border-radius: inherit;
}

.auth-promo {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 30px 12px 12px;
  background: #ffffff;
  border-right: 1px solid rgba(210, 210, 215, 0.72);
}

.auth-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-promo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 372px;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

.auth-promo::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.34) 38%, rgba(255, 255, 255, 0.06));
}

.auth-promo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(170px, 100%);
  color: var(--text);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.86);
}

.auth-promo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.auth-promo-center {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: grid;
  gap: 10px;
  color: var(--text);
  justify-items: center;
  text-align: center;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.9);
}

.auth-promo-center p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-promo-center strong {
  display: block;
  max-width: 168px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
}

.auth-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  justify-items: stretch;
  min-height: 0;
  padding: 30px 42px 18px;
  background: var(--paper);
}

.auth-copy {
  margin-bottom: 14px;
}

.auth-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.18;
  white-space: nowrap;
}

.auth-copy p {
  margin: 6px 0 0;
  color: var(--subtle);
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 240px;
  margin-bottom: 12px;
  gap: 0;
  padding: 3px;
  background: #f5f5f7;
  border: 0;
  border-radius: 9px;
}

.auth-tab {
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.auth-tab + .auth-tab {
  border-left: 0;
}

.auth-tab.is-active {
  color: var(--text);
  background: var(--paper);
  border: 1px solid rgba(210, 210, 215, 0.64);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: none;
  width: 100%;
  align-self: start;
}

.auth-form.is-active {
  display: grid;
  gap: 6px;
}

.auth-mode-fields {
  display: none;
}

.auth-mode-fields.is-active {
  display: block;
}

.field {
  position: relative;
  display: grid;
  gap: 3px;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: #f5f5f7;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: 0;
  font-size: 15px;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: none;
}

.field.is-error input {
  border-color: #ff3b30;
}

.field-message {
  min-height: 0;
  color: var(--blue);
  font-size: 12px;
  line-height: 16px;
}

.auth-mode-fields .field-message,
.field.is-error .field-message {
  min-height: 16px;
}

.field.is-error .field-message {
  color: #ff3b30;
}

.field.is-success .field-message {
  color: var(--blue);
}

.code-field input {
  padding-right: 104px;
}

.inline-code-button {
  position: absolute;
  top: 2px;
  right: 4px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.submit-button {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.submit-button {
  margin-top: 1px;
  color: var(--paper);
  background: var(--blue);
  border: 0;
}

.submit-button:hover {
  background: var(--blue-dark);
}

.submit-button:disabled,
.inline-code-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

body.auth-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .intro-grid,
  .report-section {
    grid-template-columns: 1fr;
  }

  .intro-grid article {
    min-height: 0;
  }

  .intro-grid h3 {
    margin-top: 26px;
  }

  .report-section {
    width: 100%;
  }

  .auth-dialog-body {
    grid-template-columns: 1fr;
  }

  .auth-promo {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: auto;
    min-height: 52px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    white-space: normal;
  }

  .intro > h2 {
    font-size: clamp(30px, 8vw, 38px);
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    width: 132%;
  }

  .report-panel li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-modal {
    padding: 0;
  }

  .auth-dialog {
    width: min(100%, 420px);
    height: auto;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
  }

  .floating-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.48);
    font-size: 30px;
  }

  .auth-dialog-header {
    height: 54px;
  }

  .auth-panel {
    padding: 28px 22px 18px;
  }

  .auth-copy {
    margin-bottom: 18px;
  }

  .auth-copy h3 {
    font-size: 22px;
    white-space: normal;
  }

  .auth-copy p {
    font-size: 13px;
  }

  .auth-tabs {
    width: 100%;
  }

  .field input,
  .submit-button {
    min-height: 42px;
    font-size: 15px;
  }

  .inline-code-button {
    min-height: 38px;
    font-size: 13px;
  }

}
