@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --fb-blue: #3b5bdb;
  --fb-blue-hover: #364fc7;
  --fb-blue-soft: #edf2ff;
  --ink: #152043;
  --muted: #5c6785;
  --line: #e4e8f2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #12b886;
  --warn: #f7b928;
  --danger: #e41e3f;
  --shadow: 0 10px 30px rgba(21, 32, 67, 0.06);
  --radius: 20px;
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, #d9e4ff 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 8%, #ece3ff 0%, transparent 46%),
    var(--bg);
  line-height: 1.7;
}

a {
  color: var(--fb-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 232, 242, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, #5c7cfa, #3b5bdb);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 16px rgba(59, 91, 219, 0.28);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  background: var(--bg);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--fb-blue);
  border-color: var(--fb-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 91, 219, 0.28);
}

.btn-primary:hover {
  background: var(--fb-blue-hover);
  color: #fff;
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: #1c3d9b;
}

.btn-light:hover {
  background: #f4f7ff;
  color: #1c3d9b;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 12px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fb-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 20px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.chip strong {
  color: var(--ink);
  font-weight: 650;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 8px;
}

.toc h2 {
  margin: 0 12px 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13.5px;
  text-decoration: none;
}

.toc a:hover,
.toc a.active {
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
}

.content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0 32px;
}

.notice {
  margin: 24px 32px 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f5e0a3;
  color: #7a5b00;
  font-size: 14px;
}

.section {
  padding: 28px 32px;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.section p,
.section li {
  color: #333;
}

.section ul,
.section ol {
  padding-left: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafbfc;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 4px;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f7f8fa;
  font-weight: 650;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fb-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form label {
  font-size: 13px;
  font-weight: 650;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-menu a:hover {
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.btn-lg {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 18px 24px 32px;
  padding: 64px 56px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #0b1f4d 0%, #2f4ec8 52%, #7a8cff 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(21, 32, 67, 0.18);
}

.home-hero .kicker {
  color: #d6e0ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
}

.home-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.home-hero h1,
.home-hero .lede {
  color: #fff;
}

.home-hero .lede {
  max-width: 540px;
  opacity: 0.9;
  font-size: 18px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.orb-a {
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  background: rgba(255, 255, 255, 0.16);
}

.orb-b {
  width: 220px;
  height: 220px;
  left: 36%;
  bottom: -90px;
  background: rgba(166, 130, 255, 0.28);
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(8, 20, 60, 0.22);
  transform: rotate(-1.5deg);
}

.hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.14);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
}

.dots i:nth-child(2) {
  background: #ffd43b;
}

.dots i:nth-child(3) {
  background: #69db7c;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d3f9d8;
  font-size: 12px;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69db7c;
  box-shadow: 0 0 0 0 rgba(105, 219, 124, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(105, 219, 124, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(105, 219, 124, 0);
  }
}

.console-body {
  padding: 16px;
}

.spark {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.spark-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 12px;
}

.spark-head b {
  color: #b2f2bb;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
}

.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #fff, #91a7ff);
  animation: grow 1s ease both;
}

.bars span:nth-child(odd) {
  animation-delay: 0.08s;
}

@keyframes grow {
  from {
    height: 12%;
    opacity: 0.4;
  }
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-card {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ok-text {
  color: var(--ok);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px auto 8px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover,
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(21, 32, 67, 0.1);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.stat strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.portal-section {
  padding: 48px 0 8px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #c5d0ff;
}

.portal-section h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.portal-section > .lede,
.section-head .lede {
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature.numbered {
  min-height: 180px;
}

.feature .num {
  display: block;
  color: var(--fb-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.feature-link:hover {
  text-decoration: none;
  border-color: #c5d0ff;
}

.more {
  display: inline-block;
  margin-top: 16px;
  color: var(--fb-blue);
  font-size: 14px;
  font-weight: 700;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow article {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.flow strong {
  color: var(--fb-blue);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.flow h3 {
  margin: 10px 0 8px;
}

.flow p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin: 48px auto 32px;
  padding: 36px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #152043, #3b5bdb);
  box-shadow: 0 20px 40px rgba(21, 32, 67, 0.16);
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.cta-banner p,
.cta-banner a {
  color: #dbe4ff;
}

.cta-banner .btn-light {
  color: #152043;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
  font-size: 13px;
}

.footer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--fb-blue);
  text-decoration: none;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .grid-2,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section,
  .notice {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-menu {
    display: none;
  }

  .hero-split,
  .stats,
  .grid-3,
  .flow {
    grid-template-columns: 1fr;
  }

  .home-hero {
    margin: 12px 12px 24px;
    padding: 36px 20px 40px;
    border-radius: 24px;
  }

  .hero-panel {
    transform: none;
  }

  .orb {
    display: none;
  }

  .cta-banner {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
