/* Homepage-specific styles */

.home-page {
  overflow-x: clip;
  --nx-section-y: 70px;
  --nx-section-head-gap: 36px;
  --home-hero-bg-top: #0b3057;
  --home-hero-bg-mid: #021025;
  --home-hero-bg-deep: #000410;
  --home-hero-bg-base: #000000;
  --home-hero-gutter: max(45px, calc((100vw - var(--nx-container)) / 2 + 45px));
  --home-hero-video-inset: max(45px, calc((100vw - var(--nx-container)) / 2));
  --home-hero-max-prose: 34rem;
  --home-title-size: clamp(1.75rem, 3vw, 2.375rem);
  --home-title-weight: 800;
  --home-title-spacing: -0.02em;
  --home-title-line: 1.2;
  --home-title-gap: 16px;
  --home-lead-size: 18px;
  --home-lead-line: 1.72;
  --home-subtitle-size: 18px;
  --home-subtitle-line: 1.35;
  --home-body-size: 16px;
  --home-body-line: 1.72;
  --home-list-size: 15px;
  --home-list-line: 1.55;
  --home-action-size: 17px;
}

.home-hero {
  padding: 0;
  overflow: hidden;
  background: var(--home-hero-bg-base);
  color: var(--nx-white);
  position: relative;
  border-bottom: 1px solid #e2e8f070;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0;
  min-height: clamp(500px, 58vh, 680px);
}

.home-hero__content {
  display: flex;
  align-items: center;
  background-color: var(--home-hero-bg-base);
  background-image:
    radial-gradient(
      ellipse 100% 75% at 6% 8%,
      rgba(11, 48, 87, 0.92) 0%,
      rgba(3, 27, 62, 0.5) 40%,
      transparent 72%
    ),
    linear-gradient(
      125deg,
      var(--home-hero-bg-top) 0%,
      #031b3e 24%,
      var(--home-hero-bg-mid) 50%,
      var(--home-hero-bg-deep) 78%,
      var(--home-hero-bg-base) 100%
    );
}

.home-hero__content-inner {
  width: 100%;
  max-width: calc(var(--nx-container) / 2);
  margin-left: var(--home-hero-gutter);
  padding: 52px 0 64px;
}

.home-hero__visual {
  position: relative;
  min-height: 100%;
  align-self: stretch;
  background-color: var(--home-hero-bg-base);
  background-image:
    linear-gradient(
      180deg,
      rgba(11, 48, 87, 0.48) 0%,
      rgba(3, 27, 62, 0.14) 10%,
      transparent 20%
    ),
    linear-gradient(
      90deg,
      var(--home-hero-bg-deep) 0%,
      rgba(0, 4, 16, 0.42) 10%,
      transparent 22%
    );
}

.home-hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: var(--home-hero-video-inset);
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  display: block;
  border: 0;
  background: transparent;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 100%),
    linear-gradient(to right, transparent 0%, #000 8%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 100%),
    linear-gradient(to right, transparent 0%, #000 8%, #000 100%);
  mask-composite: intersect;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__video {
    display: none;
  }

  .home-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--home-hero-bg-base);
  }
}

.home-hero h1 {
  font-size: clamp(2.375rem, 5.25vw, 3.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  text-wrap: balance;
  text-shadow: 0 1px 28px rgba(255, 255, 255, 0.1);
}

.home-hero h1 span {
  display: block;
  margin-top: 0.1em;
  background: linear-gradient(
    90deg,
    #ffd18a 0%,
    var(--nx-orange) 52%,
    #e88a2e 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.home-hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  max-width: var(--home-hero-max-prose);
  margin-bottom: clamp(32px, 4vw, 40px);
}

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

.home-hero-proof-wrap,
.home-partners {
  background-color: var(--home-hero-bg-base);
  background-image: linear-gradient(
    125deg,
    var(--home-hero-bg-top) 0%,
    #031b3e 24%,
    var(--home-hero-bg-mid) 50%,
    var(--home-hero-bg-deep) 78%,
    var(--home-hero-bg-base) 100%
  );
}

.home-hero-proof-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 0;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero-proof strong {
  font-weight: 800;
  color: var(--nx-gold);
}

.home-hero-proof-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(250, 188, 46, 0.25));
}

/* ---- Homepage: partners ---- */
.home-partners {
  padding: 40px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--nx-white);
}

.home-partners .container {
  max-width: 800px;
}

.home-partners__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.home-partners__head h2,
#home-partners-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.home-partners__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3.5vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.home-partners__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-partners__logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: min(100%, 168px);
  object-fit: contain;
  opacity: 0.78;
  filter: brightness(0) invert(1);
}

.home-partners__brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.home-partners__item--coinbase .home-partners__logo--icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  max-width: none;
}

.home-partners__item--coinbase .home-partners__logo--wordmark {
  height: 22px;
  max-width: min(100%, 124px);
}

.home-partners__item--kraken .home-partners__logo {
  height: 19px;
  max-width: min(100%, 92px);
}

/* ---- Homepage: products ---- */
.home-products .section-head,
.home-markets .section-head {
  max-width: 980px;
}

.home-page .section-head p {
  font-size: var(--home-lead-size);
  line-height: var(--home-lead-line);
}

.home-process-header .section-eyebrow,
.home-security-copy .section-eyebrow {
  display: block;
  margin-bottom: 12px;
}

.home-page .section-head h2,
.home-platform__copy h2,
.home-why-header h2,
.home-process-header h2,
.home-faq-heading,
.home-testimonials-header h2,
.home-security-copy h2 {
  font-size: var(--home-title-size);
  font-weight: var(--home-title-weight);
  letter-spacing: var(--home-title-spacing);
  line-height: var(--home-title-line);
  color: var(--nx-navy);
  margin: 0 0 var(--home-title-gap);
}

.home-security-copy h2 {
  color: var(--nx-white);
}

.home-platform__copy > p,
.home-why-lead,
.home-process-lead,
.home-security-lead {
  font-size: var(--home-lead-size);
  line-height: var(--home-lead-line);
  color: var(--nx-muted);
}

.home-security-lead {
  color: rgba(255, 255, 255, 0.72);
}

.home-page .check-list li {
  font-size: var(--home-list-size);
  line-height: var(--home-list-line);
}

.home-faq-answer p {
  font-size: var(--home-body-size);
  line-height: var(--home-body-line);
}

.home-security-features li {
  font-size: var(--home-list-size);
  line-height: var(--home-list-line);
}

.home-platform-cta__label,
.home-security-cta__label,
.home-faq-more,
.home-markets-tab,
.home-markets-viewall__link {
  font-size: var(--home-action-size);
}

.product-card__title {
  font-size: var(--home-subtitle-size);
  line-height: var(--home-subtitle-line);
}

.product-card__desc {
  font-size: var(--home-body-size);
  line-height: var(--home-body-line);
}

.product-card__features li {
  font-size: var(--home-list-size);
  line-height: var(--home-list-line);
}

.product-card__cta {
  font-size: var(--home-action-size);
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  color: inherit;
  overflow: hidden;
  box-shadow: var(--nx-shadow-sm);
  cursor: default;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0 24px;
}

.product-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  margin: 0;
  padding: 18px 22px;
  background: #edf1f6;
  border-bottom: 1px solid var(--nx-border);
}

.product-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--nx-white);
  border: 1px solid rgba(5, 48, 92, 0.1);
  box-shadow: 0 1px 2px rgba(5, 48, 92, 0.05);
}

.product-card__icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-card__title {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--nx-navy);
  margin: 0;
}

.product-card__desc {
  color: var(--nx-muted);
  margin: 0;
  padding: 18px 22px 0;
}

.product-card__features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 22px;
  flex: 1;
}

.product-card__features li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-weight: 500;
  color: var(--nx-text);
}

.product-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  background: url("asset/content/images/icon-images/green-checkmark.svg") center / contain no-repeat;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 0 22px;
  font-weight: 600;
  color: var(--nx-navy);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-card__arrow {
  color: var(--nx-orange);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.product-card__cta:hover {
  color: var(--nx-orange);
}

.product-card__cta:hover .product-card__arrow {
  transform: translateX(3px);
}

.product-card__cta:focus-visible {
  outline: 2px solid var(--nx-orange);
  outline-offset: 2px;
  border-radius: var(--nx-radius-sm);
}

/* ---- Homepage: platform (cr-security-style split) ---- */
.home-platform {
  background: var(--nx-white);
}

.home-platform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.home-platform__media {
  margin: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-platform__media img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  display: block;
  object-fit: contain;
}

.home-platform__copy {
  max-width: 32rem;
}

.home-platform__copy > p {
  margin: 0 0 20px;
}

.home-platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

/* Rotating border highlight (see home-platform-cta) */
@property --home-platform-cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.home-platform-cta {
  --home-platform-cta-angle: 0deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 9999px;
  text-decoration: none;
  background: conic-gradient(
    from var(--home-platform-cta-angle),
    transparent 0deg 300deg,
    var(--nx-orange) 300deg 360deg
  );
  animation: home-platform-cta-spin 2.75s linear infinite;
}

.home-platform-cta__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 34px;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--nx-white);
  background: linear-gradient(
    135deg,
    var(--nx-navy-dark) 0%,
    var(--nx-navy) 48%,
    var(--nx-navy-light) 100%
  );
  transition: background 0.25s ease, transform 0.15s ease;
}

.home-platform-cta:hover .home-platform-cta__label {
  background: linear-gradient(
    135deg,
    var(--nx-navy) 0%,
    var(--nx-navy-light) 55%,
    #0d5c9e 100%
  );
}

.home-platform-cta:active .home-platform-cta__label {
  transform: scale(0.98);
}

.home-platform-cta:focus-visible {
  outline: 2px solid var(--nx-orange);
  outline-offset: 3px;
}

@keyframes home-platform-cta-spin {
  to {
    --home-platform-cta-angle: 360deg;
  }
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .home-platform-cta {
    animation: none;
    padding: 0;
    background: transparent;
  }

  .home-platform-cta__label {
    border: 2px solid var(--nx-orange);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-platform-cta {
    animation: none;
    background: var(--nx-orange);
    padding: 2px;
  }

  .home-platform-cta::before {
    animation: none;
    display: none;
  }

  .home-security-cta {
    animation: none;
    padding: 0;
    background: transparent;
  }

  .home-security-cta__label {
    border: 1.5px solid var(--nx-orange);
    background: transparent;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .home-security-cta:hover .home-security-cta__label {
    background: rgba(255, 255, 255, 0.08);
  }

  .home-markets-live__dot {
    animation: none;
  }
}

/* ---- Homepage: Why Nexus (cr-platform-style split) ---- */
.home-why {
  background: #dde5f185;
}

.home-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.home-why__copy {
  max-width: 34rem;
}

.home-why-lead {
  max-width: 30rem;
  margin: 0;
}

.home-why__media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  line-height: 0;
}

.home-why__media img {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  display: block;
  border-radius: 0;
  transform: scale(1.1);
  transform-origin: center center;
}

.home-why-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--nx-border);
}

.home-why-benefit__link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.home-why-benefit__link:hover .home-why-benefit__title {
  color: var(--nx-orange);
}

.home-why-benefit__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-why-benefit__icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.home-why-benefit__copy {
  min-width: 0;
}

.home-why-benefit__title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-navy);
  transition: color 0.2s ease;
}

.home-why-benefit__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nx-muted);
}

/* ---- Homepage: live markets (tabbed table) ---- */
.home-page .home-markets.section {
  padding: 64px 0;
}

.home-markets {
  background: #c4d9efc9;
}

.home-markets-widget {
  max-width: 920px;
  margin: 0 auto;
}

.home-markets-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.home-markets-tab {
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  color: var(--nx-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-markets-tab:hover {
  color: var(--nx-navy);
}

.home-markets-tab.is-active {
  color: var(--nx-navy);
  background: var(--nx-white);
  box-shadow: 0 1px 4px rgba(15, 20, 25, 0.08), 0 0 0 1px var(--nx-border);
}

.home-markets-tab:focus-visible {
  outline: 2px solid var(--nx-orange);
  outline-offset: 2px;
}

.home-markets-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
  overflow: hidden;
}

.home-markets-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--nx-border);
  background: var(--nx-bg);
}

.home-markets-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nx-navy);
}

.home-markets-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nx-success);
  box-shadow: 0 0 0 3px rgba(22, 199, 132, 0.2);
  animation: home-markets-pulse 2s ease-in-out infinite;
}

@keyframes home-markets-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.home-markets-updated {
  font-size: 11px;
  color: var(--nx-muted);
  white-space: nowrap;
}

.home-markets-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 28px 8px;
}

.home-markets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--home-list-size);
}

.home-markets-table thead th {
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--nx-muted);
  background: var(--nx-bg);
  border-bottom: 1px solid var(--nx-border);
}

.home-markets-table thead th.home-markets-table__num {
  text-align: right;
}

.home-markets-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--nx-border);
  vertical-align: middle;
}

.home-markets-table tbody tr:last-child td {
  border-bottom: none;
}

.home-markets-table tbody tr:hover td {
  background: rgba(5, 48, 92, 0.02);
}

.home-markets-table-wrap .home-markets-table__num {
  text-align: right;
}

.home-markets-table__num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.home-markets-table__asset {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
}

.home-markets-table__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.home-markets-table__icon--stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--nx-navy) 0%, var(--nx-navy-light) 100%);
  color: var(--nx-white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-markets-viewall {
  padding: 12px 28px 24px;
  text-align: right;
}

.home-markets-viewall__link {
  font-weight: 700;
  color: var(--nx-orange);
  text-decoration: none;
}

.home-markets-viewall__link:hover {
  color: var(--nx-navy);
  text-decoration: underline;
}

.home-markets-table__names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-markets-table__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-navy);
  line-height: 1.3;
}

.home-markets-table__symbol {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--nx-muted);
}

.home-markets-table__price,
.home-markets-table__metric {
  font-weight: 600;
  color: var(--nx-navy);
}

.market-change {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
}

.market-change__arrow {
  font-size: 10px;
  line-height: 1;
}

.market-change--up {
  color: var(--nx-success);
}

.market-change--down {
  color: var(--nx-danger);
}

.market-change--flat {
  color: var(--nx-muted);
}

.home-markets-status {
  padding: 28px 16px !important;
  text-align: center;
  font-size: var(--home-body-size);
  line-height: var(--home-body-line);
  color: var(--nx-muted);
}

/* ---- Homepage: How it works (background panel + steps) ---- */
.home-process {
  padding: 0;
}

.home-process-panel {
  position: relative;
  background-color: #00070f;
  background-image: url("asset/content/images/home_exchange_global-2.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 118%;
  overflow: hidden;
}

.home-process-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 32%,
    rgba(255, 255, 255, 0.88) 44%,
    rgba(255, 255, 255, 0.68) 56%,
    rgba(255, 255, 255, 0.38) 66%,
    rgba(255, 255, 255, 0.14) 76%,
    rgba(3, 30, 58, 0.08) 88%,
    rgba(3, 30, 58, 0.04) 100%
  );
  pointer-events: none;
}

.home-process-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 44vw, 560px);
  padding-block: var(--nx-section-y);
}

.home-process-copy {
  width: min(100%, 540px);
  max-width: 46%;
  padding-block: 0;
  padding-right: clamp(28px, 3.5vw, 36px);
}

.home-process-lead {
  margin: 0;
  max-width: 46ch;
}

.home-process-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--nx-border);
  counter-reset: process-step;
}

.home-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  counter-increment: process-step;
}

.home-process-step:not(:last-child) {
  padding-bottom: 28px;
}

.home-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--nx-border), rgba(226, 232, 240, 0.35));
  pointer-events: none;
}

.home-process-step__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  box-shadow: var(--nx-shadow-sm);
}

.home-process-step__icon::before {
  content: counter(process-step);
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-orange), var(--nx-gold));
  color: var(--nx-white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239, 146, 39, 0.35);
}

.home-process-step__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.home-process-step__body {
  min-width: 0;
  padding-top: 2px;
}

.home-process-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.home-process-step__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-navy);
}

.home-process-step__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--nx-bg);
  border: 1px solid var(--nx-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

.home-process-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nx-muted);
}

/* ---- Homepage: security ---- */
.home-security {
  position: relative;
  overflow: hidden;
  background-color: #0b0e16;
  color: var(--nx-white);
}

.home-security::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("asset/image/asset-protection.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 102%;
  pointer-events: none;
}

.home-security::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      #0b0e16 0%,
      rgba(11, 14, 22, 0.94) 30%,
      rgba(11, 14, 22, 0.45) 44%,
      transparent 54%
    ),
    linear-gradient(180deg, #0b0e16 0%, rgba(11, 14, 22, 0.55) 10%, transparent 22%),
    linear-gradient(0deg, #1f1610 0%, rgba(31, 22, 16, 0.65) 12%, transparent 24%),
    linear-gradient(270deg, #271b12 0%, rgba(39, 27, 18, 0.45) 8%, transparent 16%);
  pointer-events: none;
}

.home-security-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 38vw, 540px);
}

.home-security-copy {
  flex: 0 1 520px;
  width: min(100%, 520px);
  max-width: 46%;
}

.home-security-lead {
  margin: 0 0 28px;
  max-width: 44ch;
}

.home-security-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.home-security-features li {
  position: relative;
  padding-left: 30px;
  color: rgba(248, 250, 252, 0.9);
}

.home-security-features li + li {
  margin-top: 12px;
}

.home-security-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nx-orange);
  color: var(--nx-white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

@property --home-security-cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.home-security-cta {
  --home-security-cta-angle: 0deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 9999px;
  text-decoration: none;
  background: conic-gradient(
    from var(--home-security-cta-angle),
    rgba(239, 146, 39, 0.38) 0deg 250deg,
    rgba(239, 146, 39, 0.72) 275deg,
    var(--nx-orange) 295deg,
    #ffab42 315deg,
    var(--nx-orange) 335deg,
    rgba(239, 146, 39, 0.72) 355deg,
    rgba(239, 146, 39, 0.38) 360deg
  );
  animation: home-security-cta-spin 2.75s linear infinite;
}

.home-security-cta__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 34px;
  border-radius: 9999px;
  border: none;
  background: #0b0e16;
  color: var(--nx-white);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: background 0.2s ease, transform 0.15s ease;
}

.home-security-cta__label span {
  color: var(--nx-orange);
}

.home-security-cta:hover .home-security-cta__label {
  background: #1a2232;
}

.home-security-cta:active .home-security-cta__label {
  transform: scale(0.98);
}

.home-security-cta:focus-visible {
  outline: 2px solid var(--nx-orange);
  outline-offset: 3px;
}

@keyframes home-security-cta-spin {
  to {
    --home-security-cta-angle: 360deg;
  }
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .home-security-cta {
    animation: none;
    padding: 0;
    background: transparent;
  }

  .home-security-cta__label {
    border: 1.5px solid var(--nx-orange);
    background: transparent;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .home-security-cta:hover .home-security-cta__label {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ---- Homepage: FAQ ---- */
.home-faq {
  padding-block: 72px;
}

.home-faq-header {
  text-align: center;
  margin-bottom: 36px;
}

.home-faq-panel {
  width: 100%;
  border-block: 1px solid var(--nx-border);
  overflow: hidden;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  max-width: var(--nx-container);
  margin-inline: auto;
  padding-inline: 45px;
}

.home-faq-item {
  border-bottom: 1px solid var(--nx-border);
}

.home-faq-item:last-child {
  border-bottom: none;
}

.home-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 0;
  font-weight: 600;
  color: var(--nx-navy);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary:hover {
  color: var(--nx-navy-light);
}

.home-faq-item__question {
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.45;
}

.home-faq-item__icon {
  width: 14px;
  height: 14px;
  justify-self: end;
  border-right: 2px solid var(--nx-orange);
  border-bottom: 2px solid var(--nx-orange);
  transform: rotate(45deg);
  transform-origin: 55% 55%;
  transition: transform 0.25s ease;
}

.home-faq-item[open] .home-faq-item__icon {
  transform: rotate(-135deg);
}

.home-faq-answer {
  padding: 0 0 20px;
}

.home-faq-answer p {
  color: var(--nx-muted);
}

.home-faq-answer a {
  color: var(--nx-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-faq-answer a:hover {
  color: var(--nx-navy);
}

.home-faq-footer {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.home-faq-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--nx-navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-faq-more span {
  color: var(--nx-orange);
  transition: transform 0.2s ease;
}

.home-faq-more:hover {
  color: var(--nx-orange);
  border-bottom-color: rgba(239, 146, 39, 0.35);
}

.home-faq-more:hover span {
  transform: translateX(3px);
}

/* ---- Homepage: testimonials ---- */
.home-testimonials {
  background: #f5f2eb;
}

.home-testimonials-header {
  text-align: center;
  margin-bottom: 36px;
}

.home-testimonials-layout {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.home-testimonials-summary {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 12px 36px 12px 0;
  border-right: 1px solid rgba(5, 48, 92, 0.14);
}

.home-testimonials-rating-label {
  font-size: clamp(1.75rem, 2.5vw, 2.125rem);
  font-weight: 800;
  color: var(--nx-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.home-testimonials-reviews-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--nx-navy-light);
  text-decoration: none;
}

.home-testimonials-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-navy);
}

.home-testimonials-brand__icon {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: #00b67a;
  position: relative;
}

.home-testimonials-brand__icon::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.home-testimonials-carousel {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 8px 28px;
}

.home-testimonials-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  container-type: inline-size;
  container-name: testimonials;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.home-testimonials-viewport::-webkit-scrollbar {
  display: none;
}

.home-testimonials-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(5, 48, 92, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--nx-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.home-testimonials-nav span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.home-testimonials-nav--prev span {
  transform: rotate(135deg);
  margin-left: 3px;
}

.home-testimonials-nav--next span {
  margin-right: 3px;
}

.home-testimonials-nav:hover:not(:disabled) {
  background: var(--nx-white);
  border-color: rgba(5, 48, 92, 0.28);
}

.home-testimonials-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-testimonials .testimonials-track {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
  padding: 2px 2px 6px;
}

.home-testimonials .testimonial-card {
  flex: 0 0 calc((100cqw - 32px) / 3);
  min-width: 0;
  background: var(--nx-white);
  border: none;
  border-radius: 0;
  padding: 28px 24px 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.home-testimonials .testimonial-card--clone {
  pointer-events: none;
}

.testimonial-stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #00b67a;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.testimonial-star::before {
  content: "★";
}

.testimonial-stars--summary .testimonial-star {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.testimonial-stars--summary .testimonial-star--partial {
  background: #dcdce6;
  position: relative;
  isolation: isolate;
}

.testimonial-stars--summary .testimonial-star--partial::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: #00b67a;
  z-index: 0;
}

.testimonial-stars--summary .testimonial-star--partial::before {
  position: relative;
  z-index: 1;
  color: #fff;
  background: none;
  clip-path: none;
}

.testimonial-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-black);
  line-height: 1.35;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--nx-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.testimonial-card.is-expanded .testimonial-card__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testimonial-card__more {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0056b3;
  cursor: pointer;
  text-decoration: none;
}

.testimonial-card__more:hover {
  text-decoration: underline;
}

.testimonial-card.is-expanded .testimonial-card__more {
  margin-bottom: 12px;
}

.testimonial-card__author {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-black);
}

/* Investment plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.plan-card:hover {
  box-shadow: var(--nx-shadow-lg);
  transform: translateY(-4px);
}

.plan-card-head {
  background: linear-gradient(135deg, var(--nx-navy) 60%, var(--nx-navy-light));
  color: var(--nx-white);
  padding: 28px 24px;
  text-align: center;
}

.plan-card-head h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.plan-card-return {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--nx-gold);
}

.plan-card-deposit {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.plan-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-features li {
  font-size: 14px;
  color: var(--nx-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--nx-border);
}

.plan-features li:last-child { border-bottom: none; }

.plan-card-body .btn {
  margin-top: auto;
  width: 100%;
  margin-top: 20px;
}

/* ROI Calculator */
.roi-section { background: var(--nx-bg); }

.roi-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

.roi-input-panel {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 28px;
}

.roi-input-panel label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-navy);
  margin-bottom: 8px;
}

.roi-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}

.roi-input-wrap span {
  padding: 12px 14px;
  background: var(--nx-bg);
  font-weight: 600;
  color: var(--nx-muted);
  border-right: 1px solid var(--nx-border);
}

.roi-input-wrap input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.roi-hint { font-size: 12px; color: var(--nx-muted); margin-bottom: 16px; }

.roi-validation {
  font-size: 13px;
  color: var(--nx-danger);
  min-height: 20px;
  margin-bottom: 12px;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.roi-result-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 20px;
  opacity: 0.45;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.roi-result-card.active {
  opacity: 1;
  border-color: var(--nx-orange);
  box-shadow: 0 0 0 3px rgba(239,146,39,0.15);
}

.roi-result-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-orange);
  margin-bottom: 6px;
}

.roi-result-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 4px;
}

.roi-result-range {
  font-size: 12px;
  color: var(--nx-muted);
  margin-bottom: 12px;
}

.roi-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid var(--nx-border);
}

.roi-result-row .val {
  font-weight: 700;
  color: var(--nx-navy);
}

.roi-result-row .val.total { color: var(--nx-orange); }

@media (max-width: 1100px) {
  .home-faq-list {
    padding-inline: 32px;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    background-color: var(--home-hero-bg-base);
    background-image:
      radial-gradient(
        ellipse 100% 75% at 6% 8%,
        rgba(11, 48, 87, 0.92) 0%,
        rgba(3, 27, 62, 0.5) 40%,
        transparent 72%
      ),
      linear-gradient(
        125deg,
        var(--home-hero-bg-top) 0%,
        #031b3e 24%,
        var(--home-hero-bg-mid) 50%,
        var(--home-hero-bg-deep) 78%,
        var(--home-hero-bg-base) 100%
      );
  }

  .home-hero__content {
    background: none;
  }

  .home-hero__content-inner {
    max-width: none;
    margin-left: 0;
    padding: 44px 24px 0;
  }

  .home-hero-lead {
    max-width: none;
  }

  .home-hero h1 {
    max-width: none;
  }

  .home-hero__visual {
    min-height: clamp(260px, 42vw, 360px);
    width: auto;
    margin-left: 0;
    background: none;
  }

  .home-hero__video-wrap {
    right: 24px;
    left: 16px;
  }

  .home-hero__video {
    object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 100%);
  }

  .product-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .home-partners {
    padding: 36px 0 40px;
  }

  .home-partners__head {
    margin-bottom: 24px;
  }

  .home-partners__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(12px, 2.5vw, 28px);
  }

  .home-partners__item {
    flex: 0 0 auto;
  }

  .home-partners__logo {
    height: 26px;
    max-width: min(100%, 148px);
  }

  .home-partners__item--coinbase .home-partners__logo--icon {
    width: 24px;
    height: 24px;
  }

  .home-partners__item--coinbase .home-partners__logo--wordmark {
    height: 19px;
    max-width: min(100%, 108px);
  }

  .home-partners__item--kraken .home-partners__logo {
    height: 16px;
    max-width: min(100%, 80px);
  }

  .home-platform__grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 0px;
  }

  .home-platform__copy {
    max-width: none;
  }

  .home-platform__media {
    max-width: min(100%, 640px);
    margin: 0 auto;
  }

  .home-platform__media img {
    max-height: min(80vh, 520px);
  }

  .home-why__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-why__copy {
    max-width: none;
  }

  .home-why-header h2,
  #home-why-heading,
  .home-why-lead {
    max-width: none;
  }

  .home-why__media {
    max-width: min(100%, 520px);
    margin: 0 auto;
  }

  .home-why__media img {
    transform: scale(1.1);
  }

  .home-process-panel {
    background-color: #d6e0eb;
    background-position: 92% bottom;
    background-size: 198% auto;
    background-repeat: no-repeat;
  }

  .home-process-panel::before {
    background: linear-gradient(
      180deg,
      rgba(244, 247, 251, 0.97) 0%,
      rgba(236, 241, 248, 0.9) 36%,
      rgba(224, 232, 242, 0.68) 50%,
      rgba(212, 222, 234, 0.34) 62%,
      rgba(206, 216, 228, 0.1) 72%,
      transparent 78%
    );
  }

  .home-process-inner {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding-block: var(--nx-section-y) calc(124vw + 32px);
  }

  .home-process-copy {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .home-process-header h2,
  #home-process-heading,
  .home-process-lead {
    max-width: none;
  }

  .home-security-layout {
    align-items: flex-start;
    min-height: 0;
    padding-block: 0 calc(50vw + 4px);
  }

  .home-security-copy {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .home-security-copy h2,
  #home-security-heading,
  .home-security-lead {
    max-width: none;
  }

  .home-security::before {
    inset: 0;
    background-color: #0b0e16;
    background-image: url("asset/image/asset-protection-mobile.png");
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .home-security::after {
    inset: 0;
    height: auto;
    background-color: transparent;
    background-image: linear-gradient(
      180deg,
      #0b0e16 0%,
      rgba(11, 14, 22, 0.94) 28%,
      rgba(11, 14, 22, 0.5) 40%,
      transparent 50%
    );
  }

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

  .roi-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .roi-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-testimonials-header {
    margin-bottom: 28px;
  }

  .home-testimonials-layout {
    flex-direction: column;
    gap: 28px;
  }

  .home-testimonials-summary {
    flex: none;
    align-items: center;
    text-align: center;
    padding: 0 0 24px;
    border-right: none;
    border-bottom: 1px solid rgba(5, 48, 92, 0.14);
  }

  .home-testimonials-carousel {
    padding: 0;
  }

  .home-testimonials .testimonial-card {
    flex: 0 0 calc((100cqw - 16px) / 2);
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  .home-faq-list {
    padding-inline: 24px;
  }

  .home-page {
    --home-title-size: clamp(1.5rem, 4.5vw, 1.875rem);
    --home-title-line: 1.22;
    --home-title-gap: 14px;
    --home-lead-size: 1.0625rem;
    --home-subtitle-size: 1.125rem;
    --home-subtitle-line: 1.35;
    --home-body-size: 1rem;
    --home-body-line: 1.72;
    --home-list-size: 0.9375rem;
    --home-list-line: 1.55;
    --home-action-size: 1rem;
  }

  .home-why-benefit__title,
  .home-process-step__title,
  .home-faq-item__question {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .home-why-benefit__text,
  .home-process-step__text {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .home-why-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }

  .home-markets-tabs {
    justify-content: stretch;
  }

  .home-markets-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 16px;
    text-align: center;
  }

  .home-markets-table {
    min-width: 520px;
  }

  .home-testimonials .testimonial-card {
    flex: 0 0 calc((100cqw - 16px) / 2);
  }

  .roi-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-faq-list {
    padding-inline: 20px;
  }

  .home-page {
    --nx-section-y: 56px;
    --home-title-size: clamp(1.4375rem, 6vw, 1.75rem);
    --home-title-line: 1.25;
    --home-title-gap: 14px;
    --home-lead-size: 1rem;
    --home-subtitle-size: 1.0625rem;
    --home-subtitle-line: 1.35;
    --home-body-size: 1rem;
    --home-body-line: 1.72;
    --home-list-size: 0.875rem;
    --home-list-line: 1.55;
    --home-action-size: 1rem;
  }

  .home-page .home-markets.section {
    padding: 48px 0;
  }

  .home-faq {
    padding-block: 56px;
  }

  .home-why-benefit__title,
  .home-process-step__title {
    font-size: 1.0625rem;
    line-height: 1.35;
  }

  .home-faq-item__question {
    font-size: 1rem;
    line-height: 1.45;
  }

  .home-why-benefit__text,
  .home-process-step__text {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .home-hero__content-inner {
    padding: 32px 20px 0;
  }

  .home-hero__visual {
    min-height: clamp(220px, 52vw, 320px);
  }

  .home-hero__video-wrap {
    right: 20px;
    left: 20px;
  }

  .home-hero-proof-wrap {
    padding: 20px 0 32px;
  }

  .home-hero-proof {
    font-size: 0.875rem;
    line-height: 1.5;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .home-page .section-head {
    margin-bottom: 28px;
  }

  .home-partners {
    padding: 32px 0 36px;
  }

  .home-partners__head {
    margin-bottom: 22px;
  }

  .home-partners__head h2,
  #home-partners-heading {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .home-partners__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(6px, 1.8vw, 12px);
    max-width: 100%;
    padding-inline: 0;
    margin-inline: auto;
  }

  .home-partners__item {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-partners__brand {
    justify-content: center;
    min-width: 0;
    max-width: 100%;
  }

  .home-partners__logo {
    height: 24px;
    max-width: min(100%, 132px);
  }

  .home-partners__item--coinbase .home-partners__logo--icon {
    width: 22px;
    height: 22px;
  }

  .home-partners__item--coinbase .home-partners__logo--wordmark {
    height: 18px;
    max-width: min(100%, 100px);
  }

  .home-partners__item--kraken .home-partners__logo {
    height: 15px;
    max-width: min(100%, 74px);
  }

  .home-products .section-head p {
    text-align: left;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card__head {
    min-height: 80px;
    padding: 16px 20px;
  }

  .product-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .product-card__icon img {
    width: 36px;
    height: 36px;
  }

  .product-card__desc {
    padding: 16px 20px 0;
  }

  .product-card__features {
    padding: 0 20px;
  }

  .product-card__cta {
    padding: 0 20px;
  }

  .product-card__content {
    padding-bottom: 22px;
  }

  .home-platform__copy > p {
    margin-bottom: 14px;
  }

  .home-platform__copy .check-list {
    margin-bottom: 0;
  }

  .home-platform-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .home-platform-cta {
    width: auto;
    flex: 0 1 auto;
  }

  .home-platform-cta__label {
    width: auto;
    justify-content: center;
  }

  .home-why-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
  }

  .home-markets-card {
    margin-inline: -20px;
    width: calc(100% + 40px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .home-markets-card__bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
  }

  .home-markets-live {
    font-size: 12px;
  }

  .home-markets-updated {
    font-size: 11px;
    text-align: right;
  }

  .home-markets-table-wrap {
    padding: 12px 16px 8px;
    margin: 0;
    overflow-x: hidden;
  }

  .home-markets-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .home-markets-table thead th:nth-child(1) { width: 38%; }
  .home-markets-table thead th:nth-child(2) { width: 24%; }
  .home-markets-table thead th:nth-child(3) { width: 18%; }
  .home-markets-table thead th:nth-child(4) { width: 20%; }

  .home-markets-table thead th,
  .home-markets-table tbody td {
    padding: 10px 8px;
  }

  .home-markets-table__asset {
    min-width: 0;
    gap: 10px;
  }

  .home-markets-table__icon {
    width: 28px;
    height: 28px;
  }

  .home-markets-table__name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-change {
    font-size: 13px;
  }

  .home-markets-table__symbol {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-faq-answer p {
    font-size: 15px;
  }

  .home-markets-viewall {
    padding: 10px 16px 20px;
    text-align: center;
  }

  .home-security-layout {
    align-items: flex-start;
    min-height: 0;
    padding-block: 0 calc(50vw + 4px);
  }

  .home-security-copy {
    position: relative;
    z-index: 2;
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .home-security-lead {
    margin-bottom: 22px;
  }

  .home-security-features {
    margin-bottom: 24px;
  }

  .home-security-cta {
    display: inline-flex;
    width: auto;
    max-width: none;
  }

  .home-security-cta__label {
    width: auto;
    min-height: 44px;
    padding: 12px 26px;
  }

  .home-security::before {
    inset: 0;
    background-color: #0b0e16;
    background-image: url("asset/image/asset-protection-mobile.png");
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .home-security::after {
    inset: 0;
    height: auto;
    background-color: transparent;
    background-image: linear-gradient(
      180deg,
      #0b0e16 0%,
      rgba(11, 14, 22, 0.94) 28%,
      rgba(11, 14, 22, 0.5) 40%,
      transparent 50%
    );
  }

  .home-process-panel {
    background-color: #d6e0eb;
    background-position: 92% bottom;
    background-size: 198% auto;
    background-repeat: no-repeat;
  }

  .home-process-panel::before {
    background: linear-gradient(
      180deg,
      rgba(244, 247, 251, 0.97) 0%,
      rgba(236, 241, 248, 0.9) 36%,
      rgba(224, 232, 242, 0.68) 50%,
      rgba(212, 222, 234, 0.34) 62%,
      rgba(206, 216, 228, 0.1) 72%,
      transparent 78%
    );
  }

  .home-process-inner {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding-block: 28px calc(124vw + 32px);
    padding-inline: 20px;
  }

  .home-process-copy {
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .home-process-steps {
    margin-top: 22px;
    padding-top: 22px;
  }

  .home-process-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .home-process-step:not(:last-child) {
    padding-bottom: 22px;
  }

  .home-process-step__icon {
    width: 48px;
    height: 48px;
  }

  .home-process-step__icon img {
    width: 28px;
    height: 28px;
  }

  .home-process-step:not(:last-child)::after {
    left: 23px;
    top: 48px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .plan-card-head {
    padding: 22px 20px;
  }

  .plan-card-body {
    padding: 20px;
  }

  .roi-input-panel {
    padding: 22px 20px;
  }

  .roi-results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .roi-result-card {
    padding: 16px;
  }

  .home-faq {
    padding-block: var(--nx-section-y);
  }

  .home-faq-header {
    margin-bottom: 24px;
    padding-inline: 4px;
  }

  .home-faq-footer {
    margin-top: 20px;
    padding-inline: 4px;
  }

  .home-faq-item summary {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 12px 14px;
    padding: 18px 0;
  }

  .home-faq-answer {
    padding: 0 0 18px;
  }

  .home-testimonials-header {
    margin-bottom: 24px;
    padding-inline: 4px;
  }

  .home-testimonials-summary {
    padding-bottom: 20px;
  }

  .home-testimonials-carousel {
    gap: 10px;
    padding-inline: 0;
  }

  .home-testimonials-viewport {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .home-testimonials .testimonial-card {
    flex: 0 0 100cqw;
    min-height: 0;
    padding: 22px 18px 18px;
    scroll-snap-align: start;
  }

  .home-testimonials-nav {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .testimonial-card__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .home-faq-list {
    padding-inline: 16px;
  }

  .home-hero__content-inner {
    padding: 28px 20px 32px;
  }

  .home-markets-tab {
    padding: 10px 12px;
  }

  .home-process-inner {
    padding-inline: 16px;
  }

  .home-markets-card {
    margin-inline: -16px;
    width: calc(100% + 32px);
  }

  .home-markets-table-wrap {
    padding-inline: 12px;
  }

  .home-markets-card__bar,
  .home-markets-viewall {
    padding-inline: 12px;
  }

  .home-markets-table thead th,
  .home-markets-table tbody td {
    padding: 9px 6px;
  }

  .home-partners {
    padding: 28px 0 32px;
  }

  .home-partners__head {
    margin-bottom: 18px;
  }

  .home-partners__head h2,
  #home-partners-heading {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .home-partners__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 10px;
    padding-inline: 0;
  }

  .home-partners__item {
    flex: 0 1 calc((100% - 20px) / 3);
  }

  .home-partners__item:nth-child(4) {
    flex-basis: 100%;
  }

  .home-partners__logo {
    height: 21px;
    max-width: min(100%, 118px);
  }

  .home-partners__item--coinbase .home-partners__logo--icon {
    width: 20px;
    height: 20px;
  }

  .home-partners__item--coinbase .home-partners__logo--wordmark {
    height: 16px;
    max-width: min(100%, 88px);
  }

  .home-partners__item--kraken .home-partners__logo {
    height: 13px;
    max-width: min(100%, 64px);
  }
}

@media (max-width: 400px) {
  .home-partners__row {
    gap: 14px 8px;
  }

  .home-partners__item {
    flex: 0 1 calc((100% - 8px) / 2);
  }

  .home-partners__item:nth-child(4) {
    flex-basis: calc((100% - 8px) / 2);
  }
}

@media (hover: none) {
  .plan-card:hover {
    transform: none;
  }
}
