/* ==========================================================================
   Stanlie Academy — Stealth Cobalt Vault (Definitivo)
   Logo acima do retrato + Bandeja Stealth Liquid Glass + Header Horizontal Card
   ========================================================================== */

:root {
  --bg-outer: #01040B;
  --bg-abyss: #030612;
  --bg-deep: #071128;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --accent-ice: #BAE6FD;
  --verified-blue: #1D9BF0;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-outer);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg-outer);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  display: flex;
  justify-content: center;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--bg-abyss) 0%, #050C20 55%, var(--bg-deep) 100%);
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

@media (min-width: 460px) {
  .page-shell {
    border-left: 1px solid rgba(255, 255, 255, 0.045);
    border-right: 1px solid rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.65);
  }
}

/* Fundo limpo: candlesticks ultra-subtis + grão fino */
.bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

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

.bg-candles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 155px;
  opacity: 0.05;
}

.bio-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   1. Logo Acima da Cabeça + Hero Photo com Fusão Radial & Vertical
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
}

.brand-top {
  position: relative;
  z-index: 3;
  padding: max(20px, env(safe-area-inset-top, 20px)) 22px 10px;
  display: flex;
  justify-content: center;
}

.brand-heading {
  margin: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 276px;
  overflow: hidden;
  background-color: var(--bg-abyss);
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  filter: saturate(0.92) contrast(1.04);
  user-select: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, #030612 0%, rgba(3, 6, 18, 0.45) 14%, rgba(3, 6, 18, 0) 30%),
    radial-gradient(85% 75% at 50% 42%, rgba(3, 6, 18, 0) 40%, rgba(3, 6, 18, 0.72) 86%, #030612 100%),
    linear-gradient(to bottom, rgba(3, 6, 18, 0.04) 0%, rgba(3, 6, 18, 0.25) 48%, rgba(3, 6, 18, 0.9) 80%, #030612 100%);
}

.identity-block {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.handle-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.handle-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.verified-badge {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.brand-bio {
  margin: 0;
  font-size: clamp(11.5px, 3.1vw, 13.5px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 350px) {
  .brand-bio {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   2. Bandeja Stealth Liquid Glass com 4 Botões Sociais
   -------------------------------------------------------------------------- */
.socials-row {
  position: relative;
  z-index: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 22px;
  padding: 6px 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.social-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 20px rgba(0, 0, 0, 0.4);
  user-select: none;
  touch-action: manipulation;
  transition: transform 140ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.social-btn svg {
  width: 19px;
  height: 19px;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .social-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
  }
}

.social-btn:active {
  transform: scale(0.985);
}

/* --------------------------------------------------------------------------
   3. Secção de Parcerias (Header Compacto Horizontal Logo ↔ Badge)
   -------------------------------------------------------------------------- */
.partners-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px;
}

.partner-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo badge"
    "desc desc"
    "coupon coupon"
    "cta cta";
  align-items: center;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.032);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .partner-card:not(.is-coming-soon):hover {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

.partner-logo-wrap {
  grid-area: logo;
  margin: 0;
  height: 26px;
  display: flex;
  align-items: center;
}

.partner-logo {
  display: block;
  height: 23px;
  width: auto;
  max-width: 162px;
  object-fit: contain;
  object-position: left center;
  user-select: none;
}

.partner-logo--white {
  filter: brightness(0) invert(1);
}

.partner-badge {
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(186, 230, 253, 0.1);
  border: 1px solid rgba(186, 230, 253, 0.22);
  color: var(--accent-ice);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  user-select: none;
}

.partner-desc {
  grid-area: desc;
  margin: 12px 0 14px;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--text-secondary);
}

/* Barra de Cupom */
.coupon-bar {
  grid-area: coupon;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: rgba(1, 4, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coupon-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-primary);
  user-select: all;
}

.copy-btn {
  flex-shrink: 0;
  min-height: 35px;
  min-width: 84px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 120ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.copy-btn:active {
  transform: scale(0.985);
}

.copy-btn.is-copied {
  background: rgba(186, 230, 253, 0.18);
  border-color: var(--accent-ice);
  color: var(--accent-ice);
}

/* CTA Principal */
.cta-btn {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  background-color: var(--text-primary);
  color: var(--bg-abyss);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cta-btn:hover {
    background-color: #F1F5F9;
  }
}

.cta-btn:active {
  transform: scale(0.985);
}

/* Estado Em Breve / Desativado (Alpha Capital até atualização) */
.partner-card.is-coming-soon {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.partner-card.is-coming-soon .partner-logo {
  opacity: 0.68;
}

.partner-card.is-coming-soon .partner-badge {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
}

.partner-card.is-coming-soon .partner-desc {
  opacity: 0.72;
  margin-bottom: 12px;
}

.cta-btn--disabled {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  opacity: 0.75;
}

/* Acessibilidade foco */
.social-btn:focus-visible,
.copy-btn:focus-visible,
.cta-btn:focus-visible {
  outline: 2px solid var(--accent-ice);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Footer Discreto
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 26px 14px calc(26px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.footer-copy {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.72;
}

.footer-risk {
  margin: 0;
  font-size: clamp(9.5px, 2.5vw, 11px);
  line-height: 1.45;
  color: var(--text-secondary);
  opacity: 0.45;
  white-space: nowrap;
}

@media (max-width: 350px) {
  .footer-risk {
    white-space: normal;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.copy-buffer {
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Stagger entrada */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-item {
  animation: fadeUpIn 460ms var(--ease-out) both;
}

.stagger-0 { animation-delay: 0ms; }
.stagger-1 { animation-delay: 60ms; }
.stagger-2 { animation-delay: 120ms; }
.stagger-3 { animation-delay: 180ms; }
.stagger-4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .stagger-item {
    animation: none;
  }
  .social-btn,
  .copy-btn,
  .cta-btn {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .social-btn,
  .partner-card {
    background: #081229;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
