:root {
  --ink: #101014;
  --muted: #656678;
  --line: rgba(37, 36, 83, .09);
  --blue: #3425f7;
  --violet: #6c5cff;
  --mint: #20bfa5;
  --surface: rgba(255, 255, 255, .74);
  --shadow: 0 24px 70px rgba(63, 50, 191, .13);
  --content-width: 1180px;
  --page-gutter: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 3%, rgba(96, 79, 255, .12), transparent 28rem),
    linear-gradient(180deg, #fcfcff 0%, #f7f7ff 55%, #fff 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 45% 55% 62% 38% / 56% 42% 58% 44%;
  filter: blur(72px);
  opacity: .55;
  pointer-events: none;
}
.page-glow-one {
  width: 42rem;
  height: 20rem;
  top: 8rem;
  right: -14rem;
  transform: rotate(-18deg);
  background: linear-gradient(110deg, rgba(111, 92, 255, .16), rgba(77, 126, 255, .08));
}
.page-glow-two {
  width: 34rem;
  height: 18rem;
  top: 58rem;
  left: -13rem;
  transform: rotate(22deg);
  background: linear-gradient(110deg, rgba(46, 204, 173, .10), rgba(101, 87, 255, .08));
}

.header,
.section,
.footer {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}
.header {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.brand img { display: block; width: 112px; height: auto; }
.nav { display: flex; gap: 40px; font-size: 14px; font-weight: 600; color: #272735; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--blue); }
.telegram-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid rgba(91, 74, 255, .11);
  border-radius: 15px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 26px rgba(60, 44, 185, .08);
  color: #38316c;
  font-size: 14px;
  font-weight: 650;
  transition: transform .2s ease, box-shadow .2s ease;
}
.telegram-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(60,44,185,.14); }
.telegram-link svg, .primary-button svg { width: 20px; height: 20px; fill: currentColor; }
.hero {
  position: relative;
  min-height: 650px;
  padding: 46px 0 44px;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
}
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #5a50d7;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .17em;
  font-weight: 800;
}
.eyebrow span { width: 7px; height: 7px; flex: 0 0 7px; margin-left: 5px; border-radius: 50%; background: #2bc6aa; box-shadow: 0 0 0 5px rgba(43,198,170,.12); }
h1 {
  margin: 24px 0 22px;
  font-size: clamp(46px, 4vw, 58px);
  line-height: .99;
  letter-spacing: -.064em;
  font-weight: 800;
}
h1 em { font-style: normal; color: transparent; background: linear-gradient(120deg, #6e59ff, #2419f1); background-clip: text; -webkit-background-clip: text; white-space: nowrap; }
.hero-lead {
  max-width: 510px;
  margin: 0 0 31px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  gap: 11px;
  min-width: 262px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 15px;
  background: linear-gradient(120deg, #4e3bff, #291bf2);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
  transition: transform .2s ease, filter .2s ease;
}
.primary-button svg { display: block; flex: 0 0 20px; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.trust-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 20px; color: #4c4d5d; font-size: 11px; font-weight: 650; }
.trust-row span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.trust-icon { width: 28px; height: 28px; min-width: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 9px; font-style: normal; }
.trust-icon svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.telegram-mini { color: #2f66ff; background: #eaf0ff; }
.sbp-mini { color: #2f66ff; background: #eaf0ff; }
.usdt-mini { color: #fff; background: #22bda3; }

.hero-art {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 0;
  bottom: -18px;
  width: 64%;
  min-height: 650px;
  overflow: visible;
  pointer-events: none;
}
.hero-background {
  position: absolute;
  inset: 0;
  background: url("/assets/rubex-hero-v6.webp") right center / contain no-repeat;
  filter: saturate(1.04) contrast(1.01);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  right: 3%;
  width: 54%;
  height: 64%;
  border-radius: 48% 52% 58% 42% / 46% 38% 62% 54%;
  background:
    radial-gradient(ellipse at 62% 45%, rgba(91, 74, 255, .14), transparent 58%),
    radial-gradient(ellipse at 32% 68%, rgba(54, 194, 211, .08), transparent 62%);
  filter: blur(38px);
  transform: rotate(-7deg);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.metrics article { padding: 27px 30px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics strong { display: block; color: #3025e8; font-size: 19px; }
.metrics span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.how { padding-top: 140px; }
.section-heading { max-width: 650px; margin: 0 auto 54px; text-align: center; }
.section-heading h2, .security-copy h2, .final-cta h2 {
  margin: 16px 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.05em;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative;
  min-height: 310px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 50px rgba(53,43,145,.08);
}
.step-number { position: absolute; top: 26px; right: 26px; color: rgba(53,39,238,.14); font-size: 43px; font-weight: 800; }
.step-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(140deg,#7663ff,#3021ed); box-shadow: 0 14px 30px rgba(54,37,239,.24); font-size: 25px; font-weight: 800; }
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step:nth-child(4) .step-icon { background: linear-gradient(140deg,#35cfb2,#159b86); box-shadow: 0 14px 30px rgba(31,178,152,.2); }
.step h3 { margin: 37px 0 12px; font-size: 23px; letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.steps .step:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(3) { transition-delay: .24s; }
.steps .step:nth-child(4) { transition-delay: .36s; }
.step-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: #3828ed; font-size: 14px; font-weight: 700; }
.step-link span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #3d2df2; transition: transform .2s ease; }
.step-link:hover span { transform: translate(2px, -2px); }

.security { padding-top: 130px; }
.security-panel {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 44%, rgba(127,111,255,.6), transparent 23rem),
    linear-gradient(125deg, #18134e, #3125bd 58%, #5a47f0);
  box-shadow: 0 35px 90px rgba(42,30,145,.25);
}
.security-copy { padding: 74px 74px 68px; }
.section-label.light, .security-copy .section-label { color: #c8c2ff; }
.security-copy p { max-width: 560px; color: rgba(255,255,255,.7); line-height: 1.58; font-size: 17px; }
.security-copy ul { margin: 34px 0 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.security-copy li { display: flex; align-items: center; gap: 15px; }
.security-copy li > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.security-copy b, .security-copy small { display: block; }
.security-copy b { font-size: 15px; }
.security-copy small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 12px; }
.security-visual { position: relative; display: grid; place-items: center; }
.shield { position: relative; z-index: 2; width: 220px; height: 260px; display: grid; place-items: center; border-radius: 44px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 30px 60px rgba(5,0,64,.22); backdrop-filter: blur(10px); transform: rotate(5deg); }
.shield svg { width: 130px; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.shield svg path:first-child { fill: rgba(255,255,255,.13); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 390px; height: 160px; }
.orbit-two { width: 290px; height: 420px; }

.faq { padding-top: 140px; padding-bottom: 120px; }
.faq-list { width: 100%; margin: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: 0 12px 34px rgba(53,43,145,.055); }
.faq summary { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eeecff; color: var(--blue); font-size: 20px; transition: rotate .2s ease; }
.faq details[open] summary span { rotate: 45deg; }
.faq details p { margin: -5px 62px 22px 26px; color: var(--muted); line-height: 1.6; font-size: 14px; }

.final-cta {
  min-height: 360px;
  padding: 64px 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.19), transparent 18rem),
    linear-gradient(120deg, #3624f1, #6853ff);
  box-shadow: 0 35px 80px rgba(48,31,222,.25);
}
.final-cta h2 { margin-bottom: 15px; }
.final-cta p { margin: 0; color: rgba(255,255,255,.72); font-size: 17px; }
.white-button { min-width: 265px; flex: 0 0 auto; display: flex; align-items: center; gap: 13px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.96); color: #282038; box-shadow: 0 18px 40px rgba(17,10,87,.2), inset 0 1px 0 #fff; transition: transform .2s ease, box-shadow .2s ease; }
.white-button:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(17,10,87,.26), inset 0 1px 0 #fff; }
.white-button-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #6655ff, #2f21ed); box-shadow: 0 10px 22px rgba(49,33,238,.25); }
.white-button-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.white-button-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.white-button-copy small { color: #858196; font-size: 10px; font-weight: 600; }
.white-button-copy strong { font-size: 14px; font-weight: 800; }
.white-button-arrow { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; color: #4232ed; background: #efedff; font-size: 18px; transition: transform .2s ease; }
.white-button:hover .white-button-arrow { transform: translateX(2px); }

.footer {
  min-height: 220px;
  padding: 68px 0 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 42px;
  color: var(--muted);
}
.footer p { margin: 9px 0 0; font-size: 13px; }
.footer > div { display: flex; gap: 24px; margin-top: 9px; font-size: 13px; font-weight: 650; }
.footer small { grid-column: 1 / -1; padding-top: 27px; border-top: 1px solid var(--line); font-size: 11px; }
.footer-legal { display: flex; justify-content: space-between; gap: 32px; line-height: 1.65; }
.company-details { max-width: 560px; text-align: right; color: #878895; font-size: 10px; font-style: normal; font-weight: 500; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay { transition-delay: .12s; }
.delay-one { transition-delay: .08s; }
.delay-two { transition-delay: .16s; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-copy { padding-left: 0; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 570px;
    margin-top: -35px;
    overflow: visible;
  }
  .hero-background {
    inset: 0;
    background-position: center;
  }
  .hero::after { top: auto; right: 5%; bottom: 2%; width: 90%; height: 48%; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .security-panel { grid-template-columns: 1fr; }
  .security-visual { min-height: 380px; }
}

@media (max-width: 720px) {
  :root { --page-gutter: 14px; }
  .header { height: 74px; }
  .brand img { width: 100px; }
  .telegram-link { padding: 10px 13px; font-size: 12px; }
  .telegram-link svg { width: 17px; height: 17px; }
  .hero { min-height: auto; padding: 34px 0 20px; }
  .eyebrow { font-size: 9px; }
  h1 { margin-top: 19px; font-size: clamp(39px, 11vw, 52px); }
  h1 em { white-space: normal; }
  .hero-lead { font-size: 16px; }
  .primary-button { width: 100%; min-width: 0; }
  .trust-row { display: grid; grid-template-columns: repeat(3, max-content); gap: 12px; justify-content: center; text-align: left; }
  .hero-art {
    min-height: 300px;
    margin-top: 26px;
  }
  .hero-background {
    background-position: calc(50% - 14px) top;
    background-size: contain;
  }
  .metrics { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .metrics article { padding: 22px 18px; }
  .metrics strong { font-size: 16px; }
  .how, .security, .faq { padding-top: 90px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .security-copy h2, .final-cta h2 { font-size: 38px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 255px; padding: 28px; }
  .step h3 { margin-top: 29px; }
  .security-panel { border-radius: 26px; }
  .security-copy { padding: 45px 28px 10px; }
  .security-copy h2 { font-size: 42px; }
  .security-visual { min-height: 340px; transform: scale(.85); }
  .faq { padding-bottom: 90px; }
  .faq summary { padding: 18px; font-size: 14px; }
  .faq details p { margin: -2px 48px 20px 18px; }
  .final-cta { min-height: 390px; padding: 44px 28px; flex-direction: column; align-items: flex-start; justify-content: center; border-radius: 27px; }
  .white-button { width: 100%; justify-content: space-between; }
  .footer { grid-template-columns: 1fr; gap: 15px; padding-top: 54px; }
  .footer > div { flex-wrap: wrap; margin-top: 10px; }
  .footer-legal { flex-direction: column; gap: 14px; }
  .company-details { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
