/*-----------------------------------*\
  Manager App - landing
  Concept : "le ticket de caisse vivant"
\*-----------------------------------*/



/*-----------------------------------*\
  #TOKENS
\*-----------------------------------*/

:root {
  /* brand */
  --sun: #ffc100;
  --sun-600: #f0a800;
  --sun-200: #ffe38a;
  --sun-100: #fff2c7;

  --violet-950: #120a21;
  --violet-900: #170e29;
  --violet-800: #241639;
  --violet-700: #35204f;
  --violet-500: #6a45a0;

  --paper: #fffdf8;
  --cream: #fff8e6;
  --white: #ffffff;
  --ink: #150f24;
  --text: #433d56;
  --muted: #6d6783;
  --line: rgba(21, 15, 36, 0.1);
  --mint: #1fbf75;

  /* type */
  --ff-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --ff-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 24px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}



/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

html {
  font-family: var(--ff-body);
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
address { font-style: normal; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
ion-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; pointer-events: none; }

section[id] { scroll-margin-top: 64px; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #d8d2e6; border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #b9b0cf; }



/*-----------------------------------*\
  #SHARED
\*-----------------------------------*/

.container {
  width: min(1200px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-700);
  background: var(--sun-100);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-block-end: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun-600);
  box-shadow: 0 0 0 0 rgba(240, 168, 0, 0.6);
  animation: ping 2.2s ease-out infinite;
}

.eyebrow-dark { color: var(--sun-200); background: rgba(255, 193, 0, 0.12); }

.section-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  margin-block-end: 22px;
}

.section-title-light { color: var(--white); }

.section-text {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.75;
  max-width: 60ch;
}

.section-text-light { color: rgba(255, 255, 255, 0.78); }

.section-head { text-align: center; margin-block-end: clamp(40px, 6vw, 64px); }
.section-head .section-title { margin-inline: auto; max-width: 18ch; margin-block-end: 0; }

/* highlighted word: marker on light bg */
.hl {
  background: linear-gradient(transparent 60%, var(--sun) 60% 92%, transparent 92%) no-repeat 0 0 / var(--hl, 100%) 100%;
  transition: background-size 0.9s var(--ease) 0.35s;
  padding-inline: 0.05em;
  margin-inline: -0.05em;
}

.js .hl { --hl: 0%; }
.js .in .hl,
.js .is-ready .hero-title .hl,
.js .hl.in { --hl: 100%; }

/* buttons */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn ion-icon { font-size: 1.25em; }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}

.btn:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-sm { padding: 11px 20px; font-size: 0.95rem; }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 10px 28px -10px rgba(255, 193, 0, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.btn-sun:hover { background: #ffcf33; box-shadow: 0 18px 36px -12px rgba(255, 193, 0, 0.85), inset 0 -3px 0 rgba(0, 0, 0, 0.1); }

.btn-arrow { transition: transform 0.35s var(--ease-spring); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: var(--sun); background: rgba(255, 193, 0, 0.1); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--violet-700); }

.btn-outline-dark { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* scroll reveal (only when JS is on, so no-JS visitors still see everything) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(240, 168, 0, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(240, 168, 0, 0); }
}



/*-----------------------------------*\
  #SCROLL PROGRESS
\*-----------------------------------*/

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--sun), #ff8a00);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}



/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 14px;
  transition: background-color 0.35s, box-shadow 0.35s, padding 0.35s var(--ease);
}

.header.active {
  padding-block: 8px;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -22px rgba(21, 15, 36, 0.5);
}

.header.active .brand-logo { box-shadow: 0 4px 10px -4px rgba(240, 168, 0, 0.55); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px -6px rgba(255, 193, 0, 0.8);
  transition: transform 0.5s var(--ease-spring);
}

.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }

.brand-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s;
}

.header.active .brand-name { color: var(--ink); }

/* mobile nav */
.nav-toggle {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sun);
  display: grid;
  place-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.navbar {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--gutter);
  right: var(--gutter);
  background: var(--violet-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(18, 10, 33, 0.7);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.3s, transform 0.45s var(--ease), visibility 0.3s;
}

.navbar.active { opacity: 1; visibility: visible; transform: none; }

.navbar-list { display: grid; gap: 2px; }

.navbar-link {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}

.navbar-link:hover,
.navbar-link.active { background: rgba(255, 193, 0, 0.14); color: var(--sun); }

.navbar .btn { width: 100%; margin-block-start: 8px; padding-block: 15px; }

@media (min-width: 992px) {
  .nav-toggle { display: none; }

  .navbar {
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navbar-list { display: flex; align-items: center; gap: 6px; }

  .navbar-link {
    position: relative;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.82);
    background: none !important;
  }

  .navbar-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--sun);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
  }

  .navbar-link:hover,
  .navbar-link.active { color: var(--white); }

  .navbar-link:hover::after,
  .navbar-link.active::after { transform: scaleX(1); }

  .header.active .navbar-link { color: var(--text); }
  .header.active .navbar-link:hover,
  .header.active .navbar-link.active { color: var(--ink); }

  .navbar .btn { width: auto; margin: 0 0 0 10px; }
}



/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  position: relative;
  isolation: isolate;
  background: var(--violet-900);
  color: var(--white);
  padding-block: clamp(112px, 13vw, 144px) clamp(100px, 11vw, 140px);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-bg::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.blob-1 {
  width: min(620px, 80vw);
  aspect-ratio: 1;
  right: -10%;
  top: -12%;
  background: radial-gradient(circle, rgba(255, 193, 0, 0.5), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-2 {
  width: min(680px, 90vw);
  aspect-ratio: 1;
  left: -18%;
  bottom: -26%;
  background: radial-gradient(circle, rgba(124, 77, 196, 0.55), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent 75%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.12); }
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 7vw, 64px);
  align-items: center;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-block-end: 24px;
}

.badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-v2 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.25; transform: scale(0.7); } }

.hero-kicker { color: var(--sun-200); font-weight: 500; font-size: 0.98rem; }

.hero-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1rem + 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-block-end: 26px;
  text-wrap: balance;
}

.hero-title .hl {
  color: var(--sun);
  background: none;
  position: relative;
  white-space: nowrap;
}

.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 25 1 50 8 T 100 7 T 150 8 T 198 5' fill='none' stroke='%23ffc100' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 calc(100% - var(--hl, 100%)) 0 0);
  transition: clip-path 1s var(--ease) 0.8s;
}

.hero-text {
  max-width: 54ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-block-end: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-end: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 18px clamp(20px, 4vw, 44px);
  padding-block-start: 28px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
}

.hero-stats li { display: grid; gap: 2px; }

.hero-stats strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-stats li > span { font-size: 0.82rem; line-height: 1.35; color: rgba(255, 255, 255, 0.62); max-width: 16ch; }

/* hero media */
.hero-media {
  position: relative;
  perspective: 1200px;
  justify-self: center;
  width: min(100%, 560px);
}

.media-glow {
  position: absolute;
  inset: 6% -4% -4% 8%;
  border-radius: 34px;
  background: linear-gradient(140deg, var(--sun), #ff8a00);
  transform: rotate(5deg);
  opacity: 0.95;
}

.media-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.5s var(--ease);
  aspect-ratio: 1 / 1.04;
}

.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  line-height: 1.25;
  white-space: nowrap;
}

.chip b { display: block; font-size: 0.9rem; }
.chip small { display: block; font-family: var(--ff-mono); font-size: 0.78rem; color: var(--muted); }

.chip-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--mint);
  color: var(--white);
}

.chip-ico-sun { background: var(--sun); color: var(--ink); }

.chip-sale { top: 7%; right: -3%; animation: float 5s ease-in-out infinite, pop 0.8s var(--ease-spring) 1.2s backwards; }
.chip-stock { bottom: 26%; right: -4%; animation: float 6s ease-in-out -2s infinite, pop 0.8s var(--ease-spring) 1.7s backwards; }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pop { from { opacity: 0; scale: 0.4; } }

/* the receipt that prints itself */
.ticket {
  position: absolute;
  z-index: 4;
  left: -4%;
  bottom: -9%;
  width: clamp(158px, 38vw, 208px);
  rotate: -5deg;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.4));
}

.ticket-paper {
  --s: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: clamp(0.62rem, 0.5rem + 0.35vw, 0.74rem);
  line-height: 1.45;
  padding: 14px 14px calc(var(--s) + 14px);
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
  animation: print 9s steps(18, end) infinite;
}

@keyframes print {
  0% { clip-path: inset(0 0 100% 0); }
  36% { clip-path: inset(0 0 0 0); }
  90% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}

.t-head { text-align: center; font-weight: 500; letter-spacing: 0.06em; padding-block-end: 8px; border-bottom: 1.5px dashed #b8b2c8; margin-block-end: 8px; }
.t-head small { display: block; font-size: 0.82em; letter-spacing: 0; color: var(--muted); }

.t-lines li { display: flex; justify-content: space-between; gap: 8px; padding-block: 1px; }
.t-lines b { font-weight: 500; }

.t-total { margin-block: 6px; padding-block: 5px !important; border-block: 1.5px dashed #b8b2c8; font-weight: 500; }
.t-total b { background: var(--sun); padding-inline: 4px; border-radius: 3px; }

.t-foot { text-align: center; margin-block-start: 8px; color: var(--muted); }

@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero-media { justify-self: end; width: min(100%, 500px); }
  .ticket { left: -14%; bottom: -7%; }
  .chip-sale { right: -5%; }
  .chip-stock { right: -6%; }
}

@media (max-width: 575px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .chip { padding: 8px 14px 8px 8px; }
  .chip-ico { width: 32px; height: 32px; font-size: 18px; }
  .chip-sale { right: -2%; }
  .chip-stock { display: none; }
}



/*-----------------------------------*\
  #MARQUEE
\*-----------------------------------*/

.marquee {
  position: relative;
  z-index: 5;
  margin-block: -34px;
  background: var(--sun);
  color: var(--ink);
  rotate: -1.4deg;
  scale: 1.04;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(18, 10, 33, 0.6);
}

.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; flex-shrink: 0; }

.marquee-group li {
  display: flex;
  align-items: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-block: 16px;
}

.marquee-group li::after {
  content: "\2736";
  font-size: 0.8em;
  margin-inline: clamp(20px, 3vw, 36px);
  opacity: 0.55;
}

@keyframes marquee { to { transform: translateX(-50%); } }



/*-----------------------------------*\
  #FEATURES
\*-----------------------------------*/

.features {
  padding-block-start: calc(var(--section-y) + 20px);
  background:
    radial-gradient(rgba(53, 32, 79, 0.09) 1.2px, transparent 1.4px) 0 0 / 28px 28px,
    var(--paper);
}

.features-list {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: 1fr;
}

.features-list > li { display: flex; }

.f-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}

.f-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 193, 0, 0.26), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
}

.f-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 168, 0, 0.7);
  box-shadow: 0 30px 50px -28px rgba(53, 32, 79, 0.45);
}

.f-card:hover::before { opacity: 1; }

.f-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: #a7a1ba;
  transition: color 0.3s;
}

.f-card:hover .f-num { color: var(--sun-600); }

.f-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 31px;
  color: var(--violet-700);
  background: var(--sun-100);
  margin-block-end: 24px;
  transition: transform 0.5s var(--ease-spring), background-color 0.3s, color 0.3s;
}

.f-card:hover .f-icon { transform: rotate(-9deg) scale(1.1); background: var(--sun); color: var(--ink); }

.f-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-block-end: 10px;
}

.f-text { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* 9th tile: call to action */
.f-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 220px;
  background: var(--violet-800);
  border-color: transparent;
  color: var(--white);
}

.f-card-cta::before { background: radial-gradient(300px circle at 100% 100%, rgba(255, 193, 0, 0.45), transparent 65%); opacity: 1; }
.f-card-cta:hover { border-color: transparent; box-shadow: 0 30px 50px -24px rgba(36, 22, 57, 0.8); }

.f-cta-label { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun-200); }

.f-cta-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.f-cta-go {
  align-self: flex-start;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform 0.5s var(--ease-spring);
}

.f-card-cta:hover .f-cta-go { transform: translateX(8px) rotate(-45deg); }

@media (min-width: 640px) { .features-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features-list { grid-template-columns: repeat(3, 1fr); } }



/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about { background: var(--cream); overflow: hidden; }

.about::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  border: 70px solid rgba(255, 193, 0, 0.16);
}

.about-grid { display: grid; gap: clamp(44px, 7vw, 72px); align-items: center; position: relative; }

.about-visual { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1 / 1.06; }

.about-blob {
  position: absolute;
  inset: 8% 4% 4% 6%;
  background: linear-gradient(145deg, var(--sun), #ff9d1a);
  border-radius: 42% 58% 55% 45% / 52% 42% 58% 48%;
  animation: morph 12s ease-in-out infinite;
  box-shadow: 0 40px 70px -30px rgba(240, 140, 0, 0.7);
}

@keyframes morph {
  50% { border-radius: 58% 42% 40% 60% / 45% 58% 42% 55%; transform: rotate(4deg) scale(1.03); }
}

.about-img {
  position: absolute;
  inset: -2% 0 0 0;
  width: 100%;
  height: 102%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 30px rgba(21, 15, 36, 0.3));
  /* the source photo is cropped flat at the bottom: fade it out */
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
}

.sticker {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(104px, 22vw, 132px);
  aspect-ratio: 1;
  rotate: 10deg;
}

.sticker-bg { fill: var(--violet-800); }
.sticker-text { font-family: var(--ff-mono); font-size: 11.4px; font-weight: 500; letter-spacing: 0.08em; fill: var(--sun); transform-origin: 60px 60px; animation: spin 18s linear infinite; }
.sticker-mid { font-family: var(--ff-display); font-weight: 800; font-size: 24px; fill: var(--white); }

@keyframes spin { to { transform: rotate(360deg); } }

.country-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 26px 34px; }

.country-chips li {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--violet-700);
  background: var(--white);
  border: 1px solid rgba(53, 32, 79, 0.14);
  padding: 8px 16px;
  border-radius: 999px;
}

.country-chips li:last-child { background: var(--violet-800); color: var(--sun-200); border-color: transparent; }

.about-list { display: grid; gap: 14px; }

.about-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(53, 32, 79, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.about-item:hover { transform: translateX(8px); box-shadow: 0 20px 36px -24px rgba(53, 32, 79, 0.5); }

.item-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--sun);
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-spring);
}

.about-item:hover .item-icon { transform: rotate(-10deg) scale(1.08); }

.item-title { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); margin-block-end: 4px; line-height: 1.2; }
.item-text { font-size: 0.98rem; line-height: 1.6; color: var(--muted); }

@media (min-width: 992px) {
  .about-grid { grid-template-columns: 0.95fr 1.05fr; }
}



/*-----------------------------------*\
  #APP / DOWNLOAD
\*-----------------------------------*/

.app { background: var(--violet-900); color: var(--white); isolation: isolate; overflow: hidden; }

.app-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blob-3 {
  width: min(640px, 90vw);
  aspect-ratio: 1;
  right: -14%;
  top: 10%;
  background: radial-gradient(circle, rgba(255, 193, 0, 0.34), transparent 68%);
  animation: drift 20s ease-in-out infinite alternate;
}

.app .hl { color: var(--sun); background: linear-gradient(transparent 82%, rgba(255, 193, 0, 0.55) 82% 94%, transparent 94%) no-repeat 0 0 / var(--hl, 100%) 100%; }

.app-grid { display: grid; gap: clamp(44px, 7vw, 72px); align-items: center; }

.dl-list { display: grid; gap: 14px; margin-block-start: 34px; max-width: 560px; }
.dl-list > li { display: block; }

.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease);
}

.dl-card:hover { transform: translateY(-4px) translateX(4px); background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 193, 0, 0.7); }

.dl-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(255, 193, 0, 0.16);
  color: var(--sun);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-spring);
}

.dl-card:hover .dl-ico { transform: rotate(-8deg) scale(1.08); }

.dl-text { display: grid; flex: 1; line-height: 1.3; }
.dl-text b { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.dl-text small { font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); }

.dl-go { font-size: 22px; color: rgba(255, 255, 255, 0.5); transition: transform 0.4s var(--ease-spring), color 0.3s; }
.dl-card:hover .dl-go { transform: translateX(5px); color: var(--sun); }

.dl-card-main {
  background: var(--sun);
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 20px 40px -16px rgba(255, 193, 0, 0.55);
}

.dl-card-main:hover { background: #ffcf33; border-color: transparent; box-shadow: 0 26px 46px -16px rgba(255, 193, 0, 0.75); }
.dl-card-main .dl-ico { background: var(--ink); color: var(--sun); }
.dl-card-main .dl-text small { color: rgba(21, 15, 36, 0.7); }
.dl-card-main .dl-go,
.dl-card-main:hover .dl-go { color: var(--ink); }

.app-banner {
  position: relative;
  width: min(100%, 400px);
  justify-self: center;
  perspective: 1000px;
}

.app-banner::before {
  content: "";
  position: absolute;
  inset: 4% -6% -4% 6%;
  border-radius: 30px;
  background: linear-gradient(140deg, var(--sun), #ff8a00);
  rotate: 6deg;
  opacity: 0.9;
}

.app-banner img {
  position: relative;
  width: 100%;
  border-radius: 26px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.8);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) rotate(-2deg);
  transition: transform 0.5s var(--ease);
}

.new-sticker {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -14px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.5rem;
  border: 3px solid var(--sun);
  rotate: -14deg;
  animation: wiggle 3.5s ease-in-out infinite;
}

@keyframes wiggle { 0%, 100% { rotate: -14deg; } 50% { rotate: 6deg; scale: 1.08; } }

@media (min-width: 992px) {
  .app-grid { grid-template-columns: 1.1fr 0.9fr; }
  .app-banner { justify-self: end; }
}



/*-----------------------------------*\
  #TESTIMONIALS
\*-----------------------------------*/

.blog { background: var(--paper); }

.story-list { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: 1fr; }

.story-list > li { display: block; }

.story {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 26px;
  background: var(--violet-800);
  box-shadow: 0 24px 40px -26px rgba(21, 15, 36, 0.6);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.story-list > li:nth-child(odd) .story { rotate: -1deg; }
.story-list > li:nth-child(even) .story { rotate: 1deg; }

.story:hover { rotate: 0deg; transform: translateY(-8px) scale(1.02); box-shadow: 0 40px 60px -26px rgba(53, 32, 79, 0.7); }

.story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 10, 33, 0.78), transparent 55%);
  opacity: 0.7;
  transition: opacity 0.4s;
}

.story:hover::after { opacity: 1; }

.story-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.story:hover .story-img { transform: scale(1.1); }

.story-tag {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  transform: translateY(8px);
  opacity: 0.95;
  transition: transform 0.45s var(--ease-spring);
}

.story:hover .story-tag { transform: translateY(0) scale(1.05); }

@media (min-width: 640px) { .story-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .story-list { grid-template-columns: repeat(3, 1fr); } }



/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  position: relative;
  background: var(--violet-950);
  color: rgba(255, 255, 255, 0.72);
  padding-block-start: clamp(60px, 8vw, 96px);
  overflow: hidden;
}

.cta-band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: var(--sun);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  margin-block-end: clamp(48px, 7vw, 80px);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.cta-band::before { width: 280px; height: 280px; right: -70px; top: -120px; }
.cta-band::after { width: 180px; height: 180px; right: 18%; bottom: -110px; border-width: 26px; }

.cta-band > * { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

.cta-text { margin-block-start: 10px; font-size: 1.05rem; color: rgba(21, 15, 36, 0.78); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 992px) {
  .cta-band { grid-template-columns: 1fr auto; }
}

.footer-top { display: grid; gap: 40px; padding-block-end: 56px; }

.footer .brand-name { color: var(--white); }

.footer-text { margin-block: 18px 24px; max-width: 46ch; font-size: 0.98rem; line-height: 1.7; }

.social-list { display: flex; gap: 12px; }

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: transform 0.4s var(--ease-spring), background-color 0.25s, color 0.25s;
}

.social-link:hover { background: var(--sun); color: var(--ink); transform: translateY(-4px) rotate(-8deg); }

.footer-list-title { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; color: var(--white); margin-block-end: 16px; }

.footer-link { display: inline-block; padding-block: 5px; transition: color 0.25s, transform 0.3s var(--ease); }
.footer-link:hover { color: var(--sun); transform: translateX(5px); }

.footer-item { display: flex; align-items: flex-start; gap: 12px; margin-block-end: 18px; line-height: 1.55; }
.footer-item > ion-icon { font-size: 20px; color: var(--sun); margin-block-start: 3px; }

.item-link { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 4px; color: var(--white); font-weight: 600; transition: color 0.25s; }
.item-link:hover { color: var(--sun); }

.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 24px 22px; }

.copyright { position: relative; z-index: 1; text-align: center; font-size: 0.92rem; }

.footer-mark {
  display: block;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(4rem, 19vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  background: linear-gradient(to bottom, rgba(255, 193, 0, 0.2), rgba(255, 193, 0, 0.02) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block-start: 18px;
  user-select: none;
  pointer-events: none;
  transform: translateY(14%);
}

@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 992px) {
  .footer-top { grid-template-columns: 1.3fr 0.6fr 0.9fr; gap: 56px; }
  .footer-brand { grid-column: auto; }
}



/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--sun);
  font-size: 22px;
  box-shadow: 0 16px 30px -10px rgba(21, 15, 36, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s, transform 0.5s var(--ease-spring), visibility 0.35s;
}

.back-top.active { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-4px); }

.back-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.back-top-ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: rgba(255, 255, 255, 0.14); }
.ring-bar { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); }



/*-----------------------------------*\
  #REDUCED MOTION
\*-----------------------------------*/

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .marquee-track { animation: none; }
  .ticket-paper { animation: none; }
}
