:root{
  --bg: #FFFFFF;
  --surface: #FBFAF8;
  --surface-2: #F3F1EC;
  --line: #E8E4DC;
  --ink: #1E1C1A;
  --muted: #726C63;
  --pine: #2F5D50;
  --pine-soft: #E4EEEA;
  --gold: #C9A667;
  --tg: #3E7FC9;
  --ig: #C9497A;
  --wa: #349A5E;
  --shadow: 30, 26, 20;
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Josefin Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a, button{
  -webkit-tap-highlight-color: transparent;
}

.page{
  position: relative;
  min-height: 100dvh;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  padding: 32px 20px 24px;
  overflow:hidden;
  background: linear-gradient(120deg,
    #3E7FC9, #2F5D50, #C9497A, #C9A667, #349A5E, #3E7FC9);
  background-size: 400% 400%;
  animation: bgCycle 20s ease infinite;
}

@keyframes bgCycle{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Soft white glow highlights drifting over the vivid background */
.blob-wrap{
  position:absolute;
  inset: 0;
}
.blob{
  position:absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events:none;
  opacity: 0.35;
  background: #FFFFFF;
}
.blob-1{
  width: 460px; height: 460px;
  top: -140px;
  left: -120px;
  animation: drift1 20s ease-in-out infinite;
}
.blob-2{
  width: 400px; height: 400px;
  bottom: -160px;
  right: -100px;
  animation: drift2 24s ease-in-out infinite;
}
.blob-3{
  width: 340px; height: 340px;
  bottom: 10%;
  left: -140px;
  opacity: 0.25;
  animation: drift1 18s ease-in-out infinite reverse;
}

@keyframes drift1{
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(50px, 35px) scale(1.1); }
}
@keyframes drift2{
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.08); }
}

.hub{
  position:relative;
  width:100%;
  max-width: 420px;
  text-align:center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 28px 32px;
  box-shadow: 0 20px 50px -20px rgba(var(--shadow), 0.18);
  animation: cardIn 0.6s cubic-bezier(.2,.7,.3,1) both;
  overflow: hidden;
}

.hub::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 4px;
  background: linear-gradient(90deg, var(--tg), var(--pine), var(--gold), var(--ig), var(--tg), var(--pine), var(--gold), var(--ig));
  background-size: 300% 100%;
  animation: flowEdge 8s linear infinite;
}

@keyframes flowEdge{
  from{ background-position: 0% 0%; }
  to{ background-position: -300% 0%; }
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--pine);
  color: #FFFFFF;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 10px 20px -10px rgba(47,93,80,0.6);
}

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

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  font-size: 13px;
  color: var(--pine);
  font-weight: 700;
}

.status-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wa);
  position: relative;
}
.status-dot::after{
  content:"";
  position:absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--wa);
  opacity: 0.6;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

h1{
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 6vw, 32px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}

.subtext{
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom: 24px;
}

.link-btn{
  position: relative;
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  text-decoration:none;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  opacity: 0;
  transform: translateY(10px);
  animation: itemIn 0.5s ease forwards;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.stack .link-btn:nth-child(1){ animation-delay: .12s; }
.stack .link-btn:nth-child(2){ animation-delay: .2s; }
.stack .link-btn:nth-child(3){ animation-delay: .28s; }

@keyframes itemIn{
  to{ opacity:1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine){
  .link-btn:hover{
    box-shadow: 0 10px 24px -14px rgba(var(--shadow), 0.35);
    transform: translateY(-2px);
  }
  .link-btn:hover .icon{ transform: scale(1.12); }
  .link-btn:hover .arrow{ transform: translateX(3px) translateY(-1px); }
  .auth-btn:hover{ transform: translateY(-2px); }
  .auth-btn.primary:hover{ filter: brightness(1.08); }
  .auth-btn.ghost:hover{ border-color: var(--pine); color: var(--pine); }
}

.link-btn:active,
.auth-btn:active{
  box-shadow: none;
  animation: bubblePop .45s ease;
}

@keyframes bubblePop{
  0%{ transform: scale(1); }
  35%{ transform: scale(0.93); }
  65%{ transform: scale(1.045); }
  100%{ transform: scale(1); }
}

/* Little bubbles that rise up inside a button on hover — playful touch */
.bubbles{
  position:absolute;
  inset:0;
  overflow:hidden;
  border-radius: inherit;
  pointer-events:none;
}
.bubble{
  position:absolute;
  bottom:-10px;
  width:7px; height:7px;
  border-radius:50%;
  background: currentColor;
  opacity:0;
}
.bubble:nth-child(1){ left: 18%; }
.bubble:nth-child(2){ left: 48%; width:5px; height:5px; }
.bubble:nth-child(3){ left: 76%; width:6px; height:6px; }

@keyframes bubbleFloat{
  0%{ transform: translateY(0) scale(0.6); opacity:0; }
  25%{ opacity:0.85; }
  100%{ transform: translateY(-48px) scale(1); opacity:0; }
}

@media (hover: hover) and (pointer: fine){
  .link-btn:hover .bubble,
  .auth-btn:hover .bubble{
    animation: bubbleFloat 1.7s ease-in-out infinite;
  }
  .bubble:nth-child(1){ animation-delay: 0s !important; }
  .bubble:nth-child(2){ animation-delay: .35s !important; }
  .bubble:nth-child(3){ animation-delay: .7s !important; }
}

.link-btn.tg .bubble{ color: var(--tg); }
.link-btn.ig .bubble{ color: var(--ig); }
.link-btn.wa .bubble{ color: var(--wa); }
.auth-btn.primary .bubble{ color: rgba(255,255,255,0.8); }
.auth-btn.ghost .bubble{ color: var(--pine); }

.link-btn.tg{ border-left-color: var(--tg); }
.link-btn.ig{ border-left-color: var(--ig); }
.link-btn.wa{ border-left-color: var(--wa); }

.link-btn .icon{
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display:flex; align-items:center; justify-content:center;
  transition: transform .18s ease;
}
.link-btn.tg .icon{ color: var(--tg); }
.link-btn.ig .icon{ color: var(--ig); }
.link-btn.wa .icon{ color: var(--wa); }
.icon svg{ width:100%; height:100%; }

.label{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.label .name{ font-weight:700; font-size:15px; }
.label .hint{ font-size:12.5px; color: var(--muted); }

.arrow{
  color: var(--muted);
  font-size: 20px;
  transform: translateY(-1px);
  transition: transform .18s ease;
}
.divider{
  display:flex;
  align-items:center;
  gap:12px;
  color: var(--muted);
  font-size: 12.5px;
  margin: 4px 0 18px;
  opacity: 0;
  animation: itemIn 0.5s ease forwards;
  animation-delay: .34s;
}
.divider::before, .divider::after{
  content:"";
  flex:1;
  height:1px;
  background: var(--line);
}

.auth-row{
  display:flex;
  gap:10px;
  opacity: 0;
  animation: itemIn 0.5s ease forwards;
  animation-delay: .4s;
}

.auth-btn{
  position: relative;
  flex:1;
  text-decoration:none;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.auth-btn.primary{
  background: var(--pine);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -12px rgba(47,93,80,0.55);
}
.auth-btn.ghost{
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
}
.foot{
  position: relative;
  margin-top: 26px;
  font-size: 12px;
  color: #9A9389;
  text-align: center;
}

.desc{
  margin: 24px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  animation: itemIn 0.5s ease forwards;
  animation-delay: .46s;
}

.testimonials{
  display:flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.testimonials.in-view{
  opacity: 1;
  transform: translateY(0);
}

.t-heading{
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.testimonial{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  text-align: left;
}

.avatar{
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--av, var(--pine));
  color: #FFFFFF;
  display:flex; align-items:center; justify-content:center;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.t-body{ min-width: 0; }

.t-text{
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.t-name{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce){
  .link-btn, .auth-btn, .hub{ transition: none; animation: none; opacity: 1; transform: none; }
  .blob, .blob-wrap{ animation: none; }
  .status-dot::after{ animation: none; }
  .page{ animation: none; background-position: 0% 50%; }
  .hub::before{ animation: none; background-position: 0% 0%; }
  .bubble{ animation: none !important; opacity: 0 !important; }
}

:focus-visible{
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal-overlay.show{
  opacity: 1;
  pointer-events: auto;
}

.modal-box{
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 26px 26px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
}

.modal-overlay.show .modal-box{
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover{ color: var(--ink); }

.modal-box h2{
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 4px 0 10px;
}

.modal-box p{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.modal-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.auth-btn.pulse-attention{
  animation: pulseGlow 1.4s ease-in-out infinite;
}

@keyframes pulseGlow{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(62,127,201,0.45); }
  50%{ box-shadow: 0 0 0 10px rgba(62,127,201,0); }
}

.activity-toast{
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  display:flex;
  align-items:center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  box-shadow: 0 14px 30px -16px rgba(var(--shadow), 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  max-width: calc(100% - 32px);
}

.activity-toast.show{
  opacity: 1;
  transform: translateY(0);
}

.activity-avatar{
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #FFFFFF;
  display:flex; align-items:center; justify-content:center;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.activity-text{
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px){
  .activity-toast{
    left: 50%;
    transform: translate(-50%, 12px);
  }
  .activity-toast.show{
    transform: translate(-50%, 0);
  }
}
