/* ELO Digital Hub — estilos estáticos (sem build tools) */

:root {
  --brand: #24155d;
  --brand-deep: #11143f;
  --brand-blue: #026fd7;
  --accent-glow: rgba(2, 111, 215, 0.65);
  --chrome: #d6def3;
  --mint: #00dfe8;
  --mint-foreground: #001924;
  --card: #14122b;
  --border-15: rgba(255, 255, 255, 0.2);
  --border-10: rgba(255, 255, 255, 0.1);
  --foreground: #fbfbfe;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--brand);
  color: var(--foreground);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ambient glow blobs */
.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  top: -6rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(2, 111, 215, 0.4);
}
.glow-b {
  top: 33%;
  right: -7rem;
  width: 20rem;
  height: 20rem;
  background: rgba(0, 223, 232, 0.25);
}
.glow-c {
  bottom: 0;
  left: 25%;
  width: 18rem;
  height: 18rem;
  background: rgba(214, 222, 243, 0.1);
}

.page {
  position: relative;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: min(9vw, 44px);
  background: var(--brand-deep);
  padding: 0.75rem;
  outline: 1px solid var(--border-15);
  outline-offset: -1px;
  box-shadow: 0 10px 30px -5px var(--accent-glow);
}
.avatar img {
  width: 100%;
  object-fit: contain;
}
.avatar .dot {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--brand);
}

h1 {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.575rem;
  line-height: 1.1;
  color: #fff;
  filter: drop-shadow(0 4px 24px rgba(255, 255, 255, 0.18));
}
@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--chrome);
}
@media (min-width: 640px) {
  .lede { font-size: 1.25rem; }
}

.links {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.card-wrap {
  position: relative;
}

.card {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  outline: 1px solid var(--border-15);
  outline-offset: -1px;
  box-shadow: 0 12px 30px -12px var(--accent-glow);
  transition: transform 0.2s ease;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
}
.card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.card img {
  width: 100%;
  display: block;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: rgba(17, 20, 63, 0.7);
  color: #fff;
  transition: background-color 0.2s ease;
}
.copy-btn:hover {
  background: var(--brand-deep);
}
.copy-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.copy-btn .icon-check { color: var(--mint); }

.share-btn {
  margin-top: 1.25rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-15);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s ease;
}
.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.share-btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.share-btn .icon-check { color: var(--mint); }

.socials {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--brand-deep);
  color: #fff;
  outline: 1px solid var(--border-15);
  outline-offset: -1px;
  transition: transform 0.2s ease;
}
.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-4px);
}
.socials a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(214, 222, 243, 0.9);
}

/* Rise-in animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise {
  opacity: 0;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.1s; }
.d3 { animation-delay: 0.15s; }
.d4 { animation-delay: 0.2s; }
.d5 { animation-delay: 0.25s; }
.d6 { animation-delay: 0.3s; }
.d7 { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
    opacity: 1;
  }
  .card, .share-btn, .socials a {
    transition: none;
  }
}

/* Toast (feedback de copiar/compartilhar) */
#toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 0);
  background: var(--brand-deep);
  color: #fff;
  border: 1px solid var(--border-15);
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, -0.5rem);
}
