/* Design tokens follow the web.monobank.ua palette, radii and type scale. */
:root {
  --neutral-0: #ffffff;
  --neutral-100: #f7f7f7;
  --neutral-200: #f3f3f3;
  --neutral-300: #e5e5e5;
  --neutral-400: #cccccc;
  --neutral-600: #777777;
  --neutral-700: #505050;
  --neutral-900: #292929;
  --neutral-950: #000000;

  --purple-50: #edeffa;
  --purple-100: #e2e8fd;
  --purple-300: #abbbf6;
  --purple-500: #6d75e7;
  --purple-600: #6462dd;
  --purple-700: #4743bf;
  --purple-900: #34347b;
  --purple-950: #1f1e48;

  --green-600: #1a8925;

  --gradient: linear-gradient(160deg, #5b72ec 0%, #6462dd 45%, #6a1fdd 100%);

  --radius-m: 8px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-pill: 32px;

  --headline: "Inter", Arial, sans-serif;
  --paragraph: "Lato", "Helvetica Neue", Arial, sans-serif;

  --page-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--paragraph);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-900);
  background: var(--neutral-0);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--headline);
  margin: 0;
  color: var(--neutral-950);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--neutral-950);
  color: var(--neutral-0);
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--purple-500);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--neutral-950);
  color: var(--neutral-0);
}

.btn-primary:hover {
  background: var(--neutral-900);
}

.btn-light {
  background: var(--neutral-0);
  color: var(--neutral-950);
}

.btn-light:hover {
  box-shadow: 0 8px 24px rgb(31 30 72 / 25%);
}

.btn-outline {
  background: transparent;
  color: var(--neutral-0);
  border-color: rgb(255 255 255 / 55%);
}

.btn-outline:hover {
  background: rgb(255 255 255 / 12%);
}

.btn-sm {
  min-height: 40px;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--headline);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--neutral-0);
  font-size: 14px;
  font-weight: 900;
}

.brand-sub {
  display: none;
  color: var(--neutral-600);
  font-weight: 700;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-700);
  text-decoration: none;
}

.nav a:hover {
  background: var(--neutral-200);
  color: var(--neutral-950);
}

/* ---------- Hero ---------- */

.hero {
  padding: 16px 0 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 40px;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  color: var(--neutral-0);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-card::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgb(255 255 255 / 20%), transparent 70%);
}

.hero-card::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -180px;
  background: radial-gradient(circle, rgb(31 30 72 / 45%), transparent 70%);
}

.hero-text,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 16%);
  font-family: var(--headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  color: var(--neutral-0);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin-top: 20px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  color: rgb(255 255 255 / 88%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgb(255 255 255 / 80%);
}

.hero-facts li::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 900;
  color: var(--neutral-0);
}

/* Chat mock-up in the hero */

.chat {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--neutral-0);
  color: var(--neutral-900);
  box-shadow: 0 24px 60px rgb(31 30 72 / 40%);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--neutral-300);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-50);
  font-size: 20px;
}

.chat-name {
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 700;
}

.chat-status {
  font-size: 12px;
  color: var(--green-600);
}

.chat-body {
  display: grid;
  gap: 8px;
  padding: 16px 0 4px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.bubble-in {
  background: var(--neutral-200);
  border-bottom-left-radius: 4px;
}

.bubble-out {
  justify-self: end;
  background: var(--purple-600);
  color: var(--neutral-0);
  border-bottom-right-radius: 4px;
}

.bubble small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--neutral-600);
}

.chat-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.chat-buttons span {
  padding: 8px;
  border-radius: var(--radius-m);
  background: var(--purple-50);
  color: var(--purple-700);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-600);
}

.section h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 12px;
  font-size: 18px;
  color: var(--neutral-700);
}

.grid {
  display: grid;
  gap: 16px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--neutral-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(52 52 123 / 12%);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--neutral-0);
  font-size: 24px;
}

.card h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.card p {
  margin-top: 8px;
  color: var(--neutral-700);
}

.card-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--neutral-700);
}

.card-list li {
  position: relative;
  padding-left: 20px;
  margin-top: 6px;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-500);
}

/* Principles block on a dark violet panel */

.panel {
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  background: var(--purple-950);
  color: var(--neutral-0);
}

.panel .section-tag {
  color: var(--purple-300);
}

.panel h2 {
  color: var(--neutral-0);
}

.panel .section-lead {
  color: rgb(255 255 255 / 72%);
}

.principles {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.principle h3 {
  color: var(--neutral-0);
  font-size: 18px;
  font-weight: 700;
}

.principle p {
  margin-top: 6px;
  font-size: 15px;
  color: rgb(255 255 255 / 70%);
}

.principle-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 900;
}

/* Process steps */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-l);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-700);
  font-family: var(--headline);
  font-weight: 900;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--neutral-700);
}

/* Examples */

.example {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--purple-50);
}

.example h3 {
  font-size: 18px;
  font-weight: 700;
}

.example p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--neutral-700);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--neutral-0);
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-700);
}

/* Stack */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 10px 18px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-pill);
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 700;
}

/* FAQ */

.faq {
  display: grid;
  gap: 8px;
  max-width: 800px;
}

.faq details {
  border-radius: var(--radius-l);
  background: var(--neutral-100);
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-family: var(--headline);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--purple-600);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 24px 20px;
  color: var(--neutral-700);
}

/* Contact */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  color: var(--neutral-0);
  text-align: center;
}

.contact-card h2 {
  color: var(--neutral-0);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.contact-card p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 18px;
  color: rgb(255 255 255 / 88%);
}

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

/* Footer */

.site-footer {
  margin-top: 72px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--neutral-300);
  font-size: 14px;
  color: var(--neutral-600);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-inner a {
  color: var(--neutral-700);
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }

  .brand-sub {
    display: inline;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-card {
    padding: 56px 48px;
  }

  .section h2 {
    font-size: 36px;
  }

  .grid-2,
  .grid-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .panel,
  .contact-card {
    padding: 56px 48px;
  }

  .contact-card h2 {
    font-size: 40px;
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .hero-card {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .hero h1 {
    font-size: 56px;
  }

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

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

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

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

  .btn,
  .card {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
