/* Design system da Mydrion, recorte para a bio.
   Tokens e padroes copiados de apps/mydrion-site/src/styles (tokens.css, components.css, sections.css).
   Mudou la, muda aqui. */

:root {
  color-scheme: dark;
  --ink-950: #08090b;
  --ink-900: #0e1013;
  --ink-800: #191c21;
  --ink-700: #262a30;
  --smoke-500: #7b7f87;
  --smoke-300: #a4a7ae;
  --paper-100: #f7f5f0;
  --paper-0: #ffffff;
  --sand-300: #f9d9b1;
  --sand-400: #e8c49a;
  --line-dark: rgb(255 255 255 / 12%);
  --line-light: rgb(8 9 11 / 14%);
  --font-display: "Instrument Sans", "Arial Narrow", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --radius-sm: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --wa: #25d366;
  --wa-hover: #3be176;
  --wa-ink: #07150c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink-950);
  overflow-x: clip;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ink-950);
  color: var(--paper-100);
  font-family: var(--font-display);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grade e brilho areia do hero do site */
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 22% 6%, rgb(249 217 177 / 7%), transparent 34%),
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 35%) 45%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 35%) 45%, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--sand-300);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 104px;
  flex-direction: column;
}

/* Barra do topo: wordmark + contexto em mono */
.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}

.topbar__brand img {
  display: block;
  width: auto;
  height: 17px;
}

.topbar__meta,
.topbar__back {
  color: var(--smoke-300);
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 260ms var(--ease-out);
}

.topbar__back svg {
  transition: transform 260ms var(--ease-out);
}

.topbar__back:hover {
  color: var(--sand-300);
}

.topbar__back:hover svg {
  transform: translateX(-3px);
}

/* Eyebrow: mono, areia, bolinha na frente e linha que cresce */
.eyebrow {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin: 48px 0 16px;
  color: var(--sand-300);
  font: 500 0.68rem/1 var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "\25CF";
  font-size: 0.52rem;
}

.eyebrow::after {
  height: 1px;
  flex: 1;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgb(249 217 177 / 55%), transparent);
  content: "";
  animation: eyebrow-line 780ms var(--ease-out) 420ms forwards;
}

.eyebrow--flush {
  margin-top: 0;
}

@keyframes eyebrow-line {
  to {
    transform: scaleX(1);
  }
}

/* Cards de link */
.links {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgb(14 16 19 / 78%);
  color: var(--paper-100);
  transition:
    border-color 260ms var(--ease-out),
    background 260ms var(--ease-out);
}

.card:hover {
  border-color: rgb(249 217 177 / 45%);
  background: var(--ink-800);
}

.card--primary {
  border-color: rgb(249 217 177 / 38%);
  background:
    linear-gradient(135deg, rgb(249 217 177 / 9%), transparent 62%),
    var(--ink-900);
}

.card__index {
  color: var(--smoke-500);
  font: 500 0.68rem/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.card--primary .card__index {
  color: var(--sand-300);
}

.card__mark {
  display: block;
  width: 26px;
  height: auto;
}

.card__body {
  min-width: 0;
}

.card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card__sub {
  margin-top: 4px;
  color: var(--smoke-300);
  font-size: 0.86rem;
  line-height: 1.45;
}

.card__arrow {
  flex-shrink: 0;
  color: var(--smoke-500);
  transition:
    transform 260ms var(--ease-out),
    color 260ms var(--ease-out);
}

.card:hover .card__arrow {
  transform: translate(3px, -3px);
  color: var(--sand-300);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid rgb(249 217 177 / 50%);
  border-radius: var(--radius-sm);
  color: var(--sand-300);
  font: 500 0.58rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Botoes: arrow-link do site */
.btn {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font: 500 0.76rem/1.2 var(--font-mono);
  letter-spacing: 0.02em;
  text-align: left;
  transition:
    color 260ms var(--ease-out),
    background 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}

.btn svg {
  flex-shrink: 0;
  transition: transform 260ms var(--ease-out);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn--solid {
  border-color: var(--sand-300);
  background: var(--sand-300);
  color: var(--ink-950);
}

.btn--solid:hover {
  border-color: var(--paper-100);
  background: var(--paper-100);
}

.btn--outline {
  color: var(--paper-100);
}

.btn--outline:hover {
  border-color: var(--sand-300);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.btn:disabled:hover svg {
  transform: none;
}

/* WhatsApp: pilula verde do site */
.wa-btn {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  background: var(--wa);
  box-shadow: 0 15px 38px rgb(8 9 11 / 28%);
  color: var(--wa-ink);
  font: 600 0.8rem/1.2 var(--font-mono);
  letter-spacing: 0.01em;
  text-align: center;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms ease;
}

.wa-btn:hover {
  transform: translateY(-2px);
  background: var(--wa-hover);
  box-shadow: 0 19px 44px rgb(8 9 11 / 34%);
}

.wa-btn svg {
  flex-shrink: 0;
}

.float-wa {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  background: var(--wa);
  box-shadow: 0 15px 38px rgb(8 9 11 / 28%);
  color: var(--wa-ink);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms ease;
}

.float-wa:hover {
  transform: translateY(-3px);
  background: var(--wa-hover);
  box-shadow: 0 19px 44px rgb(8 9 11 / 34%);
}

.float-wa svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Rodape em mono */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--smoke-500);
  font: 500 0.62rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer a {
  color: var(--smoke-300);
  transition: color 260ms var(--ease-out);
}

footer a:hover {
  color: var(--sand-300);
}

/* Entrada escalonada: opacity + y 18px, curva do site */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal > * {
  animation: rise 0.7s var(--ease-out) both;
}

.reveal > *:nth-child(1) { animation-delay: 0.04s; }
.reveal > *:nth-child(2) { animation-delay: 0.1s; }
.reveal > *:nth-child(3) { animation-delay: 0.16s; }
.reveal > *:nth-child(4) { animation-delay: 0.22s; }
.reveal > *:nth-child(5) { animation-delay: 0.28s; }
.reveal > *:nth-child(6) { animation-delay: 0.34s; }
.reveal > *:nth-child(7) { animation-delay: 0.4s; }
.reveal > *:nth-child(8) { animation-delay: 0.46s; }
.reveal > *:nth-child(9) { animation-delay: 0.52s; }
.reveal > *:nth-child(10) { animation-delay: 0.58s; }
.reveal > *:nth-child(n + 11) { animation-delay: 0.64s; }

@media (max-width: 560px) {
  .float-wa {
    width: 52px;
    height: 52px;
  }

  .float-wa svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal > * {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }

  .eyebrow::after {
    transform: scaleX(1);
    animation: none;
  }

  .card,
  .card__arrow,
  .btn,
  .btn svg,
  .wa-btn,
  .float-wa {
    transition: none;
  }
}
