:root {
  --ink: #10161c;
  --muted: #4a5560;
  --line: rgba(16, 22, 28, 0.14);
  --accent: #0d7a58;
  --accent-2: #c45a1a;
  --panel: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #d2d8e0;
  overflow-x: hidden;
}

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wash {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(13, 122, 88, 0.34), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 12%, rgba(196, 90, 26, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #c5d0d8 0%, #e7eef2 42%, #aebcc8 100%);
  animation: drift 16s ease-in-out infinite alternate;
}
.rails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.rail {
  fill: none;
  stroke: rgba(16, 22, 28, 0.22);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.r1 { stroke: rgba(13, 122, 88, 0.55); stroke-width: 3; }
.r2 { stroke: rgba(16, 22, 28, 0.28); }
.r3 { stroke: rgba(196, 90, 26, 0.45); stroke-width: 2.4; }
.pulse {
  fill: var(--ink);
  offset-rotate: 0deg;
  filter: drop-shadow(0 0 0 transparent);
}
.p1 {
  fill: var(--accent);
  offset-path: path("M-40 620 C 180 520, 320 680, 520 480 S 820 320, 1240 260");
  animation: run 5.5s linear infinite;
}
.p2 {
  fill: var(--ink);
  offset-path: path("M-40 680 C 220 600, 380 740, 560 560 S 860 400, 1240 340");
  animation: run 7.2s linear infinite;
  animation-delay: -2s;
}
.p3 {
  fill: var(--accent-2);
  offset-path: path("M-40 740 C 260 690, 420 790, 620 640 S 900 470, 1240 420");
  animation: run 6.4s linear infinite;
  animation-delay: -3.4s;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.nav, .hero, .after { position: relative; z-index: 1; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  animation: rise 0.6s ease both;
}
.nav-brand {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.nav-right { display: flex; gap: 0.95rem; align-items: center; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-link:hover { color: var(--ink); }
.bridge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.bridge.on {
  color: var(--accent);
  border-bottom-color: rgba(13, 122, 88, 0.45);
  animation: blink 2.4s ease-in-out infinite;
}
.bridge.off { color: #9f1d16; }

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 4rem;
  max-width: 980px;
  animation: rise 0.8s 0.06s ease both;
}
.brand {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  text-transform: uppercase;
  animation: brandIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 {
  margin: 0 0 0.8rem;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  letter-spacing: -0.01em;
  max-width: 12ch;
  line-height: 1.05;
}
.support {
  margin: 0 0 1.7rem;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 500;
}
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--ink);
  color: #f3f6f8;
}
.btn.primary:hover { background: #000; }
.btn.ghost {
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(8px);
}

.after {
  display: none;
}
.after > div {
  background: rgba(236, 241, 245, 0.82);
  backdrop-filter: blur(10px);
  padding: 1.2rem 1.35rem 1.35rem;
}
.after .label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.after strong {
  font-weight: 600;
  font-size: 1.02rem;
}

@media (max-width: 720px) {
  .after { grid-template-columns: 1fr; }
  .hero { min-height: calc(100vh - 4.2rem); padding-bottom: 2.5rem; }
  .nav-right { gap: 0.7rem; }
  .bridge { display: none; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.2%, 1.6%, 0) scale(1.05); }
}
@keyframes run {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes brandIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
