/* =====================================================================
   GiftPayly V10.0 — homepage hero, feature strip and the home sections
   that follow it. Loaded on the homepage only.
   The 3D scene (assets/js/giftpayly-hero.js) draws into .gy-stage; all
   text and both buttons are ordinary HTML above it.
   ===================================================================== */

/* ---------- hero shell: the studio background runs under the navigation ---------- */
.gy-hero{position:relative;isolation:isolate;margin-top:-80px;padding-top:80px;overflow:hidden;
  background:
    radial-gradient(52% 62% at 72% 46%,rgba(167,123,255,.34) 0%,rgba(190,160,255,.16) 42%,rgba(237,231,255,0) 72%),
    radial-gradient(46% 54% at 4% 4%,rgba(196,226,255,.55) 0%,rgba(226,240,255,0) 70%),
    linear-gradient(180deg,#FBFBFF 0%,#F4F1FF 62%,#F7F8FF 100%)}
.gy-hero-bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.gy-hero-bg i{position:absolute;display:block;border-radius:50%}
.gy-hero-bg .b1{right:-14%;top:-30%;width:62%;aspect-ratio:1.5;border:clamp(40px,7vw,120px) solid rgba(255,255,255,.55);transform:rotate(-18deg);filter:blur(1px);opacity:.75}
.gy-hero-bg .b2{right:-22%;bottom:-46%;width:74%;aspect-ratio:1.9;background:radial-gradient(closest-side,rgba(205,184,255,.5),rgba(205,184,255,0));transform:rotate(-8deg)}
.gy-hero-bg .b3{left:34%;bottom:-38%;width:58%;aspect-ratio:2.6;background:radial-gradient(closest-side,rgba(255,255,255,.95),rgba(255,255,255,0))}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-hero{background:
    radial-gradient(52% 62% at 72% 46%,rgba(122,69,255,.42) 0%,rgba(89,21,245,.16) 44%,rgba(7,11,31,0) 74%),
    radial-gradient(46% 54% at 4% 4%,rgba(40,80,190,.35) 0%,rgba(7,11,31,0) 70%),
    linear-gradient(180deg,#0A0F2A 0%,#0C1132 62%,#070B1F 100%)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-hero-bg .b1{border-color:rgba(167,123,255,.08)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-hero-bg .b2{background:radial-gradient(closest-side,rgba(112,40,248,.28),rgba(112,40,248,0))}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-hero-bg .b3{display:none}

.gy-hero-in{position:relative;z-index:2;max-width:1600px;margin:0 auto;padding:0 5%;min-height:clamp(560px,calc(100vh - 250px),720px);display:flex;align-items:center;pointer-events:none}
.gy-copy{width:42%;min-width:0;padding:clamp(28px,4.4vh,56px) 0 clamp(28px,4vh,48px);pointer-events:auto}

/* ---------- promotion pill ---------- */
.gy-pill{position:relative;display:inline-flex;align-items:stretch;max-width:100%;height:52px;border-radius:999px;background:var(--gp-lav);text-decoration:none!important;box-shadow:0 0 0 1.5px rgba(112,40,248,.22),0 14px 30px -20px rgba(89,21,245,.7);overflow:hidden;isolation:isolate}
.gy-pill .a{display:inline-flex;align-items:center;gap:10px;padding:0 20px 0 18px;border-radius:999px;background:var(--gp-grad);color:#fff;font:750 1.04rem/1 var(--gp-font);letter-spacing:-.012em;white-space:nowrap}
.gy-pill .a svg{width:20px;height:20px;fill:#fff;flex:none}
.gy-pill .a b{font-weight:750}
.gy-pill .b{display:inline-flex;align-items:center;gap:12px;padding:0 20px 0 16px;color:var(--gp-ink);font:600 1.04rem/1 var(--gp-font);letter-spacing:-.012em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gy-arr{width:20px;height:20px;fill:none;stroke:var(--gp-brand);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .22s ease}
.gy-pill:hover .gy-arr{transform:translateX(3px)}
.gy-pill::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(105deg,rgba(255,255,255,0) 42%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 58%);transform:translateX(-120%);animation:gySweep 9s ease-in-out 2s infinite;pointer-events:none}
@keyframes gySweep{0%,82%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-pill .b{color:#EEF0FB}

/* ---------- headline ---------- */
.gy-h1{margin:clamp(18px,2.6vh,30px) 0 0;font:800 clamp(2.5rem,5.05vw,5.05rem)/1.04 var(--gp-disp);letter-spacing:-.045em;color:var(--gp-ink)}
.gy-h1 span{display:block}
.gy-h1 .l2{position:relative;width:max-content;max-width:100%;padding-bottom:.16em;background:linear-gradient(96deg,#4A0FE0 0%,#6A22F7 38%,#9A4DFF 78%,#B86BFF 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#5915F5;filter:drop-shadow(0 6px 10px rgba(89,21,245,.16))}
.gy-swoosh{position:absolute;left:32%;bottom:-.1em;width:76%;height:.32em;overflow:visible}
.gy-sub{margin:clamp(14px,2vh,22px) 0 0;max-width:33em;font:500 clamp(1.02rem,1.36vw,1.36rem)/1.5 var(--gp-font);letter-spacing:-.012em;color:var(--gp-ink)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-h1 .l2{background:linear-gradient(96deg,#8E5BFF 0%,#A77BFF 50%,#D0A6FF 100%);-webkit-background-clip:text;background-clip:text}

/* ---------- benefits ---------- */
.gy-benefits{list-style:none;margin:clamp(16px,2.4vh,26px) 0 0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px 0}
.gy-benefits li{display:inline-flex;align-items:center;gap:8px;padding:0 clamp(10px,1vw,18px);font:650 clamp(.88rem,1.02vw,1.04rem)/1.2 var(--gp-font);letter-spacing:-.012em;color:var(--gp-ink);white-space:nowrap;border-left:1.5px solid rgba(9,20,57,.14)}
.gy-benefits li:first-child{padding-left:0;border-left:0}
.gy-benefits svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--gp-brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gy-benefits .k1 svg{fill:var(--gp-btc);stroke:none}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-benefits li{border-left-color:rgba(255,255,255,.16)}

/* ---------- the two buttons ---------- */
.gy-cta{display:flex;flex-wrap:wrap;gap:16px 20px;margin-top:clamp(22px,3.4vh,38px)}
.gy-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;height:66px;min-width:min(276px,100%);padding:0 28px;border-radius:19px;font:750 1.24rem/1 var(--gp-font);letter-spacing:-.02em;text-decoration:none!important;white-space:nowrap;transition:transform .22s ease,box-shadow .22s ease}
.gy-btn>svg:first-child{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gy-btn .gy-arr{width:24px;height:24px}
.gy-btn:hover{transform:translateY(-2px) scale(1.02)}
.gy-btn:hover .gy-arr{transform:translateX(4px)}
.gy-btn-buy{background:var(--gp-grad);color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 18px 30px -16px rgba(89,21,245,.95)}
.gy-btn-buy .gy-arr{stroke:#fff}
.gy-btn-buy:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 24px 36px -16px rgba(89,21,245,1)}
.gy-btn-sell{background:#fff;color:var(--gp-ink)!important;box-shadow:0 0 0 1.5px rgba(112,40,248,.12),0 18px 30px -18px rgba(89,21,245,.55)}
.gy-btn-sell>svg:first-child{stroke:var(--gp-brand)}
.gy-btn-sell:hover{box-shadow:0 0 0 1.5px rgba(112,40,248,.3),0 24px 36px -18px rgba(89,21,245,.7)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-btn-sell{background:#131A40;color:#fff!important;box-shadow:0 0 0 1.5px rgba(167,123,255,.3)}
html[data-surface="storefront"]:not([data-theme="light"]) :is(.gy-btn-sell>svg:first-child,.gy-btn-sell .gy-arr,.gy-pill .gy-arr){stroke:#A77BFF}

/* ---------- the scene ---------- */
.gy-scene{position:absolute;inset:0;z-index:1}
.gy-stage{position:absolute;inset:0}
.gy-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .7s ease}
.gy-scene.is-live .gy-canvas{opacity:1}
.gy-poster{position:absolute;right:0;top:50%;width:min(60%,1040px);height:auto;transform:translateY(-46%);opacity:0;animation:gyFade .6s ease .05s forwards;pointer-events:none}
@keyframes gyFade{to{opacity:1}}
.gy-tip{position:absolute;left:0;top:0;z-index:3;display:inline-flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-radius:999px;background:#fff;color:var(--gp-ink)!important;font:700 .86rem/1 var(--gp-font);text-decoration:none!important;white-space:nowrap;box-shadow:0 0 0 1px rgba(89,21,245,.1),0 14px 28px -14px rgba(64,38,160,.6);pointer-events:auto;will-change:transform}
.gy-tip[hidden]{display:none}
.gy-tip span{padding:7px 12px;border-radius:999px;background:var(--gp-grad);color:#fff;font-weight:750}
.gy-ctl{position:absolute;right:clamp(14px,4vw,70px);bottom:calc(100% + 10px);z-index:3;display:flex;align-items:center;gap:8px}
.gy-demo,.gy-pause{height:30px;padding:0 12px;border-radius:999px;font:650 .74rem/30px var(--gp-font);letter-spacing:.01em;color:var(--gp-soft);background:rgba(255,255,255,.72);border:0;box-shadow:0 0 0 1px rgba(89,21,245,.1);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.gy-pause{cursor:pointer}.gy-pause:hover{color:var(--gp-brand-d);background:#fff}
.gy-pause[hidden]{display:none}
html[data-surface="storefront"]:not([data-theme="light"]) :is(.gy-demo,.gy-pause){background:rgba(19,26,64,.7);color:#C0C5E0;box-shadow:0 0 0 1px rgba(167,123,255,.2)}

/* ---------- feature strip ---------- */
.gy-wrap{position:relative;z-index:2;max-width:1680px;margin:0 auto;padding:0 clamp(14px,4vw,70px) clamp(18px,2.6vw,34px)}
.gy-strip{list-style:none;margin:0;padding:0 clamp(6px,1vw,18px);display:grid;grid-template-columns:repeat(5,1fr);border-radius:26px;background:rgba(255,255,255,.92);box-shadow:0 0 0 1px rgba(255,255,255,.9),0 22px 50px -30px rgba(64,38,160,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.gy-strip li{position:relative;min-width:0}
.gy-strip li+li::before{content:"";position:absolute;left:0;top:30%;bottom:30%;width:1.5px;background:rgba(9,20,57,.1)}
.gy-strip a{display:flex;align-items:center;justify-content:center;gap:16px;min-height:104px;padding:14px clamp(8px,1vw,18px);color:var(--gp-ink)!important;text-decoration:none!important;font:600 clamp(.84rem,1.02vw,1.06rem)/1.32 var(--gp-font);letter-spacing:-.015em}
.gy-strip a span{min-width:0}
.gy-strip a b{display:block;font-weight:750;white-space:nowrap}
.gy-strip i{flex:none;display:grid;place-items:center;width:clamp(48px,4.2vw,66px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 34% 28%,#fff 0%,#EFE8FF 46%,#DDCFFF 100%);box-shadow:inset 0 0 0 1px rgba(112,40,248,.1),0 8px 18px -10px rgba(89,21,245,.5);transition:transform .25s ease}
.gy-strip a:hover i{transform:translateY(-2px) scale(1.05)}
.gy-strip a:hover b{color:var(--gp-brand-d)}
.gy-strip svg{width:54%;height:54%;fill:none;stroke:var(--gp-brand);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-strip{background:rgba(19,26,64,.86);box-shadow:0 0 0 1px rgba(167,123,255,.16)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-strip li+li::before{background:rgba(255,255,255,.12)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-strip i{background:radial-gradient(circle at 34% 28%,#3A2C8A,#1E1A55);box-shadow:inset 0 0 0 1px rgba(167,123,255,.3)}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-strip svg{stroke:#C4ABFF}
html[data-surface="storefront"]:not([data-theme="light"]) .gy-strip a:hover b{color:#fff}

/* ---------- shop by country row ---------- */
.gy-ctry{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:10px}
.gy-ctry a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:var(--gp-paper);box-shadow:0 0 0 1px var(--gp-line);color:var(--gp-text)!important;text-decoration:none!important;min-width:0;transition:box-shadow .2s,transform .2s}
.gy-ctry a:hover{box-shadow:0 0 0 1.5px var(--gp-brand2),0 12px 24px -16px rgba(89,21,245,.6);transform:translateY(-1px)}
.gy-ctry img{flex:none;border-radius:4px}
.gy-ctry b{font-weight:700;font-size:.93rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gy-ctry small{margin-left:auto;font-weight:700;font-size:.74rem;color:var(--gp-muted)}

/* ---------- tablets: copy narrower, scene keeps the right side ---------- */
@media (max-width:1700px){.gy-cta{gap:14px}.gy-btn{min-width:0;height:62px;padding:0 22px;font-size:1.14rem;gap:12px}.gy-btn>svg:first-child{width:25px;height:25px}}
@media (max-width:1320px){
  .gy-copy{width:45%}
  .gy-btn{height:60px;min-width:0;padding:0 22px;font-size:1.1rem;gap:11px;border-radius:17px}
  .gy-btn>svg:first-child{width:24px;height:24px}
  .gy-benefits li{padding:0 13px}
  .gy-pill{height:46px}.gy-pill .a,.gy-pill .b{font-size:.94rem}.gy-pill .a{padding:0 16px 0 14px}.gy-pill .b{padding:0 16px 0 12px;gap:8px}
  .gy-strip a{gap:11px;min-height:92px}
}
/* ---------- phones and small tablets: copy, then the scene, then the strip ---------- */
@media (max-width:1023px){
  .gy-hero{margin-top:-124px;padding-top:124px;background:
    radial-gradient(90% 46% at 50% 72%,rgba(167,123,255,.36) 0%,rgba(190,160,255,.14) 50%,rgba(237,231,255,0) 78%),
    radial-gradient(80% 40% at 0% 0%,rgba(196,226,255,.5) 0%,rgba(226,240,255,0) 70%),
    linear-gradient(180deg,#FBFBFF 0%,#F4F1FF 70%,#F7F8FF 100%)}
  .gy-hero-bg .b1{right:-40%;top:auto;bottom:6%;width:150%;border-width:46px}
  .gy-hero-in{display:block;min-height:0;padding:0 clamp(16px,5vw,40px)}
  .gy-copy{width:auto;padding:22px 0 6px}
  .gy-h1{font-size:clamp(2.25rem,10.4vw,3.4rem);margin-top:18px}
  .gy-sub{font-size:1.02rem;max-width:36em}
  .gy-benefits{gap:8px 0}.gy-benefits li{padding:0 11px;font-size:.84rem;gap:6px}.gy-benefits svg{width:20px;height:20px}
  .gy-cta{gap:10px;margin-top:20px}
  .gy-btn{flex:1 1 0;height:56px;padding:0 12px;font-size:1rem;gap:8px;border-radius:16px}
  .gy-btn>svg:first-child{width:22px;height:22px}.gy-btn .gy-arr{width:18px;height:18px}
  .gy-pill{height:42px}.gy-pill .a,.gy-pill .b{font-size:.84rem}.gy-pill .a{padding:0 13px 0 11px;gap:7px}.gy-pill .a svg{width:16px;height:16px}.gy-pill .b{padding:0 13px 0 10px;gap:6px}.gy-pill .gy-arr{width:16px;height:16px}
  .gy-scene{position:relative;inset:auto;height:clamp(330px,96vw,460px);margin-top:4px}
  .gy-poster{position:absolute;left:50%;right:auto;top:50%;width:min(112%,620px);transform:translate(-50%,-50%)}
  .gy-ctl{right:14px;bottom:calc(100% + 6px)}
  .gy-wrap{padding:6px 12px 18px}
  .gy-strip{grid-template-columns:repeat(5,minmax(132px,1fr));overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:20px;padding:0 4px}
  .gy-strip::-webkit-scrollbar{display:none}
  .gy-strip li{scroll-snap-align:start}
  .gy-strip a{flex-direction:column;text-align:center;gap:8px;min-height:0;padding:14px 8px;font-size:.8rem}
  .gy-strip a b{white-space:normal}
  .gy-strip i{width:44px}
  .gy-strip li+li::before{top:22%;bottom:22%}
}
@media (max-width:420px){
  .gy-benefits li{padding:0 8px;font-size:.78rem}.gy-benefits li:nth-child(3){padding-left:0;border-left:0}
  .gy-pill .b{font-size:.76rem;padding:0 10px 0 8px;gap:4px}.gy-pill .a{font-size:.76rem;padding:0 10px 0 9px;gap:5px}
}
@media (max-width:360px){.gy-pill .a,.gy-pill .b{font-size:.69rem}.gy-pill .a{padding:0 8px 0 7px}.gy-pill .a svg{display:none}.gy-pill .b{padding:0 8px 0 6px}.gy-pill .gy-arr{display:none}.gy-h1{font-size:2.05rem}}
@media (max-width:350px){.gy-cta{flex-direction:column}.gy-btn{flex:none;width:100%}}
@media (prefers-reduced-motion:reduce){.gy-pill::after{animation:none}.gy-btn,.gy-strip i,.gy-arr{transition:none}}
