/* ═══════════════════════ PAYTAB — Apple-style ═══════════════════════ */
:root {
  --brand: #2e6b96;
  --brand-light: #4d8fbe;
  --brand-deep: #1d4a6b;
  --ink: #0b1520;
  --ink-soft: #46525e;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --card: #ffffff;
  --radius: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }

.grad-text {
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-light) 50%, #7db8dd 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: .1s; }
.d-2 { transition-delay: .2s; }
.d-3 { transition-delay: .3s; }
.d-4 { transition-delay: .45s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(46,107,150,.55);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -10px rgba(46,107,150,.65); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { transform: translateX(4px); }
.btn-small { background: var(--brand); color: #fff; padding: 9px 20px; font-size: .88rem; }
.btn-small:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-xl { font-size: 1.2rem; padding: 18px 40px; }
.chev { font-size: 1.2em; line-height: 1; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(11,21,32,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 32px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-word { height: 26px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .25s; }
.nav-links a:hover { color: var(--brand); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 140px 24px 60px; text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfeff 0%, #eef4f9 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: float 14s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: #bcd9ee; top: -120px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: #cfe4f3; top: 20%; right: -120px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #a8cce6; bottom: -80px; left: 30%; animation-delay: -9s; }
@keyframes float { to { transform: translateY(60px) translateX(30px) scale(1.1); } }

.hero-kicker {
  display: inline-block; font-size: .85rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
  background: rgba(46,107,150,.1); padding: 6px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title { font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 800; }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink-soft); line-height: 1.55; }
.hero-cta { margin-top: 34px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-content { position: relative; z-index: 2; }

.hero-device { margin-top: 70px; perspective: 1600px; z-index: 2; animation: deviceIn 1.2s .5s var(--ease) both; }
@keyframes deviceIn { from { opacity: 0; transform: translateY(80px) scale(.96); } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(46,107,150,.4); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px;
  background: var(--brand); border-radius: 4px; transform: translateX(-50%);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 14px); opacity: .2; } }

/* ═══════════ TABLET (device 3D) ═══════════ */
.tablet {
  position: relative;
  width: min(780px, 88vw);
  aspect-ratio: 4 / 2.85;
  transform-style: preserve-3d;
  will-change: transform;
}
#heroTablet { transform: rotateX(12deg); transition: transform .25s ease-out; }
.tablet-frame {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #3a3f45, #16181b 60%);
  border-radius: 34px;
  padding: 16px;
  box-shadow:
    0 60px 100px -30px rgba(13,36,54,.45),
    0 25px 45px -20px rgba(13,36,54,.3),
    inset 0 0 0 2px rgba(255,255,255,.06);
}
.tablet-screen {
  position: relative; width: 100%; height: 100%;
  background: #f4f7fa; border-radius: 20px; overflow: hidden;
}
.tablet-glow {
  position: absolute; inset: 8% -4% -6% -4%; z-index: -1;
  background: radial-gradient(ellipse at 50% 90%, rgba(46,107,150,.35), transparent 65%);
  filter: blur(30px);
  transform: translateZ(-80px);
}

/* écrans internes */
.app-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
  padding: 4%;
}
.app-screen.is-active { opacity: 1; transform: none; }

/* — écran profils — */
.app-logo-row { display: flex; align-items: center; margin-bottom: 3%; }
.app-logo-word { height: clamp(18px, 4vw, 36px); }
.app-heading {
  font-size: clamp(.7rem, 1.6vw, 1.05rem); font-weight: 700; letter-spacing: .14em;
  color: #22303c; margin-bottom: 4%;
}
.app-heading.light { color: #fff; }
.profile-row { display: flex; gap: 2.4%; width: 92%; justify-content: center; }
.profile-card {
  flex: 1; max-width: 21%;
  background: #fff; border-radius: 12%/18%;
  box-shadow: 0 8px 22px -8px rgba(30,60,85,.18);
  padding: 4% 2%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: clamp(.55rem, 1.3vw, .9rem); font-weight: 700; color: #2b3a47; letter-spacing: .06em;
  transition: transform .3s;
}
.profile-card:hover { transform: translateY(-4px); }
.avatar {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: #e8eef4 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235f7285" stroke-width="1.6"><circle cx="12" cy="8.2" r="3.4"/><path d="M4.5 20c1.6-3.6 4.3-5.4 7.5-5.4s5.9 1.8 7.5 5.4"/></svg>') center/55% no-repeat;
}
.kiosk-bar {
  margin-top: 5%; width: 92%;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #dce9f3; text-align: center;
  padding: 2.6% 0; border-radius: 999px;
  font-size: clamp(.6rem, 1.5vw, 1rem); font-weight: 700; letter-spacing: .12em;
}
.kiosk-bar span { margin-left: 6px; }

/* — écran caisse — */
.screen-pos { flex-direction: row; gap: 2%; align-items: stretch; background: #eef2f6; }
.pos-side { display: flex; flex-direction: column; gap: 6px; width: 22%; }
.pos-cat {
  flex: 1; display: flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 4% 10%;
  font-size: clamp(.5rem, 1.2vw, .85rem); font-weight: 600; color: #3d4c5a;
  box-shadow: 0 3px 10px -4px rgba(30,60,85,.15);
}
.pos-cat.is-on { background: var(--brand); color: #fff; }
.pos-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.pos-item {
  background: #fff; border-radius: 10px; padding: 4% 6%;
  display: flex; flex-direction: column; justify-content: center;
  font-size: clamp(.5rem, 1.2vw, .85rem); color: #3d4c5a; text-align: center;
  box-shadow: 0 3px 10px -4px rgba(30,60,85,.15);
}
.pos-item b { color: var(--brand); }
.pos-cart {
  width: 26%; background: #fff; border-radius: 12px; padding: 3%;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 6px 18px -6px rgba(30,60,85,.2);
  font-size: clamp(.48rem, 1.1vw, .8rem);
}
.pos-cart-title { font-weight: 800; color: #22303c; letter-spacing: .08em; }
.pos-line { display: flex; justify-content: space-between; color: #5a6a78; }
.pos-total {
  display: flex; justify-content: space-between; font-weight: 800; color: #16232e;
  border-top: 1.5px solid #e2e9ef; padding-top: 6px; margin-top: auto;
}
.pos-pay {
  background: linear-gradient(120deg, #1f9d61, #27c076); color: #fff;
  text-align: center; border-radius: 8px; padding: 6% 0;
  font-weight: 800; letter-spacing: .1em; font-size: clamp(.5rem, 1.2vw, .8rem);
}

/* — écran borne — */
.screen-kiosk { background: linear-gradient(150deg, #123952, #2e6b96 55%, #4d8fbe); color: #fff; }
.kiosk-welcome { font-size: clamp(1.2rem, 3.4vw, 2.4rem); font-weight: 800; }
.kiosk-sub { margin-top: 6px; opacity: .8; font-size: clamp(.65rem, 1.6vw, 1.05rem); }
.kiosk-choices { display: flex; gap: 4%; margin-top: 5%; width: 80%; justify-content: center; }
.kiosk-choice {
  flex: 1; max-width: 44%;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  border-radius: 18px; padding: 5% 2%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .1em; font-size: clamp(.6rem, 1.5vw, 1rem);
}
.kiosk-choice.alt { background: rgba(255,255,255,.92); color: var(--brand-deep); }
.kiosk-emoji { font-size: clamp(1.3rem, 4vw, 2.6rem); }

/* — écran fidélité — */
.screen-loyalty { background: linear-gradient(160deg, #10293c, #1d4a6b); }
.loyalty-row { display: flex; gap: 3%; width: 90%; justify-content: center; }
.loyalty-card {
  flex: 1; max-width: 30%;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 4% 2%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff; font-weight: 700; font-size: clamp(.58rem, 1.4vw, .95rem);
}
.loyalty-card small { font-weight: 400; opacity: .65; font-size: .82em; }
.loyalty-card.hl { background: rgba(255,255,255,.95); color: var(--brand-deep); box-shadow: 0 14px 34px -10px rgba(0,0,0,.4); transform: scale(1.06); }
.loyalty-ico { font-size: clamp(1.1rem, 3vw, 2rem); }

/* — écran stats — */
.screen-stats { background: #f0f4f8; justify-content: center; gap: 4%; }
.stats-head { display: flex; gap: 3%; width: 88%; }
.stat-card {
  flex: 1; background: #fff; border-radius: 14px; padding: 3%;
  box-shadow: 0 6px 18px -8px rgba(30,60,85,.2);
  display: flex; flex-direction: column; gap: 2px;
}
.stat-card small { color: #6b7a88; font-size: clamp(.5rem, 1.2vw, .8rem); }
.stat-card b { color: var(--brand); font-size: clamp(.9rem, 2.6vw, 1.7rem); }
.stats-chart {
  width: 88%; height: 34%; display: flex; align-items: flex-end; gap: 3%;
  background: #fff; border-radius: 14px; padding: 3% 4%;
  box-shadow: 0 6px 18px -8px rgba(30,60,85,.2);
}
.bar {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  transform-origin: bottom; animation: barIn 1s var(--ease) both;
}
.bar:nth-child(2) { animation-delay: .08s; } .bar:nth-child(3) { animation-delay: .16s; }
.bar:nth-child(4) { animation-delay: .24s; } .bar:nth-child(5) { animation-delay: .32s; }
.bar:nth-child(6) { animation-delay: .4s; }  .bar:nth-child(7) { animation-delay: .48s; }
@keyframes barIn { from { transform: scaleY(0); } }
.stats-caption { color: #6b7a88; font-size: clamp(.5rem, 1.2vw, .8rem); }

/* ═══════════ SHOWCASE 3D pinned ═══════════ */
.showcase { position: relative; height: 480vh; background: linear-gradient(180deg, #eef4f9, #fff 12%); }
.showcase-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.showcase-stage {
  display: flex; align-items: center; gap: clamp(24px, 5vw, 80px);
  max-width: 1280px; padding: 0 32px;
  perspective: 2000px;
}
.tablet-showcase { width: min(680px, 52vw); flex-shrink: 0; }
.showcase-captions { position: relative; width: min(380px, 34vw); min-height: 320px; }
.caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; transform: translateY(40px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.caption.is-active { opacity: 1; transform: none; }
.caption-index { font-weight: 800; color: rgba(46,107,150,.35); font-size: 1rem; letter-spacing: .2em; }
.caption h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; }
.caption p { color: var(--ink-soft); line-height: 1.6; font-size: 1.02rem; }

.showcase-progress {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
}
.showcase-progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(46,107,150,.22); transition: all .4s var(--ease);
}
.showcase-progress .dot.is-active { background: var(--brand); height: 26px; border-radius: 6px; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: clamp(90px, 12vw, 160px) 32px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.eyebrow {
  font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-sub { margin: 20px auto 0; max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s;
}
.bento-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(30,60,85,.18);
}
.span-2 { grid-column: span 2; }
.bento-ico {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(46,107,150,.12), rgba(77,143,190,.18));
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
}
.bento-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.bento-card p { color: var(--ink-soft); line-height: 1.6; font-size: .97rem; }

/* dark section */
.section-dark {
  max-width: none;
  background: radial-gradient(ellipse at 50% 0%, #16374f, var(--ink) 70%);
  color: #fff;
}
.section-dark .section-head, .section-dark .pay-row, .section-dark .counters { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-dark .section-sub { color: #9db2c2; }
.pay-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pay-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .45s var(--ease), background .45s;
}
.pay-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.pay-card span { font-size: 1.8rem; }
.pay-card b { font-size: 1.1rem; }
.pay-card small { color: #9db2c2; }
.counters { display: flex; justify-content: center; gap: clamp(40px, 8vw, 110px); margin-top: 80px; }
.counter { text-align: center; }
.counter b { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; color: #7db8dd; }
.counter span { display: block; margin-top: 6px; color: #9db2c2; font-size: .95rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.checklist { list-style: none; margin: 28px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; color: var(--ink-soft); font-size: 1.05rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(46,107,150,.12); color: var(--brand);
  font-size: .8rem; font-weight: 800;
  display: grid; place-items: center;
}
.split-visual { perspective: 1200px; }
.mini-ui {
  background: #fff; border-radius: var(--radius); padding: 34px;
  box-shadow: 0 40px 90px -30px rgba(30,60,85,.3);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .4s var(--ease);
  transform-style: preserve-3d;
}
.split-visual:hover .mini-ui { transform: rotateY(0) rotateX(0); }
.mini-ui-title { font-weight: 800; letter-spacing: .12em; font-size: .85rem; color: #22303c; margin-bottom: 22px; }
.stock-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: .95rem; color: #3d4c5a; }
.stock-line span { width: 110px; }
.stock-line b { width: 40px; text-align: right; color: var(--brand); }
.stock-line.crit b { color: #d64545; }
.gauge { flex: 1; height: 8px; border-radius: 6px; background: #edf1f5; overflow: hidden; }
.gauge i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.stock-line.crit .gauge i { background: linear-gradient(90deg, #d64545, #e87b6f); }
.mini-badge {
  display: inline-block; margin-top: 8px;
  background: rgba(31,157,97,.1); color: #1f9d61;
  font-size: .8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}

/* ═══════════ FINAL CTA ═══════════ */
.final-cta {
  padding: clamp(100px, 14vw, 180px) 32px;
  background: linear-gradient(180deg, #fff, #eef4f9);
  text-align: center;
}
.final-logo { height: 64px; margin: 0 auto 26px; color: var(--brand); }
.final-inner h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.final-inner p { margin: 18px 0 36px; color: var(--ink-soft); font-size: 1.15rem; }

.footer {
  padding: 40px 32px 50px; text-align: center;
  border-top: 1px solid #e8edf2; background: #eef4f9;
}
.footer-logo { height: 18px; margin: 0 auto 12px; opacity: .55; }
.footer p { color: #7a8896; font-size: .88rem; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .showcase { height: 420vh; }
  .showcase-stage { flex-direction: column; gap: 30px; }
  .tablet-showcase { width: min(560px, 88vw); }
  .showcase-captions { width: 88vw; min-height: 200px; text-align: center; }
  .caption { align-items: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .pay-row { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .counters { flex-wrap: wrap; gap: 36px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .pay-row { grid-template-columns: 1fr; }
  .profile-row .profile-card:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .orb, .scroll-hint span, .bar, .hero-device { animation: none; }
}
