/* =========================================================
   INSTITUTO FLORENZA — LINKTREE V6
   Marca em destaque · glassmorphism · partículas delicadas
========================================================= */

:root {
  --brown-950: #241007;
  --brown-900: #35160e;
  --brown-800: #542419;
  --terracotta: #a85f43;
  --terracotta-soft: #d28e6b;
  --cream: #fff7f0;
  --cream-soft: #f6e1d2;
  --text-soft: rgba(255, 241, 231, 0.72);
  --glass-line: rgba(255, 241, 232, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--brown-950);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, #8c4b36 0%, #4b2116 54%, #241007 100%);
}

a {
  color: inherit;
}

svg,
img {
  display: block;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #76402d, #2b120a 74%);
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.intro img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  animation: introPulse 1.5s ease-in-out infinite;
}

body.is-loaded .intro {
  opacity: 0;
  visibility: hidden;
}

.scene {
  position: relative;
  min-height: 100svh;
  padding: 10px;
  overflow: hidden;
}

.scene__glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(76px);
  opacity: 0.16;
  animation: auroraMove 15s ease-in-out infinite;
}

.scene__glow--one {
  top: -150px;
  right: -120px;
  background: #ffb184;
}

.scene__glow--two {
  bottom: -170px;
  left: -130px;
  background: #c96d4c;
  animation-delay: -7.5s;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  min-height: calc(100svh - 20px);
  margin-inline: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  border: 1px solid rgba(255, 235, 222, 0.27);
  border-radius: 34px;
  background: rgba(58, 21, 13, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 30px rgba(255, 188, 145, 0.13),
    0 0 92px rgba(188, 88, 53, 0.11),
    0 38px 95px rgba(25, 5, 1, 0.44),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.phone::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 30;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(
      128deg,
      rgba(255, 255, 255, 0.5),
      rgba(255, 224, 205, 0.13) 21%,
      transparent 40%,
      transparent 69%,
      rgba(255, 190, 148, 0.24) 87%,
      rgba(255, 242, 232, 0.4)
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.78;
  animation: edgeGlow 7.5s ease-in-out infinite;
}

.phone__background {
  --move-x: 0px;
  --move-y: 0px;
  position: absolute;
  inset: -1%;
  z-index: -5;
  background:
    url("florenza-bg.png") 50% center / cover no-repeat;
  filter: saturate(0.94) contrast(1.02);
  transform:
    translate3d(var(--move-x), var(--move-y), 0)
    scale(1.01);
  transition: transform 0.35s ease-out;
  animation: cinematicZoom 22s ease-in-out infinite alternate;
}

.phone__overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(45, 12, 6, 0.12), rgba(48, 17, 10, 0.46)),
    radial-gradient(circle at 83% 25%, rgba(255, 204, 170, 0.11), transparent 31%),
    radial-gradient(circle at 14% 76%, rgba(255, 220, 194, 0.05), transparent 23%);
}

.phone__light {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      rgba(255, 255, 255, 0.045),
      transparent 28%,
      transparent 72%,
      rgba(255, 197, 160, 0.055)
    );
}

.pointer-light {
  --x: 50%;
  --y: 22%;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(
      220px circle at var(--x) var(--y),
      rgba(255, 222, 201, 0.12),
      transparent 70%
    );
}

.hero {
  position: relative;
  z-index: 5;
  min-height: 378px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    24px
    38px;
  text-align: center;
}

.hero__logo {
  width: min(78%, 278px);
  height: auto;
  max-height: 166px;
  object-fit: contain;
  margin-bottom: 12px;
  filter:
    drop-shadow(0 0 13px rgba(255, 241, 231, 0.2))
    drop-shadow(0 12px 30px rgba(25, 5, 1, 0.38))
    brightness(1.1);
  animation: logoFloat 6s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  max-width: 350px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 9.2vw, 47px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 9px 28px rgba(30, 4, 0, 0.4);
}

.hero h1 em {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  color: #ffd3bd;
}

.hero__subtitle {
  max-width: 300px;
  margin: 15px auto 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-soft);
}

.particle {
  position: absolute;
  z-index: 4;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  color: rgba(255, 232, 217, 0.72);
  background: currentColor;
  box-shadow:
    0 0 5px rgba(255, 220, 198, 0.9),
    0 0 13px rgba(255, 173, 119, 0.55);
  opacity: 0.42;
  animation: particleTwinkle 4.6s ease-in-out infinite;
}

.particle::before,
.particle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.particle::before {
  width: 1px;
  height: 7px;
}

.particle::after {
  width: 7px;
  height: 1px;
}

.particle--one {
  top: 68px;
  right: 52px;
}

.particle--two {
  top: 178px;
  left: 31px;
  animation-delay: -1.1s;
}

.particle--three {
  top: 330px;
  right: 26px;
  animation-delay: -2.2s;
}

.particle--four {
  bottom: 168px;
  left: 23px;
  animation-delay: -3.1s;
}

.particle--five {
  bottom: 56px;
  right: 52px;
  animation-delay: -1.7s;
}

.links {
  position: relative;
  z-index: 8;
  margin-top: -20px;
  padding: 0 16px;
  display: grid;
  gap: 10px;
}

.link {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  color: var(--cream);
  text-decoration: none;
  background:
    linear-gradient(
      135deg,
      rgba(255, 248, 242, 0.18),
      rgba(255, 229, 214, 0.07)
    );
  box-shadow:
    0 16px 42px rgba(31, 8, 3, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.23),
    inset 0 -1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease;
  animation: linkReveal 0.72s cubic-bezier(.2,.8,.2,1) both;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.15),
      transparent 33%,
      transparent 72%,
      rgba(255, 255, 255, 0.04)
    );
  pointer-events: none;
}

.link--primary {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 220, 198, 0.2), transparent 30%),
    linear-gradient(
      135deg,
      rgba(183, 93, 62, 0.58),
      rgba(104, 40, 27, 0.43)
    );
  border-color: rgba(255, 229, 213, 0.3);
}

.link:nth-child(1) { animation-delay: .08s; }
.link:nth-child(2) { animation-delay: .15s; }
.link:nth-child(3) { animation-delay: .22s; }
.link:nth-child(4) { animation-delay: .29s; }
.link:nth-child(5) { animation-delay: .36s; }

.link__shine {
  position: absolute;
  width: 175px;
  height: 175px;
  top: -92px;
  right: -82px;
  border-radius: 50%;
  background: rgba(255, 199, 165, 0.13);
  filter: blur(6px);
  animation: haloPulse 4.8s ease-in-out infinite;
}

.link::after {
  content: "";
  position: absolute;
  top: -82%;
  left: -55%;
  width: 48px;
  height: 265%;
  rotate: 18deg;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.28),
      transparent
    );
  transform: translateX(-225px);
  animation: glassShine 6s ease-in-out infinite;
}

.link:active {
  transform: scale(0.985);
}

.link:focus-visible {
  outline: 3px solid rgba(255, 202, 171, 0.34);
  outline-offset: 3px;
}

.link__icon {
  position: relative;
  z-index: 2;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffe3d1;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.19),
      rgba(255, 255, 255, 0.075)
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.15),
    0 9px 22px rgba(30, 5, 1, 0.14);
  transition: transform 0.25s ease;
}

.link__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.link small,
.link strong {
  display: block;
}

.link small {
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 221, 201, 0.76);
}

.link strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.link__arrow {
  position: relative;
  z-index: 2;
  width: 21px;
  height: 21px;
  color: #ffe1cf;
  transition: transform 0.24s ease;
}

.link__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome {
  position: relative;
  z-index: 5;
  max-width: 315px;
  margin: 20px auto 0;
  padding-inline: 23px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 234, 220, 0.74);
}

.footer {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: 17px 18px max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 230, 214, 0.63);
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 600;
}

.footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d89a77;
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 225, 206, 0.36);
  }

  .link:hover .link__icon {
    transform: scale(1.06) rotate(-3deg);
  }

  .link:hover .link__arrow {
    transform: translateX(3px);
  }
}

@media (max-width: 480px) {
  .scene {
    padding: 7px;
  }

  .phone {
    min-height: calc(100svh - 14px);
    border-radius: 30px;
  }

  .hero {
    min-height: 360px;
    padding-inline: 18px;
    padding-bottom: 35px;
  }

  .hero__logo {
    width: min(82%, 266px);
    max-height: 154px;
    margin-bottom: 10px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(35px, 9.6vw, 44px);
  }

  .links {
    margin-top: -18px;
    padding-inline: 13px;
  }

  .link {
    min-height: 69px;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: 342px;
  }

  .hero__logo {
    width: min(84%, 246px);
    max-height: 142px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .link {
    min-height: 66px;
    gap: 11px;
    padding: 10px 12px;
  }

  .link__icon {
    width: 38px;
    height: 38px;
  }

  .link strong {
    font-size: 18px;
  }
}

@media (min-width: 700px) {
  .scene {
    padding-block: 22px;
  }

  .phone {
    min-height: min(930px, calc(100svh - 44px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .intro {
    display: none;
  }
}

@keyframes introPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes cinematicZoom {
  0% {
    transform:
      translate3d(var(--move-x), var(--move-y), 0)
      scale(1.008);
  }
  100% {
    transform:
      translate3d(
        calc(var(--move-x) - 2px),
        calc(var(--move-y) - 2px),
        0
      )
      scale(1.03);
  }
}

@keyframes auroraMove {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.07);
  }
}

@keyframes edgeGlow {
  0%, 100% {
    opacity: 0.58;
    filter: brightness(0.96);
  }
  50% {
    opacity: 0.94;
    filter: brightness(1.14);
  }
}

@keyframes particleTwinkle {
  0%, 100% {
    opacity: 0.22;
    transform: scale(0.72);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.05);
  }
}

@keyframes linkReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.987);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glassShine {
  0%, 74% {
    transform: translateX(-230px);
  }
  89%, 100% {
    transform: translateX(760px);
  }
}

@keyframes haloPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.7;
  }
}


/* =========================================================
   V7 — AJUSTES FINAIS DE TEXTO
========================================================= */

.hero__subtitle {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.65;
}

.welcome {
  max-width: 335px;
  font-size: 17px;
  line-height: 1.45;
}

.particle {
  display: none !important;
}

@media (max-width: 480px) {
  .hero h1 {
    max-width: 345px;
    font-size: clamp(34px, 9vw, 42px);
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .welcome {
    font-size: 16px;
  }
}


/* =========================================================
   V8 — TEXTOS DE APOIO MAIORES NO MOBILE
========================================================= */

.hero__subtitle {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

.welcome {
  max-width: 360px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 500;
}

@media (max-width: 480px) {
  .hero__subtitle {
    max-width: 340px;
    font-size: 16px;
    line-height: 1.58;
  }

  .welcome {
    max-width: 350px;
    font-size: 20px;
    line-height: 1.42;
    margin-top: 24px;
    padding-inline: 20px;
  }
}

@media (max-width: 360px) {
  .hero__subtitle {
    font-size: 15px;
  }

  .welcome {
    font-size: 19px;
  }
}
