/* ============================================================
   CLAUDIA MOURA — LINK BIO (EDITORIAL QUIET LUXURY V2)
   Inspired by claudia_link_bio: Ivory, Burgundy, Rose & Champagne Gold
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ivory:       #f6ebea;
  --paper:       #fbf7f6;
  --paper-trans: rgba(251, 247, 246, 0.78);
  
  --rose:        #b97983;
  --rose-deep:   #985b68;
  --burgundy:    #642d3b;
  --burgundy-dark: #431b26;
  
  --gold:        #b99a69;
  --gold-light:  #e6cda7;
  --gold-glow:   rgba(185, 154, 105, 0.28);
  
  --ink:         #30272a;
  --muted:       #796d6d;
  --line:        rgba(100, 45, 59, 0.16);
  --line-gold:   rgba(185, 154, 105, 0.35);

  --serif:       "Playfair Display", Georgia, serif;
  --sans:        "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-card: 14px;
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse at 8% 8%, rgba(204, 74, 132, 0.22), transparent 34rem),
    radial-gradient(ellipse at 95% 85%, rgba(185, 121, 131, 0.22), transparent 30rem),
    radial-gradient(ellipse at 50% 0%, rgba(204, 74, 132, 0.14), transparent 28rem),
    radial-gradient(circle at 50% 40%, rgba(251, 247, 246, 0.72), transparent 36rem);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

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

/* ── Decorative Background Glows ─────────────────────────── */
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}

.bg-glow-1 {
  width: min(95vw, 520px);
  height: 520px;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(204, 74, 132, 0.22) 0%, rgba(185, 121, 131, 0.18) 45%, transparent 75%);
  animation: glowPulse 9s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: min(85vw, 460px);
  height: 460px;
  top: 48%;
  right: -8%;
  background: radial-gradient(circle, rgba(204, 74, 132, 0.16) 0%, rgba(185, 154, 105, 0.14) 55%, transparent 80%);
  animation: glowPulse 12s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* ── Running Marquee Background ───────────────────────────── */
.bg-marquee {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marqueeScroll 45s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 13vw, 10rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(100, 45, 59, 0.045);
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Page Shell ───────────────────────────────────────────── */
.page-shell {
  width: min(100% - 32px, 540px);
  margin: 0 auto;
  padding: 42px 0 36px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ── Topline ──────────────────────────────────────────────── */
.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-8px);
}

.topline::before, .topline::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}

/* ── Identity Header ──────────────────────────────────────── */
.identity {
  text-align: center;
  padding: 24px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circular Logo Frame */
.logo-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(185, 154, 105, 0.7);
  border-radius: 50%;
  background: rgba(251, 247, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(100, 45, 59, 0.1), 0 0 20px rgba(185, 154, 105, 0.25);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
}

.logo-circle:hover {
  transform: scale(1.05) rotate(2deg);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(100, 45, 59, 0.14), 0 0 28px var(--gold-glow);
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}

/* Brand Name with Gold Sheen */
.brand-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 6.8vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(10px);

  /* Gold & Burgundy metallic gradient */
  background: linear-gradient(
    115deg,
    #642d3b 0%,
    #985b68 25%,
    #b99a69 45%,
    #e6cda7 55%,
    #985b68 75%,
    #642d3b 100%
  );
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--burgundy);
  animation: shineBrandTitle 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(100, 45, 59, 0.08));
}

@keyframes shineBrandTitle {
  0% { background-position: 150% center; }
  50%, 100% { background-position: -70% center; }
}

.tagline {
  margin: 9px 0 0;
  color: var(--rose-deep);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
}

.intro {
  max-width: 400px;
  margin: 14px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
}

/* ── Social Row ───────────────────────────────────────────── */
.contact-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 0;
  opacity: 0;
  transform: translateY(8px);
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--burgundy);
  background: rgba(251, 248, 245, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(100, 45, 59, 0.04);
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.3s ease;
}

.social-link:hover {
  background: #ffffff;
  color: var(--rose-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(100, 45, 59, 0.12), 0 0 12px var(--gold-glow);
}

.social-link:hover svg {
  transform: scale(1.15);
}

/* ── Manifesto Section ────────────────────────────────────── */
.manifesto-wrap {
  width: 100%;
  text-align: center;
  margin: 22px 0 16px;
  opacity: 0;
  transform: translateY(12px);
}

.manifesto-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.m-line {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.m-diamond {
  font-size: 8px;
  color: var(--gold);
  opacity: 0.85;
}

.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--burgundy);
  letter-spacing: 0.015em;
  border: none;
  padding: 0 10px;
}

.manifesto-text em {
  font-style: italic;
  color: var(--rose-deep);
  font-weight: 400;
}

/* ── Cards Section ────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

.card {
  width: 100%;
  aspect-ratio: 8 / 3;
  min-height: 140px;
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-card);
  border: 1px solid rgba(185, 154, 105, 0.35);
  background: var(--burgundy);
  box-shadow: 0 10px 28px rgba(63, 36, 43, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  opacity: 0;
  transform: translateX(-18px);
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px) scale(1.015) !important;
  box-shadow: 0 16px 36px rgba(63, 36, 43, 0.22), 0 0 20px var(--gold-glow) !important;
  border-color: rgba(185, 154, 105, 0.8) !important;
}

/* Card Cover Image */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-img {
  transform: scale(1.035);
}

/* Shimmer Light Reflection */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(230, 205, 167, 0.15) 38%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(230, 205, 167, 0.15) 62%,
    transparent 80%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 2;
  animation: shimmerAuto 4s ease-in-out infinite;
}

@keyframes shimmerAuto {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 160%; opacity: 1; }
  65%  { opacity: 0; }
  100% { left: 160%; opacity: 0; }
}

.card:nth-child(1) .card-shimmer { animation-delay: 0s; }
.card:nth-child(2) .card-shimmer { animation-delay: 1.3s; }
.card:nth-child(3) .card-shimmer { animation-delay: 2.6s; }

/* Card Editorial Meta Overlay Content */
.card-content {
  width: 100%;
  padding: 14px 18px;
  color: #fffaf6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  z-index: 3;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eyebrow {
  display: inline-block;
  color: #e6cda7;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.card-title-sub {
  font-family: var(--serif);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Arrow indicator button */
.arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 205, 167, 0.75);
  border-radius: 50%;
  color: #f0d9b5;
  background: rgba(28, 14, 19, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.card:hover .arrow {
  background: #e6cda7;
  color: var(--burgundy);
  border-color: #ffffff;
  transform: rotate(45deg);
}

/* ── Closing Statement Section ────────────────────────────── */
.closing-section {
  width: 100%;
  text-align: center;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
}

.closing-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.c-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.c-diamond {
  font-size: 7px;
  color: var(--gold);
  opacity: 0.8;
}

.closing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.92rem, 3.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.82;
  letter-spacing: 0.015em;
  max-width: 380px;
  padding: 0 10px;
}

.closing-author {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  padding: 30px 0 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.footer-logo-wrap {
  margin-bottom: 8px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.08);
  opacity: 1;
}

.footer-tagline {
  margin: 4px 0 0;
  color: var(--rose-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.copyright {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fine-line {
  width: 46px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--gold);
  opacity: 0.65;
}

/* ── Responsiveness ───────────────────────────────────────── */
@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 18px, 540px);
    padding-top: 32px;
  }

  .logo-circle {
    width: 98px;
    height: 98px;
    margin-bottom: 15px;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .brand-name {
    font-size: 27px;
  }

  /* Cards maiores no celular: aproveita a largura da tela com mais altura */
  .cards {
    width: 100%;
    gap: 15px;
  }

  .card {
    border-radius: 14px;
    /* Proporção com mais altura no mobile para maior impacto visual */
    aspect-ratio: 2.35 / 1;
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
