/* ==========================================================================
   João Mendes — Single-Link Bio & Acquisition Page
   Identity: Dark Editorial / High-Ticket Performance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400..800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0a0e0c;
  --bg-card: rgba(17, 24, 21, 0.82);
  --bg-card-subtle: rgba(24, 34, 30, 0.55);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(157, 179, 68, 0.35);
  --line-separator: rgba(255, 255, 255, 0.06);

  --text-main: #f7f9f7;
  --text-muted: #9ba7a0;
  --text-sub: #637068;

  --accent-olive: #9db344;
  --accent-olive-glow: rgba(157, 179, 68, 0.22);
  --wa-primary: #25d366;
  --wa-dark: #128c7e;
  --wa-glow: rgba(37, 211, 102, 0.28);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.2rem 1rem 3.5rem;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmospheric Mesh */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 480px;
  background: radial-gradient(circle, rgba(157, 179, 68, 0.18) 0%, rgba(37, 211, 102, 0.09) 35%, transparent 70%);
  filter: blur(60px);
  animation: orb-breathe 8s ease-in-out infinite alternate;
}

@keyframes orb-breathe {
  0% { transform: translateX(-50%) scale(1); opacity: 0.75; }
  100% { transform: translateX(-47%) scale(1.16); opacity: 1; }
}

.glow-orb-bottom {
  position: absolute;
  bottom: -150px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(18, 140, 126, 0.14) 0%, transparent 65%);
  filter: blur(70px);
  animation: orb-drift 11s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.12); }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* App Container */
.page-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Profile Header Card */
.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 1.35rem;
}

.avatar-ring {
  width: 114px;
  height: 114px;
  border-radius: var(--radius-full);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-ring {
  transform: scale(1.04);
}

.avatar-halo {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(from 0deg, #9db344, #25d366, #128c7e, #c7e05e, #9db344);
  filter: blur(6px);
  opacity: 0.75;
  animation: rotate-halo 7s linear infinite;
  z-index: 0;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-full);
  background: conic-gradient(from 0deg, #9db344, #25d366, #128c7e, #c7e05e, #9db344);
  animation: rotate-halo 7s linear infinite;
  z-index: 1;
}

@keyframes rotate-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  background-color: #121815;
  border: 3px solid #0d1210;
  position: relative;
  z-index: 2;
}

/* Profile Names & Copy */
.profile-title-group {
  margin-bottom: 0.9rem;
}

.profile-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.verified-icon {
  width: 18px;
  height: 18px;
  color: #9db344;
  flex-shrink: 0;
}

.profile-role {
  font-size: clamp(0.74rem, 3.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  min-height: 1.5em;
}

.role-rotator {
  display: inline-flex;
  position: relative;
  align-items: center;
  color: #c7e05e;
  font-weight: 700;
  white-space: nowrap;
}

.rotator-item {
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), filter 0.32s ease;
}

.rotator-item.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(4px);
}

.rotator-item.fade-in {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 330px;
  margin: 0 auto;
}

/* ==========================================================================
   PRIMARY HERO CONVERSION BUTTON (THE ONE LINK)
   ========================================================================== */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
  color: #082113;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 14px 28px -6px rgba(37, 211, 102, 0.38),
              0 2px 6px rgba(0, 0, 0, 0.3),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: visible;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.radar-ping {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: rgba(37, 211, 102, 0.35);
  pointer-events: none;
  z-index: 0;
  animation: radar-pulse 3s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  45% { transform: scale(1.03, 1.12); opacity: 0; }
  100% { transform: scale(1.03, 1.12); opacity: 0; }
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: none;
  animation: shine 4s infinite;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
}

@keyframes shine {
  0% { left: -100%; }
  22% { left: 160%; }
  100% { left: 160%; }
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -6px rgba(37, 211, 102, 0.48),
              0 4px 10px rgba(0, 0, 0, 0.4),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.cta-button:active {
  transform: scale(0.975);
  box-shadow: 0 6px 14px -4px rgba(37, 211, 102, 0.35);
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1;
}

.wa-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-icon-box svg {
  width: 25px;
  height: 25px;
  fill: #082113;
}

.cta-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.cta-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b3d20;
  opacity: 0.88;
  white-space: nowrap;
}

.cta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.96rem, 3.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #082113;
  white-space: nowrap;
}

.cta-subtitle {
  font-size: clamp(0.68rem, 2.7vw, 0.76rem);
  font-weight: 600;
  color: #104224;
  margin-top: 1px;
  white-space: nowrap;
}

.cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  position: relative;
  z-index: 2;
  margin-left: 0.4rem;
}

.cta-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #082113;
  stroke-width: 2.4;
  animation: arrow-peek 2.4s ease-in-out infinite;
}

@keyframes arrow-peek {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.cta-button:hover .cta-arrow {
  transform: translateX(3px);
  background: rgba(0, 0, 0, 0.16);
}

/* Micro assurances beneath button */
.reassurance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-sub);
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reassurance-item svg {
  width: 13px;
  height: 13px;
  color: var(--accent-olive);
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-sub);
}

.brand-sign {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-muted);
}

.brand-sign span {
  color: var(--accent-olive);
}

/* Responsiveness & Mobile Native Polish */
@media (max-width: 480px) {
  body {
    padding: max(1.8rem, calc(1.2rem + env(safe-area-inset-top))) 1rem max(2.5rem, calc(1.8rem + env(safe-area-inset-bottom)));
  }

  .page-container {
    gap: 1.25rem;
  }

  .profile-card {
    padding: 2rem 1.35rem 1.6rem;
  }

  .cta-button {
    padding: 1.05rem 1.1rem;
  }

  .cta-title {
    font-size: 1.02rem;
  }

  .reassurance-row {
    justify-content: center;
    gap: 0.7rem 1.1rem;
    flex-wrap: wrap;
    font-size: 0.73rem;
  }
}

@media (max-width: 380px) {
  body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .profile-card {
    padding: 1.6rem 1rem 1.3rem;
  }
  
  .avatar-ring {
    width: 102px;
    height: 102px;
  }

  .profile-name {
    font-size: 1.45rem;
  }

  .profile-role {
    font-size: 0.78rem;
  }

  .profile-bio {
    font-size: 0.88rem;
  }

  .cta-title {
    font-size: 0.94rem;
  }

  .cta-subtitle {
    font-size: 0.68rem;
  }

  .cta-button {
    padding: 0.95rem 0.9rem;
  }

  .cta-left {
    gap: 0.65rem;
  }

  .wa-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .wa-icon-box svg {
    width: 21px;
    height: 21px;
  }

  .cta-arrow {
    width: 28px;
    height: 28px;
    margin-left: 0.2rem;
  }

  .cta-arrow svg {
    width: 14px;
    height: 14px;
  }

  .reassurance-row {
    font-size: 0.68rem;
    gap: 0.5rem 0.8rem;
  }
}

/* ==========================================================================
   MOBILE-FIRST BOTTOM SHEET MODAL
   ========================================================================== */

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 440px;
  background: #0e1411;
  background: linear-gradient(180deg, #131c17 0%, #0c120e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 1rem 1.35rem max(1.8rem, calc(1.2rem + env(safe-area-inset-bottom)));
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-backdrop.active .bottom-sheet {
  transform: translateY(0);
}

.sheet-drag-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.2rem 0 1rem;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  transition: background var(--transition-fast);
}

.sheet-drag-area:hover .sheet-handle {
  background: rgba(255, 255, 255, 0.4);
}

.sheet-close {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.sheet-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.06);
}

.sheet-close:active {
  transform: scale(0.94);
}

.sheet-close svg {
  width: 16px;
  height: 16px;
}

.sheet-header {
  margin-bottom: 1.15rem;
  text-align: left;
}

.sheet-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-olive);
  margin-bottom: 4px;
}

.sheet-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.22;
}

.sheet-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.42;
}

.sheet-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.sheet-option-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sheet-option-card:hover {
  background: rgba(37, 211, 102, 0.06);
  border-color: rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.08);
}

.sheet-option-card:active {
  transform: scale(0.98);
  background: rgba(37, 211, 102, 0.09);
}

.option-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon-ads {
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.28);
}

.option-icon-consulting {
  background: rgba(157, 179, 68, 0.16);
  color: #c7e05e;
  border: 1px solid rgba(157, 179, 68, 0.3);
}

.option-icon-box svg {
  width: 22px;
  height: 22px;
}

.option-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.option-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.option-pill {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.15);
  color: #3ae279;
  border: 1px solid rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.option-pill.pill-olive {
  background: rgba(157, 179, 68, 0.18);
  color: #d8f566;
  border-color: rgba(157, 179, 68, 0.35);
}

.option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.38;
}

.option-meta {
  font-size: 0.68rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.option-arrow {
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.sheet-option-card:hover .option-arrow {
  transform: translateX(3px);
  color: #25d366;
}

.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-sub);
  text-align: center;
}

.sheet-footer svg {
  width: 14px;
  height: 14px;
  fill: #25d366;
  flex-shrink: 0;
}

/* Modais em telas médias / desktop: cartão flutuante suave */
@media (min-width: 520px) {
  .sheet-backdrop {
    align-items: center;
    padding: 1.5rem;
  }

  .bottom-sheet {
    border-radius: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(22px) scale(0.96);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .sheet-backdrop.active .bottom-sheet {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 380px) {
  .bottom-sheet {
    padding: 0.9rem 1.05rem max(1.5rem, calc(1rem + env(safe-area-inset-bottom)));
  }

  .sheet-title {
    font-size: 1.22rem;
  }

  .sheet-option-card {
    padding: 0.9rem 0.95rem;
    gap: 0.75rem;
  }

  .option-title {
    font-size: 0.92rem;
  }

  .option-desc {
    font-size: 0.73rem;
  }
}

