:root {
  --blue: #078dcc;
  --blue-dark: #006aa2;
  --ink: #111;
  --muted: #68717c;
  --line: #edf0f3;
  --paper: #fff;
  --soft: #f7f9fb;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

body {
  margin: 0;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  background: #fff;
}

.official-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.official-header__inner {
  width: 100%;
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 16px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand img {
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  display: block;
}

.desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  min-width: 0;
}

.desktop-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 22px;
  text-align: center;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.header-icon,
.globe,
.mobile-toggle {
  border: 0;
  background: transparent;
  border-radius: 6px;
  flex: 0 0 44px;
}

.header-icon,
.globe {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}

.header-actions img {
  width: 20px;
  height: 20px;
  display: block;
}

.account-link img {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 50%;
  background: #d5eee0;
}

.header-icon:hover {
  background: #f3f8fb;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 208px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.language-menu button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: #222;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
}

.language-menu button:hover {
  color: var(--blue);
  background: #f3f8fb;
}

.language-menu button[aria-pressed="true"] {
  color: #006aa2;
  background: #eef7fb;
  font-weight: 700;
}

.article-language-notice {
  border-left: 3px solid #078dcc;
  padding: 12px;
  background: #f3f8fb;
  font-size: 14px;
  line-height: 1.6;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

.mobile-toggle img {
  margin: auto;
}

.mobile-panel {
  display: none;
  gap: 2px;
  padding: 12px 20px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 8px;
  color: #111;
  font-size: 15px;
  line-height: 24px;
}

.mobile-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.mobile-panel__actions a {
  justify-content: center;
  border-radius: 5px;
  background: #111;
  color: #fff;
  text-align: center;
}

.official-header a:focus-visible,
.official-header button:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 3px;
}

.globe:hover,
.mobile-toggle:hover {
  background: var(--soft);
}

.mobile-panel__actions a:first-child {
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 620px;
  height: calc(100vh - 112px);
  max-height: 760px;
  display: grid;
  align-items: center;
  background-color: #07111b;
  background-image: url("/assets/official/home-swiper1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
  padding: 80px 32px 170px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  margin: 0 0 48px;
  font-size: 76px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 670px;
  margin: 0 auto 32px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
}

.hero-actions,
.download-actions {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-actions a,
.gold-section a,
.review-section a,
.download-actions a {
  min-width: 200px;
  height: 51px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(7, 141, 204, 0.24);
}

.hero-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1090px;
  margin: 0 auto;
}

.hero-tabs button {
  min-height: 72px;
  padding: 14px 22px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.hero-tabs button.active,
.hero-tabs button:hover {
  background: rgba(0, 0, 0, 0.68);
}

.market-strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 32px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.market-strip article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 43, 74, 0.06);
}

.market-symbol {
  font-weight: 700;
  font-size: 18px;
}

.market-change {
  margin: 10px 0 16px;
  color: #e03b4d;
  font-weight: 700;
}

.market-change.up,
.table-row em.up {
  color: #05a66b;
}

.market-name {
  color: #69727d;
  font-size: 14px;
}

.market-price {
  margin-top: 6px;
  color: #111;
  font-size: 15px;
}

.why-section,
.gold-section,
.spread-section,
.download-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px 32px;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-copy h2,
.gold-section h2,
.download-copy h2 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.section-copy span,
.gold-section span,
.download-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 700;
}

.section-copy h2,
.gold-section h2,
.download-copy h2 {
  margin: 0;
  color: #111;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 600;
}

.section-copy p,
.download-copy p {
  margin: 18px 0 0;
  color: #5a6470;
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e9f6fc;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  color: #65707a;
  font-size: 14px;
  line-height: 1.6;
}

.gold-section {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 56px;
  align-items: center;
}

.gold-section a {
  margin-top: 30px;
}

.gold-section img {
  width: 100%;
  display: block;
}

.compact {
  margin-bottom: 26px;
}

.price-table {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #111;
  font-size: 15px;
  text-align: left;
}

.table-head {
  color: #6d7680;
  background: var(--soft);
  font-weight: 700;
}

.table-row {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.table-row:hover {
  background: #f9fcfe;
}

.table-row strong {
  font-size: 17px;
}

.table-row em {
  color: #e03b4d;
  font-style: normal;
  font-weight: 700;
}

.review-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-section div {
  display: grid;
  gap: 6px;
}

.review-section strong {
  font-size: 28px;
}

.review-section span {
  color: #69727d;
}

.download-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.download-actions {
  justify-content: flex-start;
  gap: 16px;
  margin-top: 28px;
}

.download-actions a + a {
  background: #111;
}

.phone-wrap {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.phone-wrap img {
  width: min(100%, 420px);
  display: block;
}

.service-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 32px 80px;
}

.service-titlebar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 0 38px;
  border-bottom: 1px solid #d9d9d9;
}

.service-titlebar button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
}

.service-titlebar button span {
  display: block;
  position: relative;
  width: 23px;
  height: 23px;
  border: 2px solid #333;
  border-radius: 50%;
}

.service-titlebar button span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

.service-titlebar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
}

.service-hero {
  padding: 64px 0 34px;
  text-align: center;
}

.service-hero h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 400;
}

.service-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.service-menu {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.menu-group + .menu-group {
  margin-top: 26px;
}

.menu-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.menu-group a {
  display: block;
  width: 100%;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.menu-group a.active,
.menu-group a:hover {
  color: var(--blue);
}

.article-panel {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.article-panel h2 {
  margin: 0;
  color: #111;
  font-size: 30px;
  line-height: 1.25;
}

.article-updated {
  margin-top: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: #7a838c;
  font-size: 13px;
}

.article-body {
  margin-top: 24px;
  color: #222;
  font-size: 15px;
  line-height: 1.75;
}

.article-body * {
  max-width: 100%;
  color: #222 !important;
  background: transparent !important;
  line-height: 1.75 !important;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body img {
  height: auto;
}

.official-footer {
  background: #060606;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 28px;
}

.brand-line img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding: 42px 0 26px;
}

.footer-columns h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.footer-columns a {
  display: block;
  width: 100%;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 20px;
}

.footer-columns a:hover {
  color: #fff;
}

.footer-risk {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.7;
}

.footer-risk p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.official-floating {
  position: fixed;
  right: 38px;
  bottom: 36px;
  z-index: 35;
  display: grid;
  gap: 14px;
}

.float-button {
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(7, 141, 204, 0.25);
}

.support {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.support span {
  position: relative;
  width: 18px;
  height: 14px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.support span::before,
.support span::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.support span::before {
  left: -4px;
}

.support span::after {
  right: -4px;
}

.download {
  width: 62px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
}

.download img {
  filter: invert(1);
}

.download small {
  font-size: 9px;
  line-height: 10px;
}

.download-dialog-open {
  overflow: hidden;
}

.download-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.download-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.download-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.download-dialog h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.download-dialog__close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.download-dialog__options {
  display: grid;
  gap: 12px;
}

.download-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 12px;
  border: 1px solid #dce2e7;
  border-radius: 6px;
  background: var(--soft);
}

.download-choice strong,
.download-choice small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.download-choice strong {
  font-size: 16px;
}

.download-choice small {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.download-choice:hover,
.download-dialog__close:hover {
  background: #edf5fa;
}

.download-choice:focus-visible,
.download-dialog__close:focus-visible,
[data-download-trigger]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (min-width: 1280px) and (max-width: 1599px) {
  .official-header__inner {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .desktop-nav {
    gap: 16px;
  }
}

@media (max-width: 1279px) {
  .official-header__inner {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel:not([hidden]) {
    display: grid;
    max-height: calc(100vh - 63px);
    max-height: calc(100dvh - 63px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: 640px;
    height: auto;
    max-height: none;
  }

  .hero-content {
    text-align: left;
    padding: 74px 22px 128px;
  }

  .hero-content h1 {
    max-width: 620px;
    font-size: 52px;
  }

  .hero-content p {
    margin-left: 0;
    font-size: 18px;
  }

  .hero-actions {
    justify-content: flex-start;
    gap: 18px;
  }

  .market-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .gold-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .gold-section,
  .download-section {
    gap: 36px;
  }

  .service-main {
    padding: 28px 20px 60px;
  }

  .service-titlebar {
    padding-bottom: 26px;
  }

  .service-hero {
    padding: 44px 0 24px;
  }

  .service-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-menu {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .menu-group + .menu-group {
    margin-top: 0;
  }

  .article-panel {
    padding: 24px 18px;
  }
}

@media (max-width: 760px) {
  .hero-content h1 {
    font-size: 40px;
  }

  .hero-tabs {
    display: none;
  }

  .market-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .why-section,
  .gold-section,
  .spread-section,
  .download-section {
    padding: 54px 20px;
  }

  .section-copy h2,
  .gold-section h2,
  .download-copy h2 {
    font-size: 30px;
  }

  .table-head,
  .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .review-section {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 20px;
  }

  .footer-inner {
    padding: 40px 20px 28px;
  }

  .footer-brand,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .official-floating {
    right: 18px;
    bottom: 28px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 640px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-actions a,
  .download-actions a,
  .gold-section a,
  .review-section a {
    width: 100%;
    min-width: 0;
  }

  .service-menu,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .article-panel h2 {
    font-size: 24px;
  }
}
