/* ZillyBuy seller landing page — static build of "ZB Wireframe Desktop/Mobile".
   Desktop is the base; everything under the 860px query is the mobile wireframe. */

:root {
  --blue: #005cdc;
  --blue-hover: #004fbf;
  --blue-tint: #e4effd;
  --blue-tint-2: #eef4fd;
  --ink: #0d0f14;
  --ink-2: #1d2433;
  --muted: #5b6170;
  --line: #e6ebf3;
  --band: #e8f2fd;
  --dark: #0b0b0c;
  --topbar: #111318;
  --radius: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn .ico { font-size: 16px; transition: transform .2s; }
.btn:hover .ico, .link-arrow:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 8px 20px -6px rgba(0, 92, 220, .55);
  transform: translateY(-1px);
}
.btn:focus-visible, .link-arrow:focus-visible, .footer__mail:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn--lg { height: 44px; padding: 0 44px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.link-arrow .ico { font-size: 16px; transition: transform .2s; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--topbar);
  color: #f2f3f5;
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
}
.topbar__msg, .topbar__links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__msg .ico { font-size: 15px; margin-right: 4px; }
.topbar__dot { opacity: .8; }
.topbar__sep { opacity: .5; }
.topbar__links a:hover { text-decoration: underline; }
.ico--lg { font-size: 17px; margin-left: 4px; }

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

.header {
  position: relative;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 58px;
}
.logo img { height: 30px; width: auto; }

.nav {
  display: flex;
  gap: 34px;
  margin-left: 58px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a { position: relative; transition: color .2s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 38% 70%, rgba(205, 225, 252, .45), transparent 70%),
    linear-gradient(90deg, #fbfdff 0%, #f3f8ff 45%, #eaf3ff 100%);
}

/* The banner is a finished composite (photo + floating chips), so it is shown
   whole at its own aspect ratio and pinned to the right edge. */
.hero__media img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(58vw, 1100px);
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: min(38.5vw, 731px);
  padding-top: 28px;
  padding-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.pill .ico { font-size: 17px; color: var(--blue); }

.hero__title {
  margin-top: 16px;
  font-size: clamp(38px, 4.35vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title--mobile { display: none; }

.hero__lead {
  max-width: 400px;
  margin-top: 14px;
  color: #343843;
  font-size: 17.5px;
  line-height: 1.33;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
}

.stats {
  display: flex;
  margin-top: 22px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 30px;
}
.stat + .stat {
  padding-left: 0;
}
.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.stat__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e2eefd;
  color: var(--blue);
  font-size: 22px;
}
.stat__icon .ico { stroke-width: 1.8; }

/* ---------- Features ---------- */

.features { padding: 32px 0 22px; }

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature {
  position: relative;
  display: block;
  min-height: 170px;
  padding: 12px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 26px;
}
.feature__icon .ico { stroke-width: 1.7; }
.feature h3 {
  margin-top: 18px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

/* ---------- Steps ---------- */

.steps {
  padding: 40px 0 44px;
  background: linear-gradient(180deg, #e9f3fe, #eef6ff);
}
.steps__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.steps__list {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
  margin-top: 28px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 22px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.step__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
  position: relative;
  z-index: 1;
}
.step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-tint-2);
  color: var(--blue);
  font-size: 26px;
  flex: none;
}
.step__icon .ico { stroke-width: 1.7; }
.step__text { margin-left: 4px; }
.step__text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.step__text small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.step__arrow {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 18px;
}
.step__arrow .ico + .ico { display: none; }
.step__arrow .ico { animation: nudge 1.8s ease-in-out infinite; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background: url("assets/cta-boxes.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 112px;
}
.cta__icon {
  width: 52px;
  height: 46px;
  margin: 0 32px 0 18px;
  flex: none;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta__icon .cta__trend { stroke: #d6e6ff; }
.cta__copy h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta__copy p {
  margin-top: 4px;
  color: #d9dbe0;
  font-size: 15px;
}
.cta__btn {
  margin-left: auto;
  margin-right: 130px;
  padding: 0 28px;
  height: 44px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  border-top: 1px solid #1d1f24;
  color: #a3a7b0;
  font-size: 13.5px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d9dbe0;
  transition: color .2s;
}
.footer__mail .ico { font-size: 18px; color: #7fb0ff; }
.footer__mail strong { color: #fff; font-weight: 600; }
.footer__mail:hover strong { text-decoration: underline; }

/* ---------- Motion ----------
   Hero plays on load; everything marked [data-reveal] fades up as it scrolls
   into view (script.js adds .is-visible). Hidden only under .js, so the page is
   fully visible if the script never runs. */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateX(28px) scale(1.02); }
  to   { opacity: 1; transform: none; }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

.header__inner { animation: fade-down .6s ease-out both; }
.hero__media img { animation: hero-in 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
.pill, .hero__title, .hero__lead, .hero__ctas, .stats {
  animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) both;
}
.pill        { animation-delay: .05s; }
.hero__title { animation-delay: .15s; }
.hero__lead  { animation-delay: .25s; }
.hero__ctas  { animation-delay: .35s; }
.stats       { animation-delay: .45s; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger siblings that reveal together. */
.features__grid > :nth-child(2) { --d: .08s; }
.features__grid > :nth-child(3) { --d: .16s; }
.features__grid > :nth-child(4) { --d: .24s; }
.section-sub                     { --d: .08s; }
.steps__list > :nth-child(2) { --d: .1s; }
.steps__list > :nth-child(3) { --d: .2s; }
.steps__list > :nth-child(4) { --d: .3s; }
.steps__list > :nth-child(5) { --d: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Mid widths: keep the hero copy clear of the banner ---------- */

@media (max-width: 1100px) {
  .nav { gap: 22px; margin-left: 36px; }
  .hero__title { font-size: 40px; }
  .hero__lead { max-width: 340px; font-size: 16px; }
  .hero__ctas { flex-wrap: wrap; gap: 14px 24px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: 1fr 40px 1fr 40px 1fr; }
  .step { flex-wrap: wrap; align-items: center; padding: 20px; }
  .step__text { flex-basis: 100%; margin: 6px 0 0; }
  .cta__btn { margin-right: 0; }
  .cta::after { opacity: .35; }
}

/* ---------- Mobile wireframe ---------- */

@media (max-width: 860px) {
  .container { padding: 0 20px; }

  .topbar, .nav { display: none; }
  .header__actions .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
  .header { border-bottom: 0; }
  .header__inner { height: 64px; }
  .logo img { height: 32px; }

  /* Mobile reorders the hero: copy → banner → stats. */
  .hero {
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(80% 50% at 85% 40%, rgba(205, 225, 252, .55), transparent 70%),
      linear-gradient(180deg, #f5f9ff 0%, #f1f7ff 60%, #fff 100%);
  }
  .hero__inner { display: contents; }
  .hero__copy { order: 1; padding: 14px 20px 0; }
  .hero__media { order: 2; margin-top: 18px; }
  .stats { order: 3; }

  .hero__media img {
    position: static;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }

  .pill { height: 30px; font-size: 12.5px; }
  .hero__title--desktop { display: none; }
  .hero__title--mobile { display: block; }
  .hero__title {
    margin-top: 12px;
    font-size: clamp(32px, 9.4vw, 44px);
    line-height: 1.08;
  }
  .hero__lead {
    max-width: none;
    margin-top: 10px;
    font-size: clamp(15.5px, 4.3vw, 18px);
    line-height: 1.38;
  }
  .hero__ctas { margin-top: 18px; }
  .hero__ctas .btn {
    width: 86%;
    max-width: 380px;
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
  }
  .link-arrow { display: none; }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    margin: 12px 0 0;
    padding: 0 16px;
  }
  .stat { gap: 8px; padding: 0; }
  .stat__icon { width: 44px; height: 44px; font-size: 19px; }
  .stat strong { font-size: 17px; }
  .stat small { font-size: 11.5px; }

  .features { padding: 26px 0 18px; }
  .features .container { padding: 0 12px; }
  .section-title { font-size: clamp(20px, 5.6vw, 26px); }
  .section-sub { display: none; }
  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
  }
  .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 12px 10px 12px 12px;
    border-radius: 12px;
  }
  .feature__icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    flex: none;
  }
  .feature h3 {
    margin: 0;
    max-width: 7.5em;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
  }
  .feature p { display: none; }

  .steps { padding: 16px 0 18px; }
  .steps .container { padding: 0 12px; }
  .steps__on { display: none; }
  .steps__in { color: var(--blue); }
  .steps__title { font-size: clamp(17px, 4.8vw, 22px); }
  .steps__list {
    grid-template-columns: 1fr 10px 1fr 10px 1fr;
    align-items: stretch;
    margin-top: 12px;
  }
  .step {
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 12px 6px 14px;
    text-align: center;
  }
  .step__num { width: 22px; height: 22px; font-size: 12px; }
  .step__icon {
    width: auto;
    height: auto;
    margin: 4px 0 0;
    background: none;
    font-size: 28px;
  }
  .step__text { margin: 0; flex-basis: auto; }
  .step__text strong { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
  .step__text small { display: none; }
  .step__arrow { align-self: start; padding-top: 24px; font-size: 13px; }
  .step__arrow .ico:first-child { display: none; }
  .step__arrow .ico + .ico { display: block; }

  .cta {
    margin-top: 0;
    border-radius: 22px 22px 0 0;
  }
  .cta::after, .cta__icon { display: none; }
  .cta__inner {
    flex-direction: column;
    padding: 24px 20px 24px;
    text-align: center;
  }
  .cta__copy h2 { font-size: clamp(18px, 5.2vw, 24px); }
  .cta__copy p { max-width: 300px; margin: 6px auto 0; font-size: 13.5px; }
  .cta__btn {
    width: 100%;
    max-width: 480px;
    height: 48px;
    margin: 18px 0 0;
    border-radius: 10px;
    font-size: 16px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 22px;
    text-align: center;
  }
  .footer__ondc { display: block; margin-top: 2px; }
}
