:root {
  --rose: #C5998E;
  --dark: #403b39;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #f8f0ed;
}

body {
  overflow-x: hidden;
  font-family: "Cocon Next Arabic", "Cocon", "Tahoma", "Arial", sans-serif;
}

.page {
  position: relative;
  width: min(100%, 858px);
  aspect-ratio: 858 / 1536;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: -2;
  user-select: none;
  pointer-events: none;
}

.content {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.logo {
  position: absolute;
  top: 11.5%;
  left: 50%;
  width: 47%;
  transform: translateX(-50%);
  display: block;
  opacity: 1;
  filter: none;
}

.divider {
  position: absolute;
  top: 28.3%;
  left: 50%;
  width: 40%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--rose);
}

.divider span {
  height: 1px;
  flex: 1;
  background: rgba(197,153,142,.72);
}

.divider i {
  font-style: normal;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1;
}

.copy {
  position: absolute;
  top: 32.5%;
  left: 8%;
  right: 8%;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--rose);
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 5.5% 0 0;
  color: var(--dark);
  font-size: clamp(17px, 3.1vw, 28px);
  line-height: 1.65;
  font-weight: 400;
}

.whatsapp {
  position: absolute;
  top: 54.7%;
  left: 10%;
  right: 10%;
  min-height: 70px;
  padding: 0 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: var(--rose);
  text-decoration: none;
  box-shadow: 0 12px 20px rgba(101, 69, 61, .22), inset 0 -2px 0 rgba(80,45,39,.18);
  font-size: clamp(17px, 3.25vw, 29px);
  font-weight: 400;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  isolation: isolate;
  animation: whatsappFloat 3.8s ease-in-out infinite, whatsappGlow 2.4s ease-in-out infinite;
}

.whatsapp::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -55%;
  width: 42%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,.08) 35%,
    rgba(255,255,255,.72) 50%,
    rgba(255,255,255,.08) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: whatsappShine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

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

@keyframes whatsappShine {
  0%, 45% { left: -55%; opacity: 0; }
  52% { opacity: 1; }
  70%, 100% { left: 125%; opacity: 0; }
}

@keyframes whatsappGlow {
  0%, 100% {
    box-shadow: 0 12px 20px rgba(101, 69, 61, .22),
      0 0 0 rgba(197,153,142,0),
      inset 0 -2px 0 rgba(80,45,39,.18);
  }
  50% {
    box-shadow: 0 14px 24px rgba(101, 69, 61, .24),
      0 0 24px rgba(197,153,142,.42),
      inset 0 -2px 0 rgba(80,45,39,.18);
  }
}

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

.logo {
  animation: logoReveal .9s cubic-bezier(.22,.61,.36,1) both;
}

.divider {
  animation: dividerReveal .8s .18s cubic-bezier(.22,.61,.36,1) both;
}

.copy h1 {
  animation: textReveal .9s .28s cubic-bezier(.22,.61,.36,1) both;
}

.copy p {
  animation: textReveal .9s .42s cubic-bezier(.22,.61,.36,1) both;
}

.whatsapp {
  animation: buttonReveal .9s .56s cubic-bezier(.22,.61,.36,1) both,
             whatsappFloat 3.8s 1.4s ease-in-out infinite,
             whatsappGlow 2.4s 1.4s ease-in-out infinite;
}

@keyframes logoReveal {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.97); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes dividerReveal {
  from { opacity: 0; transform: translateX(-50%) scaleX(.72); }
  to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@keyframes textReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonReveal {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.whatsapp:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 16px 28px rgba(101, 69, 61, .28),
    0 0 30px rgba(197,153,142,.48),
    inset 0 -2px 0 rgba(80,45,39,.18);
}

.whatsapp:active {
  transform: translateY(1px);
}

.whatsapp svg {
  width: clamp(34px, 5vw, 48px);
  height: clamp(34px, 5vw, 48px);
  flex: 0 0 auto;
  fill: #fff;
  direction: ltr;
}

@media (max-width: 430px) {
  .page {
    width: 100vw;
  }

  .logo { width: 48%; top: 11.2%; }
  .divider { top: 28.5%; width: 39%; }
  .copy { top: 32.2%; left: 7%; right: 7%; }
  h1 { font-size: clamp(25px, 6.1vw, 30px); line-height: 1.6; }
  p { font-size: clamp(16px, 4vw, 19px); margin-top: 5%; }
  .whatsapp {
    top: 54.9%;
    left: 9%;
    right: 9%;
    min-height: 60px;
    padding: 0 16px;
    gap: 10px;
    font-size: clamp(15px, 3.9vw, 18px);
  }
}

@media (max-width: 350px) {
  .whatsapp { font-size: 14px; }
}


@media (prefers-reduced-motion: reduce) {
  .logo,
  .divider,
  .copy h1,
  .copy p,
  .whatsapp,
  .whatsapp::before {
    animation: none !important;
  }
}
