/* =========================================================
   R7 Filmes e Embalagens — Linktree
   Assinatura: brilho de "filme stretch" + gradiente azul→verde
   ========================================================= */

:root {
  /* Brand */
  --blue: #2680eb;
  --blue-bright: #3a93ff;
  --green: #37c257;
  --green-bright: #54e06d;
  --brand: linear-gradient(100deg, var(--blue) 0%, var(--green) 100%);
  --brand-soft: linear-gradient(100deg, rgba(38,128,235,.18), rgba(55,194,87,.18));

  /* Surfaces */
  --bg: #06090d;
  --bg-2: #0a1017;
  --ink: #eef4fb;
  --muted: #93a1b2;
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --stroke: rgba(255, 255, 255, .09);
  --stroke-strong: rgba(255, 255, 255, .16);
  --sheen: rgba(255, 255, 255, .9);

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Metrics */
  --wrap: 512px;
  --radius: 18px;
  --gap: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

a { color: inherit; text-decoration: none; }

/* =========================================================
   Ambient background
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #0c141d 0%, var(--bg) 55%),
    var(--bg);
}
.blob {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
}
.blob--blue {
  background: radial-gradient(circle, rgba(38,128,235,.55), transparent 62%);
  top: -18vmax; left: -14vmax;
  animation: drift1 22s var(--ease) infinite alternate;
}
.blob--green {
  background: radial-gradient(circle, rgba(55,194,87,.5), transparent 62%);
  bottom: -20vmax; right: -16vmax;
  animation: drift2 26s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(10vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-8vmax, -10vmax, 0) scale(1.1); } }

/* Diagonal "stretch film" lines drifting slowly */
.film-lines {
  position: absolute;
  inset: -20%;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 22px,
    rgba(255, 255, 255, .022) 22px 23px
  );
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 85%);
  animation: slide 40s linear infinite;
}
@keyframes slide { to { transform: translateX(120px); } }

.grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.5) .5px, transparent .5px);
  background-size: 3px 3px;
  opacity: .015;
}

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 4vw, 26px);
  max-width: calc(var(--wrap) + 80px);
  margin: 0 auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.5px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}
.brand-mark__r { color: var(--blue-bright); }
.brand-mark__7 { color: var(--green-bright); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding: 9px 14px 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.share-btn:hover { background: var(--card-hover); border-color: var(--stroke-strong); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0) scale(.97); }
.share-btn svg { color: var(--green-bright); }

/* =========================================================
   Layout wrap
   ========================================================= */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(84px, 12vh, 120px) clamp(16px, 5vw, 24px) 48px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero { text-align: center; }

.hero__logo {
  position: relative;
  width: clamp(140px, 42vw, 190px);
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.hero__logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(38,128,235,.25));
}
/* light streak sweeping across the logo, like film catching light */
.hero__streak {
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.35) 50%, transparent 62%);
  transform: translateX(-60%);
  animation: streak 6.5s var(--ease) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes streak {
  0%, 62% { transform: translateX(-70%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(70%); opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .4em;
}
.hero__title span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__amp {
  font-weight: 500;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
  background: none;
  align-self: center;
  font-size: .55em;
  text-transform: lowercase;
}

.hero__tagline {
  margin: 14px auto 0;
  max-width: 22em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(.9rem, 3.4vw, .98rem);
}
.pill {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--stroke);
}
.hero__tagline .dots b { color: var(--ink); font-weight: 600; }
.cta-line {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02em;
}

/* Socials row */
.socials {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.socials__item {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--ink);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.socials__item:hover {
  transform: translateY(-3px);
  background: var(--card);
  border-color: var(--stroke);
  color: var(--green-bright);
}

/* =========================================================
   Links
   ========================================================= */
.links {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  min-height: 66px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s var(--ease), background .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.link:hover {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--stroke-strong);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9);
}
.link:active { transform: translateY(-2px) scale(.988); }

/* focus */
.link:focus-visible,
.share-btn:focus-visible,
.socials__item:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

/* left chip — full app-icon SVG fills the tile */
.link__chip {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.85);
}
.link__chip svg { width: 100%; height: 100%; display: block; }

.link__body { flex: 1 1 auto; min-width: 0; text-align: left; }
.link__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.link__sub {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #04120a;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--green-bright), var(--green));
}

/* chevron */
.link__chev {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  position: relative;
  opacity: .5;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.link__chev::before {
  content: "";
  position: absolute; top: 50%; left: 30%;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.link:hover .link__chev { transform: translateX(4px); opacity: 1; color: var(--green-bright); }

/* the film sheen sweep */
.sheen {
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.14) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-18deg);
  z-index: -1;
  pointer-events: none;
}
.link:hover .sheen { animation: sweep .9s var(--ease) forwards; }
@keyframes sweep { to { transform: translateX(320%) skewX(-18deg); } }

/* primary (WhatsApp / orçamento) */
.link--primary {
  background: linear-gradient(115deg, rgba(55,194,87,.16), rgba(38,128,235,.14));
  border-color: rgba(55,194,87,.4);
}
.link--primary::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, var(--green-bright), var(--blue-bright));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}
.link--primary:hover { border-color: rgba(55,194,87,.6); box-shadow: 0 18px 40px -20px rgba(55,194,87,.6); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__icon {
  width: clamp(72px, 20vw, 92px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(38,128,235,.3));
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 4.4vw, 1.18rem);
  letter-spacing: -.01em;
  line-height: 1.1;
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__copy {
  color: rgba(147, 161, 178, .65);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  text-align: center;
}

/* =========================================================
   Desktop QR panel
   ========================================================= */
.qr {
  display: none;
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 40;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: qrIn .8s .5s var(--ease) both;
}
@keyframes qrIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.qr__title { font-size: .8rem; font-weight: 600; color: var(--ink); }
.qr__frame {
  position: relative;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
}
.qr__code { width: 128px; height: 128px; display: grid; place-items: center; }
.qr__code svg { width: 128px; height: 128px; display: block; }
.qr__scan {
  position: absolute; left: 12px; right: 12px; top: 12px; height: 30%;
  background: linear-gradient(180deg, rgba(55,194,87,.35), transparent);
  border-bottom: 2px solid var(--green);
  animation: scan 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes scan { 0%,100% { transform: translateY(0); } 50% { transform: translateY(210%); } }
.qr__hint { font-size: .7rem; color: var(--muted); font-family: var(--font-mono); }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 140%);
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.7);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s var(--ease), visibility .3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* =========================================================
   Entrance animation (JS adds .is-in on <body>)
   ========================================================= */
.js [data-anim] { opacity: 0; transform: translateY(22px); }
.js [data-anim="logo"] { transform: translateY(-14px) scale(.9); }
.is-in [data-anim] {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.is-in [data-anim="title"]   { transition-delay: .1s; }
.is-in [data-anim="tagline"] { transition-delay: .2s; }
.is-in [data-anim="socials"] { transition-delay: .3s; }
.is-in [data-anim="links"]   { transition-delay: .38s; }
.is-in [data-anim="footer"]  { transition-delay: .5s; }

/* stagger each link */
.is-in .links .link-item {
  animation: linkIn .6s var(--ease) both;
  animation-delay: calc(.42s + var(--i) * .09s);
}
@keyframes linkIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Responsive
   ========================================================= */
/* Tablet — a touch more breathing room, still no QR */
@media (min-width: 768px) {
  .wrap { padding-top: 110px; }
  .link { min-height: 70px; }
}

/* Desktop / notebook — show QR */
@media (min-width: 1024px) {
  .qr { display: flex; }
  /* keep column from hugging the QR panel */
  .wrap { padding-bottom: 80px; }
}

@media (min-width: 1280px) {
  .qr { right: 40px; bottom: 40px; }
  .qr__code, .qr__code svg { width: 150px; height: 150px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .hero__streak, .qr__scan, .film-lines, .blob { display: none; }
}
