/* Marcos Farias — Momento Física · link hub */

:root {
  --bg: #070707;
  --ink: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.72);
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, 0.35);
  --glass: rgba(12, 12, 12, 0.45);
  --ring: #ff8a33;
  --radius: 18px;
  --max: 420px;
  --pad: clamp(1rem, 4vw, 1.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* —— Background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__image {
  position: absolute;
  inset: -2%;
  background: var(--bg) center / cover no-repeat url("fundo.jpg");
  transform: scale(1.04);
  opacity: 0.38;
  filter: saturate(0.9) contrast(1.05);
}

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 106, 0, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.55) 0%, rgba(7, 7, 7, 0.78) 45%, rgba(7, 7, 7, 0.92) 100%);
}

/* —— Layout —— */
.shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: calc(var(--pad) + env(safe-area-inset-top)) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
}

.content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* —— Brand —— */
.brand {
  width: 100%;
  text-align: center;
  animation: rise 0.7s var(--ease) both;
}

.brand__logo {
  width: min(100%, 300px);
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.brand__tag {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Links —— */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
  animation: rise 0.7s var(--ease) both;
  -webkit-tap-highlight-color: transparent;
}

.link:nth-child(1) { animation-delay: 0.08s; }
.link:nth-child(2) { animation-delay: 0.16s; }
.link:nth-child(3) { animation-delay: 0.24s; }

.link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: transparent;
  pointer-events: none;
  transition: background 0.2s var(--ease);
}

.link img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.35s var(--ease),
    filter 0.28s var(--ease);
  will-change: transform;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 0 0 2px rgba(255, 106, 0, 0.25),
    0 16px 36px rgba(0, 0, 0, 0.45);
}

.link:hover img,
.link:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.05);
}

.link:active,
.link.is-pressed {
  transform: translateY(0) scale(1.02);
  box-shadow:
    0 0 0 2px var(--accent),
    0 12px 32px rgba(255, 106, 0, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.4);
  transition-duration: 0.14s;
}

.link:active img,
.link.is-pressed img {
  transform: scale(1.1);
  filter: brightness(1.08);
  transition-duration: 0.14s;
}

.link:active::after,
.link.is-pressed::after {
  background: rgba(255, 106, 0, 0.08);
}

.link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* —— Footer —— */
.foot {
  flex-shrink: 0;
  width: 100%;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.85;
  text-align: center;
  animation: rise 0.7s var(--ease) 0.32s both;
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .link,
  .foot {
    animation: none;
  }

  .link,
  .link img,
  .link:hover,
  .link:focus-visible,
  .link:active,
  .link.is-pressed {
    transition: none;
    transform: none;
    filter: none;
  }
}

/* —— Wider phones / tablets —— */
@media (min-width: 480px) {
  :root {
    --max: 460px;
    --radius: 20px;
  }

  .brand__logo {
    width: min(100%, 340px);
  }

  .links {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  :root {
    --max: 520px;
  }

  .bg__image {
    opacity: 0.42;
  }
}

