.page-home {
  --home-navy: #0B1B3A;
  --home-navy-light: #14336B;
  --home-gold: #F2A900;
  --home-white: #FFFFFF;
  --home-black: #0A0A0A;
  --home-gray-bg: #F5F7FA;
  --home-gray-border: #E5E7EB;
  --home-gray-text: #9CA3AF;
  --home-green: #10B981;
  --home-red: #EF4444;
  --home-radius-sm: 8px;
  --home-radius-md: 14px;
  --home-radius-pill: 999px;
  --home-font-heading: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --home-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --home-font-mono: 'Roboto Mono', 'SFMono-Regular', monospace;
  --home-content-max: 1240px;
  --home-ease: cubic-bezier(.22, 1, .36, 1);
  overflow-x: hidden;
}

.page-home .hero {
  background: var(--home-navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-hero-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(242, 169, 0, .22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(20, 51, 107, .8) 0%, transparent 70%),
    linear-gradient(135deg, #0B1B3A 0%, #0A1228 55%, #14336B 100%);
}

.home-hero-decor::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -12%;
  width: 55vw;
  height: 55vw;
  border: 2px solid rgba(242, 169, 0, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(242, 169, 0, .04),
    0 0 0 60px rgba(242, 169, 0, .03);
}

.home-hero-decor::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 45vw;
  height: 45vw;
  background: linear-gradient(135deg, transparent 45%, rgba(20, 51, 107, .6) 46%, transparent 52%);
  clip-path: polygon(0 0, 32% 0, 78% 100%, 46% 100%);
}

.home-hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.home-hero-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
}

.home-hero-badge {
  align-self: flex-start;
}

.home-hero-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--home-white);
  margin: 28px 0 24px;
  max-width: 760px;
  text-shadow: 0 4px 30px rgba(10, 10, 10, .35);
}

.home-hero-lead {
  font-family: var(--home-font-body);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin: 0 0 36px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-hero-observer {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.home-hero-observer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-gold);
}

.home-hero-observer-line {
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, rgba(242, 169, 0, .6), rgba(242, 169, 0, 0));
}

.home-portal {
  background: var(--home-white);
  padding: 88px 0 96px;
}

.home-portal-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.home-portal-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--home-black);
  margin: 12px 0 14px;
}

.home-portal-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-gray-text);
}

.home-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.home-portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 30px;
  background: var(--home-gray-bg);
  border: 1px solid var(--home-gray-border);
  border-radius: var(--home-radius-md);
  transition: transform .45s var(--home-ease), box-shadow .45s var(--home-ease), background-color .45s var(--home-ease), border-color .45s var(--home-ease);
}

.home-portal-card:hover {
  background: var(--home-gold);
  border-color: var(--home-gold);
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(242, 169, 0, .18);
}

.home-portal-card-index {
  font-family: var(--home-font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--home-gold);
  transition: color .45s var(--home-ease);
}

.home-portal-card:hover .home-portal-card-index {
  color: var(--home-black);
}

.home-portal-card-icon {
  width: 48px;
  height: 48px;
  margin: 20px 0 18px;
  color: var(--home-navy);
  transition: color .45s var(--home-ease);
}

.home-portal-card-icon svg {
  width: 100%;
  height: 100%;
}

.home-portal-card:hover .home-portal-card-icon {
  color: var(--home-black);
}

.home-portal-card-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--home-black);
  margin-bottom: 10px;
}

.home-portal-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: #4B5563;
  margin-bottom: 20px;
  flex-grow: 1;
  transition: color .45s var(--home-ease);
}

.home-portal-card:hover .home-portal-card-text {
  color: rgba(10, 10, 10, .75);
}

.home-portal-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-navy);
  transition: color .45s var(--home-ease);
}

.home-portal-card:hover .home-portal-card-link {
  color: var(--home-black);
}

.home-mobile {
  background: var(--home-navy);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.home-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 169, 0, .4), transparent);
}

.home-mobile-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.home-mobile-media {
  position: relative;
  border-radius: var(--home-radius-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.home-mobile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--home-radius-md);
  pointer-events: none;
}

.home-mobile-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.home-mobile-content {
  color: var(--home-white);
}

.home-mobile-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 12px 0 18px;
}

.home-mobile-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 24px;
}

.home-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}

.home-mobile-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

.home-mobile-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 2px;
  background: var(--home-gold);
  border-radius: 2px;
}

.home-mobile .btn-primary {
  display: inline-flex;
}

.home-stats {
  background: var(--home-navy);
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
}

.home-stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .28;
}

.home-stats-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-stats-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--home-navy) 0%, rgba(11, 27, 58, .55) 40%, rgba(11, 27, 58, .85) 100%);
}

.home-stats-inner {
  position: relative;
  z-index: 1;
}

.home-stats-head {
  text-align: center;
  margin-bottom: 48px;
}

.home-stats-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--home-white);
  margin-top: 12px;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.home-stat-item {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--home-radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: background-color .4s var(--home-ease), border-color .4s var(--home-ease);
}

.home-stat-item:hover {
  background: rgba(242, 169, 0, .08);
  border-color: rgba(242, 169, 0, .35);
}

.home-stat-num {
  display: block;
  font-family: var(--home-font-mono);
  font-weight: 500;
  font-size: 28px;
  color: var(--home-gold);
  margin-bottom: 8px;
}

.home-stat-unit {
  font-size: .55em;
  margin-left: 2px;
  color: rgba(255, 255, 255, .7);
}

.home-stat-label {
  display: block;
  font-family: var(--home-font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--home-white);
  margin-bottom: 6px;
}

.home-stat-sub {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}

.home-stats-cert {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
}

.home-updates {
  background: var(--home-gray-bg);
  padding: 88px 0 96px;
}

.home-updates-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.home-updates-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--home-black);
  margin: 12px 0 16px;
}

.home-updates-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #4B5563;
  margin-bottom: 28px;
}

.home-update-item {
  position: relative;
  border-left: 3px solid var(--home-gold);
  background: var(--home-white);
  border-radius: 0 var(--home-radius-sm) var(--home-radius-sm) 0;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.home-update-item-text {
  font-size: 14px;
  line-height: 1.7;
  color: #1F2937;
  margin: 8px 0 0;
}

.home-updates .link-underline {
  font-weight: 700;
}

.home-updates-media {
  position: relative;
  border-radius: var(--home-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.home-updates-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.home-docs {
  background: var(--home-white);
  padding: 88px 0 96px;
}

.home-docs-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.home-docs-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--home-black);
  margin: 12px 0 16px;
}

.home-docs-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #4B5563;
  margin-bottom: 28px;
}

.home-docs-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
}

.home-docs-node {
  position: relative;
  background: var(--home-gray-bg);
  border: 1px solid var(--home-gray-border);
  border-radius: var(--home-radius-sm);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: background-color .4s var(--home-ease), transform .4s var(--home-ease);
}

.home-docs-node:hover {
  background: var(--home-navy);
  transform: translateY(-4px);
}

.home-docs-node-code {
  font-family: var(--home-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--home-gold);
}

.home-docs-node-name {
  font-family: var(--home-font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--home-black);
  transition: color .4s var(--home-ease);
}

.home-docs-node:hover .home-docs-node-name {
  color: var(--home-white);
}

.home-trust {
  background: var(--home-navy);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.home-trust-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.home-trust-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--home-radius-md);
  padding: 36px 28px 32px;
  max-width: 560px;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.home-trust-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.02em;
  color: var(--home-white);
  margin: 12px 0 16px;
}

.home-trust-text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 28px;
}

.home-trust-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-trust-label {
  font-family: var(--home-font-mono);
  font-size: 13px;
  color: var(--home-gold);
  width: 88px;
  flex-shrink: 0;
}

.home-trust-value {
  font-size: 14px;
  color: var(--home-white);
  word-break: break-all;
}

.home-trust-card .btn {
  margin-top: 28px;
}

.home-trust-note {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin-top: 14px;
}

.home-trust-lines {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 26px;
}

.home-trust-lines span {
  display: block;
  width: 1px;
  height: 300px;
  background: linear-gradient(to bottom, transparent, rgba(242, 169, 0, .3), transparent);
  transform: rotate(15deg);
}

.home-trust-lines span:nth-child(2n) {
  height: 220px;
  transform: rotate(-8deg);
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .08), transparent);
}

.home-quick {
  background: var(--home-navy);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(242, 169, 0, .18);
}

.home-quick::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--home-navy) 0%, #14336B 100%);
  opacity: .5;
}

.home-quick-texture {
  position: absolute;
  inset: 0;
  opacity: .08;
}

.home-quick-texture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-quick-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-quick-title {
  font-family: var(--home-font-heading);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--home-white);
  margin: 12px 0 12px;
}

.home-quick-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .65);
  max-width: 440px;
  margin: 0 auto 28px;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 32px;
}

.home-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--home-radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--home-white);
  transition: background-color .35s var(--home-ease), border-color .35s var(--home-ease), color .35s var(--home-ease), transform .35s var(--home-ease);
}

.home-quick-link:hover {
  background: var(--home-gold);
  border-color: var(--home-gold);
  color: var(--home-black);
  transform: translateY(-3px);
}

.home-quick-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}

.home-quick-foot-link {
  color: rgba(255, 255, 255, .5);
  transition: color .3s var(--home-ease);
}

.home-quick-foot-link:hover {
  color: var(--home-gold);
}

.home-quick-foot-sep {
  color: rgba(255, 255, 255, .25);
}

@media (min-width: 640px) {
  .home-hero-title {
    font-size: 64px;
  }

  .home-hero-lead {
    font-size: 17px;
  }

  .home-portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-mobile-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }

  .home-mobile-media {
    order: 1;
  }

  .home-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-stat-num {
    font-size: 32px;
  }

  .home-updates-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
  }

  .home-docs-map {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-trust-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .home-hero-title {
    font-size: 88px;
  }

  .home-hero-lead {
    font-size: 18px;
    max-width: 620px;
  }

  .home-portal-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
  }

  .home-portal-card-account {
    grid-column: 1 / span 5;
    grid-row: 1;
  }

  .home-portal-card-news {
    grid-column: 7 / span 6;
    grid-row: 1;
    margin-top: 48px;
  }

  .home-portal-card-faq {
    grid-column: 2 / span 6;
    grid-row: 2;
    margin-top: -32px;
  }

  .home-portal-card-contact {
    grid-column: 9 / span 4;
    grid-row: 2;
  }

  .home-mobile {
    padding: 112px 0 120px;
  }

  .home-mobile-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 80px;
  }

  .home-mobile-title {
    font-size: 38px;
  }

  .home-stats {
    padding: 120px 0 124px;
  }

  .home-stats-title {
    font-size: 38px;
  }

  .home-stat-num {
    font-size: 40px;
  }

  .home-updates {
    padding: 112px 0 120px;
  }

  .home-updates-title {
    font-size: 38px;
  }

  .home-docs {
    padding: 112px 0 120px;
  }

  .home-docs-title {
    font-size: 38px;
  }

  .home-trust {
    padding: 112px 0 120px;
  }

  .home-trust-card {
    padding: 48px 40px 40px;
  }

  .home-trust-lines {
    display: flex;
  }

  .home-quick {
    padding: 88px 0 72px;
  }

  .home-quick-title {
    font-size: 34px;
  }

  .home-quick-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
    gap: 14px;
  }
}
