/* Hero Ecosystem — 2×2 animated card grid */

.hero-eco {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Background SVG — orbits and connectors visible between cards */
.hero-eco-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-eco-orbit {
  transform-origin: 300px 300px;
  animation: eco-spin 45s linear infinite;
}
.hero-eco-orbit-inner {
  transform-origin: 300px 300px;
  animation: eco-spin 30s linear infinite reverse;
}
.hero-eco-connector {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: eco-draw 1.2s ease forwards;
  animation-delay: calc(.4s + var(--ci) * .18s);
}
.hero-eco-dot {
  animation: eco-dot-pop .6s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.9s + var(--di) * .16s);
}

/* Center hub — floating with orbit glow */
.hero-eco-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E4E8F0;
  box-shadow: 0 6px 24px -6px rgba(12,15,26,0.10), 0 0 0 8px rgba(228,232,240,0.3);
  display: grid;
  place-items: center;
  z-index: 5;
  animation: eco-hub-in .7s cubic-bezier(.2,.8,.2,1) both .1s;
}
.hero-eco-hub img {
  width: 32px; height: 32px;
  object-fit: contain;
}

/* 2×2 card grid — generous gap for connectors to show */
.hero-eco-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 52px 40px;
  padding: 8px;
}

/* Individual cards — large, airy, illustration-forward */
.hero-eco-card {
  background: #fff;
  border: 1px solid #E8ECF2;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px -4px rgba(12,15,26,0.05);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .2s ease;
  animation: eco-card-in .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.15s + var(--i) * .13s);
}
.hero-eco-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px -14px rgba(12,15,26,0.13), 0 0 0 1px var(--tone);
  border-color: var(--tone);
}

/* Illustration area — large and prominent, edge-to-edge */
.hero-eco-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, var(--wash) 0%, #F6F8FB 50%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-eco-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hero-eco-card:hover .hero-eco-card-visual img {
  transform: scale(1.05);
}

/* Card info — icon + text inline */
.hero-eco-card-info {
  padding: 14px 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hero-eco-card-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: transform .24s ease;
}
.hero-eco-card:hover .hero-eco-card-icon {
  transform: scale(1.1) rotate(-4deg);
}
.hero-eco-card-text { flex: 1; min-width: 0; }
.hero-eco-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 4px;
}
.hero-eco-card-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-2);
  margin: 0;
}

/* Keyframes */
@keyframes eco-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes eco-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes eco-dot-pop {
  from { r: 0; opacity: 0; }
  to   { r: 6; opacity: 1; }
}
@keyframes eco-hub-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-12deg); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
@keyframes eco-card-in {
  from { opacity: 0; transform: translateY(24px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eco-orbit, .hero-eco-orbit-inner,
  .hero-eco-connector, .hero-eco-dot,
  .hero-eco-hub, .hero-eco-card {
    animation: none !important;
  }
  .hero-eco-connector { stroke-dashoffset: 0; }
}

/* Nav + hero + grids responsive */

/* How It Works — tabbed flows */
.hiw-section { padding: 104px 0; }
.hiw-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.hiw-title { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -0.032em; font-weight: 800; margin: 16px 0 14px; text-wrap: balance; }
.hiw-sub { font-size: 17px; color: var(--fg-2); max-width: 620px; margin: 0 auto; }

.hiw-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  background: #F4F6FA; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px; width: fit-content; max-width: 100%; margin: 0 auto 44px;
}
.hiw-tab {
  height: 42px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--fg-2); letter-spacing: -0.005em;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.hiw-tab:hover { color: var(--fg); }
.hiw-tab.active { background: var(--acc); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--acc) 60%, transparent); }

.hiw-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 40px 44px 46px; box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: no-preference) {
  .hiw-panel { animation: hiw-fade .45s ease backwards; }
}
@keyframes hiw-fade { from { transform: translateY(10px); } to { transform: none; } }

.hiw-panel-head { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 30px; margin-bottom: 40px; border-bottom: 1px solid var(--border-2); }
.hiw-panel-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; }
.hiw-panel-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.hiw-panel-intro { font-size: 16px; line-height: 1.6; color: var(--fg-2); max-width: 760px; }

/* Connected stepper */
.hiw-stepper { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hiw-track {
  position: absolute; top: 30px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--acc-wash), var(--acc), var(--acc-wash));
  opacity: .5;
}
.hiw-step {
  position: relative; text-align: center; padding: 0 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .hiw-step { animation: hiw-step-in .5s cubic-bezier(.2,.8,.2,1) backwards; }
}
@keyframes hiw-step-in { from { transform: translateY(12px); } to { transform: none; } }
.hiw-node {
  position: relative; width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%; background: #fff; border: 2px solid var(--acc);
  display: grid; place-items: center; color: var(--acc);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--acc) 55%, transparent);
  transition: transform .2s ease;
}
.hiw-node-icon { display: grid; place-items: center; }
.hiw-badge {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--ff-mono); border: 2px solid #fff;
}
.hiw-step:hover .hiw-node { transform: translateY(-3px) scale(1.04); }
.hiw-step-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.012em; margin-bottom: 8px; }
.hiw-step-body { font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* Illustrated step cards (QR flow) */
.hiw-panel--illus .hiw-panel-head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-2);
}
.hiw-panel-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  background: var(--acc-wash);
  color: var(--acc);
}
.hiw-illus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hiw-illus-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .hiw-illus-card { animation: hiw-step-in .5s cubic-bezier(.2,.8,.2,1) backwards; }
}
.hiw-illus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--acc) 35%, var(--border));
}
.hiw-illus-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, var(--acc-wash) 0%, #fff 72%);
  padding: 14px 10px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hiw-illus-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.hiw-illus-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--ff-mono);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.hiw-illus-body {
  padding: 16px 14px 18px;
  border-top: 1px solid var(--border-2);
  flex: 1;
}
.hiw-illus-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
  color: var(--fg);
}
.hiw-illus-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* Outlet Types grid */
.outlet-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; cursor: pointer;
  transition: border-color .2s ease, box-shadow .22s ease, transform .22s ease;
}
.outlet-tile:hover { border-color: var(--c-blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.outlet-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-blue-wash); color: var(--c-blue);
  transition: background .2s ease, color .2s ease, transform .22s ease;
}
.outlet-tile:hover .outlet-icon { background: var(--c-blue); color: #fff; transform: scale(1.06); }
.outlet-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--fg); line-height: 1.3; }

/* Why GRUBBRR — capabilities grid */
.why-section { padding: 104px 0; background: #FAFBFD; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.why-title { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -0.032em; font-weight: 800; margin: 16px 0 14px; text-wrap: balance; }
.why-sub { font-size: 17px; color: var(--fg-2); max-width: 560px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 34px 30px 32px; text-align: center; overflow: hidden;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.why-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--tone); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.why-card:hover { transform: translateY(-4px); border-color: var(--tone); box-shadow: var(--shadow-lg); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; transition: transform .25s ease, background .2s ease, color .2s ease;
}
.why-card:hover .why-icon { background: var(--tone) !important; color: #fff !important; transform: scale(1.06); }
.why-card-title { font-size: 20px; font-weight: 700; letter-spacing: -0.018em; margin-bottom: 12px; }
.why-card-body { font-size: 15px; line-height: 1.6; color: var(--fg-2); max-width: 300px; margin: 0 auto; }

/* Products cards */
.prod-card {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 30px 30px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.prod-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--tone);
  transform: scaleY(0); transform-origin: top;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--tone); }
.prod-card.active { border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 16%, transparent), var(--shadow-md); }
.prod-card.active::before { transform: scaleY(1); }
.prod-card .prod-foot { opacity: 0; transform: translateX(-4px); transition: opacity .22s ease, transform .22s ease, color .2s ease; }
.prod-card:hover .prod-foot, .prod-card.active .prod-foot { opacity: 1; transform: none; color: var(--tone); }
.prod-card:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .hero-eco { max-width: 500px; margin-left: auto !important; margin-right: auto !important; }
  .hero-eco-grid { gap: 36px 28px; padding: 6px; }
  .feat-row  { grid-template-columns: 1fr !important; gap: 36px !important; direction: ltr !important; }
  .ind-grid, .outlet-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .hw-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .trust-row { grid-template-columns: repeat(3, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid > div { border-right: none !important; border-bottom: 1px solid var(--border); }
  .t-card { grid-template-columns: 1fr !important; padding: 36px 28px !important; }
  .foot-grid { grid-template-columns: 1fr !important; }
  .cta-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cta-box { padding: 48px 24px !important; }
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .why-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hiw-stepper { grid-template-columns: repeat(2, 1fr) !important; gap: 36px 24px; }
  .hiw-track { display: none; }
  .hiw-illus-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .hiw-panel { padding: 32px 28px 36px !important; }
}
@media (max-width: 560px) {
  .hero-eco { max-width: 100%; }
  .hero-eco-grid { gap: 28px 18px; padding: 10px; }
  .hero-eco-card { border-radius: 14px; }
  .hero-eco-card-visual { aspect-ratio: 4 / 3; }
  .hero-eco-card-info { padding: 10px 12px 14px; gap: 10px; }
  .hero-eco-card-icon { width: 30px; height: 30px; border-radius: 8px; }
  .hero-eco-card-title { font-size: 14px; }
  .hero-eco-card-desc { font-size: 12px; }
  .hero-eco-hub { width: 52px; height: 52px; border-radius: 50%; }
  .hero-eco-hub img { width: 24px; height: 24px; }
  .ind-grid, .outlet-grid, .hw-grid, .trust-row { grid-template-columns: 1fr 1fr !important; }
  .foot-grid { grid-template-columns: 1fr !important; }
  .foot-grid + div, footer .container > div:last-child { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
  .prod-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .hiw-section { padding: 72px 0; }
  .hiw-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hiw-tabs::-webkit-scrollbar { display: none; }
  .hiw-tab { flex-shrink: 0; padding: 0 16px; font-size: 13px; height: 38px; }
  .hiw-panel { padding: 24px 16px 28px !important; border-radius: 18px; }
  .hiw-panel-head { flex-direction: column; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; }
  .hiw-stepper { grid-template-columns: 1fr !important; gap: 8px; text-align: left; }
  .hiw-step { display: grid; grid-template-columns: 62px 1fr; column-gap: 18px; align-items: start; text-align: left; padding: 14px 0; }
  .hiw-node { margin: 0; grid-row: span 2; }
  .hiw-step-title { margin-top: 4px; }
  .hiw-illus-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .hiw-illus-card { display: grid; grid-template-columns: 100px 1fr; }
  .hiw-illus-img-wrap { aspect-ratio: 1; padding: 8px; border-right: 1px solid var(--border-2); border-top: none; }
  .hiw-illus-body { border-top: none; padding: 12px 12px 12px 0; display: flex; flex-direction: column; justify-content: center; }
  .outlet-tile { padding: 24px 16px; }
  .why-card { padding: 28px 22px; }
  .prod-card { padding: 26px 22px; }
  .cta-box { padding: 32px 18px !important; border-radius: 18px; }
}
