:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8edf7;
  --muted: #8b95ab;
  --dim: #5b6479;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(110deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
  --radius: 20px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans TC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(59, 130, 246, 0.4); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.grad {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}

@keyframes gradShift { to { background-position: 100% 0; } }

/* ============ Progress & cursor ============ */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, #0ea5e9, #3b82f6 50%, #7c3aed);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 30px -10px rgba(59, 130, 246, 0.7);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 16px 44px -10px rgba(59, 130, 246, 0.9); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.06); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wordmark {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-brand .wordmark { font-size: 20px; }
html[lang="en"] .orbit-core span { letter-spacing: 0.08em; font-size: 10px; }
html[lang="en"] [data-i18n="stats.flat"] { font-size: clamp(18px, 2vw, 26px); }
html[lang="en"] .flow-svg text { font-size: 14px; }
html[lang="en"] .flow-svg text.s { font-size: 11px; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.main-nav a:hover, .main-nav a.current { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.lang-switch button.is-active { color: #061018; background: var(--grad); }
.lang-switch button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), top 0.3s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.grid-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 60%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px; } }

.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.a1 { width: 640px; height: 640px; left: -200px; top: -240px; background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.a2 { width: 720px; height: 720px; right: -260px; top: 10%; background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(120px, 80px) scale(1.15); } }

.globe {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -6%;
  width: 62%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.globe.ready { opacity: 1; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 48px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #a5b4cf;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero-title {
  margin: 28px 0 24px;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > * { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero-title .line:nth-child(2) > * { transition-delay: 0.12s; }
.hero-title .line em { margin-left: 0.12em; }
.loaded .hero-title .line > * { transform: none; }

.hero-sub { max-width: 600px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-sub, .hero-cta, .hud, .stats, .eyebrow { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.loaded .eyebrow { opacity: 1; transform: none; }
.loaded .hero-sub { opacity: 1; transform: none; transition-delay: 0.35s; }
.loaded .hero-cta { opacity: 1; transform: none; transition-delay: 0.5s; }
.loaded .hud { opacity: 1; transform: none; transition-delay: 0.75s; }
.loaded .stats { opacity: 1; transform: none; transition-delay: 0.9s; }

/* HUD */
.hud {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(14, 22, 42, 0.78), rgba(8, 12, 23, 0.6));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  font-family: var(--mono);
  font-size: 12px;
}
.hud::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.6), transparent 40%, transparent 60%, rgba(139, 92, 246, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hud-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text); letter-spacing: 0.06em; }
.hud-title i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hud-tag { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); font-size: 11px; }
.meter-row { display: flex; justify-content: space-between; color: var(--muted); }
.meter-row .ok { color: var(--green); font-weight: 500; animation: okblink 2.6s ease-in-out infinite; }
.bar { height: 4px; margin: 8px 0 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left center; animation: barPulse 3.2s ease-in-out infinite; }
.bar + .meter-row + .bar span { animation-delay: -1.4s; }
@keyframes barPulse { 50% { transform: scaleX(0.74); } }
@keyframes okblink { 50% { opacity: 0.45; } }

.hud-log { height: 124px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; mask-image: linear-gradient(to bottom, transparent, #000 40%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); }
.hud-log li { display: flex; gap: 8px; white-space: nowrap; color: var(--muted); animation: logIn 0.5s var(--ease); }
.hud-log li .t { color: var(--dim); }
.hud-log li .k { min-width: 38px; color: var(--cyan); }
.hud-log li.bad .k { color: var(--red); }
.hud-log li .v { margin-left: auto; color: var(--green); }
.hud-log li.bad .v { color: var(--red); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 72px 0 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat dt sup { font-size: 0.5em; margin-left: 2px; color: var(--cyan); vertical-align: super; }
.stat dt small { margin: 0 4px; color: var(--dim); font-weight: 400; }
.stat dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--line-2); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============ Ticker ============ */
.ticker { position: relative; padding: 18px 24px; border-block: 1px solid var(--line); background: var(--bg-2); }
.ticker-track {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  justify-items: start;
  column-gap: 4px;
  row-gap: 12px;
  width: min(1200px, 100%);
  margin-inline: auto;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--grad); }
@media (min-width: 1180px) {
  .ticker-track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  .ticker-track span { gap: 22px; padding-right: 22px; letter-spacing: 0.16em; }
}

/* ============ Sections ============ */
.section { position: relative; padding: 130px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--cyan); margin-bottom: 18px; }
.section h2, .cta h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin-top: 18px; color: var(--muted); font-size: 17px; }
.br-m { display: none; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Tabs */
.tabs, .scene-switch {
  position: relative;
  display: inline-flex;
  padding: 5px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.tab, .sw { position: relative; z-index: 1; padding: 9px 20px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color 0.3s; }
.tab.active, .sw.active { color: #fff; }
.tab-ink, .sw-ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.3));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: opacity 0.5s, filter 0.5s, border-color 0.4s, transform 0.5s var(--ease);
}
.card.reveal.in { transition: opacity 0.5s, filter 0.5s, border-color 0.4s, transform 0.25s ease-out; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59, 130, 246, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(34, 211, 238, 0.8), rgba(139, 92, 246, 0.4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card.is-hidden { display: none; }

.card.span-2 { grid-column: span 2; flex-direction: row; gap: 32px; align-items: center; }
.card.span-2 .card-body { flex: 1; }
.card-visual { position: relative; flex: 0 0 42%; align-self: stretch; min-height: 220px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); overflow: hidden; }

.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; }
.card h3 { margin: 10px 0 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.card p:not(.tag) { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.chips li { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 12px; color: #b4bfd6; }

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -12px rgba(59, 130, 246, 0.6);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: #c7e9ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .icon svg { animation: wobble 0.8s var(--ease); }
@keyframes wobble { 30% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(0.96) rotate(3deg); } }

/* Shield visual */
.shield-visual { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.22), transparent 60%), rgba(0, 0, 0, 0.25); }
.shield-visual svg { width: 72%; max-width: 230px; }
.shield-visual .ring { fill: none; stroke: rgba(34, 211, 238, 0.25); stroke-width: 1; transform-origin: 100px 100px; }
.shield-visual .r1 { stroke-dasharray: 4 8; animation: spin 30s linear infinite; }
.shield-visual .r2 { stroke: rgba(139, 92, 246, 0.35); stroke-dasharray: 60 20; animation: spin 18s linear infinite reverse; }
.shield-visual .r3 { stroke: rgba(34, 211, 238, 0.5); animation: breathe 3s ease-in-out infinite; }
.shield-visual .shield { fill: rgba(59, 130, 246, 0.18); stroke: url(#sg); stroke-width: 2.5; stroke-linejoin: round; }
.shield-visual .check { fill: none; stroke: #e2f6ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 3s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.4; } }
@keyframes draw { 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.hit { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); opacity: 0; }
.hit.h1 { --sx: -140px; --sy: -80px; left: 50%; top: 50%; animation: hit 2.6s ease-in infinite; }
.hit.h2 { --sx: 150px; --sy: -60px; left: 50%; top: 50%; animation: hit 2.6s ease-in infinite 0.6s; }
.hit.h3 { --sx: -130px; --sy: 90px; left: 50%; top: 50%; animation: hit 2.6s ease-in infinite 1.3s; }
.hit.h4 { --sx: 140px; --sy: 100px; left: 50%; top: 50%; animation: hit 2.6s ease-in infinite 1.9s; }
@keyframes hit {
  0% { opacity: 0; transform: translate(var(--sx), var(--sy)); }
  15% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--sx) * 0.42), calc(var(--sy) * 0.42)) scale(1); }
  70% { opacity: 0; transform: translate(calc(var(--sx) * 0.4), calc(var(--sy) * 0.4)) scale(3); }
  100% { opacity: 0; }
}

/* Map visual */
.map-visual { display: grid; place-items: center; }
.map-visual svg { width: 100%; height: 100%; }
.map-visual .dots-map circle { fill: rgba(139, 160, 200, 0.28); }
.map-visual .route { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 4 6; opacity: 0.85; animation: dash 1.6s linear infinite; }
.map-visual .rt2 { stroke: var(--violet); }
.map-visual .rt3 { stroke: var(--blue); }
@keyframes dash { to { stroke-dashoffset: -20; } }
.map-visual .node { fill: #e2f6ff; filter: drop-shadow(0 0 6px var(--cyan)); transform-box: fill-box; transform-origin: center; animation: nodePulse 2.4s ease-in-out infinite; }
.map-visual .node:nth-of-type(2) { animation-delay: 0.4s; }
.map-visual .node:nth-of-type(3) { animation-delay: 0.8s; }
.map-visual .node:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes nodePulse { 50% { transform: scale(1.6); } }

/* WAF visual */
.waf-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; font-family: var(--mono); font-size: 12px; }
.req { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: #b4bfd6; white-space: nowrap; overflow: hidden; animation: reqScan 6s infinite; }
.req b { font-weight: 500; flex: none; }
.req.ok b { color: var(--green); }
.req.bad { color: #fda4af; }
.req.bad b { color: var(--red); }
.req:nth-child(2) { animation-delay: 1s; }
.req:nth-child(3) { animation-delay: 2s; }
.req:nth-child(4) { animation-delay: 3s; }
.req:nth-child(5) { animation-delay: 4s; }
.req:nth-child(6) { animation-delay: 5s; }
@keyframes reqScan {
  0%, 12% { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
  4% { border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.08); }
}
.req.bad { animation-name: reqBlock; }
@keyframes reqBlock {
  0%, 14% { border-color: var(--line); background: rgba(255, 255, 255, 0.03); transform: none; }
  4% { border-color: rgba(251, 113, 133, 0.7); background: rgba(251, 113, 133, 0.12); transform: translateX(4px); }
  6% { transform: translateX(-3px); }
  8% { transform: none; }
}

/* ============ Flow ============ */
.flow-section { background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.04) 50%, transparent); }
.flow-stage {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 52% 50%, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    rgba(8, 12, 23, 0.6);
}
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-svg .wires path { fill: none; stroke: rgba(139, 160, 200, 0.22); stroke-width: 1.5; stroke-dasharray: 3 6; }
.flow-svg .wires path:last-child { stroke-width: 2; stroke-dasharray: none; }
.flow-svg .fnodes circle { fill: #0b1222; stroke: rgba(139, 160, 200, 0.5); stroke-width: 1.5; }
.flow-svg .fnodes rect { fill: rgba(11, 18, 34, 0.92); stroke: rgba(59, 130, 246, 0.5); stroke-width: 1.5; }
.flow-svg .fnodes .scrub rect { stroke: rgba(34, 211, 238, 0.8); filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.45)); }
.flow-svg .fnodes .origin rect { stroke: rgba(52, 211, 153, 0.7); }
.flow-svg text { fill: var(--text); font-size: 16px; font-weight: 700; text-anchor: middle; font-family: var(--font); }
.flow-svg text.s { fill: var(--muted); font-size: 12px; font-weight: 400; font-family: var(--mono); }
.flow-svg .fnodes > g:not(.major) text { fill: var(--muted); font-size: 13px; font-weight: 500; }
.flow-svg .pk { filter: drop-shadow(0 0 6px currentColor); }
.flow-svg .pk.ok { fill: var(--cyan); color: var(--cyan); }
.flow-svg .pk.bad { fill: var(--red); color: var(--red); }
.flow-svg .boom { fill: url(#burst); }

.flow-legend { position: absolute; right: 24px; bottom: 18px; display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.lg.ok::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lg.bad::before { background: var(--red); box-shadow: 0 0 8px var(--red); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.steps li:nth-child(2) { transition-delay: 0.08s; }
.steps li:nth-child(3) { transition-delay: 0.16s; }
.steps li:nth-child(4) { transition-delay: 0.24s; }
.steps b { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.16em; }
.steps h4 { margin: 8px 0 8px; font-size: 18px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ============ Scenes ============ */
.scenes { position: relative; }
.scene { display: none; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 44px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(34, 211, 238, 0.06), transparent 40%, rgba(139, 92, 246, 0.07)); }
.scene.active { display: grid; animation: sceneIn 0.7s var(--ease); }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.scene h3 { font-size: 28px; letter-spacing: -0.01em; }
.scene-copy > p { margin: 14px 0 22px; color: var(--muted); }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #c4cde0; font-size: 15px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.scene-grid div { display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(5, 7, 13, 0.5); position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease); }
.scene-grid div::before { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%); transition: transform 0.6s var(--ease); }
.scene-grid div:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-4px); }
.scene-grid div:hover::before { transform: scale(1.8); }
.scene-grid b { position: relative; font-size: 18px; }
.scene-grid span { position: relative; color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* ============ Cloud ============ */
.cloud-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cloud-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 36px; }
.cloud-points div { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cloud-points b { display: block; font-size: 16px; margin-bottom: 2px; }
.cloud-points span { color: var(--muted); font-size: 13px; }

.orbit { --r: 210px; position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; display: grid; place-items: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(139, 160, 200, 0.2); }
.orbit-ring.o1 { width: calc(var(--r) * 2); height: calc(var(--r) * 2); }
.orbit-ring.o2 { width: calc(var(--r) * 1.2); height: calc(var(--r) * 1.2); border-style: solid; border-color: rgba(59, 130, 246, 0.18); box-shadow: 0 0 80px rgba(59, 130, 246, 0.15) inset; }
.orbit-ring.o1::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit-ring.o1 { animation: spin 14s linear infinite; }
.orbit-core { position: relative; display: grid; place-items: center; gap: 8px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.3), rgba(5, 7, 13, 0.9) 70%); border: 1px solid rgba(255, 255, 255, 0.12); align-content: center; }
.orbit-core::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, 0.3); animation: breathe 3s ease-in-out infinite; }
.orbit-core span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.orbit-spin { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.orbit-item .chip {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  translate: -50% -50%;
  white-space: nowrap;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.9);
  animation: spin 48s linear infinite reverse;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.orbit:hover .orbit-spin, .orbit:hover .chip, .orbit:hover .orbit-ring.o1 { animation-play-state: paused; }
.orbit-item .chip:hover { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 30px -6px rgba(34, 211, 238, 0.6); }
.glyph { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.orbit-item .chip img[src*="cloudflare"] { width: 28px; height: 16px; }
.glyph.aws { background: #fff; padding: 2px; }
.glyph.aws img { width: 18px; height: 18px; }

/* ============ SSL ============ */
.ssl-section { padding-bottom: 100px; }
.ca-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ca-track span {
  display: grid;
  place-items: center;
  flex: 1 1 200px;
  max-width: 240px;
  min-width: 180px;
  height: 92px;
  padding: 0 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9aa6c0;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.ca-track span:hover { color: #fff; border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.06); }

/* ============ CTA ============ */
.cta { padding: 40px 0 130px; }
.cta-box {
  position: relative;
  padding: 96px 32px;
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(ellipse at 50% 120%, rgba(59, 130, 246, 0.45), transparent 60%), linear-gradient(180deg, #0a1020, #05070d);
  isolation: isolate;
}
.cta-beam {
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.9) 40deg, transparent 90deg, transparent 180deg, rgba(139, 92, 246, 0.9) 220deg, transparent 270deg);
  animation: spin 14s linear infinite;
}
.cta-box::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 31px; background: radial-gradient(ellipse at 50% 120%, rgba(59, 130, 246, 0.35), transparent 60%), linear-gradient(180deg, #0a1020, #05070d); }
.cta-box p:not(.kicker) { margin: 18px auto 36px; max-width: 520px; color: var(--muted); font-size: 17px; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 64px; }
.footer-cols h6 { font-size: 13px; color: var(--text); margin-bottom: 14px; font-weight: 600; }
.footer-cols a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; text-align: center; }
.footer-icp { color: inherit; }
.footer-icp:hover { color: var(--cyan); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hud { display: none; }
  .globe { right: -25%; width: 90%; opacity: 0; }
  .globe.ready { opacity: 0.55; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-2 { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cloud-inner { grid-template-columns: 1fr; }
  .footer-cols { gap: 40px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(5, 7, 13, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .site-header { background: rgba(5, 7, 13, 0.96); }
  .nav-toggle { display: block; }
  .scene { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .footer-cols { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 720px) {
  .container { width: min(1200px, 100% - 40px); }
  .wordmark { font-size: 20px; }
  .header-actions .btn { display: none; }
  .lang-switch button { min-width: 28px; height: 26px; padding: 0 6px; }
  .section { padding: 96px 0; }
  .hero { padding-top: 120px; }
  .globe { top: auto; bottom: 18%; right: -40%; width: 130%; height: 70%; }
  .globe.ready { opacity: 0.45; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .scroll-hint { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; flex-direction: column; align-items: stretch; }
  .card-visual { flex-basis: auto; min-height: 200px; }
  .card { padding: 24px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.06em; }
  .flow-stage { padding: 14px 10px; overflow-x: auto; scrollbar-width: none; }
  .flow-svg { min-width: 680px; }
  .flow-legend { position: sticky; left: 6px; right: auto; bottom: auto; margin-top: 12px; }
  .steps { grid-template-columns: 1fr; }
  .br-m { display: inline; }
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; padding: 9px 16px; }
  .orbit { --r: 31vw; }
  .orbit-core { width: 110px; height: 110px; }
  .orbit-core img { width: 40px; height: 40px; }
  .orbit-item .chip { font-size: 12px; padding: 8px 12px 8px 10px; }
  .cloud-points { grid-template-columns: 1fr; }
  .cta-box { padding: 72px 22px; border-radius: 24px; }
  .cta-box::after { border-radius: 23px; }
  .ca-track span { flex: 1 1 calc(50% - 10px); min-width: 0; max-width: none; height: 76px; font-size: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .ticker { padding-inline: 16px; }
  .ticker-track { grid-template-columns: repeat(2, max-content); row-gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
