:root {
  --bg: #05070d;
  --bg-soft: #0d1220;
  --text: #f5f7fb;
  --muted: #aab4c3;
  --line: rgba(255,255,255,.16);
  --glass: rgba(255,255,255,.085);
  --glass-strong: rgba(255,255,255,.14);
  --blue: #4da3ff;
  --cyan: #68e0ff;
  --radius: 32px;
  --shadow: 0 30px 80px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, #19335d 0, transparent 30%), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.aurora { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .38; z-index: -2; animation: float 12s ease-in-out infinite; }
.aurora-a { background: #006eff; top: -160px; right: -120px; }
.aurora-b { background: #42f5ff; bottom: -200px; left: -160px; animation-delay: -4s; }
@keyframes float { 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } }

a { color: inherit; text-decoration: none; }
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}
.site-header {
  position: sticky; top: 14px; z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.app-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #e9f5ff, #4da3ff 45%, #0b1c33);
  color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
nav a:hover { color: white; }
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 86px 0; }
.hero { min-height: 82vh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 42px; padding-top: 120px; }
.eyebrow { color: var(--cyan); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(58px, 10vw, 118px); line-height: .86; margin: 14px 0 22px; letter-spacing: -.07em; }
h2 { font-size: clamp(32px, 5vw, 64px); line-height: .96; letter-spacing: -.045em; margin: 0 0 18px; }
h3 { font-size: 24px; margin: 0 0 12px; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.78; }
.hero-subtitle { font-size: 24px; max-width: 760px; color: #e7ecf4; }
.motto { font-size: 20px; color: white; font-weight: 800; }
.motto span { color: var(--muted); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { border-radius: 999px; padding: 14px 20px; font-weight: 800; border: 1px solid var(--line); transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.primary { background: white; color: #05101f; }
.secondary { background: rgba(77,163,255,.22); color: white; }
.ghost { background: rgba(255,255,255,.07); color: white; }
.hero-card { border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.cartoon-avatar { position: relative; height: 310px; display: grid; place-items: center; }
.avatar-head { width: 170px; height: 170px; border-radius: 45% 45% 48% 48%; background: linear-gradient(#ffe2c7, #f6b98d); position: relative; box-shadow: inset 0 -12px 30px rgba(0,0,0,.1); }
.hair { position: absolute; width: 176px; height: 72px; background: #171923; border-radius: 60px 60px 25px 25px; top: -13px; left: -3px; }
.eye { width: 13px; height: 13px; background: #131722; border-radius: 50%; position: absolute; top: 84px; }
.eye.left { left: 55px; } .eye.right { right: 55px; }
.smile { width: 46px; height: 22px; border-bottom: 4px solid #171923; border-radius: 0 0 50px 50px; position: absolute; left: 62px; top: 105px; }
.avatar-body { position: absolute; width: 210px; height: 110px; border-radius: 42px 42px 0 0; bottom: 18px; background: linear-gradient(135deg, #111827, #2563eb); }
.orbit { position: absolute; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.12); font-weight: 800; animation: bob 3.5s ease-in-out infinite; }
.orbit-one { top: 40px; left: 50px; } .orbit-two { right: 44px; top: 120px; animation-delay: -.8s; } .orbit-three { left: 38px; bottom: 62px; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.about-text, .learning { border-radius: var(--radius); padding: 28px; }
.section-heading { max-width: 840px; margin-bottom: 28px; }
.signal-grid, .project-grid, .debug-grid, .contact-grid, .charts-grid { display: grid; gap: 18px; }
.signal-grid { grid-template-columns: repeat(3, 1fr); }
.signal-card, .project-card, .chart-card, .debug-item, .contact-card { border-radius: var(--radius); padding: 24px; }
.signal-card span { font-size: 34px; }
.filters { padding: 10px; border-radius: 999px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { border: 0; color: white; background: transparent; padding: 11px 15px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.filter.active, .filter:hover { background: rgba(255,255,255,.16); }
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { transition: transform .25s, opacity .25s; }
.project-card:hover { transform: translateY(-6px); }
.project-card.featured { grid-column: span 2; }
.project-card.hide { display: none; }
.card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.status { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: white; font-weight: 800; }
.status.live { background: rgba(58, 255, 143, .16); }
.status.success { background: rgba(255, 215, 96, .18); }
.status.building { background: rgba(77, 163, 255, .18); }
.status.concept { background: rgba(194, 126, 255, .18); }
.status.paused { background: rgba(180, 205, 255, .13); }
.text-link { color: var(--cyan); font-weight: 900; }
.tiny-note { font-size: 13px; opacity: .82; }
.hmgo { border-radius: 42px; padding: 42px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 28px; }
.hmgo-panel { min-height: 330px; border-radius: 36px; background: radial-gradient(circle, rgba(77,163,255,.35), rgba(255,255,255,.06)); display: flex; flex-wrap: wrap; gap: 12px; align-content: center; justify-content: center; padding: 28px; }
.chip { width: 130px; height: 130px; border-radius: 32px; display: grid; place-items: center; background: #05070d; border: 1px solid var(--line); font-size: 34px; font-weight: 900; box-shadow: inset 0 0 30px rgba(77,163,255,.28); }
.product-pill { padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line); font-weight: 800; }
.charts-grid { grid-template-columns: repeat(2, 1fr); }
.pie { width: 240px; height: 240px; border-radius: 50%; margin: 20px auto; box-shadow: inset 0 0 0 18px rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.25); }
.tech-pie { background: conic-gradient(#4da3ff 0 28%, #68e0ff 28% 46%, #9ca3ff 46% 64%, #ffd166 64% 79%, #ff8fab 79% 89%, #b9fbc0 89% 100%); }
.lang-pie { background: conic-gradient(#4da3ff 0 30%, #f7df1e 30% 54%, #ff8fab 54% 71%, #a78bfa 71% 81%, #68e0ff 81% 91%, #b9fbc0 91% 100%); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; background: white; }
.dot.web,.dot.html { background:#4da3ff } .dot.cloud,.dot.js { background:#68e0ff } .dot.server,.dot.swift { background:#9ca3ff } .dot.ios,.dot.kotlin { background:#ffd166 } .dot.android,.dot.node { background:#ff8fab } .dot.ai,.dot.shell { background:#b9fbc0 }
.debug-grid { grid-template-columns: repeat(4, 1fr); }
.debug-item { color: #eef4ff; font-weight: 800; min-height: 96px; display: flex; align-items: center; }
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-card { color: white; display: grid; gap: 8px; text-align: left; border: 1px solid var(--line); cursor: pointer; }
button.contact-card { font: inherit; }
.contact-card strong { font-size: 18px; word-break: break-all; }
.contact-card small { color: var(--muted); }
footer { text-align: center; padding: 40px 16px 70px; color: var(--muted); }
.footer-hint { font-size: 13px; opacity: .72; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(30px); background: white; color: #07101d; padding: 12px 18px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 50; font-weight: 900; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.birthday-balloons { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.balloon { position: absolute; bottom: -120px; width: 42px; height: 56px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 30% 25%, white, var(--blue) 22%, #1d4ed8); animation: fly 8s linear forwards; }
.balloon:after { content: ""; position: absolute; left: 20px; top: 54px; width: 1px; height: 70px; background: rgba(255,255,255,.45); }
@keyframes fly { to { transform: translateY(-115vh) translateX(var(--x)); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 900px) {
  nav { display: none; }
  .hero, .split, .hmgo, .charts-grid { grid-template-columns: 1fr; }
  .signal-grid, .project-grid, .debug-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  h1 { font-size: 62px; }
  .section { padding: 58px 0; }
  .filters { border-radius: 28px; }
}
