/* ==========================================================================
   FinTech Express — Homepage
   ========================================================================== */

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(880px 460px at 8% -10%, var(--brand-100) 0%, transparent 60%),
    radial-gradient(700px 420px at 96% 8%, var(--accent-200) 0%, transparent 58%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--border);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand-800);
}

.hero__badge-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
}

.hero__badge-dot svg {
  width: 13px;
  height: 13px;
}

.hero h1 {
  margin-top: var(--sp-5);
}

.hero h1 span {
  display: block;
}

.hero__subtitle {
  max-width: 46ch;
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--muted);
}

.hero__search {
  margin-top: var(--sp-8);
  max-width: 520px;
}

.hero__search .btn {
  flex: none;
}

@media (max-width: 480px) {
  .hero__search .btn span {
    display: none;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-500);
  flex: none;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  width: 100%;
  height: auto;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual img {
    animation: none;
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Brand marquee
   -------------------------------------------------------------------------- */

.brand-strip {
  padding-block: var(--sp-8);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-strip__track {
  display: flex;
  gap: var(--sp-12);
  width: max-content;
  animation: marquee 42s linear infinite;
}

.brand-strip:hover .brand-strip__track {
  animation-play-state: paused;
}

.brand-strip img {
  height: 30px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}

.brand-strip img:hover {
  opacity: 1;
  filter: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-strip__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Trust row
   -------------------------------------------------------------------------- */

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-12);
}

.trust-item {
  display: flex;
  gap: var(--sp-4);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-700);
}

.trust-item__icon svg {
  width: 21px;
  height: 21px;
}

.trust-item h3 {
  font-size: var(--fs-md);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .trust-row { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Horizontal product rail
   -------------------------------------------------------------------------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);
  scrollbar-width: thin;
}

.rail > * {
  scroll-snap-align: start;
}

@media (min-width: 1100px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.step:hover {
  border-color: var(--brand-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step__num {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-100);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.step__art {
  width: 100%;
  max-width: 250px;
  margin-bottom: var(--sp-5);
}

.step h3 {
  position: relative;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.step p {
  position: relative;
  color: var(--muted);
  font-size: var(--fs-base);
}

.steps__connector {
  display: none;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Payments
   -------------------------------------------------------------------------- */

.payments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.payments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-4);
}

.payment-chip {
  display: grid;
  place-items: center;
  height: 78px;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.payment-chip:hover {
  border-color: var(--brand-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.payment-chip img {
  max-height: 34px;
  width: auto;
}

@media (max-width: 900px) {
  .payments { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats {
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 163, 96, 0.45) 0%, transparent 68%);
}

.stats::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 242, 78, 0.22) 0%, transparent 68%);
}

.stats__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-8);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-400);
}

.stat__label {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .stats__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #f4b400;
}

.testimonial__quote {
  flex: 1;
  color: var(--ink-2);
  font-size: var(--fs-base);
  line-height: 1.65;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  flex: none;
}

.testimonial__name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
}

.testimonial__role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ block
   -------------------------------------------------------------------------- */

.faq-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-block__aside {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

@media (max-width: 900px) {
  .faq-block { grid-template-columns: minmax(0, 1fr); }

  .faq-block__aside { position: static; }
}

/* --------------------------------------------------------------------------
   Closing CTA + newsletter
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-950) 62%);
  color: #fff;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 340px;
  background: radial-gradient(circle, rgba(198, 242, 78, 0.25) 0%, transparent 68%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 52ch;
  margin: var(--sp-5) auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--fs-lg);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
}

.newsletter h2 {
  font-size: var(--fs-2xl);
}

.newsletter p {
  margin-top: var(--sp-3);
  color: var(--muted);
}

.newsletter__form {
  display: flex;
  gap: var(--sp-3);
}

.newsletter__form .input {
  flex: 1;
}

.newsletter__consent {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.newsletter__msg {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.newsletter__msg.is-ok    { color: var(--brand-600); }
.newsletter__msg.is-error { color: var(--danger); }

@media (max-width: 860px) {
  .newsletter { grid-template-columns: minmax(0, 1fr); }

  .newsletter__form { flex-direction: column; }
}
