:root {
  --bg: #0b0f1a;
  --bg-soft: #101728;
  --bg-card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecf6;
  --text-dim: #9aa4bb;
  --accent: #4f8cff;
  --accent-2: #7ce7c4;
  --radius: 16px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.brand-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.is-active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.16);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s, opacity 0.22s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 128px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 140, 255, 0.28) 0%,
    rgba(124, 231, 196, 0.1) 42%,
    transparent 68%
  );
  filter: blur(20px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 24px;
}

.grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 36px;
  font-size: 1.0625rem;
  color: var(--text-dim);
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px rgba(79, 140, 255, 0.28);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- sections ---------- */
.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 140, 255, 0.4);
  background: rgba(79, 140, 255, 0.06);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(124, 231, 196, 0.1);
  border: 1px solid rgba(124, 231, 196, 0.22);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

/* ---------- timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0 16px 26px;
  color: var(--text-dim);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.timeline li.done::before {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.timeline li.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

.timeline li.done span,
.timeline li.active span {
  color: var(--text);
}

.timeline em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-dim);
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- page head ---------- */
.page-head {
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(
    900px 320px at 12% -40%,
    rgba(79, 140, 255, 0.16),
    transparent 70%
  );
}

.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 14px;
}

.page-lead {
  margin: 0;
  color: var(--text-dim);
  max-width: 560px;
}

/* ---------- prose ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

.prose ul {
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
}

.prose strong {
  color: var(--text);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  flex: 0 0 56px;
  font-size: 13px;
  color: var(--text-dim);
}

.contact-list a {
  color: var(--accent-2);
}

.contact-list em {
  font-style: normal;
  color: var(--text);
}

.muted {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13.5px;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(154, 164, 187, 0.6);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(79, 140, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.form-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

.notfound .btn {
  margin-top: 22px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.footer-icp {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}

.footer-icp:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-license {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .hero {
    padding: 76px 0 88px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}
