/* ===== MeVend — Showcase stylesheet ===== */

:root {
  /* Color ramps */
  --primary-50:  #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-300: #7dd3fc;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;

  --accent-300: #fcd34d;
  --accent-500: #f59e0b;
  --accent-600: #d97706;

  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;

  --neutral-50:  #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --neutral-950: #0c0a09;

  /* Semantic */
  --bg:        var(--neutral-50);
  --bg-soft:   #ffffff;
  --bg-dark:   var(--neutral-900);
  --ink:       var(--neutral-900);
  --ink-soft:  var(--neutral-700);
  --ink-mute:  var(--neutral-500);
  --line:      var(--neutral-200);
  --primary:   var(--primary-600);
  --primary-ink: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing (8px system) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow: 0 10px 30px -12px rgba(28, 25, 23, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(28, 25, 23, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== Layout ===== */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.container--narrow { width: min(760px, 92vw); }
.section { padding: var(--s-8) 0; }

.section__head { max-width: 720px; margin: 0 0 var(--s-6); }
.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin: 0 0 var(--s-2);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}
.section__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--ink);
  color: var(--neutral-50);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--neutral-800);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--neutral-300);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.nav__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--neutral-50) !important;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); background: var(--neutral-800); }

.nav.is-scrolled {
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-soft);
  padding: var(--s-2) var(--s-4) var(--s-4);
  gap: var(--s-2);
  font-weight: 500;
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav__mobile.is-open { max-height: 320px; }
.nav__mobile a { color: var(--ink-soft); padding: 0.5rem 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-7) var(--s-2);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(125, 211, 252, 0.55), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(252, 211, 77, 0.35), transparent 55%),
    radial-gradient(800px 500px at 10% 80%, rgba(16, 185, 129, 0.18), transparent 55%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(28, 25, 23, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__content { max-width: 820px; }
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin: 0 0 var(--s-3);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  color: var(--neutral-900);
}
.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto var(--s-5);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
}
.hero__scroll-line {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--neutral-400), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ===== Intro ===== */
.intro { background: var(--bg-soft); border-top: 1px solid var(--line); }
.intro__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--s-6);
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}
.intro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 980px;
  margin: 0 auto;
}
.intro__grid p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}
.intro__accent {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem !important;
  color: var(--neutral-900) !important;
}

/* ===== Steps ===== */
.steps { background: var(--bg); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.step:hover::before { transform: scaleX(1); }
.step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary-500);
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 var(--s-2);
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}
.step p {
  color: var(--ink-soft);
  margin: 0 0 var(--s-2);
}
.step__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.step__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.step__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-500);
}
.step__note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--neutral-900) !important;
  margin-top: var(--s-2) !important;
}
.step__note--accent { color: var(--accent-600) !important; }

/* ===== Why ===== */
.why { background: var(--neutral-900); color: var(--neutral-100); }
.why .section__eyebrow { color: var(--accent-500); }
.why .section__title { color: var(--neutral-50); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.why__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why__card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
.why__card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 var(--s-2);
  color: var(--neutral-50);
  letter-spacing: -0.01em;
}
.why__card p { color: var(--neutral-300); margin: 0 0 var(--s-2); }
.why__lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.why__lines li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--neutral-200);
}
.why__lines li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
}
.why__punch {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--neutral-50) !important;
}

/* ===== Gift ===== */
.gift { background: var(--bg-soft); border-top: 1px solid var(--line); }
.gift__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.gift__chip {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--neutral-100);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: default;
}
.gift__chip:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--neutral-50);
  border-color: var(--ink);
}
.gift__close {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--neutral-900);
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Manifesto ===== */
.manifesto {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  text-align: center;
}
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}
.manifesto__big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  color: var(--neutral-900);
  margin: var(--s-5) 0 0;
  letter-spacing: -0.02em;
}

/* ===== Contact ===== */
.contact { background: var(--bg); }
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius);
  background: var(--neutral-50);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
  background: #fff;
}
.field input.invalid, .field textarea.invalid {
  border-color: var(--error-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.contact__status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
  text-align: center;
}
.contact__status.ok { color: var(--success-500); }
.contact__status.err { color: var(--error-500); }

/* ===== Footer ===== */
.footer {
  background: var(--neutral-950);
  color: var(--neutral-400);
  padding: var(--s-5) 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--neutral-50);
  display: block;
  margin-bottom: 0.3rem;
}
.footer__brand p { margin: 0; font-size: 0.92rem; max-width: 280px; }
.footer__links { display: flex; gap: var(--s-3); flex-wrap: wrap; font-size: 0.92rem; }
.footer__links a { color: var(--neutral-400); transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--neutral-50); }
.footer__copy { font-size: 0.85rem; color: var(--neutral-500); margin: 0; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside grids */
.steps__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.why__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.intro__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.intro__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.gift__grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.gift__grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.gift__grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.gift__grid .reveal:nth-child(5) { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }
  .intro__grid { grid-template-columns: 1fr; gap: var(--s-2); }
  .steps__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-7) 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .contact__form { padding: var(--s-4); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
