:root {
  --background: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.72);
  --foreground: #171717;
  --muted-foreground: #6b7280;
  --border: rgba(23, 23, 23, 0.1);
  --brand: #007aff;
  --brand-soft: rgba(0, 122, 255, 0.1);
  --font-sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 122, 255, 0.07), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(113, 87, 255, 0.07), transparent 30rem), var(--background);
  font-family: var(--font-sans);
}

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

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}

.brand:focus-visible,
.home-link:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.24);
  outline-offset: 4px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(145deg, #1687ff 0%, #0067db 100%);
  box-shadow: 0 8px 22px rgba(0, 122, 255, 0.2);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-product {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.welcome {
  position: relative;
  display: grid;
  width: min(100% - 40px, 1180px);
  min-height: 560px;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background: var(--surface);
  box-shadow:
    0 28px 80px rgba(22, 32, 50, 0.08),
    inset 0 0 0 1px rgba(23, 23, 23, 0.03);
  isolation: isolate;
}

.welcome::before {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(0, 122, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.welcome-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.welcome-glow-primary {
  top: -130px;
  right: -90px;
  width: 360px;
  height: 360px;
  background: rgba(0, 122, 255, 0.11);
}

.welcome-glow-secondary {
  bottom: -170px;
  left: -90px;
  width: 390px;
  height: 390px;
  background: rgba(113, 87, 255, 0.09);
}

.welcome-content {
  width: min(100% - 48px, 720px);
  padding: 72px 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 999px;
  color: #0067db;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.welcome-description {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted-foreground);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.8;
}

.status {
  display: inline-flex;
  margin-top: 34px;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
}

.home-link {
  display: flex;
  width: fit-content;
  margin: 38px auto 0;
  padding: 13px 19px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(22, 32, 50, 0.05);
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-link:hover {
  border-color: rgba(0, 122, 255, 0.22);
  box-shadow: 0 12px 28px rgba(22, 32, 50, 0.09);
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5cad3;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .welcome {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .welcome {
    min-height: 500px;
    border-radius: 24px;
  }

  .welcome-content {
    width: min(100% - 36px, 720px);
    padding: 56px 0;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .welcome-description {
    margin-top: 22px;
    font-size: 16px;
  }

  .status {
    margin-top: 28px;
  }

  .home-link {
    margin-top: 32px;
  }

  .site-footer {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-link {
    transition: none;
  }
}
