/* ssd site — base, layout, header, hero, footer */
:root {
  --bg: #070e20;
  --bg-soft: #0b1530;
  --bg-deep: #050a19;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(185, 210, 250, 0.14);
  --line-strong: rgba(185, 210, 250, 0.3);
  --text: #eaf2ff;
  --muted: #a7b9da;
  --faint: #7789ad;
  --blue: #5e97f0;
  --blue-deep: #2e6be6;
  --cyan: #74b2ff;
  --gold: #ffd166;
  --pink: #ff8fa3;
  --green: #34c77b;
  --violet: #8b6be0;
  --grad: linear-gradient(120deg, #8fc4ff 0%, #5e97f0 38%, #a78bfa 72%, #ffd166 110%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(1, 6, 20, 0.55);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: #cfe6ff; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.32em 0; }
strong { color: #fff; font-weight: 680; }
code, pre, kbd { font-family: var(--mono); }
code {
  padding: 0.15em 0.42em;
  font-size: 0.88em;
  color: #cfe3ff;
  background: rgba(94, 151, 240, 0.14);
  border: 1px solid rgba(94, 151, 240, 0.2);
  border-radius: 7px;
}
pre {
  margin: 0 0 1.1em;
  padding: 16px 18px;
  overflow-x: auto;
  color: #d8e7ff;
  background: #071024;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.65;
}
pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
::selection { color: #06101f; background: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  color: #06101f;
  background: var(--gold);
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #06101f; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease);
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(7, 14, 32, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex: 0 0 auto;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(46, 107, 230, 0.35);
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.brand-text b { font-size: 1.28rem; letter-spacing: -0.03em; }
.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 560;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: var(--surface); }
.site-nav a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.site-nav .nav-lang {
  margin-left: 6px;
  color: var(--cyan);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.site-nav .nav-cta {
  margin-left: 8px;
  color: #07101f;
}
.site-nav .nav-cta:hover { color: #07101f; background: #a9ceff; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 84px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 28%, rgba(46, 107, 230, 0.22), transparent 62%),
    radial-gradient(45% 55% at 12% 78%, rgba(139, 107, 224, 0.16), transparent 65%),
    linear-gradient(180deg, #081126 0%, #070e20 58%, #050a19 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.hero-canvas.is-ready { opacity: 1; }
.hero-canvas.is-off { display: none; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  z-index: 0;
  background: radial-gradient(circle, rgba(94, 151, 240, 0.2) 0%, transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 0;
  background: linear-gradient(180deg, transparent, var(--bg-deep));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 36px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 14px;
  color: #cfe3ff;
  background: rgba(94, 151, 240, 0.12);
  border: 1px solid rgba(94, 151, 240, 0.26);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 199, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 123, 0); }
}
.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 6.2vw, 4.7rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hero-lead {
  max-width: 34em;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill {
  padding: 6px 12px;
  color: #d7e7ff;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 560;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { color: var(--faint); font-size: 0.82rem; }
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.mascot-float {
  position: relative;
  z-index: 2;
  width: min(74%, 390px);
  filter: drop-shadow(0 32px 60px rgba(20, 60, 150, 0.5));
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(116, 178, 255, 0.22);
  border-radius: 50%;
}
.orbit-1 { width: 86%; aspect-ratio: 1; transform: rotateX(68deg) rotateZ(12deg); }
.orbit-2 {
  width: 104%; aspect-ratio: 1;
  border-color: rgba(255, 209, 102, 0.16);
  transform: rotateX(72deg) rotateZ(-18deg);
}
.float-chip {
  position: absolute;
  z-index: 3;
  padding: 7px 13px;
  color: #dcecff;
  background: rgba(10, 21, 45, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(1, 6, 20, 0.4);
  animation: drift 7s ease-in-out infinite;
}
.chip-1 { top: 14%; left: 0; }
.chip-2 { right: 0; top: 46%; animation-delay: -2.2s; }
.chip-3 { bottom: 12%; left: 8%; animation-delay: -4.1s; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  font-size: 0.94rem;
  font-weight: 640;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: #fff; border-color: var(--cyan); }
.btn-primary {
  color: #06101f;
  background: linear-gradient(135deg, #9cc8ff, #5e97f0 55%, #7c8ff5);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(46, 107, 230, 0.34);
}
.btn-primary:hover { color: #06101f; background: linear-gradient(135deg, #b8d8ff, #74aaff 55%, #93a4ff); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.86rem; border-radius: 10px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; pointer-events: none; }

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: 86px 0;
}
.section.tight { padding: 54px 0; }
.section.alt {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(46, 107, 230, 0.09), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  letter-spacing: -0.035em;
}
.section-lead { margin: 0; color: var(--muted); font-size: 1.02rem; }
.page-hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(55% 80% at 70% 0%, rgba(46, 107, 230, 0.18), transparent 65%),
    linear-gradient(180deg, #081126, var(--bg-deep));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.page-hero p { max-width: 44em; color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }
.page-hero .mascot-mini {
  float: right;
  width: 110px;
  margin: 0 0 12px 28px;
  filter: drop-shadow(0 16px 30px rgba(20, 60, 150, 0.45));
}
