:root {
  --slate-950: #070b12;
  --slate-900: #0c121c;
  --slate-800: #141c2a;
  --slate-700: #1e2a3c;
  --mist: #a8b6c8;
  --mist-dim: #7d8fa5;
  --ice: #d7e3f2;
  --accent: #6ea8ff;
  --accent-soft: rgba(110, 168, 255, 0.18);
  --line: rgba(167, 190, 220, 0.16);
  --card: rgba(16, 24, 36, 0.62);
  --card-border: rgba(170, 196, 228, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ice);
  background: var(--slate-950);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* —— Full-page atmospheric background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, #1a2740 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 100%, #0f1a2e 0%, transparent 50%),
    linear-gradient(165deg, #0a101a 0%, #0d1522 42%, #0a121c 100%);
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(140, 170, 210, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 210, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.85;
  transform: perspective(800px) rotateX(12deg) scale(1.15);
  transform-origin: center 30%;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.bg-glow-a {
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(90, 140, 220, 0.35), transparent 68%);
}

.bg-glow-b {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  bottom: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(56, 96, 160, 0.28), transparent 70%);
}

.bg-glow-c {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  right: -6%;
  top: 35%;
  background: radial-gradient(circle, rgba(120, 160, 210, 0.16), transparent 70%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 0%, rgba(5, 8, 14, 0.35) 70%, rgba(4, 6, 12, 0.72) 100%),
    linear-gradient(to bottom, rgba(7, 11, 18, 0.35), transparent 18%, transparent 78%, rgba(7, 11, 18, 0.55));
}

/* —— Top bar —— */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, #9ec2ff, #4a7fd4);
  box-shadow: 0 0 16px rgba(110, 168, 255, 0.55);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: #eef4fc;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mist-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tab:hover {
  color: var(--ice);
}

.tab.is-active {
  color: #fff;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(140, 180, 240, 0.25);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Stage / panels —— */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(20px, 4vw, 48px) 28px;
  width: 100%;
}

.panel {
  width: min(560px, 100%);
  display: none;
  animation: rise 0.45s ease both;
}

.panel.is-active {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card {
  padding: clamp(28px, 5vw, 40px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mist-dim);
  font-weight: 500;
}

.company {
  margin: 0 0 28px;
  font-size: clamp(22px, 4.2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #f4f8fd;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0;
}

.fact {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fact:last-child {
  padding-bottom: 0;
}

.fact dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist-dim);
}

.fact dd {
  margin: 0;
  font-size: 15px;
  color: var(--ice);
  word-break: break-all;
}

.lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.lead.muted {
  margin-bottom: 0;
  color: var(--mist-dim);
}

.lead a {
  color: var(--ice);
  border-bottom-color: rgba(170, 196, 228, 0.35);
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 20px 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(140, 160, 185, 0.65);
}

.sep {
  opacity: 0.5;
}

@media (max-width: 520px) {
  .topbar {
    padding-top: 16px;
    gap: 12px;
  }

  .brand-name {
    font-size: 14px;
  }

  .tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .fact {
    grid-template-columns: 48px 1fr;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .foot .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
  }
}
