/* ═══════════════════════════════════════════════
   FELIPE ALVIM — Link Page
   style.css
   ═══════════════════════════════════════════════ */

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

:root {
  /* ── Orange/Amber palette (matches Growth/Felipe identity) ── */
  --orange:        #E8820C;
  --orange-light:  #F5A030;
  --orange-pale:   #FACA80;
  --orange-deep:   #9A4E00;
  --orange-glow:   rgba(232, 130, 12, 0.20);

  /* ── Dark neutrals ── */
  --bg:            #090909;
  --bg-card:       rgba(16, 14, 10, 0.88);
  --bg-card-h:     rgba(24, 20, 12, 0.96);

  --border:        rgba(232, 130, 12, 0.14);
  --border-h:      rgba(232, 130, 12, 0.44);

  --text-main:     #F0EAE0;
  --text-muted:    #9A907A;
  --text-dim:      #55504A;

  /* ── Growth brand colors ── */
  --growth-red:    #D92626;
  --growth-blue:   #2A74C4;
  --growth-yellow: #F5C200;
  --growth-dark:   #0E0E0E;
  --growth-paper:  #F0EDE4;

  /* ── Typography ── */
  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Barlow', system-ui, sans-serif;
  --font-condensed:  'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  --radius-card: 16px;
  --radius-pill: 40px;
  --transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── CANVAS BACKGROUND ── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── NOISE TEXTURE ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.65;
}

/* ── RADIAL GLOWS ── */
.glow-top {
  position: fixed;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse at center top, rgba(232, 130, 12, 0.14) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.glow-bottom {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 320px;
  background: radial-gradient(ellipse at center bottom, rgba(200, 80, 0, 0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ── PAGE LAYOUT ── */
.page {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  padding: 52px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 100dvh;
}

/* ══════════════════════════════════
   PROFILE HEADER
══════════════════════════════════ */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* Avatar ring */
.avatar-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.avatar-inner {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1410, #2a1e10);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(232, 130, 12, 0.28),
    0 0 28px rgba(232, 130, 12, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-fallback {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange-light);
  letter-spacing: 0.05em;
}

/* Animated ring track */
.avatar-ring-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(232, 130, 12, 0.7) 20%,
    rgba(245, 160, 48, 0.95) 30%,
    rgba(232, 130, 12, 0.7) 40%,
    transparent 60%,
    transparent 100%
  );
  animation: spinRing 6s linear infinite;
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 2.5px), black calc(100% - 2.5px));
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2.5px), black calc(100% - 2.5px));
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* Profile text */
.profile-label {
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.brand-name {
  font-family: var(--font-condensed);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 0 40px rgba(232, 130, 12, 0.25);
}

.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* Pulsing dot */
.dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4A9B73;
  box-shadow: 0 0 0 0 rgba(74,155,115,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,155,115,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74,155,115,0); }
}

/* Bio */
.brand-bio {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 300px;
  margin-bottom: 18px;
}

.bio-highlight {
  color: var(--orange-pale);
  font-weight: 500;
}

/* Proof pills */
.proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--orange-pale);
  background: rgba(232, 130, 12, 0.08);
  border: 1px solid rgba(232, 130, 12, 0.22);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.proof-pill:hover {
  background: rgba(232, 130, 12, 0.14);
  border-color: rgba(232, 130, 12, 0.40);
}

/* ══════════════════════════════════
   VIDEO SECTION
══════════════════════════════════ */
.video-section {
  width: 100%;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.video-label {
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(232,130,12,0.06);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: center;
}

/* ══════════════════════════════════
   LINK CARDS
══════════════════════════════════ */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 28px;
}

/* Base card */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  transform: translateY(16px);
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 130, 12, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 130, 12, 0.30), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-2px) scale(1.008);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(232, 130, 12, 0.12),
    0 0 24px rgba(232, 130, 12, 0.06);
}

.link-card:hover::before { opacity: 1; }
.link-card:hover::after  { opacity: 1; }

.link-card:active {
  transform: translateY(0) scale(0.996);
  transition-duration: 0.1s;
}

/* PRIMARY */
.link-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-color: transparent;
  color: #0A0604;
  box-shadow:
    0 4px 20px rgba(232, 130, 12, 0.38),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

.link-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.link-primary:hover {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
  border-color: transparent;
  box-shadow:
    0 8px 32px rgba(232, 130, 12, 0.48),
    0 1px 0 rgba(255,255,255,0.12) inset;
  color: #0A0604;
}

.link-primary .lc-title { color: #0A0604; font-weight: 600; }
.link-primary .lc-sub   { color: rgba(10,6,4,0.65); }
.link-primary .lc-arrow { color: rgba(10,6,4,0.5); }

/* FEATURE */
.link-feature {
  border-color: rgba(232, 130, 12, 0.28);
  background: rgba(232, 130, 12, 0.05);
}

.link-feature:hover {
  border-color: rgba(232, 130, 12, 0.55);
  background: rgba(232, 130, 12, 0.10);
}

/* DEFAULT */
.link-default {
  /* inherits base styles */
}

/* ══════════════════════════════════
   GROWTH SUPPLEMENTS CARD
══════════════════════════════════ */
.link-growth {
  position: relative;
  padding: 0;
  border: 2px solid var(--growth-yellow);
  background: var(--growth-dark);
  overflow: hidden;
  min-height: 88px;
  box-shadow:
    0 4px 24px rgba(245, 194, 0, 0.20),
    0 0 0 1px rgba(245, 194, 0, 0.08);
  align-items: stretch;
  gap: 0;
}

.link-growth:hover {
  background: #161410;
  border-color: var(--growth-yellow);
  transform: translateY(-2px) scale(1.008);
  box-shadow:
    0 8px 36px rgba(245, 194, 0, 0.35),
    0 0 0 1px rgba(245, 194, 0, 0.15);
}

/* Torn paper background effect */
.growth-bg-tear {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      var(--growth-paper) 0%,
      var(--growth-paper) 36%,
      transparent 38%
    );
  clip-path: polygon(
    0 0,
    38% 0,
    36% 15%,
    38% 28%,
    35% 40%,
    37% 55%,
    34% 68%,
    36% 82%,
    33% 100%,
    0 100%
  );
  z-index: 0;
}

.growth-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: calc(100% - 36px);
  height: 100%;
  min-height: 88px;
}

.growth-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  gap: 4px;
}

.growth-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.growth-logo-g {
  font-family: var(--font-condensed);
  font-size: 30px;
  font-weight: 800;
  color: var(--growth-red);
  line-height: 0.85;
}

.growth-logo-rowth {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 700;
  color: var(--growth-blue);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.growth-logo-sup {
  font-family: var(--font-condensed);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #333;
  text-transform: uppercase;
  margin-top: 2px;
}

.growth-badge-icon {
  font-size: 16px;
  margin-top: 4px;
}

.growth-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 10px 14px 16px;
}

.growth-use {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: rgba(240,230,200,0.7);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.growth-code {
  font-family: var(--font-condensed);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--growth-yellow);
  line-height: 1;
  text-shadow:
    0 0 20px rgba(245, 194, 0, 0.5),
    2px 2px 0 rgba(0,0,0,0.6);
}

.growth-discount {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(240,230,200,0.6);
  text-transform: uppercase;
  margin-top: 1px;
}

.growth-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245, 194, 0, 0.5);
  font-size: 18px;
  z-index: 2;
}

.link-growth:hover .growth-arrow {
  color: var(--growth-yellow);
  transform: translateY(calc(-50% - 2px)) translate(2px, 0);
}

/* ══════════════════════════════════
   SHARED CARD INNER ELEMENTS
══════════════════════════════════ */
.lc-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.lc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lc-title {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-sub {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-arrow {
  font-size: 16px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.link-card:hover .lc-arrow {
  transform: translate(2px, -2px);
  color: var(--orange-light);
}

.lc-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0A0604;
  background: var(--orange-light);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ══════════════════════════════════
   SOCIAL ROW
══════════════════════════════════ */
.social-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-btn:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.social-btn svg {
  transition: transform var(--transition);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.page-footer {
  margin-top: auto;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.95s forwards;
}

.footer-brand {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0.7;
  margin-bottom: 6px;
}

.footer-made {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.55;
}

.footer-link {
  color: var(--orange);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-link:hover {
  opacity: 1;
}

/* ══════════════════════════════════
   RIPPLE EFFECT
══════════════════════════════════ */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(232, 130, 12, 0.15);
  animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ══════════════════════════════════
   KEYFRAMES
══════════════════════════════════ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 520px) {
  .page {
    padding: 40px 16px 40px;
  }

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

  .proof-row {
    gap: 6px;
  }

  .proof-pill {
    font-size: 10.5px;
    padding: 4px 11px;
  }

  .lc-title {
    font-size: 13.5px;
  }

  .growth-code {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
