:root {
  color-scheme: dark;
  --ink: #02050d;
  --ink-soft: #050b18;
  --navy: #07152d;
  --navy-bright: #0b2f78;
  --panel: rgba(8, 18, 40, 0.78);
  --text: #eef8ff;
  --muted: #9bb1c8;
  --cyan: #00d9ff;
  --cyan-soft: #75f5ff;
  --blue: #0b63ff;
  --red: #ff003d;
  --red-soft: #ff4b6e;
  --line: rgba(87, 186, 255, 0.24);
  --grid-size: 80px;
  --shell: 1150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(32, 121, 255, 0.115) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 121, 255, 0.115) 1px, transparent 1px);
  background-position: center top;
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

main {
  display: flex;
  flex: 1 0 auto;
}

.legal {
  flex: 0 0 auto;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 5, 13, 0.76), transparent 24%, transparent 76%, rgba(2, 5, 13, 0.76)),
    radial-gradient(circle at 50% 18%, transparent 0 34%, rgba(2, 5, 13, 0.28) 76%, rgba(2, 5, 13, 0.58) 100%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

.site-shell,
.legal__inner {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  width: 100%;
  padding: 15px 0 0;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("./assets/trading-futures-brand.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(32, 121, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 121, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 5, 13, 0.5), rgba(2, 5, 13, 0.68) 50%, rgba(2, 5, 13, 0.5)),
    linear-gradient(180deg, rgba(2, 5, 13, 0.12), rgba(2, 5, 13, 0.48) 70%, rgba(2, 5, 13, 0.72) 100%);
  background-position: center top;
  background-size:
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size),
    100% 100%,
    100% 100%;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.brand > span {
  width: 4px;
  height: 23px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.92);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.audience-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 0, 61, 0.6);
  border-radius: 4px;
  background: rgba(7, 17, 39, 0.78);
  box-shadow:
    0 0 0 1px rgba(11, 99, 255, 0.12) inset,
    0 0 26px rgba(255, 0, 61, 0.2);
  color: #e8f4ff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.audience-badge > span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: signal-pulse 2.6s ease-in-out infinite;
}

h1 {
  width: min(100%, 1080px);
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: calc(2.5rem + 2px);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.58);
}

.hero__subtitle {
  width: min(100%, 880px);
  margin: 22px auto 0;
  color: #aebfd2;
  font-size: calc(1.08rem + 2px);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: balance;
}

.hero__cta {
  margin: 0;
}

.hero__actions {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
}

.text-accent {
  display: inline-block;
  color: var(--red);
  background:
    linear-gradient(
      105deg,
      var(--red) 0%,
      var(--red) 35%,
      #ff7991 46%,
      #ffffff 50%,
      #ff2d59 54%,
      var(--red) 66%,
      var(--red) 100%
    );
  background-size: 260% 100%;
  filter: drop-shadow(0 0 13px rgba(255, 0, 61, 0.34));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shine 4.8s ease-in-out infinite;
}

.section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(191, 226, 255, 0.72) 12%, rgba(191, 226, 255, 0.72) 88%, transparent);
}

.section-divider::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(38vw, 440px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.62);
  content: "";
  transform: translateX(-50%);
}

.method {
  padding: 15px 0 94px;
}

.method__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  align-items: center;
}

.method__visual {
  position: relative;
  margin: 0;
}

.method__visual::before,
.method__visual::after {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 72px;
  content: "";
  pointer-events: none;
}

.method__visual::before {
  top: -10px;
  left: -10px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  box-shadow: -4px -4px 20px rgba(0, 217, 255, 0.14);
}

.method__visual::after {
  right: -10px;
  bottom: 28px;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  box-shadow: 4px 4px 20px rgba(255, 0, 61, 0.14);
}

.method__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(69, 163, 255, 0.28);
  border-radius: 4px;
  object-fit: cover;
  object-position: center 25%;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.method__visual figcaption {
  margin-top: 14px;
  color: #637f9c;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
}

.section-code {
  margin: 0 0 15px;
  color: var(--cyan-soft);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.method__content h2,
.brands h2,
.testimonials__heading h2,
.conversion__title {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

.method__content h2 {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 20px;
}

.method-list {
  display: grid;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(87, 186, 255, 0.16);
  color: #b8c9da;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.method-list li:first-child {
  border-top: 1px solid rgba(87, 186, 255, 0.16);
}

.method-list li > span {
  color: var(--red-soft);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.95;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 441px);
  min-height: 82px;
  padding: 0 12px 0 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.74);
  border-radius: 4px;
  background: linear-gradient(110deg, #072b5c 0%, #0b63ff 36%, #00d9ff 50%, #0b63ff 64%, #072b5c 100%);
  background-size: 260% 100%;
  box-shadow:
    0 16px 38px rgba(0, 65, 180, 0.24),
    0 0 24px rgba(0, 217, 255, 0.13);
  color: #ffffff;
  cursor: pointer;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  animation: button-shine 5.2s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 46px rgba(0, 65, 180, 0.34),
    0 0 30px rgba(0, 217, 255, 0.22);
  outline: none;
}

.cta-button__icon {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 1.15rem;
}

.cta-button__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.cta-button__title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.cta-button__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.conversion {
  scroll-margin-top: 20px;
  padding: 92px 0 90px;
}

.conversion__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.conversion__title {
  width: min(100%, 920px);
  margin-bottom: 62px;
  color: #dcecff;
  font-size: 2.45rem;
  text-align: center;
}

.form-stage {
  position: relative;
  width: calc(464px * var(--form-scale-x));
  height: calc(850px * var(--form-scale-y));
}

.form-stage::before,
.form-stage::after {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 72px;
  content: "";
  pointer-events: none;
}

.form-stage::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}

.form-stage::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
}

.optin-embed {
  position: relative;
  width: calc(464px * var(--form-scale-x));
  height: calc(850px * var(--form-scale-y));
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.optin-embed iframe {
  position: absolute;
  top: calc(-58px * var(--form-scale-y));
  left: calc(-38px * var(--form-scale-x));
  display: block;
  width: 540px;
  max-width: none;
  height: 920px;
  margin: 0;
  border: 0;
  filter: none;
  transform: scale(var(--form-scale-x), var(--form-scale-y));
  transform-origin: left top;
}

.optin-dialog {
  --form-scale: 0.92;
  --form-scale-x: var(--form-scale);
  --form-scale-y: var(--form-scale);

  width: calc(464px * var(--form-scale-x));
  max-width: none;
  height: calc(850px * var(--form-scale-y));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.76);
}

.optin-dialog::backdrop {
  background: rgba(0, 3, 10, 0.86);
  backdrop-filter: blur(8px);
}

.optin-dialog__inner {
  position: relative;
  padding: 0;
}

body:has(.optin-dialog[open]) {
  overflow: hidden;
}

.brands {
  padding: 84px 0 96px;
  text-align: center;
}

.brands h2 {
  margin-bottom: 44px;
  font-size: 2.4rem;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-wall span {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: #7f9ab5;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-wall span:last-child {
  border-right: 0;
}

.testimonials {
  padding: 88px 0 110px;
  background: rgba(3, 8, 20, 0.72);
  border-top: 1px solid rgba(87, 186, 255, 0.16);
}

.testimonials__heading {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.testimonials__heading h2 {
  font-size: 1.94rem;
  line-height: 1.3;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(87, 186, 255, 0.2);
  border-radius: 4px;
  background: rgba(7, 17, 39, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.testimonial-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #00040b;
}

.testimonial-video iframe,
.testimonial-video .youtube-preview-player,
.testimonial-video .youtube-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonial-card__copy {
  flex: 1;
  min-height: 126px;
  padding: 24px 26px 28px;
}

.testimonial-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.testimonial-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.testimonials__cta {
  display: flex;
  margin: 48px auto 0;
}

.legal {
  position: relative;
  padding: 30px 24px 5px;
  border-top: 1px solid rgba(11, 99, 255, 0.24);
  background: rgba(1, 4, 12, 0.7);
}

.legal::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(42vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.56);
  content: "";
  transform: translateX(-50%);
}

.legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.legal__disclaimer {
  width: min(100%, 900px);
  margin: 5px auto 0;
  color: #42566b;
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

.legal a {
  color: #7590aa;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--cyan-soft);
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.58);
  outline: none;
}

.cookie-consent__panel {
  border-color: rgba(0, 217, 255, 0.28);
  background: rgba(3, 9, 23, 0.94);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(0, 217, 255, 0.1);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
}

.cookie-consent__text {
  color: var(--muted);
}

.cookie-consent__button--accept {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.25);
  color: var(--ink);
}

@keyframes metallic-shine {
  0%,
  46% {
    background-position: 130% 0;
  }

  72%,
  100% {
    background-position: -80% 0;
  }
}

@keyframes button-shine {
  0%,
  50% {
    background-position: 120% 0;
  }

  78%,
  100% {
    background-position: -70% 0;
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    padding-bottom: 0;
  }

  h1 {
    font-size: calc(2.2rem + 2px);
    line-height: 1.22;
  }

  .method__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .method__content {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .brand-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-wall span:nth-child(3) {
    border-right: 0;
  }

  .brand-wall span:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 680px) {
  :root {
    --grid-size: 48px;
  }

  .site-shell,
  .legal__inner {
    width: min(calc(100% - 32px), var(--shell));
  }

  .hero {
    padding: 15px 0 0;
  }

  .hero::before {
    background-position: 31% top;
    background-size: auto 650px;
    opacity: 0.78;
  }

  .site-header {
    margin-bottom: 42px;
  }

  .brand {
    font-size: 1.04rem;
  }

  .audience-badge {
    width: fit-content;
    padding: 9px 11px;
    font-size: 0.56rem;
    line-height: 1.35;
  }

  h1 {
    font-size: calc(1.9rem + 2px);
    line-height: 1.14;
  }

  .hero__subtitle {
    margin-top: 18px;
    font-size: calc(0.95rem + 2px);
    line-height: 1.55;
  }

  .hero__cta {
    margin: 0;
  }

  .hero__actions {
    padding: 20px 0 36px;
  }

  .section-divider {
    margin-top: 10px;
  }

  .method,
  .conversion,
  .brands,
  .testimonials {
    padding-block: 64px;
  }

  .method {
    padding-top: 15px;
  }

  .method__grid {
    gap: 40px;
  }

  .method__visual::before,
  .method__visual::after {
    width: 48px;
    height: 48px;
  }

  .method__content h2,
  .brands h2,
  .testimonials__heading h2,
  .conversion__title {
    font-size: 1.75rem;
  }

  .method-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    font-size: 0.88rem;
  }

  .cta-button {
    width: 100%;
    min-height: 72px;
    font-size: 0.88rem;
  }

  .conversion__title {
    margin-bottom: 44px;
  }

  .form-stage::before,
  .form-stage::after {
    width: 48px;
    height: 48px;
  }

  .optin-dialog {
    --form-scale: 0.72;
  }

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

  .brand-wall span,
  .brand-wall span:nth-child(3) {
    min-height: 86px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .brand-wall span:nth-child(even) {
    border-right: 0;
  }

  .brand-wall span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card__copy {
    padding: 22px;
  }

  .legal {
    padding-inline: 16px;
  }

  .legal nav {
    gap: 14px 22px;
  }
}

@media (max-height: 700px) {
  .optin-dialog {
    --form-scale: 0.82;
  }
}

@media (min-width: 681px) and (min-height: 900px) {
  .optin-dialog {
    --form-scale: 1.2;
  }
}

@media (min-width: 681px) and (min-height: 1100px) {
  .optin-dialog {
    --form-scale: 1.5;
  }
}

@media (min-width: 681px) and (min-height: 1350px) {
  .optin-dialog {
    --form-scale: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .text-accent,
  .audience-badge > span,
  .cta-button {
    animation: none;
  }
}
