:root {
  --bg: #08100f;
  --bg-soft: #0d1718;
  --card: rgba(17, 28, 30, .78);
  --card-strong: rgba(22, 37, 39, .92);
  --line: rgba(142, 255, 220, .18);
  --text: #eefbf6;
  --muted: #9fb8b0;
  --mint: #72f7c7;
  --blue: #84b6ff;
  --amber: #f8d36f;
  --shadow: 0 24px 90px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(114, 247, 199, .18), transparent 28rem),
    radial-gradient(circle at 84% 6%, rgba(132, 182, 255, .16), transparent 32rem),
    linear-gradient(135deg, #050908 0%, #08100f 48%, #101019 100%);
}

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

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.glow {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
}

.glow-a {
  left: -180px;
  top: 180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(114, 247, 199, .20);
}

.glow-b {
  right: -160px;
  bottom: 120px;
  width: 360px;
  height: 360px;
  background: rgba(132, 182, 255, .10);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 24px rgba(114, 247, 199, .9);
}

.nav nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav nav a:hover {
  color: var(--mint);
}

main {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
  min-height: 690px;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(50px, 8vw, 96px);
  line-height: .92;
  letter-spacing: -.08em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.lead,
.section-head p,
.about p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.primary {
  color: #06100d;
  background: var(--mint);
  box-shadow: 0 16px 40px rgba(114, 247, 199, .26);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 28, 30, .90), rgba(8, 16, 15, .96));
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
}

.terminal-top span:nth-child(1) {
  background: #ff706d;
}

.terminal-top span:nth-child(2) {
  background: #ffd36d;
}

.terminal-top span:nth-child(3) {
  background: #72f7c7;
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #c8ffe9;
  font-size: 16px;
  line-height: 1.85;
}

.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card,
.project-card,
.code-panel,
.about {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .20);
}

.post-card {
  min-height: 250px;
  padding: 24px;
}

.post-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.75;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #06100d;
  border-radius: 999px;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.code-panel {
  padding: 18px;
  background: var(--card-strong);
}

.code-line {
  display: flex;
  gap: 18px;
  padding: 18px;
  color: #d8fff1;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.code-line:last-child {
  border-bottom: 0;
}

.code-line span {
  color: var(--mint);
  font-family: Consolas, Monaco, monospace;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--mint);
  font-weight: 900;
}

.about {
  padding: 34px;
}

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 0;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--mint);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav nav {
    flex-wrap: wrap;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
  }
}
