@font-face {
  font-family: "Anth";
  src: url("../fonts/fintales/subset-Anth-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Anth";
  src: url("../fonts/fintales/subset-Anth-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/fintales/Montserrat-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/fintales/Montserrat-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #000513;
  --canvas-soft: #031020;
  --surface: #0e2031;
  --surface-hover: #142b41;
  --line: #314b66;
  --line-soft: rgba(49, 75, 102, 0.7);
  --ivory: #f6efe6;
  --muted: #8b9aba;
  --gold: #bc8d4f;
  --bronze: #86613d;
  --focus: #f0c862;
  --brand-background:
    radial-gradient(circle at 72% 68%, rgba(20, 43, 65, 0.08), transparent 48%),
    linear-gradient(155deg, #031122 0%, #000817 72%);
  --content-background:
    radial-gradient(circle at 55% 23%, rgba(20, 43, 65, 0.28), transparent 42%),
    linear-gradient(90deg, #02101f 0%, #000917 100%);
  --button-background: rgba(14, 32, 49, 0.78);
  --button-hover-background: rgba(20, 43, 65, 0.94);
  --scroll-track: #020a16;
  --toggle-background: rgba(14, 32, 49, 0.78);
  --toggle-thumb: #f6efe6;
  --toggle-icon-active: #000513;
  --toggle-icon-idle: #8b9aba;
  --cta-hover-text: #000513;
  --partner-cta-hover-background: #bc8d4f;
  font-family: "Montserrat", system-ui, sans-serif;
  font-synthesis: none;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #faf9f6;
  --canvas-soft: #f3eadf;
  --surface: rgba(20, 43, 65, 0.055);
  --surface-hover: rgba(20, 43, 65, 0.1);
  --line: rgba(20, 43, 65, 0.18);
  --line-soft: rgba(20, 43, 65, 0.12);
  --ivory: #142b41;
  --muted: #526784;
  --gold: #a87318;
  --bronze: #735d44;
  --focus: #142b41;
  --brand-background:
    radial-gradient(circle at 72% 68%, rgba(168, 115, 24, 0.06), transparent 48%),
    linear-gradient(155deg, #f3eadf 0%, #f6f0e9 100%);
  --content-background:
    #faf9f6;
  --button-background: #ffffff;
  --button-hover-background: #ffffff;
  --scroll-track: #e7e5e1;
  --toggle-background: #fcfaf7;
  --toggle-thumb: #142b41;
  --toggle-icon-active: #faf9f6;
  --toggle-icon-idle: #526784;
  --cta-hover-text: #142b41;
  --partner-cta-hover-background: #faf9f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

body {
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ivory);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color 240ms ease, color 240ms ease;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--canvas);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: grid;
  grid-template-columns: 31.845238% 68.154762%;
  width: 100%;
  height: 100vh;
  min-height: 0;
}

.brand-panel {
  position: relative;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 45px 58px 36px;
  border-right: 1px solid var(--line);
  background: var(--brand-background);
  transition: border-color 240ms ease, background 240ms ease;
}

.brand-panel > * {
  display: flex;
}

.brand-lockup {
  z-index: 1;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
  font-family: "Anth", Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, transparent);
  border-radius: 50%;
  object-fit: cover;
}

.theme-toggle {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  left: 58px;
  display: block;
  width: 74px;
  height: 38px;
  flex: 0 0 74px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--toggle-background);
  color: var(--toggle-icon-idle);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 240ms ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.theme-toggle__icon {
  position: absolute;
  z-index: 2;
  top: 4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transition: color 200ms ease;
}

.theme-toggle__icon:first-of-type {
  left: 4px;
}

.theme-toggle__icon:nth-of-type(2) {
  right: 4px;
}

.theme-toggle__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle__thumb {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  transform: translateX(36px);
  transition: background-color 240ms ease, transform 220ms ease;
}

.theme-toggle__icon:nth-of-type(2) {
  color: var(--toggle-icon-active);
}

html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(0);
}

html[data-theme="light"] .theme-toggle__icon:first-of-type {
  color: var(--toggle-icon-active);
}

html[data-theme="light"] .theme-toggle__icon:nth-of-type(2) {
  color: var(--toggle-icon-idle);
}

.brand-copy {
  z-index: 1;
  display: block;
  margin: 74px 0 auto;
}

.brand-copy .eyebrow {
  display: none;
}

.brand-copy h1 {
  margin: 0;
  color: var(--ivory);
  font-family: "Anth", Georgia, serif;
  font-size: clamp(54px, 4vw, 68px);
  font-weight: 400;
  line-height: 0.97;
}

html[data-theme="light"] .brand-copy h1 {
  font-weight: 600;
}

html[data-theme="light"] .brand-watermark {
  opacity: 0.035;
  filter: grayscale(1) contrast(0.8);
  mix-blend-mode: normal;
}

.brand-copy h1 em {
  color: var(--gold);
  font-style: normal;
}

.brand-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 30px 0 21px;
  background: var(--gold);
}

.brand-intro {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.brand-watermark {
  position: absolute;
  right: -125px;
  bottom: -135px;
  display: block;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  opacity: 0.025;
  filter: grayscale(1) invert(1);
  mix-blend-mode: normal;
  object-fit: cover;
  pointer-events: none;
}

.content-panel {
  min-width: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--content-background);
  scrollbar-color: var(--muted) var(--scroll-track);
  scrollbar-width: thin;
  transition: background 240ms ease;
}

.content-panel::-webkit-scrollbar {
  width: 8px;
}

.content-panel::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

.content-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--muted);
}

.content-inner {
  width: 100%;
  min-height: 945px;
  padding: 45px 102px 44px 75px;
}

.link-section {
  scroll-margin-top: 24px;
}

.link-section + .link-section {
  margin-top: 48px;
  padding-top: 14px;
}

.section-heading {
  margin: 0 0 16px;
}

.section-number,
.section-kicker {
  display: none;
}

.section-heading h2 {
  margin: 0;
  color: var(--muted);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.button-grid {
  display: grid;
  grid-template-columns: calc(50% - 16px) minmax(0, 1fr);
  gap: 12px 28px;
}

.link-button {
  --platform-color: var(--gold);
  position: relative;
  display: flex;
  min-width: 0;
  height: 65px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 8px 24px 8px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--button-background);
  color: var(--ivory);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.link-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--platform-color);
  box-shadow: inset 0 0 0 4px rgba(188, 141, 79, 0);
  transition: box-shadow 180ms ease;
}

.link-button:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: var(--button-hover-background);
}

html[data-theme="light"] .link-button:hover {
  box-shadow: 0 8px 22px rgba(168, 115, 24, 0.1);
}

.link-button:hover::before {
  box-shadow: inset 0 0 0 4px var(--gold);
}

.link-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.platform-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  background: transparent;
}

.platform-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.button-arrow {
  margin-left: auto;
  color: var(--ivory);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.platform-youtube { --platform-color: #ff2634; }
.platform-youtube .platform-icon {
  height: 32px;
  background: transparent;
}
.platform-youtube .platform-icon img { width: 39px; height: 32px; }

.platform-instagram {
  --platform-color: #8f45d8;
}
.platform-instagram::before {
  background: linear-gradient(180deg, #7c3cff 0%, #d300c5 42%, #ff3040 70%, #ff9b16 100%);
}
.platform-instagram .platform-icon {
  background: transparent;
}
.platform-instagram .platform-icon img { display: block; width: 34px; height: 34px; }
.platform-instagram .button-arrow { color: var(--ivory); }

.platform-tiktok { --platform-color: #69c9d0; }
.platform-tiktok::before {
  background: linear-gradient(180deg, #69c9d0 0 48%, #ee1d52 52% 100%);
}
.platform-tiktok .platform-icon img { width: 31px; height: 31px; }

.platform-tiktok .tiktok-logo {
  grid-area: 1 / 1;
}

.platform-tiktok .tiktok-logo--light {
  display: none;
}

html[data-theme="light"] .platform-tiktok .tiktok-logo--dark {
  display: none;
}

html[data-theme="light"] .platform-tiktok .tiktok-logo--light {
  display: block;
}

.platform-twitch { --platform-color: #9146ff; }
.platform-twitch .platform-icon {
  background: transparent;
}
.platform-twitch .platform-icon img { display: block; width: 34px; height: 34px; }

.platform-spotify { --platform-color: #1ed760; }
.platform-spotify .platform-icon {
  background: transparent;
}
.platform-spotify .platform-icon img { display: block; width: 36px; height: 36px; }

.platform-apple { --platform-color: #b353e7; }
.platform-apple .platform-icon {
  background: transparent;
}
.platform-apple .platform-icon img {
  display: block;
  width: 36px;
  height: 38px;
  transform: none;
}

.platform-deezer { --platform-color: #a335ff; }
.platform-deezer .platform-icon {
  width: 36px;
  height: 36px;
}
.platform-deezer .platform-icon img { width: 36px; height: 36px; }

.platform-all {
  --platform-color: var(--gold);
}
.platform-all .platform-icon { display: none; }
.platform-all { padding-left: 27px; }
.platform-all::before { display: none; }
.platform-all .button-arrow { color: var(--ivory); }

.partner-grid {
  display: grid;
  grid-template-columns: calc(50% - 16px) minmax(0, 1fr);
  gap: 12px 28px;
}

.partner-item {
  min-width: 0;
}

#partenaires .section-heading {
  margin-bottom: 16px;
}

.partner-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(139, 154, 186, 0.32);
  border-radius: 14px;
  color: #f6efe6;
  isolation: isolate;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.partner-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 5, 19, 0.04) 20%, rgba(0, 5, 19, 0.88) 100%);
}

.partner-visual:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(188, 141, 79, 0.2);
}

.partner-visual:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.partner-visual--xtb {
  background: #d9e5ee url("../images/partners/xtb-card-bg.png") center / cover no-repeat;
}

.partner-visual--xtb::after {
  background:
    linear-gradient(90deg, rgba(0, 5, 19, 0.58) 0%, rgba(0, 5, 19, 0.38) 44%, rgba(0, 5, 19, 0.04) 74%),
    linear-gradient(180deg, rgba(0, 5, 19, 0.12) 18%, rgba(0, 5, 19, 0.9) 100%);
}

.partner-visual--swissborg {
  background: #031713 url("../images/partners/swissborg-card-bg.png") center / cover no-repeat;
}

.partner-visual--xtb .partner-visual__grid,
.partner-visual--xtb .partner-visual__orb,
.partner-visual--swissborg .partner-visual__rings {
  display: none;
}

.partner-visual--xtb .partner-visual__tag,
.partner-visual--xtb .partner-visual__copy {
  text-shadow: 0 1px 12px rgba(0, 5, 19, 0.88);
}

.partner-visual__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px;
}

.partner-visual__tag {
  color: rgba(246, 239, 230, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-visual__logo--xtb {
  width: 112px;
  height: auto;
  margin-top: 18px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #fff;
}

.partner-visual__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 26px;
  font-weight: 600;
}

.partner-visual__swissborg-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.partner-visual__swissborg-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.partner-visual__copy {
  display: flex;
  width: calc(100% - 136px);
  max-width: 255px;
  flex-direction: column;
  margin-top: auto;
  padding-right: 0;
  color: rgba(246, 239, 230, 0.86);
  line-height: 1.15;
}

.partner-visual__copy[hidden] {
  display: none;
}

.partner-visual__copy strong {
  color: var(--gold);
  font-weight: 600;
}

.partner-visual__offer-main {
  color: #f6efe6;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.partner-visual__offer-label {
  margin-top: 4px;
  color: #f6efe6;
  font-size: 14px;
  font-weight: 600;
}

.partner-visual__offer-label sup {
  margin-left: 2px;
  color: var(--gold);
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}

.partner-visual__offer-code {
  margin-top: 8px;
  color: rgba(246, 239, 230, 0.66);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.partner-visual__copy--expired .partner-visual__offer-main {
  font-size: 19px;
}

.partner-terms {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.partner-terms__line {
  display: block;
}

.partner-terms__line[hidden] {
  display: none;
}

.partner-terms strong {
  font-weight: 600;
}

.partner-terms__risk {
  margin-top: 6px;
}

.partner-visual__cta {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  height: 42px;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid rgba(246, 239, 230, 0.42);
  border-radius: 999px;
  background: rgba(0, 5, 19, 0.52);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.partner-visual__arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.partner-visual:hover .partner-visual__cta {
  border-color: var(--partner-cta-hover-background);
  background: var(--partner-cta-hover-background);
  color: var(--cta-hover-text);
}

.partner-visual__grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(260px) rotateX(57deg) scale(1.35) translateY(38%);
  transform-origin: center bottom;
}

.partner-visual__orb {
  position: absolute;
  right: -28px;
  top: 38px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(254, 1, 3, 0.78);
  border-radius: 50%;
  box-shadow: inset 0 0 48px rgba(254, 1, 3, 0.28), 0 0 45px rgba(254, 1, 3, 0.18);
}

.partner-visual__rings {
  position: absolute;
  right: -38px;
  top: -30px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(0, 229, 159, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(0, 229, 159, 0.06),
    0 0 0 58px rgba(0, 229, 159, 0.04),
    inset 0 0 70px rgba(0, 229, 159, 0.13);
}

#contact {
  margin-top: 48px;
  padding-top: 16px;
}

#contact .section-heading {
  margin-bottom: 14px;
}

.platform-email {
  --platform-color: var(--gold);
  width: 100%;
  height: 61px;
  justify-content: center;
}

.platform-email::before {
  display: none;
}

.platform-email .platform-icon {
  position: absolute;
  left: 24px;
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.platform-email .platform-icon img {
  width: 26px;
  height: 26px;
}

.platform-email .button-arrow {
  position: absolute;
  right: 24px;
}

html[data-theme="light"] .platform-email .platform-icon img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(17%) saturate(1536%) hue-rotate(166deg) brightness(92%) contrast(94%);
}

html[data-theme="light"] .brand-lockup {
  font-weight: 600;
}

@media (max-width: 1280px) {
  .content-inner {
    padding-right: 48px;
    padding-left: 48px;
  }

  .link-button {
    padding-right: 18px;
    padding-left: 20px;
  }

}

@media (max-width: 1100px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .site-shell {
    display: block;
    height: auto;
  }

  .brand-panel {
    position: relative;
    display: flex;
    height: auto;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background-image: none;
    background-color: var(--canvas);
  }

  .theme-toggle {
    top: 2.6rem;
    right: 2rem;
    bottom: auto;
    left: auto;
  }

  .brand-panel > * {
    display: flex;
  }

  .brand-lockup {
    align-items: center;
    gap: 0.9rem;
    font-family: "Anth", Georgia, serif;
    font-size: 1.8rem;
  }

  .brand-mark {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
  }

  .brand-copy {
    display: block;
    margin: 3rem 0 1rem;
  }

  .brand-copy .eyebrow {
    display: none;
  }

  .brand-copy h1 {
    margin: 0;
    font-family: "Anth", Georgia, serif;
    font-size: clamp(3.2rem, 14vw, 5.2rem);
    font-weight: 400;
    line-height: 0.95;
  }

  .brand-copy h1 em {
    color: var(--gold);
    font-style: normal;
  }

  .brand-rule {
    display: block;
    width: 4rem;
    height: 3px;
    margin: 1.75rem 0 1.25rem;
    background: var(--gold);
  }

  .brand-intro {
    max-width: 20rem;
    margin: 0;
    color: var(--muted);
  }

  .brand-watermark {
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    display: block;
    width: 25rem;
    border-radius: 50%;
    pointer-events: none;
  }

  .content-panel {
    height: auto;
    overflow: visible;
  }

  .content-inner {
    min-height: 0;
    padding: 3rem 1.25rem;
  }

  .link-section + .link-section {
    margin-top: 3.5rem;
    padding-top: 0;
  }

  #contact {
    padding-top: 0;
  }

  .button-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .partner-visual__content {
    padding: 18px 22px;
  }

  .partner-visual__tag {
    font-size: 9px;
  }

  .partner-visual__logo--xtb {
    width: 108px;
    margin-top: 12px;
  }

  .partner-visual__brand {
    gap: 8px;
    margin-top: 12px;
    font-size: 23px;
  }

  .partner-visual__swissborg-mark,
  .partner-visual__swissborg-mark img {
    width: 34px;
    height: 34px;
  }

  .partner-visual__copy {
    width: calc(100% - 118px);
    max-width: 180px;
    margin-bottom: 0;
    padding-right: 0;
  }

  .partner-visual__offer-main {
    font-size: 19px;
  }

  .partner-visual__offer-label {
    font-size: 12px;
  }

  .partner-visual__offer-code {
    margin-top: 6px;
    font-size: 9px;
  }

  .partner-visual__cta {
    right: 18px;
    bottom: 14px;
    height: 36px;
    gap: 13px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
