:root {
  color-scheme: dark;
  --bg: #020712;
  --bg-2: #07111f;
  --text: #e8f1ff;
  --muted: #9aabc1;
  --muted-2: #73849b;
  --line: rgba(188, 214, 255, 0.15);
  --panel: rgba(11, 18, 32, 0.70);
  --panel-strong: rgba(17, 29, 49, 0.82);
  --cyan: #48d7f4;
  --amber: #ffbf58;
  --green: #7df2b0;
  --violet: #b8c7ff;
  --rose: #ff8cb4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(55, 203, 232, 0.25), transparent 34%),
    radial-gradient(circle at 84% 74%, rgba(255, 177, 62, 0.15), transparent 32%),
    radial-gradient(circle at 58% 48%, rgba(104, 122, 255, 0.11), transparent 31%),
    linear-gradient(135deg, #020712 0%, #061220 47%, #030712 100%);
  overflow-x: hidden;
}

a { color: inherit; }
button, input { font: inherit; }
::selection { background: rgba(72, 215, 244, 0.24); color: #fff; }

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.56;
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.20;
  background-image:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(7, 27, 43, 0.92), rgba(2, 7, 18, 0.98) 52%, #020712 100%);
  transition: opacity 850ms ease, visibility 850ms ease;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-stage {
  width: min(820px, calc(100vw - 36px));
  filter: drop-shadow(0 0 28px rgba(72, 215, 244, 0.22));
}
.splash-logo { display: block; width: 100%; height: auto; overflow: visible; }
.splash-script {
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
  font-size: 122px;
  font-weight: 700;
  letter-spacing: -0.055em;
  fill: transparent;
  stroke: var(--cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1180;
  stroke-dashoffset: 1180;
  animation: splashWrite 2100ms cubic-bezier(.55,.02,.2,1) forwards, splashFill 520ms ease 1950ms forwards;
}
.splash-hub {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -0.07em;
  fill: #eff8ff;
  opacity: 0;
  transform: translateX(-12px);
  animation: splashHub 620ms ease 1750ms forwards;
}
.splash-underline {
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: splashLine 760ms ease 2220ms forwards;
}
.splash-sub {
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  fill: #93a8bd;
  opacity: 0;
  animation: splashSub 500ms ease 2460ms forwards;
}

@keyframes splashWrite { to { stroke-dashoffset: 0; } }
@keyframes splashFill { to { fill: rgba(72, 215, 244, 0.93); } }
@keyframes splashHub { to { opacity: 1; transform: translateX(0); } }
@keyframes splashLine { to { opacity: .78; stroke-dashoffset: 0; } }
@keyframes splashSub { to { opacity: 1; } }

.page-shell { position: relative; z-index: 2; min-height: 100vh; }
.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(72, 215, 244, 0.76);
}
.nav-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .inline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(215, 229, 255, 0.13);
  border-radius: 999px;
  color: #c7d5ea;
  background: rgba(9, 17, 31, 0.42);
  text-decoration: none;
  font-size: 13px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-links a:hover, .inline-pill:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(72, 215, 244, 0.44);
  background: rgba(72, 215, 244, 0.10);
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
  padding: 56px 0 86px;
}
.hero-copy { max-width: 700px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #b9c7dd;
  background: rgba(9, 17, 31, 0.52);
  border: 1px solid rgba(184, 207, 255, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 760;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(72, 215, 244, 0.88);
}
.hero-title {
  margin: 24px 0 18px;
  font-size: clamp(58px, 8.4vw, 116px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 900;
}
.hero-title .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(224, 237, 255, 0.82);
  text-stroke: 1.2px rgba(224, 237, 255, 0.82);
  opacity: 0.78;
  letter-spacing: -0.08em;
}
.hero-lead { margin: 0; max-width: 690px; color: #a8b7ce; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.btn {
  --btn-border: rgba(222, 237, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--btn-border);
  text-decoration: none;
  color: #eaf4ff;
  background: rgba(11, 20, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(72, 215, 244, 0.48); background: rgba(72, 215, 244, 0.11); box-shadow: 0 18px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.07); }
.btn.primary { background: linear-gradient(135deg, rgba(16, 144, 181, 0.72), rgba(19, 72, 114, 0.62)); border-color: rgba(72, 215, 244, 0.44); }
.micro-note { margin-top: 20px; max-width: 710px; color: var(--muted-2); font-size: 13px; line-height: 1.7; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.surface-card {
  --accent: var(--cyan); --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative;
  min-height: 212px;
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 232, 255, 0.12);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(72, 215, 244, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(23, 34, 55, 0.90), rgba(10, 16, 28, 0.70));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  color: var(--text);
  text-decoration: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(18px);
  opacity: 0;
  animation: cardIn 720ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.surface-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.10), transparent); transform: translateX(-130%); transition: transform 650ms ease; }
.surface-card::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 99px 99px 0 0; background: var(--accent); box-shadow: 0 -8px 28px var(--accent); opacity: 0.92; }
.surface-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, rgba(255,255,255,0.16)); box-shadow: 0 28px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08); }
.surface-card:hover::before { transform: translateX(130%); }
.surface-card.amber { --accent: var(--amber); background: radial-gradient(circle at var(--mx) var(--my), rgba(255,191,88,.14), transparent 34%), linear-gradient(160deg, rgba(35,37,30,.88), rgba(12,16,23,.72)); }
.surface-card.green { --accent: var(--green); background: radial-gradient(circle at var(--mx) var(--my), rgba(125,242,176,.14), transparent 34%), linear-gradient(160deg, rgba(21,41,35,.88), rgba(12,16,23,.72)); }
.surface-card.violet { --accent: var(--violet); background: radial-gradient(circle at var(--mx) var(--my), rgba(184,199,255,.14), transparent 34%), linear-gradient(160deg, rgba(34,36,48,.88), rgba(12,16,23,.72)); }
@keyframes cardIn { to { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(0); } }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 34px; }
.card-tag { display: inline-flex; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 12px; line-height: 1; font-weight: 840; text-transform: uppercase; letter-spacing: 0.04em; }
.card-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,0.10); color: #eaf2ff; font-size: 20px; transition: transform 180ms ease, background 180ms ease; }
.surface-card:hover .card-arrow { transform: translateX(3px); background: color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.10)); }
.card-title { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.045em; line-height: 1; }
.card-text { margin: 0; color: #a9b5c6; font-size: 15px; line-height: 1.68; }
.card-foot { display: flex; align-items: center; gap: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.055em; font-size: 12px; font-weight: 760; }
.card-foot::before { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .72; }
.footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 22px 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.footer a { color: #bcd3ec; text-decoration: none; }
.footer a:hover { color: #fff; }

.subpage-main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 76px 0 88px; }
.project-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.project-title { margin: 20px 0 18px; font-size: clamp(46px, 7vw, 96px); line-height: .92; letter-spacing: -0.075em; }
.project-title span { color: transparent; -webkit-text-stroke: 1.1px rgba(224, 237, 255, 0.78); text-stroke: 1.1px rgba(224, 237, 255, 0.78); }
.project-lead { margin: 0; color: #a8b7ce; font-size: clamp(17px, 2vw, 21px); line-height: 1.8; }
.info-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(16px); }
.info-panel h2, .section-title { margin: 0 0 15px; font-size: 18px; letter-spacing: -0.02em; }
.info-panel p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.meta-list { display: grid; gap: 10px; margin-top: 18px; }
.meta-item { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; color: var(--muted); font-size: 14px; }
.meta-item strong { color: var(--text); }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.feature-card, .post-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(11,18,32,.62); padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.feature-card h3, .post-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; }
.feature-card p, .post-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.status-strip { margin-top: 44px; border: 1px solid rgba(72,215,244,.22); border-radius: 22px; padding: 22px; background: linear-gradient(135deg, rgba(72,215,244,.10), rgba(255,255,255,.02)); color: #b9cce1; line-height: 1.8; }
.post-list { display: grid; gap: 14px; margin-top: 28px; }
.post-link { display: grid; gap: 7px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(11,18,32,.62); color: inherit; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.post-link:hover { transform: translateY(-2px); border-color: rgba(72,215,244,.36); background: rgba(72,215,244,.08); }
.post-title { font-size: 17px; font-weight: 760; }
.post-meta { color: var(--muted-2); font-size: 13px; }
.subscribe-panel { margin-top: 32px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: rgba(11,18,32,.65); }
.feed-row { display: grid; grid-template-columns: 90px minmax(0,1fr) auto auto; gap: 10px; align-items: center; }
.feed-label { color: var(--muted); font-weight: 760; }
.feed-url { padding: 12px 14px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; background: rgba(255,255,255,.06); color: #d9e8ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.copy-btn { border: 1px solid rgba(72,215,244,.30); background: rgba(72,215,244,.11); color: #eaf7ff; border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.copy-btn:hover { background: rgba(72,215,244,.18); }
.small-link { color: #bcd3ec; text-decoration: none; font-size: 13px; }
.small-link:hover { color: #fff; }

@media (max-width: 980px) {
  .hero, .project-hero { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .card-grid { max-width: 620px; }
  .section-grid { grid-template-columns: 1fr; }
  .project-hero .info-panel { max-width: 680px; }
}
@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; width: min(100% - 28px, var(--max)); }
  .nav-links { justify-content: flex-start; gap: 8px; }
  .nav-links a { min-height: 34px; padding: 7px 11px; }
  .hero, .subpage-main { width: min(100% - 28px, var(--max)); }
  .hero-title { font-size: clamp(54px, 18vw, 76px); }
  .hero-actions .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .surface-card { min-height: 190px; }
  .footer { width: min(100% - 28px, var(--max)); }
  .splash-script { font-size: 98px; }
  .splash-hub { font-size: 70px; }
  .feed-row { grid-template-columns: 1fr; }
  .feed-url { white-space: normal; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
  .splash { display: none; }
}
.feed-sync-note {
  margin: 4px 2px 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}
.feed-sync-note a { color: var(--cyan); text-decoration: none; }
.feed-sync-note a:hover { text-decoration: underline; }
