:root {
  --bg: #0e1117;
  --bar: rgba(14, 17, 23, 0.78);
  --surface: #151a24;
  --line: #232a3a;
  --ink: #f2f4f8;
  --soft: #8a93a6;
  --blue: #2f5bff;
  --blue-hover: #4d74ff;
  --blue-link: #7fa0ff;
  --blue-soft: #4d74ff;
  --inset: #1b2130;
  --display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--blue-link);
  outline-offset: 4px;
  border-radius: 8px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
}

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  text-decoration: none;
  flex: none;
}

.logo__word {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1px;
}

.logo__word b {
  color: var(--blue);
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  text-decoration-color: var(--blue);
}

.ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--blue-soft);
  transition: border-color 0.2s ease;
}

.nav a:hover .ico {
  border-color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--blue-hover);
}

.button--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  flex: none;
}

.link {
  font-weight: 700;
  color: var(--blue-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(127, 160, 255, 0.35);
}

.link:hover {
  text-decoration-color: var(--blue-link);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(40px, 7.6vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--soft);
}

.sample {
  display: inline-flex;
  margin-top: 36px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--display);
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.sample span {
  color: var(--soft);
}

.sample u {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}

.phone {
  margin: 0;
  text-align: center;
}

.phone__frame {
  width: 300px;
  padding: 10px;
  border-radius: 48px;
  background: #05070b;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 2px #1a1f2b, 0 40px 80px -30px rgba(47, 91, 255, 0.35);
}

.phone__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

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

.pay,
.start {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.method img {
  flex: none;
}

.method h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.method p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 15px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--soft);
}

.foot nav {
  display: flex;
  gap: 24px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero h1 {
    margin: 0 auto;
  }

  .actions {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .phone__frame {
    width: min(280px, 78vw);
  }

  .bar__in {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 16px 0;
  }

  .button--small {
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 8px;
  }

  .nav a {
    padding: 10px 0 12px;
    font-size: 14px;
  }

  html {
    scroll-padding-top: 116px;
  }

  .methods,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav a,
  .button {
    transition: none;
  }
}
