/* Corte website: a dark, cinematic product page. Sections are pinned while
   scrolling (site.js, GSAP); without JavaScript or with reduced motion they are
   simply stacked and every number shows its final value. */
:root {
  --bg: #050506;
  --bg-2: #0a0a0c;
  --panel: #111114;
  --panel-2: #1a1a1f;
  --line: #24242a;
  --text: #f3f3f5;
  --dim: #8b8b95;
  --accent: #2cc8d8;
  --accent-2: #8b5cf6;
  --gold: #ffc83c;
  --pink: #ff4fa3;
  --orange: #ff5a1f;
  --radius: 18px;
  /* The ambient light of the section on screen (site.js changes it). */
  --glow: 255, 90, 31;
  --pill: #ff5a1f;
  --pill-text: #160700;
  --display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
h2 { font: 800 clamp(34px, 5.4vw, 72px)/0.98 var(--display); letter-spacing: -.045em; margin: 12px 0 16px; }
.lead { color: var(--dim); font-size: clamp(15px, 1.6vw, 18px); max-width: 640px; margin: 0 auto 30px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---------- header: small links, name in the middle, a coloured pill ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
header.scrolled { background: rgba(5, 5, 6, .72); backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .06); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; }
.bar nav { display: flex; gap: 20px; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: 12.5px; font-weight: 500; transition: color .2s; }
.bar nav a:hover { color: var(--text); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.logo svg { width: 22px; height: 22px; }
.bar-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; color: var(--dim); font: 700 11px var(--display); padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--text); }
.pill {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 12.5px;
  padding: 7px 14px; border-radius: 999px; background: var(--pill); color: var(--pill-text);
  transition: background .6s, color .6s, transform .2s;
}
.pill:hover { transform: translateY(-1px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  border: 0; font: 800 16px var(--display); letter-spacing: -.01em;
  padding: 14px 22px; border-radius: 999px; background: var(--orange); color: #160700;
  box-shadow: 0 10px 40px rgba(255, 90, 31, .35); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(255, 90, 31, .5); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; padding-left: 6px; font-weight: 700; }
.btn.ghost:hover { color: var(--orange); }

/* ---------- pinned "chapters" ---------- */
.chapter { position: relative; }
.stage {
  position: relative; height: 100vh; min-height: 560px; overflow: hidden;
  display: grid; place-items: center;
}
.ambient {
  position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(40% 35% at var(--ax, 50%) var(--ay, 62%), rgba(var(--glow), .34), transparent 70%);
  transition: background .8s;
}
.floor {
  position: absolute; left: 50%; bottom: 9%; width: min(70vw, 900px); height: 120px; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--glow), .55), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.giant {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; margin: 0;
  font: 900 min(27vw, 420px)/.8 var(--display); letter-spacing: -.07em; white-space: nowrap;
  background: linear-gradient(90deg, #1c1c22 0%, #26262e 40%, rgb(var(--glow)) 62%, rgba(var(--glow), .75) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
}
.device {
  position: relative; z-index: 2; width: min(60vw, 960px); border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 140px -30px rgba(var(--glow), .55);
}
.device img, .device video { width: 100%; height: auto; }

/* Big copy blocks around the product. */
.copy { position: absolute; z-index: 3; max-width: 520px; }
.copy.bl { left: max(16px, 4vw); bottom: 9vh; }
.copy.tl { left: max(16px, 4vw); top: 14vh; }
.copy.tr { right: max(16px, 4vw); top: 14vh; text-align: right; }
.copy.br { right: max(16px, 4vw); bottom: 9vh; text-align: right; }
.copy h1, .copy h2 { font: 800 clamp(40px, 6.4vw, 104px)/.93 var(--display); letter-spacing: -.05em; margin: 0 0 16px; }
.copy p { color: var(--dim); font-size: clamp(14px, 1.3vw, 16px); margin: 0 0 22px; max-width: 420px; }
.copy.tr p, .copy.br p { margin-left: auto; }
.cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy.br .cta { justify-content: flex-end; }
.meta { position: absolute; right: max(16px, 4vw); bottom: 9vh; z-index: 3; color: var(--dim); font-size: 12px; text-align: right; line-height: 1.8; }
.meta b { color: var(--text); font-weight: 700; }
.beta-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(255, 200, 60, .35); color: var(--gold); font-size: 11px; font-weight: 700; }

.chapter:not(#hero) .copy h2 { font-size: clamp(36px, 4.6vw, 78px); }
.chapter:not(#hero) .copy { max-width: 470px; }

/* A giant number that counts with the scroll. */
.num, .copy .num { color: var(--text); max-width: none; margin: 0; font: 800 clamp(64px, 11vw, 168px)/.85 var(--display); letter-spacing: -.06em; margin: 0; font-variant-numeric: tabular-nums; }
.num small { font-size: 13px; letter-spacing: 0; font-weight: 600; color: var(--dim); margin-left: 6px; }
.num-label, .copy .num-label { color: var(--dim); font-size: 13px; margin: 8px 0 26px; max-width: 280px; }
.copy.tr .num-label, .copy.br .num-label { margin-left: auto; }

/* Callouts: a dot on the product, a line and a label. */
.callouts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.callout { position: absolute; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text); }
.callout i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 18px rgba(var(--glow), .9); flex: none; }
.callout span::before { content: ""; display: inline-block; width: 46px; height: 1px; background: rgba(255, 255, 255, .45); vertical-align: middle; margin-right: 10px; }
.callout b { display: block; font-weight: 700; }
.callout em { display: block; font-style: normal; color: var(--dim); font-size: 11px; max-width: 190px; }
.callout.left { flex-direction: row-reverse; text-align: right; }
.callout.left span::before { display: none; }
.callout.left span::after { content: ""; display: inline-block; width: 46px; height: 1px; background: rgba(255, 255, 255, .45); vertical-align: middle; margin-left: 10px; }

/* Chromatic blur used by text that enters or leaves (site.js animates --ca). */
.fx { --ca: 0; text-shadow: calc(var(--ca) * 1px) 0 rgba(255, 70, 110, .55), calc(var(--ca) * -1px) 0 rgba(90, 150, 255, .55); }

/* ---------- chapter specifics ---------- */
#hero .device { width: min(46vw, 760px); translate: 10vw -4vh; }
#hero .floor { left: 60%; }
#legendas .device { width: min(46vw, 720px); translate: -12vw 7vh; }
#stickers .sticker-stage { translate: 18% 0; }
#ia .agent { translate: 22% 0; }
#som .wave { translate: 17vw 3vh; }
#transicoes .device { width: min(56vw, 880px); transform: perspective(1400px) rotateY(-24deg) rotateX(6deg); }

/* Sound: a glowing waveform. */
.wave { position: relative; z-index: 2; display: flex; align-items: center; gap: 5px; height: 44vh; }
.wave i { display: block; width: clamp(4px, .55vw, 9px); border-radius: 9px; background: linear-gradient(180deg, #9ad8ff, rgb(var(--glow))); box-shadow: 0 0 22px rgba(var(--glow), .7); height: calc(var(--h, .3) * 100%); }
.sound-chips { position: absolute; z-index: 4; left: 50%; bottom: 10vh; translate: -50% 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(90vw, 760px); }
.sound-chips span { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; font-size: 12.5px; color: var(--text); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }

/* Stickers: pick a category, the stickers change. */
.sticker-stage { position: relative; z-index: 2; width: min(46vw, 640px); aspect-ratio: 1.25; }
.sticker-stage img { position: absolute; width: 42%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.sticker-stage img:nth-child(1) { left: 2%; top: 30%; }
.sticker-stage img:nth-child(2) { left: 30%; top: 0; width: 48%; }
.sticker-stage img:nth-child(3) { right: 0; top: 38%; }
.swatches { display: flex; gap: 12px; margin-top: 8px; }
.swatch { width: 92px; text-align: left; background: none; border: 1px solid transparent; border-radius: 14px; padding: 6px; color: var(--text); cursor: pointer; font: inherit; }
.swatch[aria-pressed="true"] { border-color: rgba(255, 255, 255, .55); }
.swatch span { display: block; height: 70px; border-radius: 10px; margin-bottom: 7px; }
.swatch b { display: block; font-size: 12px; }
.swatch em { display: block; font-style: normal; color: var(--dim); font-size: 10.5px; }

/* AI: a request, then the tools the agent uses. */
.agent { position: relative; z-index: 2; width: min(46vw, 620px); }
.chat { border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(17, 17, 20, .85); backdrop-filter: blur(10px); padding: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 20px 120px -30px rgba(var(--glow), .6); }
.chat .ask { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin-left: 16%; }
.chat .tools { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.chat .tool { display: flex; align-items: center; gap: 10px; font: 500 12.5px "Roboto Mono", monospace; color: var(--dim); padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.chat .tool::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 10px rgb(var(--glow)); }
.chat .tool b { color: var(--text); font-weight: 500; }
.chat .done { margin-top: 12px; font-size: 13.5px; color: var(--text); }

/* ---------- "Tudo incluído": three columns of specs ---------- */
#tudo { padding: 120px 0 80px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.spec { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.spec.hi { background: radial-gradient(120% 90% at 30% 100%, rgba(44, 200, 216, .16), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .04), transparent); border-color: rgba(44, 200, 216, .35); }
.spec h3 { font: 800 24px var(--display); letter-spacing: -.03em; margin: 0 0 18px; }
.spec dl { margin: 0; display: grid; gap: 16px; }
.spec dt { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.spec dd { margin: 2px 0 0; font: 800 32px var(--display); letter-spacing: -.04em; }
.spec dd small { font: 500 13px var(--display); color: var(--dim); letter-spacing: 0; margin-left: 6px; }

/* ---------- download / install ---------- */
#instalar { padding: 100px 0; border-top: 1px solid var(--line); }
.install-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-weight: 800; color: var(--text); }
.steps b { display: block; }
.steps span { color: var(--dim); font-size: 14px; }
.note-box { border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 13.5px; color: var(--dim); margin-top: 14px; background: var(--panel); }
.note-box strong { color: var(--text); display: block; margin-bottom: 4px; }
.note-box.warn { border-color: rgba(255, 200, 60, .3); background: rgba(255, 200, 60, .05); }
.downloads { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; margin-top: 16px; }
.downloads b { color: var(--text); font-size: 18px; }
.downloads svg { width: 16px; height: 16px; }
.small-links { display: flex; gap: 18px; margin-top: 12px; }
.small-links a { font-size: 13.5px; text-decoration: none; }

/* ---------- lower sections kept from before ---------- */
section#novidades, section#download-countries, section#feedback { padding: 100px 0; }
section#novidades h2, #download-countries h2, #feedback h2 { font-size: clamp(32px, 4.6vw, 60px); }
#novidades .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
#novidades .reveal.in { opacity: 1; transform: none; }
.news-card { background: var(--panel); }
footer { border-top: 1px solid var(--line); padding: 34px 0 60px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--dim); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .bar .logo { order: -1; }
  .stage { height: auto; min-height: 100vh; padding: 90px 0 60px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
  .copy, .meta { position: relative; inset: auto; text-align: left !important; max-width: none; padding: 0 16px; width: 100%; }
  .copy p, .num-label { margin-left: 0 !important; }
  .copy.br .cta { justify-content: flex-start; }
  .giant { top: 22%; font-size: 30vw; }
  .device, #hero .device, #legendas .device, #transicoes .device, .agent, .sticker-stage { width: calc(100vw - 32px); transform: none; translate: none; }
  .callouts { display: none; }
  #som .wave, #stickers .sticker-stage, #ia .agent { translate: none; }
  .stage > .copy, .stage > .meta, .stage > .sound-chips { position: relative !important; inset: auto !important; translate: none !important; }
  .wave { height: 26vh; width: calc(100vw - 32px); justify-content: center; }
  .sound-chips { position: relative; left: auto; bottom: auto; translate: none; }
  .specs, .install-grid { grid-template-columns: 1fr; }
  .floor { bottom: auto; top: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #novidades .reveal { opacity: 1; transform: none; }
}

/* Stickers keep floating gently (CSS "translate", so GSAP's transforms are untouched). */
@keyframes float-a { 50% { translate: 0 -14px; rotate: -4deg; } }
@keyframes float-b { 50% { translate: 0 -10px; rotate: 4deg; } }
.sticker-stage img:nth-child(odd) { animation: float-a 3.4s ease-in-out infinite; }
.sticker-stage img:nth-child(even) { animation: float-b 2.8s ease-in-out infinite; }
#feedback .lead { margin-left: 0; }
