/* home page (/ and /en); base tokens live in site.css */

/* reveal on scroll: only hidden once home.js has run */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* phone frame cut at the bottom, showing the top of a screen */
.device {
  position: relative; width: 100%; aspect-ratio: 508 / 860; border-radius: 40px 40px 0 0; padding: 9px 9px 0;
  background: #111; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 40, 20, .22);
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent);
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px 32px 0 0; }

/* hero */
.home-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 24px 40px; }
.home-hero h1 { font-size: clamp(40px, 6.4vw, 66px); line-height: 1.02; margin: 14px 0 18px; letter-spacing: -.025em; }
.home-hero h1 .kicker { display: block; font-size: clamp(17px, 2vw, 21px); line-height: 1.2; letter-spacing: 0; color: var(--ink-2); margin-bottom: 10px; }
.home-hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.home-hero h1 em svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .35em; overflow: visible; }
.home-hero h1 em path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.js .home-hero h1 em path { stroke-dashoffset: 320; animation: draw 1s .9s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.home-hero .lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; max-width: 30em; }

.fan { position: relative; height: 560px; }
.fan::before {
  content: ""; position: absolute; inset: 8% 4% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--yellow) 0, rgba(248, 201, 31, .35) 45%, transparent 70%); opacity: .55;
}
.fan .device { position: absolute; width: 46%; top: 40px; }
.fan .f1 { left: 27%; z-index: 3; top: 0; }
.fan .f2 { left: 2%; z-index: 2; transform: rotate(-9deg) translateY(40px); }
.fan .f3 { right: 2%; z-index: 1; transform: rotate(9deg) translateY(40px); }
.js .fan .device { animation: rise 1s cubic-bezier(.2, .9, .25, 1.1) both; }
.js .fan .f1 { animation-delay: .15s; }
.js .fan .f2 { animation-delay: .35s; --r: -9deg; }
.js .fan .f3 { animation-delay: .5s; --r: 9deg; }
@keyframes rise { from { opacity: 0; transform: translateY(160px) rotate(0); } to { opacity: 1; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); } }
.fan .f2, .fan .f3 { --y: 40px; }

/* birds drifting across the hero */
.flock { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flock svg { position: absolute; width: 34px; color: var(--ink-3); opacity: .5; animation: fly linear infinite; }
.flock svg:nth-child(1) { top: 6%; animation-duration: 26s; }
.flock svg:nth-child(2) { top: 14%; width: 22px; animation-duration: 34s; animation-delay: -12s; }
.flock svg:nth-child(3) { top: 3%; width: 18px; animation-duration: 40s; animation-delay: -25s; }
.flock path { animation: flap .5s ease-in-out infinite alternate; transform-origin: center; }
@keyframes fly { from { transform: translateX(-60px); } to { transform: translateX(1200px); } }
@keyframes flap { to { transform: scaleY(.45); } }

/* counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-block: 8px 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.stat b { display: block; font-size: clamp(30px, 4.4vw, 44px); line-height: 1; color: var(--green); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 15px; }

/* new: Coleção */
.collection { background: var(--green); color: var(--on-green); border-radius: 36px; padding: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.collection h2 { color: inherit; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; margin: 12px 0 14px; }
.collection h2 em { font-style: normal; color: var(--yellow); }
.collection p { margin: 0 0 22px; opacity: .92; font-size: 18px; }
.collection .pill { background: var(--yellow); color: var(--yellow-ink); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px 16px; }
.perks li b { display: block; }
.perks li span { opacity: .85; font-size: 15px; }
.perks .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; font-weight: 800; }
.perks .ico svg { width: 20px; height: 20px; }
.cards { position: relative; height: 520px; perspective: 1400px; }
.cards .device { position: absolute; width: 58%; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.cards .c1 { left: 0; top: 30px; z-index: 2; }
.cards .c2 { right: 0; top: 0; transform: rotate(6deg); opacity: .95; }
.js .cards .c1 { transform: rotateY(-100deg); transition: transform 1.2s cubic-bezier(.2, .9, .3, 1.15); transform-origin: 70% 50%; }
.js .cards.in .c1 { transform: rotateY(0); }
.sparkle { position: absolute; color: var(--yellow); width: 22px; z-index: 3; animation: twinkle 2.4s ease-in-out infinite; }
.sparkle.s1 { left: 6%; top: 8%; }
.sparkle.s2 { left: 52%; top: 4%; width: 14px; animation-delay: .8s; }
.sparkle.s3 { left: 46%; bottom: 18%; width: 16px; animation-delay: 1.5s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* how it works: sticky phone swapping screens */
.tour { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.tour-phone { position: sticky; top: 9vh; height: min(78vh, 640px); display: grid; place-items: start center; }
.tour-phone .device { width: min(320px, 100%); }
.tour-phone .device img { position: absolute; inset: 9px 9px 0; width: calc(100% - 18px); height: calc(100% - 9px); opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .6s ease; }
.tour-phone .device img.on { opacity: 1; transform: none; }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s; }
.tour-steps li.on { opacity: 1; }
.tour-steps .num { font-weight: 800; color: var(--green); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.tour-steps h3 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -.015em; }
.tour-steps p { color: var(--ink-2); margin: 0; font-size: 18px; max-width: 28em; }
.tour-steps .shot { display: none; }
.eq { display: inline-flex; gap: 3px; align-items: center; height: 22px; margin-left: 8px; vertical-align: -3px; }
.eq i { width: 4px; height: 100%; border-radius: 2px; background: var(--green); animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* birds strip hover */
.home .bird { transition: transform .3s ease, box-shadow .3s ease; }
.home .bird img { transition: transform .6s ease; }
.home .bird:hover { transform: translateY(-4px); }
.home .bird:hover img { transform: scale(1.05); }

/* Piu Pro */
.pro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 36px; padding: 40px; overflow: hidden; }
.pro h2 { margin: 10px 0 10px; }
.pro p { color: var(--ink-2); margin: 0 0 8px; }
.pro .device { width: min(260px, 100%); justify-self: center; margin-bottom: -40px; }

/* closing call to action */
.final { text-align: center; background: var(--yellow); color: var(--yellow-ink); border-radius: 36px; padding: 56px 24px; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 10px; }
.final p { margin: 0 auto 26px; max-width: 30em; font-size: 18px; }
.final .cta { justify-content: center; }
.final .badge { background: #1d1d1a; color: #fff; }
.final .android-link { color: var(--yellow-ink); }
.final .icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 12px 30px rgba(60, 40, 0, .25); }
.js .final .icon { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; padding-block-start: 8px; }
  .fan { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .collection { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 28px; }
  .cards { height: 440px; max-width: 420px; width: 100%; margin: 0 auto; }
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-phone { display: none; }
  .tour-steps li { min-height: 0; opacity: 1; padding-block: 28px; }
  .tour-steps .shot { display: block; width: min(260px, 72vw); margin: 22px auto 0; }
  .pro { grid-template-columns: 1fr; padding: 28px 20px; }
}
@media (max-width: 480px) {
  .fan { height: 360px; }
  .cards { height: 380px; }
  .stat { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .home-hero h1 em path { stroke-dashoffset: 0; }
  .js .cards .c1 { transform: none; }
}

/* home film (rendered with HyperFrames in site/video/quintal) */
.film-box { position: relative; border-radius: 28px; overflow: hidden; background: var(--green); box-shadow: 0 24px 60px rgba(20, 40, 20, .18); aspect-ratio: 16 / 9; }
.film-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-sound {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55);
  border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.film-sound svg { width: 18px; height: 18px; }
.film-sound .on { display: none; }
.film-sound[aria-pressed="true"] .on { display: inline; }
.film-sound[aria-pressed="true"] .off { display: none; }
@media (max-width: 480px) { .film-box { border-radius: 18px; } .film-sound { right: 10px; bottom: 10px; font-size: 13px; padding: 7px 11px; } }
