:root {
  --bg: #07080c;
  --surface: #101218;
  --surface2: #161a24;
  --text: #eef0f5;
  --muted: #8b93a8;
  --accent: #3dffc3;
  --accent2: #7ab8ff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% -10%, black 40%, transparent 75%);
  pointer-events: none;
}

.bg-blob {
  position: fixed;
  z-index: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
}

.blob-1 {
  top: -140px;
  right: -100px;
  background: #1a4a3d;
}

.blob-2 {
  bottom: 5%;
  left: -180px;
  background: #243060;
}

.inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 12, 0.75);
  backdrop-filter: blur(12px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.menu a:hover {
  color: var(--text);
}

.menu-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.menu-cta:hover {
  border-color: rgba(61, 255, 195, 0.4);
  color: var(--accent) !important;
}

/* hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 4rem 0 3rem;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(61, 255, 195, 0.1);
  border: 1px solid rgba(61, 255, 195, 0.25);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--accent);
  color: #041510;
  box-shadow: 0 0 0 0 rgba(61, 255, 195, 0.25);
}

.btn.primary:hover {
  box-shadow: 0 0 28px rgba(61, 255, 195, 0.2);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-card {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.panel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  margin-right: 6px;
  vertical-align: middle;
}

.panel-dot.dim {
  background: #febc2e;
}

.panel-dot.dim + .panel-dot.dim {
  background: #28c840;
}

.panel-code {
  margin: 0.85rem 0 0;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
}

.panel-code code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  color: #c8d0e0;
}

.panel-code .kw {
  color: #7ab8ff;
}

.panel-code .str {
  color: #9cf0c8;
}

.panel-code .num {
  color: #ffb86c;
}

.panel-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

/* sections */
.section {
  padding: 2.75rem 0;
}

.sec-title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sec-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.stats {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 1rem;
}

.stats div {
  display: grid;
  gap: 0.2rem;
}

.stats dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards li {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s;
}

.cards li:hover {
  border-color: rgba(61, 255, 195, 0.3);
}

.card-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.cards h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cards p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.works {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s;
}

.work:hover {
  transform: translateY(-3px);
}

.work-thumb {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.work-thumb.t1 {
  background-image: linear-gradient(135deg, #1a3d35, #3dffc3 60%, #0a1620);
}

.work-thumb.t2 {
  background-image: linear-gradient(200deg, #302060, #7ab8ff, #0d1828);
}

.work-thumb.t3 {
  background-image: linear-gradient(160deg, #3a2508, #ffb86c 45%, #1a2030);
}

.work h3 {
  margin: 0;
  padding: 1rem 1rem 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.work p {
  margin: 0;
  padding: 0 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.notes li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.notes li:last-child {
  border-bottom: 0;
}

.notes time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent2);
  font-variant-numeric: tabular-nums;
}

.notes span {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  margin-top: 1rem;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(61, 255, 195, 0.06), transparent 55%);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2.25rem 0;
}

.cta-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.cta-text {
  margin: 0;
  color: var(--muted);
}

code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #b8e0ff;
}

/* footer */
.foot {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
}

.foot-inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .foot-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: unset;
  }

  .foot-copy {
    justify-self: center;
  }

  .foot-links {
    justify-self: end;
  }
}

.foot-brand {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.foot-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .foot-links {
    justify-content: flex-end;
  }
}

.foot-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--accent);
}
