/* Shared feature-page primitives */
.features-page {
  --features-bg: #050505;
  --features-line-strong: rgba(204, 220, 238, 0.24);
  --features-text: #f2f5f7;
  background: var(--features-bg);
  color: var(--features-text);
  font-size: 16px;
}

.features-main {
  overflow: hidden;
  padding-top: var(--marketing-header-offset, var(--terminal-header-height));
  background:
    radial-gradient(circle at 50% 6%, rgba(0, 155, 255, 0.075), transparent 22%),
    var(--features-bg);
}

.feature-section {
  position: relative;
  padding: clamp(88px, 10vw, 154px) 24px;
}

.feature-container {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.feature-eyebrow {
  margin: 0 0 20px;
  color: #78c9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.feature-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--features-line-strong);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-button span {
  transition: transform 180ms ease;
}

.feature-button:hover span {
  transform: translateX(4px);
}

.feature-button--primary {
  border-color: #009bff;
  color: #fff;
  background: #06090d;
  box-shadow: inset 0 0 20px rgba(0, 155, 255, 0.05), 0 0 0 1px rgba(0, 155, 255, 0.04);
}

.feature-button--primary:hover {
  border-color: #55bbff;
  background: #07131c;
  box-shadow: 0 10px 32px rgba(0, 155, 255, 0.12), inset 0 0 20px rgba(0, 155, 255, 0.08);
  transform: translateY(-2px);
}

.feature-button--secondary {
  color: #bec7d0;
  background: rgba(255, 255, 255, 0.025);
}

.feature-button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.feature-button:focus-visible {
  outline: 2px solid #65c4ff;
  outline-offset: 4px;
}

.features-page.is-enhanced .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .65, .25, 1);
}

.features-page.is-enhanced .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .feature-section {
    padding-inline: 20px;
  }
}

@media (max-width: 640px) {
  .feature-section {
    padding: 74px 16px;
  }

  .feature-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .feature-button {
    width: 100%;
    min-height: 54px;
  }
}

@media (max-width: 390px) {
  .feature-section {
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-page.is-enhanced .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .feature-button:hover {
    transform: none;
  }
}

/* Real-product feature tour */
.real-features {
  --tour-green: #27d58b;
  --tour-border: rgba(130, 159, 186, 0.24);
  position: relative;
  background:
    radial-gradient(circle at 50% 4%, rgba(0, 155, 255, 0.14), transparent 25%),
    #050505;
}

.real-features::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(133, 169, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 169, 199, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 30%);
  mask-image: linear-gradient(to bottom, #000 0, transparent 30%);
}

.real-features__hero {
  padding-top: clamp(112px, 13vw, 196px);
}

.real-features__intro {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto clamp(64px, 8vw, 108px);
  text-align: center;
}

.real-features__intro h1,
.product-tour__heading h2,
.real-features__closing-panel h2 {
  margin: 0;
  color: var(--features-text);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.real-features__intro h1 {
  font-size: clamp(3.5rem, 8.3vw, 7.8rem);
  line-height: 0.88;
}

.real-features__intro h1 span {
  color: #87d1ff;
}

.real-features__intro > p:last-of-type {
  max-width: 720px;
  margin: 30px auto 0;
  color: #9daab5;
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.real-features__showcase {
  position: relative;
  z-index: 1;
}

.real-features__showcase::before {
  position: absolute;
  inset: -18% 8% 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 155, 255, 0.12);
  content: "";
  filter: blur(90px);
}

.showcase-window {
  overflow: hidden;
  border: 1px solid rgba(118, 163, 197, 0.36);
  border-radius: 18px;
  background: #030506;
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 155, 255, 0.06),
    inset 0 1px rgba(255, 255, 255, 0.05);
}

.showcase-window__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  border-bottom: 1px solid var(--tour-border);
  color: #687581;
  background: #080b0e;
  font: 0.58rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.showcase-window__bar > span {
  display: flex;
  gap: 6px;
}

.showcase-window__bar > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34414d;
}

.showcase-window__bar > span i:first-child {
  background: #159def;
}

.showcase-window__bar em {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  color: #7c8a96;
  font-style: normal;
}

.showcase-window__bar em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tour-green);
  box-shadow: 0 0 12px rgba(39, 213, 139, 0.75);
}

.showcase-window__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.real-features__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  padding: 0;
  border: 1px solid var(--tour-border);
  border-radius: 12px;
  background: rgba(7, 9, 12, 0.86);
  list-style: none;
}

.real-features__facts li {
  display: flex;
  min-height: 92px;
  padding: 18px 22px;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--tour-border);
}

.real-features__facts li:last-child {
  border-right: 0;
}

.real-features__facts strong {
  color: #e9f4fb;
  font: 400 clamp(1.25rem, 2vw, 1.8rem) ui-monospace, SFMono-Regular, Menlo, monospace;
}

.real-features__facts span {
  color: #73818d;
  font-size: 0.76rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-tour {
  padding-top: clamp(90px, 10vw, 150px);
  padding-right: clamp(8px, 1.2vw, 22px);
  padding-left: clamp(8px, 1.2vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, #070809 0, #050505 22%);
}

.product-tour .feature-container {
  width: min(1880px, 100%);
}

.product-tour__heading {
  max-width: 1060px;
  margin: 0 auto clamp(72px, 9vw, 132px);
}

.product-tour__heading .feature-eyebrow {
  margin-bottom: 24px;
}

.product-tour__heading h2 {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 0.95;
}

.feature-panel-grid {
  display: grid;
  gap: 0;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: min(100%, 1540px);
  min-width: 0;
  margin-inline: auto;
  gap: clamp(18px, 2.6vw, 40px);
  align-items: center;
}

.feature-panel + .feature-panel {
  padding-top: clamp(96px, 12vw, 180px);
  border-top: 1px solid rgba(130, 159, 186, 0.16);
}

.feature-panel__copy {
  width: 100%;
  max-width: 700px;
  justify-self: end;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid var(--tour-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(0, 155, 255, 0.1), transparent 65%),
    rgba(8, 11, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 28px 80px rgba(0, 0, 0, 0.24);
}

.feature-panel__copy .feature-panel__number {
  margin-bottom: clamp(26px, 4vw, 48px);
}

.feature-panel__copy h3 {
  margin: 0;
  color: var(--features-text);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.feature-panel__copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: #929faa;
  font-size: 0.98rem;
  line-height: 1.7;
}

.feature-panel__visual {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-self: start;
}

.feature-panel__visual img {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.42));
}

.feature-panel:nth-child(even) .feature-panel__copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.feature-panel:nth-child(even) .feature-panel__visual {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.feature-panel__number {
  display: block;
  color: #69c4fc;
  font: 700 0.65rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.exchange-providers {
  grid-column: 1 / -1;
  width: min(100%, 1180px);
  margin: clamp(72px, 9vw, 132px) auto 0;
  padding: clamp(38px, 5vw, 64px) clamp(20px, 4vw, 56px);
  text-align: center;
}

.exchange-providers__heading .feature-eyebrow {
  margin-bottom: 20px;
}

.exchange-providers__heading h4 {
  margin: 0;
  color: var(--features-text);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.exchange-providers__heading h4 span {
  color: #87d1ff;
}

.exchange-providers__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: 0;
  list-style: none;
}

.exchange-providers__list li {
  display: flex;
  min-height: 124px;
  padding: 12px 8px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  border: 1px solid rgba(130, 159, 186, 0.28);
  border-radius: 10px;
}

.exchange-providers__logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.exchange-providers__list li span {
  color: #dce7ee;
  font-family: var(--terminal-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.real-features__closing {
  padding-top: clamp(100px, 13vw, 190px);
  padding-bottom: clamp(110px, 14vw, 210px);
}

.real-features__closing-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px);
  border: 1px solid rgba(0, 155, 255, 0.3);
  border-radius: 24px;
  background:
    linear-gradient(rgba(126, 164, 195, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 164, 195, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(0, 155, 255, 0.18), transparent 38%),
    #080b0e;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.real-features__closing-panel::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(96, 196, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(0, 155, 255, 0.025),
    0 0 0 84px rgba(0, 155, 255, 0.018);
  content: "";
}

.real-features__closing-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  font-size: clamp(3rem, 6.8vw, 6.5rem);
  line-height: 0.94;
}

.real-features__closing-panel > p:last-of-type {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 28px 0 0;
  color: #929faa;
  font-size: 1.04rem;
  line-height: 1.7;
}

.real-features__closing-panel .feature-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
}

@media (max-width: 940px) {
  .real-features__facts {
    grid-template-columns: 1fr 1fr;
  }

  .real-features__facts li:nth-child(2) {
    border-right: 0;
  }

  .real-features__facts li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--tour-border);
  }

  .feature-panel {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: clamp(26px, 6vw, 52px);
  }

  .feature-panel:nth-child(even) .feature-panel__copy,
  .feature-panel:nth-child(even) .feature-panel__visual {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .feature-panel__copy {
    max-width: none;
    justify-self: stretch;
  }

  .feature-panel__visual {
    justify-self: stretch;
  }

  .exchange-providers {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .real-features__hero {
    padding-top: 84px;
  }

  .real-features__intro h1 {
    font-size: clamp(3.1rem, 15vw, 5.25rem);
  }

  .showcase-window__bar {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-window__bar small {
    display: none;
  }

  .feature-panel__copy {
    padding: 28px 24px;
  }

  .feature-panel__copy .feature-panel__number {
    margin-bottom: 24px;
  }

  .feature-panel__visual {
    padding-inline: 8px;
  }

  .exchange-providers {
    padding: 36px 16px;
  }

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

  .real-features__closing-panel {
    padding: 40px 25px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .real-features__facts li {
    min-height: 78px;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .real-features__facts span {
    font-size: 0.66rem;
  }

}
