:root {
  color-scheme: dark;
  --bg: #0D0F1A;
  --bg-soft: #11131f;
  --panel: rgba(20, 22, 31, 0.78);
  --panel-strong: rgba(24, 27, 37, 0.92);
  --panel-warm: rgba(32, 28, 35, 0.78);
  --line: rgba(238, 244, 255, 0.13);
  --line-strong: rgba(238, 244, 255, 0.24);
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.70);
  --muted-soft: rgba(244, 246, 251, 0.52);
  --gold: #d7b56d;
  --gold-deep: #8f6f2a;
  --cyan: #4DA8FF;
  --violet: #6D5DF6;
  --violet-soft: rgba(109, 93, 246, 0.28);
  /* Brand accent system: #6D5DF6 → #4DA8FF */
  --accent-1: #6D5DF6;
  --accent-2: #4DA8FF;
  --accent-grad: linear-gradient(120deg, #6D5DF6 0%, #4DA8FF 100%);
  --accent-grad-soft: linear-gradient(120deg, rgba(109, 93, 246, 0.20), rgba(77, 168, 255, 0.20));
  --glow-violet: 0 0 40px rgba(109, 93, 246, 0.45);
  --glow-blue: 0 0 40px rgba(77, 168, 255, 0.40);
  --glow-accent: 0 18px 60px rgba(109, 93, 246, 0.26), 0 12px 40px rgba(77, 168, 255, 0.20);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  /* Fluid typography (mobile-first, large headings) */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-lead: clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem);
  --fs-h2: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  /* Spacing scale */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.1rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --space-xl: clamp(2rem, 1.6rem + 2.4vw, 3.25rem);
  --max: 1200px;
  --header-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 10%, rgba(109, 93, 246, 0.22), transparent 30rem),
    radial-gradient(circle at 86% 22%, rgba(77, 168, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 68% 92%, rgba(215, 181, 109, 0.08), transparent 28rem),
    linear-gradient(180deg, #0b0d18 0%, #0D0F1A 46%, #0a0c16 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 76%);
  transform: translate3d(0, calc(var(--sy, 0) * -0.018px), 0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.92), transparent 20%, transparent 80%, rgba(5, 7, 12, 0.92)),
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 18%), rgba(82, 211, 246, 0.10), transparent 18rem);
  transform: translate3d(0, calc(var(--sy, 0) * 0.028px), 0);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #05070c;
  font-weight: 800;
  transition: transform 180ms ease;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(238, 244, 255, 0.09);
  background: rgba(5, 7, 12, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 216px;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 181, 109, 0.28);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
}

.brand small,
.footer-brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.lang-link,
.button,
.menu-toggle,
.filter-chip {
  min-height: 44px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(238, 244, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.lang-link:hover,
.lang-link.is-active {
  background: rgba(215, 181, 109, 0.13);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  line-height: 1.12;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.button-primary {
  border-color: rgba(82, 211, 246, 0.34);
  background:
    linear-gradient(100deg, rgba(118, 92, 240, 0.96) 0%, rgba(82, 211, 246, 0.96) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  color: #05070c;
  box-shadow: 0 20px 58px rgba(82, 211, 246, 0.18), 0 18px 54px rgba(118, 92, 240, 0.18);
}

.button-primary:hover {
  filter: saturate(1.05) brightness(1.04);
}

.menu-toggle {
  display: none;
  width: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.052);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 14, 22, 0.97);
  box-shadow: var(--shadow-soft);
}

.mobile-menu nav:first-child {
  display: grid;
  gap: 6px;
}

.mobile-menu .nav-link {
  justify-content: flex-start;
}

.mobile-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.main-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 0;
}

.panel,
.statement-panel,
.text-panel,
.feature-card,
.process-step,
.service-card,
.case-card,
.partnership-card,
.contact-panel,
.faq-panel,
.final-cta,
.note-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028)),
    linear-gradient(110deg, rgba(118, 92, 240, 0.09), rgba(82, 211, 246, 0.055) 64%, rgba(215, 181, 109, 0.035));
  box-shadow: var(--shadow-soft);
}

.panel::before,
.statement-panel::before,
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 30%, transparent 70%, rgba(215, 181, 109, 0.08));
  opacity: 0.52;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.page-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-copy {
  min-height: 560px;
  padding: 44px;
}

.hero-visual {
  min-height: 560px;
  padding: 34px;
}

.page-hero {
  min-height: 330px;
  padding: 42px;
  overflow: hidden;
}

.page-hero .lead,
.hero-copy .lead {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(238, 244, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.eyebrow span,
.service-tag::before {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #f7f4de, var(--cyan) 34%, var(--violet) 72%);
  box-shadow: 0 0 0 5px rgba(118, 92, 240, 0.16), 0 0 22px rgba(82, 211, 246, 0.28);
}

.visual-item > span {
  width: 16px;
  height: 28px;
  flex: 0 0 16px;
  margin-top: 2px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(215, 181, 109, 0.95), rgba(82, 211, 246, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  box-shadow: 0 16px 34px rgba(82, 211, 246, 0.14);
  transform: skewY(-10deg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 62px;
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 950;
}

h2 {
  color: var(--text);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 930;
}

h3 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 900;
}

.lead {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row.small {
  margin-top: auto;
}

.mini-grid,
.feature-grid,
.service-grid,
.case-grid,
.process-grid,
.split-grid,
.path-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

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

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.contact-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.feature-card,
.text-panel,
.process-step,
.service-card,
.case-card,
.partnership-card,
.contact-panel,
.path-step {
  border-radius: var(--radius-md);
}

.feature-card,
.text-panel,
.process-step,
.contact-panel,
.path-step {
  padding: 24px;
}

.feature-card,
.process-step,
.text-panel,
.path-step {
  background: rgba(255, 255, 255, 0.045);
}

.feature-card h3,
.text-panel h3,
.process-step h3,
.service-card h3,
.case-card h3,
.partnership-card h3 {
  margin-bottom: 10px;
}

.feature-card p,
.text-panel p,
.process-step p,
.service-card p,
.case-card p,
.partnership-card p,
.contact-panel p,
.path-step span,
.note-panel {
  color: var(--muted);
  font-size: 15px;
  font-weight: 620;
}

.feature-card p,
.text-panel p,
.process-step p,
.service-card p,
.case-card p,
.partnership-card p,
.contact-panel p {
  margin-bottom: 0;
}

.launch-system {
  position: relative;
  width: min(360px, 82vw);
  min-height: 310px;
  margin: 0 auto 28px;
  padding: 26px;
  border: 1px solid rgba(238, 244, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    linear-gradient(150deg, rgba(215, 181, 109, 0.09), rgba(82, 211, 246, 0.075) 58%, rgba(118, 92, 240, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 86px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.launch-system::before,
.launch-system::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.launch-system::before {
  inset: 16px;
  border: 1px solid rgba(238, 244, 255, 0.07);
  border-radius: 24px;
}

.launch-system::after {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(82, 211, 246, 0.20), transparent 68%);
  opacity: 0.68;
}

.launch-logo-frame {
  position: relative;
  width: 144px;
  height: 144px;
  margin: 18px auto 30px;
  border: 1px solid rgba(215, 181, 109, 0.34);
  border-radius: 34px;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 12, 0.52);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.026),
    0 30px 86px rgba(0, 0, 0, 0.58),
    0 0 58px rgba(215, 181, 109, 0.12);
  animation: launchPulse 5.6s ease-in-out infinite;
}

.launch-logo-frame::before,
.launch-logo-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 210px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(215, 181, 109, 0.5), rgba(82, 211, 246, 0.38), transparent);
}

.launch-logo-frame::before {
  top: -20px;
}

.launch-logo-frame::after {
  bottom: -20px;
}

.launch-logo {
  width: 122px;
  height: 122px;
  border-radius: 27px;
  object-fit: cover;
}

.launch-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 24px;
}

.launch-track::before,
.launch-track::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
}

.launch-track::before {
  background: rgba(238, 244, 255, 0.12);
}

.launch-track::after {
  width: 42%;
  right: auto;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 28px rgba(82, 211, 246, 0.22);
  animation: flowScan 4.8s ease-in-out infinite;
}

.launch-track span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 244, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 246, 251, 0.82);
  font-size: 12px;
  font-weight: 850;
  animation: stageLift 6.2s ease-in-out infinite;
}

.launch-track span:nth-child(2) {
  animation-delay: 500ms;
}

.launch-track span:nth-child(3) {
  animation-delay: 1000ms;
}

.launch-track span:nth-child(4) {
  animation-delay: 1500ms;
}

.launch-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.58fr 0.9fr;
  gap: 8px;
  align-items: end;
  height: 54px;
  margin-top: 18px;
}

.launch-bars span {
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(82, 211, 246, 0.78), rgba(118, 92, 240, 0.40));
  box-shadow: 0 16px 34px rgba(82, 211, 246, 0.12);
  animation: barBuild 5.8s ease-in-out infinite;
}

.launch-bars span:nth-child(1) {
  height: 28px;
}

.launch-bars span:nth-child(2) {
  height: 46px;
  animation-delay: 420ms;
}

.launch-bars span:nth-child(3) {
  height: 22px;
  background: linear-gradient(180deg, rgba(215, 181, 109, 0.74), rgba(118, 92, 240, 0.38));
  animation-delay: 840ms;
}

.launch-bars span:nth-child(4) {
  height: 38px;
  animation-delay: 1260ms;
}

.visual-copy h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.visual-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 650;
}

.visual-list {
  display: grid;
  gap: 12px;
}

.visual-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(238, 244, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.visual-item strong,
.visual-item small {
  display: block;
}

.visual-item strong {
  line-height: 1.2;
}

.visual-item small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 650;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(238, 244, 255, 0.10);
  border-radius: 19px;
  background: rgba(0, 0, 0, 0.16);
}

.metric strong {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 700;
}

.section-block {
  margin-top: 54px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 360px;
  margin-bottom: 3px;
  color: var(--muted-soft);
  font-size: 14px;
  font-weight: 750;
  text-align: right;
}

.statement-panel {
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
}

.statement-panel > * {
  position: relative;
}

.statement-panel p {
  max-width: 900px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 680;
}

.statement-panel.compact {
  margin-top: 16px;
}

.statement-panel.compact p:last-child,
.path-panel p:last-child {
  margin-bottom: 0;
}

.nested-split {
  margin-top: 20px;
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 660;
}

.clean-list li {
  margin: 7px 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #05070c;
  font-weight: 950;
}

.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.path-step {
  border: 1px solid rgba(238, 244, 255, 0.10);
}

.path-step strong {
  display: block;
  margin-bottom: 5px;
}

.service-card,
.case-card,
.partnership-card {
  min-height: 360px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(238, 244, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.price,
.case-kpi strong {
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
  text-align: right;
  text-shadow: 0 0 28px rgba(82, 211, 246, 0.20);
}

.case-kpi {
  text-align: right;
}

.case-kpi span {
  display: block;
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 750;
}

.service-card .clean-list,
.case-card .clean-list,
.partnership-card .clean-list {
  margin-bottom: 10px;
}

.service-note {
  padding: 12px 14px;
  border: 1px solid rgba(215, 181, 109, 0.14);
  border-radius: 15px;
  background: rgba(215, 181, 109, 0.055);
  color: var(--muted);
  font-size: 13px;
}

.service-cta {
  margin-top: auto;
}

.note-panel {
  margin-top: 16px;
  padding: 22px;
  border-radius: 22px;
}

.case-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 830;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: rgba(118, 92, 240, 0.22);
  color: var(--text);
}

.case-search {
  flex: 1 1 320px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.case-search span {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid var(--muted-soft);
  border-radius: 999px;
  position: relative;
}

.case-search span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--muted-soft);
  transform: rotate(45deg);
}

.case-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 680;
}

.case-search input::placeholder {
  color: rgba(244, 246, 251, 0.42);
}

.case-card[hidden] {
  display: none;
}

.contact-panel {
  min-height: 360px;
}

.contact-panel h2 {
  font-size: 25px;
}

.small-muted {
  margin-top: 16px;
  color: var(--muted-soft);
  font-size: 13px;
}

.contact-items {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.contact-item {
  padding: 16px;
  border: 1px solid rgba(238, 244, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-item strong,
.contact-item a,
.contact-item span {
  display: block;
}

.contact-item a,
.contact-item span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.faq-panel {
  border-radius: var(--radius-lg);
  padding: 12px;
}

.faq-panel details {
  border: 1px solid rgba(238, 244, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.faq-panel details + details {
  margin-top: 10px;
}

.faq-panel summary {
  cursor: pointer;
  padding: 17px 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

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

.faq-panel p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-weight: 650;
}

.final-cta {
  margin-top: 54px;
  padding: 30px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.final-cta > * {
  position: relative;
}

.final-cta h2 {
  margin-bottom: 8px;
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 680;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 58px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(238, 244, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  border-bottom: 1px solid rgba(244, 246, 251, 0.24);
}

.site-footer a:hover {
  color: var(--text);
  border-bottom-color: rgba(244, 246, 251, 0.58);
}

[data-reveal] {
  opacity: 0;
  --rev-y: 34px;
  --rev-s: 0.985;
  transform: translateY(var(--rev-y)) scale(var(--rev-s));
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Fallback path (no GSAP / reduced-motion). GSAP otherwise animates --rev-y / --rev-s. */
[data-reveal].is-visible {
  opacity: 1;
  --rev-y: 0px;
  --rev-s: 1;
}

/* Lenis smooth-scroll helpers */
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

/* Unified premium card hover — brand glow + brighten (works alongside data-tilt) */
.feature-card,
.service-card,
.case-card,
.partnership-card,
.text-panel,
.contact-panel {
  transition: border-color 240ms ease, box-shadow 260ms ease, background 240ms ease;
}

.feature-card:hover,
.service-card:hover,
.case-card:hover,
.partnership-card:hover,
.text-panel:hover,
.contact-panel:hover {
  border-color: rgba(109, 93, 246, 0.45);
  background: rgba(120, 140, 255, 0.06);
  box-shadow: 0 18px 50px rgba(109, 93, 246, 0.18), 0 12px 36px rgba(77, 168, 255, 0.14);
}

[data-tilt] {
  /* Composes reveal (--rev-*) with pointer tilt (--tilt-*) in one transform so they never fight. */
  transform: perspective(900px) translateY(var(--rev-y, 0px)) scale(var(--rev-s, 1)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: border-color 200ms ease, background 200ms ease, box-shadow 240ms ease;
}

[data-tilt]:hover {
  border-color: rgba(238, 244, 255, 0.20);
}

@keyframes launchPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.026),
      0 30px 86px rgba(0, 0, 0, 0.58),
      0 0 58px rgba(215, 181, 109, 0.12);
  }

  50% {
    transform: translateY(-5px);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.035),
      0 36px 94px rgba(0, 0, 0, 0.62),
      0 0 74px rgba(82, 211, 246, 0.16);
  }
}

@keyframes flowScan {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.72;
  }

  50% {
    transform: translateX(132%);
    opacity: 1;
  }
}

@keyframes stageLift {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(238, 244, 255, 0.10);
  }

  42% {
    transform: translateY(-3px);
    border-color: rgba(82, 211, 246, 0.24);
  }
}

@keyframes barBuild {
  0%,
  100% {
    transform: scaleY(0.82);
    transform-origin: bottom;
    opacity: 0.68;
  }

  48% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .desktop-fit {
    display: none;
  }

  h1 {
    font-size: 52px;
  }

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

  .hero-copy,
  .hero-visual {
    min-height: auto;
  }

  .hero-visual {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) 1fr;
    gap: 20px;
    align-items: center;
  }

  .launch-system {
    margin-bottom: 0;
  }

  .process-grid,
  .feature-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 72px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions > .language-nav,
  .header-actions > .button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-content {
    padding-top: 28px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy,
  .hero-visual,
  .page-hero,
  .statement-panel {
    padding: 28px;
  }

  .hero-visual,
  .split-grid,
  .service-grid,
  .contact-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .case-toolbar,
  .section-heading,
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    max-width: none;
    text-align: left;
  }

  .case-search {
    max-width: none;
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .main-content,
  .mobile-menu,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 18px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-copy,
  .hero-visual,
  .page-hero,
  .statement-panel,
  .final-cta {
    padding: 22px;
    border-radius: 24px;
  }

  .page-hero {
    min-height: 0;
  }

  .mini-grid,
  .feature-grid,
  .process-grid,
  .service-grid,
  .case-grid,
  .split-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .section-block {
    margin-top: 42px;
  }

  .service-card,
  .case-card,
  .partnership-card {
    min-height: 0;
    padding: 22px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .price,
  .case-kpi {
    text-align: left;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .button {
    flex: 1 1 100%;
  }

  .launch-system {
    width: min(300px, 100%);
    min-height: 280px;
    padding: 20px;
  }

  .launch-logo-frame {
    width: 108px;
    height: 108px;
    border-radius: 26px;
    margin-top: 10px;
    margin-bottom: 26px;
  }

  .launch-logo {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .launch-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .launch-track::before,
  .launch-track::after {
    display: none;
  }

  .launch-bars {
    height: 38px;
  }

  .mobile-menu-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu-bottom .language-nav {
    justify-content: center;
  }

  .filter-buttons {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 1ms;
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-tilt] {
    transform: none;
  }
}

/* ============================================================
   Hero 3D redesign — premium futuristic (brand #6D5DF6 → #4DA8FF)
   ============================================================ */
.hero-home {
  position: relative;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
}

/* Brand glow wash + vignette so the headline stays readable over particles */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(109, 93, 246, 0.30), transparent 60%),
    radial-gradient(120% 90% at 88% 88%, rgba(77, 168, 255, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(13, 15, 26, 0.08), rgba(13, 15, 26, 0.55));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Lift content above the 3D layer */
.hero-home .hero-copy,
.hero-home .hero-visual {
  position: relative;
  z-index: 1;
}

/* Glassmorphic hero copy so particles glow through */
.hero-home .hero-copy {
  background: linear-gradient(180deg, rgba(17, 19, 31, 0.60), rgba(13, 15, 26, 0.44));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(120, 140, 255, 0.16);
  box-shadow: var(--glow-accent);
}

.hero-copy h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.015em;
}

.hero-copy .lead {
  font-size: var(--fs-lead);
}

/* GSAP intro — pre-hide only when JS will animate (progressive enhancement) */
.js-hero-anim [data-hero-fade] {
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .js-hero-anim [data-hero-fade] {
    opacity: 1;
  }
}

/* Primary CTA — brand gradient + glow (refines .button-primary) */
.button-primary {
  border-color: rgba(77, 168, 255, 0.42);
  background:
    var(--accent-grad),
    linear-gradient(180deg, rgba(255, 255, 255, 0.40), transparent);
  color: #07091a;
  box-shadow: var(--glow-accent);
}

.button-primary:hover {
  filter: saturate(1.08) brightness(1.06);
  box-shadow: 0 22px 70px rgba(109, 93, 246, 0.40), 0 16px 50px rgba(77, 168, 255, 0.32);
}

/* Language switcher — brand-tinted */
.lang-link:hover {
  background: rgba(109, 93, 246, 0.16);
  color: var(--text);
}

.lang-link.is-active {
  background: var(--accent-grad-soft);
  border: 1px solid rgba(109, 93, 246, 0.35);
  color: var(--text);
  box-shadow: inset 0 0 16px rgba(109, 93, 246, 0.18);
}

@media (max-width: 760px) {
  .hero-home .hero-copy {
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
  }

  .hero-bg {
    border-radius: var(--radius-md);
  }
}

/* ============================================================
   Process flow — pinned cinematic 3D ("Как мы работаем")
   ============================================================ */
.flow {
  position: relative;
}

.flow-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: var(--space-md);
  padding: clamp(20px, 4vw, 56px);
  overflow: hidden;
}

.flow-head {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.flow-head h2 {
  margin: 12px 0 0;
  font-size: var(--fs-h2);
}

.flow-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

.flow-glow {
  position: absolute;
  width: min(70vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 93, 246, 0.45), rgba(77, 168, 255, 0.18) 45%, transparent 70%);
  filter: blur(44px);
  animation: flowPulse 6s ease-in-out infinite;
}

@keyframes flowPulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.08); opacity: 1; }
}

.flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Readability vignette over the full-bleed canvas (text sits left/bottom) */
.flow-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 15, 26, 0.66), transparent 42%),
    linear-gradient(0deg, rgba(13, 15, 26, 0.72), transparent 46%);
}

.flow-rail {
  display: none;
}

/* Step text — stacked, one active at a time */
.flow-steps {
  position: relative;
  z-index: 3;
  align-self: end;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
  min-height: 190px;
}

.flow-step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.flow-step.is-active {
  opacity: 1;
  transform: none;
}

.flow-step-index {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
}

.flow-step p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: var(--fs-lead);
}

/* Progress rail */
.flow-progress {
  position: absolute;
  right: clamp(16px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 800;
  opacity: 0.55;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.flow-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: rgba(238, 244, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.flow-dot.is-active {
  opacity: 1;
  color: var(--text);
}

.flow-dot.is-active::before {
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(77, 168, 255, 0.8), 0 0 0 4px rgba(109, 93, 246, 0.25);
  transform: scale(1.25);
}

/* Progressive enhancement: before JS / reduced-motion → plain accessible list */
.flow:not(.js-flow) .flow-visual,
.flow:not(.js-flow) .flow-progress {
  display: none;
}

.flow:not(.js-flow) .flow-steps {
  display: block;
  min-height: 0;
}

.flow:not(.js-flow) .flow-step {
  position: static;
  opacity: 1;
  transform: none;
  margin-bottom: 28px;
}

/* Mobile lite: vertical glowing line with 5 nodes (no WebGL) */
.flow.is-lite .flow-canvas,
.flow.is-lite .flow-stage::after {
  display: none;
}

.flow.is-lite .flow-visual {
  align-items: flex-start;
  padding-top: 12vh;
}

.flow.is-lite .flow-rail {
  --flow-fill: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: min(48vh, 380px);
  padding: 4px 0;
}

.flow.is-lite .flow-rail::before,
.flow.is-lite .flow-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
}

.flow.is-lite .flow-rail::before {
  height: 100%;
  background: rgba(238, 244, 255, 0.12);
}

.flow.is-lite .flow-rail::after {
  height: calc(var(--flow-fill) * 100%);
  background: linear-gradient(180deg, #6D5DF6, #4DA8FF);
  box-shadow: 0 0 16px rgba(77, 168, 255, 0.7);
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(238, 244, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(13, 15, 26, 0.9);
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.flow-node.is-passed {
  background: rgba(109, 93, 246, 0.7);
}

.flow-node.is-active {
  background: #4DA8FF;
  transform: scale(1.5);
  animation: nodePulse 1.6s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13, 15, 26, 0.9), 0 0 18px rgba(77, 168, 255, 0.8); }
  50% { box-shadow: 0 0 0 4px rgba(13, 15, 26, 0.9), 0 0 30px rgba(77, 168, 255, 1); }
}

@media (max-width: 860px) {
  .flow-progress {
    flex-direction: row;
    right: auto;
    left: 50%;
    bottom: clamp(14px, 4vw, 24px);
    top: auto;
    transform: translateX(-50%);
    gap: 10px;
  }

  .flow-dot span {
    display: none;
  }

  .flow-steps {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-glow {
    animation: none;
  }
}

/* ============================================================
   Lead pop-up — Tally form modal
   ============================================================ */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.is-open {
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, 0.72);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  height: min(82vh, 760px);
  border-radius: 22px;
  overflow: hidden;
  /* Brand gradient border via padding-box / border-box layering */
  background:
    linear-gradient(#0D0F1A, #0D0F1A) padding-box,
    var(--accent-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), var(--glow-accent);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
}

.modal.is-open .modal-dialog {
  transform: none;
  opacity: 1;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0D0F1A;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 15, 26, 0.82);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  border-color: rgba(109, 93, 246, 0.5);
  background: rgba(20, 22, 34, 0.95);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .modal {
    padding: 0;
  }

  .modal-dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: 0;
    background: #0D0F1A;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-dialog {
    transition: opacity 0.2s ease;
    transform: none;
  }
}
