@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --blue: #5865f2;
  --blue-dark: #4652d8;
  --navy: #0b1020;
  --ink: #172036;
  --muted: #687287;
  --line: #e5e8f0;
  --surface: #f7f8fc;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color: var(--ink);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; }

header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(223, 227, 237, .88);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 1px 0 rgba(18, 25, 43, .025);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #161d30;
  font: 800 20px Manrope;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #5969f5, #8c65e7);
  box-shadow: 0 6px 16px rgba(84, 99, 231, .25), inset 0 1px rgba(255,255,255,.28);
}

nav { display: flex; gap: 28px; margin: auto; }
nav a, footer a { color: #5f687c; font-size: 13px; text-decoration: none; }
nav a { position: relative; padding: 8px 0; }
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(.65);
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(75, 88, 218, .2), inset 0 1px rgba(255,255,255,.18);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:active { transform: scale(.97); }
.button.small { min-height: 38px; padding: 9px 15px; }
.button.secondary { color: #394159; background: #fff; border-color: #d8dce7; box-shadow: 0 5px 15px rgba(20, 29, 52, .05); }

.actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

h1 { max-width: 1000px; margin: 24px auto; font: 800 clamp(44px, 6vw, 78px)/1.02 Manrope; letter-spacing: -.05em; }
h1 em { color: var(--blue); font-style: normal; }
h3 { color: #202940; font: 700 18px Manrope; }

.logos {
  display: flex;
  justify-content: center;
  gap: 5vw;
  padding: 27px 6vw;
  border-block: 1px solid var(--line);
  color: #7b8395;
  background: linear-gradient(180deg, #fff, #fbfbfd);
}

.logos span { color: #9aa1af; }
.logos b { color: #414b60; font-weight: 600; }

.section {
  max-width: 1400px;
  margin: auto;
  padding: 118px 6vw;
}

.section-heading { max-width: 760px; margin: auto; text-align: center; }
.section-heading > span, .trust > div > span, .cta > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-heading h2, .trust h2, .cta h2 {
  margin: 17px 0;
  color: #171f34;
  font: 800 clamp(34px, 4vw, 52px)/1.1 Manrope;
  letter-spacing: -.038em;
}

.section-heading p, .steps p, .trust p, .developer-grid p { color: var(--muted); line-height: 1.68; }

.steps, .developer-grid, .plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.steps article, .developer-grid article, .plans article {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 32px rgba(26, 35, 62, .035);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}

.steps article::before, .developer-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, .35), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.steps b { color: var(--blue); font: 700 11px Manrope; letter-spacing: .08em; }

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8vw;
  max-width: none;
  padding: 110px 8vw;
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(87, 104, 241, .18), transparent 28%),
    linear-gradient(145deg, #0a0f1d, #0d1426);
}

.trust h2 { color: #fff; }
.trust p { color: #aeb7cc; }
.text-link { color: #aeb7ff; font-weight: 700; text-decoration: none; }

.code {
  overflow: hidden;
  border: 1px solid rgba(107, 123, 172, .3);
  border-radius: 15px;
  background: rgba(15, 24, 45, .92);
  box-shadow: 0 28px 75px rgba(0, 0, 0, .34), inset 0 1px rgba(255,255,255,.04);
}

.code > div { padding: 13px; border-bottom: 1px solid rgba(97, 114, 159, .24); }
.code i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #59657d; }
.code i:first-child { background: #e07178; }
.code i:nth-child(2) { background: #dfb65e; }
.code i:nth-child(3) { background: #5abf91; }
.code pre { overflow: auto; margin: 0; padding: 24px 28px 28px; color: #e8ecf8; font-size: 13px; line-height: 1.7; }
.code pre span { color: #7f8da9; }

.developer { background: radial-gradient(circle at 50% 55%, #f2f4ff 0, transparent 48%); }
.developer-grid { grid-template-columns: 1fr 1fr; }
.developer-grid article { min-height: 175px; }
.developer-grid h3 { margin-top: 4px; }

.currencies {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 13px;
}

.currencies b {
  padding: 8px 10px;
  border: 1px solid #e2e5ed;
  border-radius: 7px;
  color: #30394d;
  background: #f5f6f9;
  font-size: 11px;
}

.currencies i { color: #a0a6b3; font-style: normal; }

.pricing {
  max-width: none;
  background:
    radial-gradient(circle at 50% 0, rgba(89, 102, 241, .07), transparent 35%),
    #f7f8fc;
}

.pricing .plans { max-width: 1100px; margin: 56px auto 20px; }
.plans article { background: #fff; }
.plans article > strong { display: block; margin: 18px 0; color: #161e32; font: 800 38px Manrope; }
.plans strong small { color: var(--muted); font: 500 12px 'DM Sans'; }
.plans .button { width: 100%; margin-top: 18px; }
.plans .featured { z-index: 1; border: 1px solid rgba(88, 101, 242, .72); transform: translateY(-10px); box-shadow: 0 24px 55px rgba(70, 83, 203, .13); }
.popular { position: absolute; top: 18px; right: 18px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fine { color: var(--muted); font-size: 12px; text-align: center; }

.cta {
  position: relative;
  overflow: hidden;
  padding: 108px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(135deg, #5663ee, #805be0);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.cta > * { position: relative; }
.cta > span { color: #e0e4ff; }
.cta h2 { max-width: 800px; margin: 18px auto; color: #fff; }
.cta .actions { margin-top: 30px; }
.button.light { color: #4e5bd6; background: #fff; border-color: #fff; box-shadow: 0 10px 28px rgba(32, 35, 100, .2); }
.button.outline { color: #fff; background: transparent; border-color: rgba(224, 228, 255, .55); box-shadow: none; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 46px 6vw;
  border-top: 1px solid var(--line);
}

footer p { color: var(--muted); }
footer div { display: flex; gap: 20px; }
footer small { grid-column: 1 / -1; color: #8a91a1; }

.motion-ready [data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: translate 460ms var(--ease-out), opacity 360ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}

.motion-ready [data-reveal][data-visible] {
  opacity: 1;
  translate: 0 0;
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover::after { opacity: 1; transform: scaleX(1); }
  .button:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 11px 28px rgba(67, 78, 196, .26), inset 0 1px rgba(255,255,255,.18); transform: translateY(-1px); }
  .button.secondary:hover { color: #293149; background: #f8f9fc; border-color: #cbd0dc; box-shadow: 0 8px 20px rgba(20, 29, 52, .08); }
  .button.light:hover { color: #404bc3; background: #f8f9ff; border-color: #fff; }
  .button.outline:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.72); }
  .steps article:hover, .developer-grid article:hover { border-color: #d6daea; box-shadow: 0 18px 42px rgba(25, 34, 62, .075); transform: translateY(-2px); }
  .steps article:hover::before, .developer-grid article:hover::before { opacity: 1; }
  .plans article:hover { border-color: #d5d9e7; box-shadow: 0 18px 45px rgba(25, 34, 62, .075); transform: translateY(-2px); }
  .plans .featured:hover { transform: translateY(-12px); }
}

@media (max-width: 850px) {
  header { height: 64px; padding: 0 20px; }
  nav { display: none; }
  .section { padding: 86px 22px; }
  .steps, .plans, .trust { grid-template-columns: 1fr; }
  .developer-grid { grid-template-columns: 1fr; }
  .plans .featured { transform: none; }
  .currencies, .logos { justify-content: flex-start; overflow: auto; scrollbar-width: none; }
  .currencies::-webkit-scrollbar, .logos::-webkit-scrollbar { display: none; }
  .trust { padding: 82px 24px; }
  footer { grid-template-columns: 1fr; }
  .actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  header .button.small { padding-inline: 12px; font-size: 12px; }
  .logos { gap: 24px; }
  .steps article, .developer-grid article, .plans article { padding: 24px; }
  .developer-grid article { min-height: auto; }
  .code pre { padding: 20px; font-size: 11px; }
  .currencies { justify-content: flex-start; }
  .cta { padding: 86px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready [data-reveal] { opacity: 1; translate: none; transition: none; }
  nav a::after { transition: opacity 160ms ease; transform: none; }
  .button, .steps article, .developer-grid article, .plans article { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
  .button:active { transform: none; }
}
