:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: rgba(255, 255, 255, 0.42);
  --subtle: rgba(255, 255, 255, 0.2);
  --grid: rgba(255, 255, 255, 0.06);
  --accent: #0066ff;
  --accent-soft: rgba(0, 102, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--background);
}

body {
  color: var(--foreground);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 64px minmax(280px, 1fr) auto;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    var(--background);
  background-size: 80px 80px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.header-logo {
  display: block;
  width: auto;
  height: 32px;
}

.language-indicator {
  position: absolute;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.language-indicator::after {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: -4px -3px 0 -2px var(--background) inset;
  content: "";
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 48px 32px 32px;
}

.wordmark-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(680px, calc(100vw - 64px));
  height: 200px;
  border: 1.5px solid var(--accent);
}

.frame-label {
  position: absolute;
  top: -32px;
  left: -1.5px;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.hero-logo {
  display: block;
  width: min(82%, 580px);
  height: auto;
  user-select: none;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 32px 32px;
}

.launch-copy {
  max-width: 1000px;
}

.eyebrow,
.headline,
.description {
  margin: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.headline {
  margin-bottom: 6px;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.description {
  font-size: clamp(18px, 2.25vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.icp-link {
  flex: 0 0 auto;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms ease;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: var(--foreground);
}

.icp-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

@media (max-width: 700px) {
  .site-shell {
    grid-template-rows: 56px minmax(260px, 1fr) auto;
    background-size: 60px 60px;
  }

  .site-header {
    padding: 0 20px;
  }

  .header-logo {
    height: 28px;
  }

  .language-indicator {
    right: 20px;
    font-size: 12px;
  }

  .hero {
    padding: 44px 20px 24px;
  }

  .wordmark-frame {
    width: min(100%, 360px);
    height: 140px;
  }

  .frame-label {
    top: -28px;
    padding: 2px 8px;
    font-size: 10px;
  }

  .hero-logo {
    width: 82%;
  }

  .site-footer {
    display: block;
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  }

  .headline {
    font-size: clamp(30px, 9vw, 40px);
  }

  .description {
    font-size: clamp(17px, 5.2vw, 21px);
  }

  .icp-link {
    display: inline-block;
    margin-top: 22px;
  }
}

@media (max-height: 690px) and (min-width: 701px) {
  .site-shell {
    grid-template-rows: 56px minmax(220px, 1fr) auto;
  }

  .hero {
    padding-top: 36px;
  }

  .wordmark-frame {
    height: 160px;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

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