:root {
  --bg: #06131f;
  --bg-deep: #04101a;
  --panel: rgba(8, 23, 38, 0.74);
  --panel-strong: rgba(10, 31, 50, 0.92);
  --text: #eef7ff;
  --muted: #9eb5c9;
  --line: rgba(133, 192, 228, 0.22);
  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 74, 124, 0.42) 0, transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.18) 0, transparent 24%),
    linear-gradient(180deg, #071826 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  background: #3a53ff;
  top: -140px;
  right: -140px;
}

.bg-glow-2 {
  width: 460px;
  height: 460px;
  background: #0ea5e9;
  bottom: -170px;
  left: -160px;
}

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(4, 14, 24, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 5vw, 72px);
  z-index: 50;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  text-shadow: 0 0 18px rgba(14, 165, 233, 0.35);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
}

main,
footer {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero {
  padding: clamp(72px, 14vw, 140px) 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  position: relative;
}

.hero-copy {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(133, 192, 228, 0.18);
  background:
    linear-gradient(145deg, rgba(8, 23, 38, 0.86), rgba(10, 29, 47, 0.6)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.32), transparent 72%);
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8f2ff;
  background: rgba(14, 165, 233, 0.14);
  font-size: 0.92rem;
  margin: 0;
}

.alias-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffe7b3;
  border: 1px solid rgba(245, 158, 11, 0.24);
  font-size: 0.92rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.3vw, 3.3rem);
  line-height: 1.25;
  max-width: 18em;
}

.hero-desc {
  color: var(--muted);
  max-width: 680px;
  margin: 22px 0 30px;
  font-size: 1.02rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta span {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(133, 192, 228, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #dceffd;
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 34, 48, 0.95), rgba(6, 20, 31, 0.92)),
    var(--panel-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.panel-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7dd3fc;
  font-size: 0.78rem;
}

.hero-panel h2 {
  margin-bottom: 10px;
}

.hero-panel > p {
  color: #cae0f0;
}

.hero-stats {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}

.hero-stats article {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(133, 192, 228, 0.12);
}

.hero-stats strong {
  color: #fff8e6;
  font-size: 1.1rem;
}

.hero-stats span {
  color: #a9c0d4;
}

.signal-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.55), transparent);
  margin: 18px 0 14px;
}

.panel-quote {
  margin: 0;
  color: #ffe5ad;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 25px rgba(96, 120, 255, 0.35);
}

.btn-ghost {
  color: #deebff;
  border-color: var(--line);
  background: rgba(138, 160, 255, 0.1);
}

.section {
  padding: 52px 0;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin: 0 0 16px;
  letter-spacing: 0.03em;
}

.section > p {
  color: var(--muted);
  max-width: 760px;
}

.stats-grid,
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.resource-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card,
.project-card,
.timeline-item > div,
.resource-card,
.identity-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(7, 11, 23, 0.34);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat-card:hover,
.project-card:hover,
.timeline-item > div:hover,
.resource-card:hover,
.identity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(133, 192, 228, 0.38);
  box-shadow: 0 16px 34px rgba(3, 10, 18, 0.42);
}

.stat-card h3,
.project-card h3 {
  margin: 0 0 8px;
}

.stat-card p,
.project-card p {
  margin: 0;
  color: #c8d5f6;
}

.resource-card h3 {
  margin: 0 0 8px;
}

.identity-card {
  position: relative;
  overflow: hidden;
}

.identity-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 72%);
}

.identity-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #8ed7ff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-card strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.identity-card p {
  margin: 0;
  color: #c8d5f6;
}

.resource-card p {
  margin: 0 0 12px;
  color: #c8d5f6;
}

.audio-player {
  width: 100%;
  margin: 8px 0 12px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 17px;
  background: linear-gradient(180deg, #22d3ee, #7b8cff);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.16);
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  margin: 0;
  color: #c8d5f6;
}

.chip {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #dce5ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.skills-wrap span {
  background: rgba(92, 112, 255, 0.18);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: #dfebff;
}

.contact {
  padding-bottom: 84px;
}

.mail-link {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  margin-top: 10px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.mail-link:hover {
  color: #8ed7ff;
  border-bottom-color: rgba(142, 215, 255, 0.8);
}

footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
}

footer p {
  margin: 0;
  color: #9db0df;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 58px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(8, 12, 24, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .hero-copy,
  .hero-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-meta span,
  .hero-stats article {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}