/* ═══════════════════════════════════════════════
   NUTRIENTE — Link Page
   style.css
   ═══════════════════════════════════════════════ */

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

:root {
  --gold:        #B8962E;
  --gold-light:  #D4AF5A;
  --gold-pale:   #E8D5A3;
  --gold-deep:   #7A5C10;
  --gold-glow:   rgba(184, 150, 46, 0.18);
  --gold-glow-s: rgba(184, 150, 46, 0.08);

  --green-dark:  #122218;
  --green-mid:   #1E3D2A;
  --green-line:  rgba(46, 107, 79, 0.35);

  --bg:          #090A08;
  --bg-card:     rgba(18, 17, 13, 0.85);
  --bg-card-h:   rgba(26, 24, 16, 0.95);

  --border:      rgba(184, 150, 46, 0.14);
  --border-h:    rgba(184, 150, 46, 0.42);

  --text-main:   #F2EDE0;
  --text-muted:  #9E967E;
  --text-dim:    #5A5446;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius-card:  18px;
  --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.55;
}

/* ── 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.7;
}

/* ── RADIAL GLOWS ── */
.glow-top {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center top, rgba(184, 150, 46, 0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.glow-bottom {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(30, 61, 42, 0.25) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ── PAGE LAYOUT ── */
.page {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 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: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* Logo ring */
.logo-ring {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.logo-inner {
  position: absolute;
  inset: 6px;
  background: linear-gradient(145deg, #111009, #1a1810);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(184,150,46,0.25),
    0 0 28px rgba(184,150,46,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.logo-svg {
  width: 48px;
  height: 56px;
  filter: drop-shadow(0 0 6px rgba(184,150,46,0.4));
}

/* Animated ring track */
.logo-ring-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(184,150,46,0.7) 20%,
    rgba(212,175,90,0.9) 30%,
    rgba(184,150,46,0.7) 40%,
    transparent 60%,
    transparent 100%
  );
  animation: spinRing 6s linear infinite;
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
}

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

/* Brand text */
.brand-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 0 30px rgba(184,150,46,0.3);
}

.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
  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 (online indicator) */
.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: 320px;
  margin-bottom: 18px;
}

.bio-highlight {
  color: var(--gold-pale);
  font-weight: 400;
}

/* 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.05em;
  color: var(--gold-pale);
  background: rgba(184,150,46,0.08);
  border: 1px solid rgba(184,150,46,0.22);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: var(--transition);
}

.proof-pill:hover {
  background: rgba(184,150,46,0.14);
  border-color: rgba(184,150,46,0.38);
}

/* ══════════════════════════════════
   LINK CARDS
══════════════════════════════════ */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  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);

  /* entrance animation — staggered by nth-child in JS */
  opacity: 0;
  transform: translateY(16px);
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(184,150,46,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(184,150,46,0.3), 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(184,150,46,0.12),
    0 0 24px rgba(184,150,46,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 — solid gold button */
.link-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: transparent;
  color: #0D0B05;
  box-shadow:
    0 4px 20px rgba(184,150,46,0.35),
    0 1px 0 rgba(255,255,255,0.1) 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(--gold-light) 0%, var(--gold) 100%);
  border-color: transparent;
  box-shadow:
    0 8px 32px rgba(184,150,46,0.45),
    0 1px 0 rgba(255,255,255,0.15) inset;
  color: #0D0B05;
}

.link-primary .lc-title {
  color: #0D0B05;
  font-weight: 500;
}

.link-primary .lc-sub {
  color: rgba(13,11,5,0.65);
}

.link-primary .lc-arrow {
  color: rgba(13,11,5,0.6);
}

/* FEATURE — bordered highlight */
.link-feature {
  border-color: rgba(184,150,46,0.28);
  background: rgba(184,150,46,0.05);
}

.link-feature:hover {
  border-color: rgba(184,150,46,0.55);
  background: rgba(184,150,46,0.1);
}

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

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

.lc-title {
  font-size: 14.5px;
  font-weight: 400;
  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;
}

/* Arrow */
.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(--gold-light);
}

/* Badge */
.lc-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0D0B05;
  background: var(--gold-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.7s 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(--gold-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.9s forwards;
}

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

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

/* ══════════════════════════════════
   RIPPLE EFFECT
══════════════════════════════════ */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(184,150,46,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: 44px 16px 40px;
  }

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

  .proof-row {
    gap: 6px;
  }

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

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

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