:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #edf3fb;
  --surface-soft-strong: #e7eef9;
  --text: #122033;
  --muted: #627189;
  --line: #d9e3f0;
  --line-strong: #c8d5e7;
  --blue: #2f6bff;
  --blue-dark: #214fd8;
  --blue-soft: rgba(47, 107, 255, 0.12);
  --shadow: 0 18px 46px rgba(17, 33, 58, 0.09);
  --shadow-strong: 0 28px 64px rgba(17, 33, 58, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes auraShift {
  0%,
  100% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translate3d(3%, -3%, 0) scale(1.08);
    opacity: 0.8;
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.1);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(47, 107, 255, 0);
  }
}

@keyframes shineSweep {
  0% {
    transform: translateX(-150%) skewX(-18deg);
  }

  60%,
  100% {
    transform: translateX(220%) skewX(-18deg);
  }
}

@keyframes cardSurfaceFlash {
  0% {
    opacity: 0;
    transform: translate3d(-18%, 8%, 0) rotate(-8deg);
  }

  35% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: translate3d(22%, -10%, 0) rotate(-8deg);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(105, 150, 255, 0.14) 0%, rgba(105, 150, 255, 0.03) 26%, transparent 50%),
    radial-gradient(circle at 90% 12%, rgba(47, 107, 255, 0.1) 0%, rgba(47, 107, 255, 0.02) 24%, transparent 46%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
  color: var(--text);
  font-family: 'Onest', 'Segoe UI', sans-serif;
  font-feature-settings: 'cv05' 1, 'cv11' 1;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(920px, calc(100% - 32px));
}

.hero {
  position: relative;
  padding: 24px 0 62px;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -90px auto auto 50%;
  width: min(680px, 78vw);
  height: min(680px, 78vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 134, 255, 0.22) 0%, rgba(77, 134, 255, 0.06) 34%, transparent 66%),
    radial-gradient(circle at 68% 62%, rgba(31, 79, 209, 0.16) 0%, rgba(31, 79, 209, 0.03) 38%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  transform: translateX(-50%);
  animation: auraShift 8s ease-in-out infinite;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 30px rgba(17, 33, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 14px;
  z-index: 20;
  animation: slideDownIn 0.65s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
  position: relative;
  animation: floatDrift 4.6s ease-in-out infinite;
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
}

.brand-mark::before {
  inset: 7px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.88);
}

.brand-mark::after {
  width: 14px;
  height: 7px;
  left: 13px;
  top: 13px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--text);
  transform: translateY(-1px);
}

.lang-switch,
.selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.lang-switch button,
.selector button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lang-switch button.active,
.selector button.active {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(17, 33, 58, 0.08);
}

.lang-switch button:hover,
.selector button:hover {
  transform: translateY(-1px);
}

.hero-content {
  margin: 54px auto 0;
  max-width: 780px;
  text-align: center;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 251, 255, 0.72) 100%);
  box-shadow:
    0 28px 70px rgba(17, 33, 58, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.hero-content h1,
.hero-content p,
.hero-content .hero-actions {
  opacity: 0;
  animation: fadeUpIn 0.7s ease-out forwards;
}

.hero-content h1 {
  animation-delay: 0.14s;
}

.hero-content p {
  animation-delay: 0.24s;
}

.hero-content .hero-actions {
  animation-delay: 0.34s;
}

.hero-content h1,
.section-head h2 {
  margin: 0;
  font-family: 'Unbounded', 'Onest', sans-serif;
  letter-spacing: -0.02em;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.04;
}

.hero-content p,
.section-head p,
.card p,
.reason-card p,
.footer p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.hero-content p {
  margin: 18px auto 0;
  max-width: 700px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.button.primary {
  background: linear-gradient(135deg, #2f6bff 0%, #4f88ff 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(47, 107, 255, 0.24);
}

.button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.34) 50%, transparent 100%);
  pointer-events: none;
  animation: shineSweep 4.8s ease-in-out infinite;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: default;
  opacity: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  box-shadow: 0 22px 34px rgba(47, 107, 255, 0.28);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 24px rgba(17, 33, 58, 0.1);
}

.button.secondary:disabled {
  color: var(--muted);
  border-color: var(--line);
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  box-shadow: none;
}

.section {
  padding: 28px 0 64px;
}

.section.section-soft {
  background:
    linear-gradient(180deg, rgba(238, 244, 251, 0) 0%, rgba(236, 243, 251, 0.92) 18%, rgba(236, 243, 251, 0.92) 82%, rgba(238, 244, 251, 0) 100%);
}

.section-head {
  margin-bottom: 26px;
}

.section-head.center {
  text-align: center;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin-bottom: 0;
}

.section-head p {
  margin: 12px 0 0;
  max-width: 620px;
}

.card-grid,
.reason-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.single-card-wrap {
  display: flex;
  justify-content: center;
}

.single-card-wrap .card {
  width: min(100%, calc((100% - 18px) / 2));
}

.centered-card {
  width: calc((100% - 18px) / 2);
  max-width: 100%;
}

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

.card,
.reason-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card::after,
.reason-card::after {
  content: '';
  position: absolute;
  inset: -22% auto auto -28%;
  width: 60%;
  height: 140%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 28%,
    rgba(255, 255, 255, 0.34) 48%,
    rgba(255, 255, 255, 0.08) 64%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.card h3,
.reason-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #f7fbff 0%, #eaf1fb 100%);
  border: 1px solid rgba(201, 214, 232, 0.65);
  color: var(--blue-dark);
  transition: transform 0.24s ease, background-color 0.24s ease;
  animation: softPulse 5.2s ease-in-out infinite;
}

.platform-glyph {
  font-size: 22px;
  line-height: 1;
}

.card p,
.reason-card p {
  margin: 0 0 14px;
}

.card .selector {
  margin: 0 0 14px;
  background: linear-gradient(180deg, #edf3fb 0%, #e8eff9 100%);
  border-color: rgba(217, 227, 240, 0.8);
}

.card .muted {
  margin-top: 0;
}

.card .button.full {
  margin-top: auto;
}

.card:hover,
.reason-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.card:hover .platform-badge,
.reason-card:hover span {
  transform: translateY(-1px) scale(1.04);
}

.reason-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #f7fbff 0%, #e9f1fb 100%);
  border: 1px solid rgba(201, 214, 232, 0.65);
  color: var(--blue-dark);
  font-weight: 700;
  transition: transform 0.24s ease, background-color 0.24s ease;
  animation: floatDrift 5s ease-in-out infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-list > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stagger-list > .card,
.stagger-list > .reason-card {
  transform: translateY(26px) scale(0.965);
  filter: blur(5px);
  transition:
    opacity 0.58s ease,
    transform 0.58s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.58s ease;
}

.stagger-list.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-list.is-visible > .card,
.stagger-list.is-visible > .reason-card {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.stagger-list.is-visible > .card::after,
.stagger-list.is-visible > .reason-card::after {
  animation: cardSurfaceFlash 0.78s ease-out both;
}

.stagger-list.is-visible > *:nth-child(1) {
  transition-delay: 0.04s;
}

.stagger-list.is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-list.is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-list.is-visible > *:nth-child(4) {
  transition-delay: 0.22s;
}

.footer {
  padding: 8px 0 44px;
}

.footer p {
  margin: 0;
  text-align: center;
  color: #73829b;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll,
  .stagger-list > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .reason-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'brand spacer lang'
      'nav nav nav';
    border-radius: var(--radius-md);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    flex: 0 0 auto;
    gap: 8px;
  }

  .brand span {
    font-size: 0.86rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand-mark::before {
    inset: 6px;
    border-radius: 8px;
  }

  .brand-mark::after {
    width: 12px;
    height: 6px;
    left: 11px;
    top: 11px;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-self: stretch;
    gap: 6px;
    min-width: 0;
  }

  .nav a {
    width: 100%;
    min-height: 32px;
    min-width: 0;
    padding: 6px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    background: rgba(241, 245, 251, 0.9);
    border: 1px solid rgba(219, 228, 240, 0.9);
  }

  .lang-switch {
    grid-area: lang;
    width: auto;
    flex: 0 0 auto;
    gap: 4px;
    padding: 3px;
    justify-self: end;
  }

  .lang-switch button {
    min-height: 28px;
    min-width: 34px;
    padding: 0 9px;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
  }

  .selector button {
    text-align: center;
  }

  .hero-content {
    margin-top: 38px;
    text-align: left;
  }

  .hero-content p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card,
  .reason-card {
    padding: 18px;
  }

  .card p,
  .reason-card p,
  .muted {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .platform-badge,
  .reason-card span {
    width: 40px;
    height: 40px;
  }

  .platform-glyph {
    font-size: 20px;
  }

  .selector {
    width: 100%;
    gap: 4px;
  }

  .selector button {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .card .button.full {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.92rem;
    line-height: 1.3;
    white-space: normal;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    padding: 7px 8px;
  }

  .brand span {
    font-size: 0.8rem;
  }

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

  .nav a {
    min-height: 30px;
    min-width: 0;
    padding: 5px 6px;
    font-size: 0.68rem;
  }

  .lang-switch {
    padding: 2px;
    gap: 3px;
  }

  .lang-switch button {
    min-height: 26px;
    min-width: 30px;
    padding: 0 7px;
    font-size: 0.72rem;
  }

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

  .single-card-wrap .card {
    width: 100%;
  }
}
