@font-face {
  font-family: "Montserrat";
  src: url("assets/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05030e;
  --text-main: #ffffff;
  --text-muted: #cacaca;
  --primary: #7a6ac2;
  --header-height: 72px;
  --radius: 12px;
  --radius-btn: 8px;
  --max-width: 1400px;
  --footer-inner-max: 800px;
  --font-sans: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at 0 0, #1a1134 0, #05030e 55%);
  color: var(--text-main);
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 2em;
  margin-bottom: 26px !important;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 3, 14, 0.96), rgba(5, 3, 14, 0.88));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

header.header-scrolled {
  border-bottom-color: rgba(122, 106, 194, 0.32);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.1em;
}

.logo-link img {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

nav a {
  padding: 6px 10px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

nav a:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Nav download: simple primary button */
.btn-download-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  margin-left: 15px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-download-nav:hover {
  background: #9a88ff;
  transform: translateY(-1px);
}

/* Sections */

main {
  padding-bottom: 72px;
}

section {
  padding: 72px 0;
}

.section-hero {
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.section-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(50% + 600px);
  background-image: url("assets/slide-bg.png");
  background-size: cover;
  background-position: center left;
  opacity: 0.3;
  pointer-events: none;
}

.section-hero .wrap.hero-layout {
  max-width: 100%;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 56px;
  max-width: 100%;
}

.hero-left {
  width: calc((100vw - var(--max-width)) / 2 + var(--max-width) * 0.6);
  padding: 85px 0 56px;
  padding-left: calc((100vw - var(--max-width)) / 2);
}

.hero-right {
  width: calc((100vw - var(--max-width)) / 2 + var(--max-width) * 0.4);
}

@media (max-width: 1400px) {
  .hero-left {
    padding-left: 24px;
  }
}

/* Image 1188×654: always full height visible, width can crop on the right */
.hero-right-visual {
  width: 100%;
  min-height: 320px;
  height: min(500px, 60vh);
  background-image: url("assets/picture-slider.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left center;
  overflow: hidden;
}

.section-download {
  position: relative;
}

.download-layout {
  position: relative;
  display: flex;
  align-items: stretch;
}

.download-left {
  width: calc((100vw - var(--max-width)) / 2 + var(--max-width) * 0.5);
}

.download-right {
  width: calc((100vw - var(--max-width)) / 2 + var(--max-width) * 0.5);
  padding: 60px 0 0;
  background: #120f20;
}

.download-right-inner {
  width: calc(var(--max-width) * 0.5);
  padding-left: 50px;
}

@media (max-width: 1400px) {
  .download-right-inner {
    padding-right: 24px;
  }
}

.download-visual {
  width: 100%;
  height: 500px;
  max-height: 500px;
  overflow: hidden;
  background-image: url("assets/picture-download.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
}

@media (max-width: 1200px) {
  .download-layout {
    flex-direction: column;
  }

  .download-left,
  .download-right {
    width: 100%;
  }

  .download-visual {
    height: 300px;
    max-height: 300px;
  }

  .download-right-inner {
    width: 100%;
    text-align: center;
  }

  .download-actions {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .download-visual {
    height: 250px;
    max-height: 250px;
  }

  .regulations-logos {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

.download-heading {
  margin: 0 0 20px;
}

.download-lead {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.7;
}

.download-subcopy {
  margin: 30px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.download-actions {
  margin-top: 80px;
}

/* Section: Compliance & Standards (Regulations) */

.section-regulations {
  position: relative;
}

.regulations-layout {
  display: flex;
  align-items: stretch;
}

.regulations-left,
.regulations-right {
  flex: 0 0 50%;
}

.regulations-left-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  height: 350px;
}

.regulations-main-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-image: url("assets/picture-compliance1.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.regulations-side-images {
  display: grid;
  grid-template-rows: 4fr 6fr;
  row-gap: 20px;
}

.regulations-side-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.regulations-side-image--top {
  background-image: url("assets/picture-compliance2.png");
}

.regulations-side-image--bottom {
  background-image: url("assets/picture-compliance3.png");
}

.regulations-right {
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.regulations-heading {
  margin: 0 0 20px;
}

.regulations-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.regulations-logos {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

.regulations-logo {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.regulations-logo img {
  max-height: 100%;
  width: auto;
  opacity: 0.2;
}

@media (max-width: 1200px) {
  .regulations-left {
    display: none;
  }

  .regulations-right {
    flex: 0 0 100%;
    padding-left: 0;
    text-align: center;
    align-items: center;
  }

  .regulations-logos {
    justify-content: center;
  }
}

/* Section: Partners */

.section-partners .wrap {
  max-width: var(--max-width);
}

.section-partners__header {
  max-width: 920px;
  margin: 0 auto 0;
  text-align: center;
}

.section-partners__title {
  margin: 0 0 14px !important;
}

.section-partners__lead {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.partners-grid {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.partner-card {
  flex: 1 1 0;
  background: #12101c;
  border: 1px solid #484848;
  padding: 105px 26px 50px;
  text-align: center;
  position: relative;
  margin-top: 170px;
  height: 335px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, margin-top 0.2s ease, height 0.2s ease;
}

.partner-card--first {
  border-radius: 12px 0 0 12px;
}

.partner-card--last {
  border-radius: 0 12px 12px 0;
}

@media (max-width: 900px) {
  .partners-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-card {
    flex: 0 0 auto;
    width: 100%;
    transition: none;
    margin-top: 40px !important;
    padding-top: 0px !important;
  }

  .partner-card__icon-wrap {
    position: relative !important;
    top: 0 !important;
    transform: none;
    margin: 20px 0;
    padding-top: 0px !important;
  }
}

.partner-card__icon-wrap {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.partner-card__icon {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  background: #12101c;
  border: 1px solid #484848;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card__icon img {
  max-width: 66%;
  max-height: 66%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card__title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.partner-card__role {
  margin: 0 0 25px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.9em;
}

.partner-card__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.partner-card__arrow {
  width: 40px;
  height: 40px;
  margin-top: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.partner-card__arrow img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.partner-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  margin-top: 60px;
  height: 400px
}

.partner-card:hover .partner-card__title,
.partner-card:hover .partner-card__copy {
  color: #ffffff;
}

.partner-card:hover .partner-card__arrow {
  display: flex;
}

@media (max-width: 1200px) {
  .partner-card {
    height: auto;
    margin-top: 100px;
  }

  .partner-card:hover {
    background: #12101c;
    border-color: #484848;
    color: inherit;
    margin-top: 40px;
    height: auto;
  }

  .partner-card:hover .partner-card__title,
  .partner-card:hover .partner-card__copy {
    color: inherit;
  }

  .partner-card:hover .partner-card__arrow {
    display: none;
  }
}

.hero-heading {
  font-size: clamp(34px, 4.2vw, 34px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero-lead {
  margin: 20px 0 30px;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Two-part Download button: text (purple) + icon (dark) */
.btn-download {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-download:hover .btn-download-icon {
  background: var(--primary);
}

.btn-download-text {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 42px;
  background: var(--primary);
  color: var(--text-main);
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
  transition: background 0.2s ease, color 0.2s ease, justify-content 0.2s ease, padding 0.2s ease;
}

.btn-download:hover .btn-download-text {
  justify-content: flex-start;
  padding-left: 24px;
  padding-right: 72px; /* 48 + (48 - 24) so total horizontal padding stays 96px */
}

.btn-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  background: #201a27;
  border: 1px solid var(--primary);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  transition: background 0.2s ease;
}

.btn-download-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.modal-success-close .btn-download-text,
.modal-success-close:hover .btn-download-text {
  justify-content: center;
  padding-left: 42px;
  padding-right: 42px;
}

button.btn-download {
  border: none;
  font-family: inherit;
  background: transparent;
}

/* Section: Challenges (Quantum risk / Migration challenge) */

.section-challenges {
  position: relative;
}

.section-challenges::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}

.section-challenges-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 500px 1fr;
  gap: 40px;
  align-items: center;
}

.challenges-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenges-col--left {
  text-align: right;
}

.challenges-col--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

@media (max-width: 1100px) {
  .section-challenges-inner {
    grid-template-columns: 1fr 1fr;
  }

  .challenges-col--center {
    display: none;
  }
}

.challenges-center-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}

/* Purple halo fading out to bg color at edges */
.challenges-center-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(84, 27, 106, 0.88) 0%,
    rgba(84, 27, 106, 0.7) 18%,
    rgba(84, 27, 106, 0.40) 20%,
    rgba(5, 3, 14, 0.12) 62%,
    rgba(5, 3, 14, 0.06) 85%,
    var(--bg) 100%
  );
}

/* Animated loader (layered images with translate animations) */
.animated-loader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.animated-loader__stage {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 848 / 1198;
}

.animated-loader__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Scroll-driven: offset 0 at load, expands outward as user scrolls (set via JS --loader-scroll-offset) */
.animated-loader__image--part1 {
  transform: translate(calc(-1 * var(--loader-scroll-offset, 0px)), calc(-1 * var(--loader-scroll-offset, 0px)));
  transition: transform 0.2s ease-out;
}

.animated-loader__image--part2 {
  transform: translate(var(--loader-scroll-offset, 0px), calc(-1 * var(--loader-scroll-offset, 0px)));
  transition: transform 0.2s ease-out;
}

.animated-loader__image--part3 {
  transform: translate(calc(-1 * var(--loader-scroll-offset, 0px)), var(--loader-scroll-offset, 0px));
  transition: transform 0.2s ease-out;
}

.animated-loader__image--part4 {
  transform: translate(var(--loader-scroll-offset, 0px), var(--loader-scroll-offset, 0px));
  transition: transform 0.2s ease-out;
}

.animated-loader__image--part5 {
  transform: translate(calc(-0.35 * var(--loader-scroll-offset, 0px)), var(--loader-scroll-offset, 0px));
  transition: transform 0.2s ease-out;
}

.challenges-center-logo {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.challenges-col--right {
  text-align: left;
}

.challenges-title {
  margin: 0;
  color: var(--text-main);
}

.challenges-copy {
  color: var(--text-muted);
  margin: 0;
}

/* Section: long-form content (e.g. third section) */

.section-content .wrap {
  max-width: 720px;
}

.section-content__p {
  margin: 0 0 1em;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-content__p:last-child {
  margin-bottom: 0;
}

/* Section: Audience */

.section-audience .wrap {
  max-width: var(--max-width);
}

.section-audience .section-features__header {
  margin-bottom: 50px;
}

.audience-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #484848;
  border-radius: 12px;
  overflow: hidden;
  background: #12101c;
}

.audience-card {
  padding: 34px 28px;
  background: #12101c;
  text-align: center;
}

.audience-card:nth-child(odd) {
  border-right: 1px solid #484848;
}

.audience-card:nth-child(-n + 2) {
  border-bottom: 1px solid #484848;
}

.audience-card .feature-card__title {
  margin-bottom: 18px;
}

/* Section: Features (Core Features) */

.section-features .wrap {
  max-width: var(--max-width);
}

.section-features__header {
  max-width: 920px;
  margin: 0 auto 100px;
  text-align: center;
}

.section-features__title {
  margin: 0 0 24px !important;
}

.section-features__lead {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 60px;
  row-gap: 90px;
  align-items: stretch;
}

@media (max-width: 460px) {
  .hero-heading {
    font-size: 26px;
  }
}

.feature-card {
  background: #12101c;
  border: 1px solid #484848;
  border-radius: 10px;
  padding: 60px 22px 30px;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.feature-card:hover {
  background: #181427;
  border-color: #5a5a5a;
}

.feature-card__icon-wrap {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.feature-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(280deg, var(--icon-from, var(--primary)), var(--icon-to, #9a88ff));
}

.feature-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.feature-card__title {
  margin: 0 0 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */

footer {
  border-top: 1px solid rgba(122, 106, 194, 0.32);
  padding: 0 0 32px;
  font-size: 12px;
  user-select: none;
}

.footer-eu {
  border-top: 1px solid #484848;
  border-bottom: 1px solid #484848;
  background: #12101c;
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.footer-eu-inner {
  max-width: var(--footer-inner-max);
  width: 100%;
  display: flex;
  align-items: center;
}

.footer-eu-logo {
  flex: 0 0 100px;
  margin-right: 30px;
}

.footer-eu-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-eu-text p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .footer-eu-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    gap: 12px;
  }

  .footer-eu-logo {
    margin-right: 0;
  }
}

.footer-bottom {
  margin: 20px auto 0;
  max-width: var(--footer-inner-max);
  display: flex;
  align-items: center;
  font-size: 12px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom-right {
  margin-left: auto;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-bottom-right {
    margin-left: 0;
    text-align: center;
  }
}

.footer-social {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsiveness */

@media (max-width: 1100px) {
  header .wrap {
    gap: 20px;
  }

  nav {
    gap: 10px;
    font-size: 13px;
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-left {
    flex: 0 0 auto;
    width: 100%;
    padding: 32px 0 16px;
  }

  .hero-right {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

}

@media (max-width: 1100px) {

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 70px;
  }

  .download-layout {
    flex-direction: column;
  }

  .download-left,
  .download-right {
    width: 100%;
    padding: 32px 0;
  }

  .download-left {
    padding-left: 0;
  }

  .download-right-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 900px) {
  .audience-grid-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .audience-card:nth-child(odd) {
    border-right: none;
  }

  .audience-card:nth-child(-n + 2) {
    border-bottom: none;
  }

  .audience-card:not(:last-child) {
    border-bottom: 1px solid #484848;
  }

  header {
    position: static;
  }

  header .wrap {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    display: none;
  }

  section {
    padding: 56px 0;
  }

  .section-challenges-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .challenges-col--left,
  .challenges-col--right {
    text-align: center;
  }

  .challenges-col--center {
    display: none;
  }

  .section-features__header {
    margin-bottom: 80px;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 80px;
    column-gap: 22px;
  }
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: #120f20;
  border-radius: 14px;
  border: 1px solid rgba(122, 106, 194, 0.5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  padding: 26px 26px 30px;
  position: relative;
}

.modal-header h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal-subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: #f5f5f5;
}

.modal-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(109, 227, 169, 0.1);
  border: 1px solid rgba(109, 227, 169, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-success-check {
  color: #6de3a9;
  font-size: 24px;
  line-height: 1;
}

.modal-error-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(243, 117, 25, 0.1);
  border: 1px solid rgba(243, 117, 25, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-error-mark {
  color: #f37519;
  font-size: 24px;
  line-height: 1;
}

.form-field {
  margin-bottom: 4px;
}

.form-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid #3a3548;
  background: #090712;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(122, 106, 194, 0.5);
}

.field-error {
  min-height: 16px;
  margin: 4px 0 0;
  font-size: 12px;
  color: #ff7b7b;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin: 10px 0 0;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 2px;
}

.modal-note {
  margin: 12px 0 16px;
  font-size: 11px;
  color: var(--text-muted);
}

.btn-download-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.btn-download-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-download-submit[disabled] .btn-download-text {
  background: #3f355f;
}

.form-success {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6de3a9;
  min-height: 18px;
}

/* Download page */

.page-download {
  padding-top: 80px;
  padding-bottom: 96px;
}

.page-download-inner {
  max-width: 920px;
}

.page-download-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-download-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.page-download-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-download-title {
  margin: 20px 0 20px !important;
  font-weight: 700;
  line-height: 1.15;
}

.page-download-title-label {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-download-title-brand {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.page-download-lead {
  margin: 30px auto 0;
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.page-download-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #484848;
  background: #12101c;
}

.page-download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.page-download-table thead th {
  text-align: left;
  padding: 16px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #484848;
  background: rgba(18, 16, 28, 0.98);
}

.page-download-table thead th:nth-child(2),
.page-download-table tbody td:nth-child(2) {
  width: 160px;
  white-space: nowrap;
}

.page-download-table thead th:nth-child(3),
.page-download-table tbody td:nth-child(3) {
  width: 120px;
  white-space: nowrap;
}

.page-download-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(72, 72, 72, 0.5);
  vertical-align: middle;
}

.page-download-table tbody tr:last-child td {
  border-bottom: none;
}

.page-download-table tbody tr:hover td {
  background: rgba(122, 106, 194, 0.08);
}

.page-download-table a {
  color: #9a88ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-download-table a:hover {
  color: #c4b8ff;
}

.page-download-link-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
}

.page-download-link-sub a {
  color: #9a88ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-download-link-sub a:hover {
  color: #c4b8ff;
}

@media (max-width: 520px) {
  .page-download-table thead th,
  .page-download-table tbody td {
    padding: 14px 14px;
    font-size: 14px;
  }
}

/* Algorithm registry page (algos) */

.page-algos {
  padding-top: 80px;
  padding-bottom: 96px;
}

.page-algos-inner {
  max-width: 1280px;
}

.page-algos-back {
  margin: 0 0 28px;
  text-align: center;
}

.page-algos-back a {
  color: #9a88ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.page-algos-back a:hover {
  text-decoration: underline;
  color: #c4b8ff;
}

.page-algos-summary {
  margin: 48px auto 40px;
  max-width: 900px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-algos-summary h2 {
  margin: 32px 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.page-algos-summary h2:first-child {
  margin-top: 0;
}

.page-algos-summary ul {
  margin: 8px 0 0;
  padding-left: 1.25em;
}

.page-algos-summary code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(122, 106, 194, 0.15);
  color: #d4caff;
}

.page-algos-meta {
  margin: 28px 0 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.page-algos-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  margin: 8px 0 20px;
}

.page-algos-filter-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.page-algos-filter-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #484848;
  background: rgba(18, 16, 28, 0.98);
  padding: 4px;
  gap: 4px;
}

.page-algos-filter-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.page-algos-filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.page-algos-filter-btn:focus-visible {
  outline: 2px solid #9a88ff;
  outline-offset: 2px;
}

.page-algos-filter-btn--classical.is-on {
  color: #e8ecf8;
  background: rgba(120, 130, 150, 0.35);
  box-shadow: 0 0 0 1px rgba(184, 192, 212, 0.25);
}

.page-algos-filter-btn--hybrid.is-on {
  color: #ede8ff;
  background: rgba(122, 106, 194, 0.45);
  box-shadow: 0 0 0 1px rgba(154, 136, 255, 0.3);
}

.page-algos-filter-btn--pqc.is-on {
  color: #e4fff9;
  background: rgba(22, 142, 120, 0.4);
  box-shadow: 0 0 0 1px rgba(110, 220, 200, 0.25);
}

.page-algos-filter-hint {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.page-algos-table-intro {
  margin: 8px auto 18px;
  max-width: 1024px;
  padding: 0 12px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-algos-table-intro strong {
  color: var(--text-main);
  font-weight: 700;
}

.page-algos-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #484848;
  background: #12101c;
  -webkit-overflow-scrolling: touch;
}

.page-algos-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-algos-table .col-category {
  min-width: 108px;
  vertical-align: top;
}

.page-algos-table .col-algorithm .algo-risk-row {
  margin-top: 10px;
}

.page-algos-table .col-algorithm .algo-risk-row .algo-risk {
  margin-top: 0;
}

.page-algos-table .col-roles-tags .algo-roles {
  margin-top: 0;
}

.page-algos-table .col-roles-tags .algo-tags {
  margin-top: 10px;
  max-width: 320px;
}

.page-algos-table thead th,
.page-algos-table tbody td {
  border-right: 1px solid #484848;
}

.page-algos-table thead th:last-child,
.page-algos-table tbody td:last-child {
  border-right: none;
}

.page-algos-table thead th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #484848;
  background: rgba(18, 16, 28, 0.98);
  white-space: nowrap;
}

.page-algos-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(72, 72, 72, 0.5);
  vertical-align: top;
}

.page-algos-table tbody tr:last-child td {
  border-bottom: none;
}

.page-algos-table tbody tr:hover td {
  background: rgba(122, 106, 194, 0.06);
}

.page-algos-table .col-algorithm {
  font-weight: 600;
  color: var(--text-main);
  white-space: normal;
  max-width: 220px;
}

.page-algos-table .col-algorithm .algo-deprecated {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e8a070;
}

.page-algos-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-algos-category--classical {
  background: rgba(120, 130, 150, 0.25);
  color: #b8c0d4;
}

.page-algos-category--hybrid {
  background: rgba(122, 106, 194, 0.35);
  color: #d4caff;
}

.page-algos-category--pqc {
  background: rgba(22, 142, 120, 0.35);
  color: #7ee3d0;
}

.algo-roles {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: normal;
}

.algo-risk {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.algo-risk--secure {
  background: rgba(22, 142, 120, 0.28);
  color: #7ee3d0;
}

.algo-risk--vulnerable {
  background: rgba(200, 140, 60, 0.25);
  color: #f0c090;
}

.algo-risk--broken {
  background: rgba(180, 60, 60, 0.35);
  color: #ffb0b0;
}

.algo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-width: 280px;
}

.algo-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: #3a3848;
  color: #c8c4d8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-algos-table .col-migration {
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
}

.page-algos-table .col-migration--empty {
  color: var(--text-muted);
  font-style: italic;
}

.page-algos-footnote {
  margin: 20px auto 0;
  max-width: 900px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 520px) {
  .page-algos-table thead th,
  .page-algos-table tbody td {
    padding: 12px 12px;
    font-size: 13px;
  }
}

/* Guide page */

.page-guide-lead {
  margin-top: 24px !important;
}

.page-guide-toolbar {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.page-guide-reset,
.page-guide-export {
  font: inherit;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid #484848;
  background: rgba(18, 16, 28, 0.98);
  color: var(--text-muted);
  cursor: pointer;
}

.page-guide-reset:hover,
.page-guide-export:hover {
  border-color: #6a6a6a;
  color: var(--text-main);
}

.page-guide-export {
  border-color: rgba(122, 106, 194, 0.45);
  color: #c4b8ff;
}

.page-guide-export:hover {
  border-color: rgba(154, 136, 255, 0.65);
  color: #e8e2ff;
}

.page-guide-error {
  margin: 0 auto 24px;
  max-width: 560px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: rgba(80, 30, 30, 0.35);
  color: #ffb4b4;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.page-guide-tasks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-guide-export-wrap {
  margin: 28px 0 0;
  text-align: center;
}

.page-guide-task {
  border-radius: var(--radius);
  border: 1px solid #484848;
  background: #12101c;
  overflow: hidden;
}

.page-guide-task--optional {
  border-style: dashed;
  border-color: rgba(122, 106, 194, 0.45);
}

.page-guide-task--done {
  border-color: rgba(109, 227, 169, 0.45);
}

.page-guide-task-summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.page-guide-task-summary::-webkit-details-marker {
  display: none;
}

.page-guide-task-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  margin-top: 6px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.page-guide-task[open] .page-guide-task-summary::after {
  transform: rotate(-135deg);
  margin-top: 10px;
}

.page-guide-task-id {
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(122, 106, 194, 0.2);
  color: #c4b8ff;
  font-size: 15px;
  font-weight: 700;
}

.page-guide-task--done .page-guide-task-id {
  background: rgba(109, 227, 169, 0.2);
  color: #6de3a9;
}

.page-guide-task-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  flex: 1;
  min-width: 0;
}

.page-guide-task-title {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
}

.page-guide-task-optional-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a88ff;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(122, 106, 194, 0.15);
}

.page-guide-task-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  width: 100%;
}

.page-guide-task--done .page-guide-task-meta {
  color: #6de3a9;
}

.page-guide-task-body {
  padding: 0 20px 22px 20px;
  border-top: 1px solid rgba(72, 72, 72, 0.5);
}

.page-guide-desc {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
}

.page-guide-outcome {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(122, 106, 194, 0.35);
  background: rgba(122, 106, 194, 0.08);
}

.page-guide-outcome-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b8ff;
  margin-bottom: 10px;
}

.page-guide-outcome ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.page-guide-outcome li {
  margin-bottom: 6px;
}

.page-guide-steps-heading {
  margin: 24px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-guide-step-group {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(18, 16, 28, 0.85);
  border: 1px solid rgba(72, 72, 72, 0.6);
}

.page-guide-step-group-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.45;
}

.page-guide-step--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-guide-step--check:hover .page-guide-step-text {
  color: var(--text-main);
}

.page-guide-step--check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #7a6ac2;
  cursor: pointer;
}

.page-guide-step--sub {
  margin-left: 0;
  padding-top: 4px;
}

.page-guide-step--sub:first-of-type {
  padding-top: 0;
}

.page-guide-step-text {
  flex: 1;
}

.page-guide-step-text a {
  color: #9b8fd4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-guide-step--check:hover .page-guide-step-text a {
  color: var(--text-main);
}

.page-guide-task-status {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6de3a9;
  min-height: 22px;
}

@media (max-width: 520px) {
  .page-guide-task-summary {
    padding: 14px 16px;
  }

  .page-guide-task-body {
    padding: 0 16px 18px 16px;
  }
}
