/* ========================================
   TARIOH — All My Links Landing Page
   Design System & Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --bg-base: #0a0e17;
  --bg-secondary: #12161f;
  --accent-primary: #4a7cff;
  --accent-secondary: #c0c8d8;
  --text-primary: #e8ecf1;
  --text-secondary: #6b7a8d;
  --glow-color: rgba(94, 140, 255, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 460px;
  --container-padding: 24px;
  --gap-links: 12px;

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius-button: 14px;
  --radius-hero: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

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

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

/* ========================================
   ANIMATED LIQUID GRADIENT BACKGROUND
   ======================================== */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-base);
}

.gradient-bg::before,
.gradient-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

/* Primary orb — deep blue */
.gradient-bg::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #1a3a7a 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: orbFloat1 25s ease-in-out infinite;
}

/* Secondary orb — subtle indigo/violet */
.gradient-bg::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2a1a5a 0%, transparent 70%);
  bottom: -20%;
  right: -15%;
  animation: orbFloat2 30s ease-in-out infinite;
}

/* Third orb via a child element */
.gradient-orb-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0d2847 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 35s ease-in-out infinite;
  will-change: transform;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(8%, 12%) scale(1.05); }
  50% { transform: translate(-5%, 8%) scale(0.95); }
  75% { transform: translate(10%, -5%) scale(1.02); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-10%, -8%) scale(1.03); }
  50% { transform: translate(6%, -12%) scale(0.97); }
  75% { transform: translate(-8%, 6%) scale(1.04); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-45%, -55%) scale(1.06); }
  66% { transform: translate(-55%, -45%) scale(0.94); }
}

/* ========================================
   FILM GRAIN OVERLAY
   ======================================== */
.grain-overlay {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  animation: grainShift 0.8s steps(2) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3%, -3%); }
  100% { transform: translate(3%, 1%); }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--container-padding) 40px;
  min-height: 100dvh;
}

/* ========================================
   LOGO
   ======================================== */
.logo {
  width: clamp(170px, 48vw, 240px);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeScale 800ms var(--transition-medium) forwards;
  animation-delay: 200ms;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   TAGLINE
   ======================================== */
.tagline {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 36px;
  text-align: center;
  opacity: 0;
  animation: fadeSlideUp 600ms ease-out forwards;
  animation-delay: 500ms;
}

/* ========================================
   SEPARATOR
   ======================================== */
.separator {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  border: none;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 600ms ease-out forwards;
  animation-delay: 650ms;
}


/* ========================================
   LINKS SECTION
   ======================================== */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-links);
  margin-bottom: 20px;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4px;
  margin-top: 12px;
  opacity: 0;
  animation: fadeSlideUp 600ms ease-out forwards;
}

/* ========================================
   LINK BUTTONS — GLASSMORPHISM
   ======================================== */
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-button);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-medium),
    box-shadow var(--transition-medium),
    background var(--transition-medium);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeSlideUp 500ms ease-out forwards;
}

.link-btn:hover {
  transform: scale(1.02);
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 24px var(--glow-color), inset 0 0 20px rgba(255, 255, 255, 0.02);
  background: rgba(255, 255, 255, 0.06);
}

.link-btn:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}

/* Ripple container */
.link-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0);
  animation: rippleExpand 500ms ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Icon inside button */
.link-btn .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn .icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.link-btn .label {
  flex: 1;
}

.link-btn .arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.link-btn:hover .arrow {
  transform: translateX(3px);
  color: var(--text-primary);
}

/* ========================================
   HERO LINK — FEATURED RELEASE
   ======================================== */
.link-btn.hero {
  padding: 18px 22px;
  border-radius: var(--radius-hero);
  border-color: rgba(74, 124, 255, 0.2);
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.08) 0%, rgba(42, 26, 90, 0.08) 100%);
}

.link-btn.hero:hover {
  border-color: rgba(74, 124, 255, 0.35);
  box-shadow: 0 0 32px rgba(74, 124, 255, 0.2), 0 0 60px rgba(74, 124, 255, 0.06);
}

.hero-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ========================================
   FADE SLIDE UP ANIMATION
   ======================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays for link buttons */
.link-btn:nth-child(1) { animation-delay: 750ms; }
.link-btn:nth-child(2) { animation-delay: 830ms; }
.link-btn:nth-child(3) { animation-delay: 910ms; }
.link-btn:nth-child(4) { animation-delay: 990ms; }

.links-section:nth-of-type(2) .section-label { animation-delay: 1050ms; }
.links-section:nth-of-type(2) .link-btn:nth-child(2) { animation-delay: 1130ms; }
.links-section:nth-of-type(2) .link-btn:nth-child(3) { animation-delay: 1210ms; }
.links-section:nth-of-type(2) .link-btn:nth-child(4) { animation-delay: 1290ms; }
.links-section:nth-of-type(2) .link-btn:nth-child(5) { animation-delay: 1370ms; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  opacity: 0;
  animation: fadeSlideUp 600ms ease-out forwards;
  animation-delay: 1500ms;
}

.footer p {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.footer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-primary);
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grain-overlay {
    animation: none;
  }

  .logo,
  .tagline,
  .separator,
  .link-btn,
  .section-label,
  .footer {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   RESPONSIVE — TABLET & DESKTOP
   ======================================== */
@media (min-width: 768px) {
  .container {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .logo {
    width: clamp(200px, 20vw, 260px);
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 14px;
    margin-bottom: 44px;
  }

  .link-btn {
    padding: 17px 24px;
    font-size: 15px;
    border-radius: 16px;
  }

  .link-btn.hero {
    padding: 20px 26px;
    border-radius: 20px;
  }
}

/* Large desktop — constrain and center */
@media (min-width: 1200px) {
  .gradient-bg::before {
    width: 800px;
    height: 800px;
  }

  .gradient-bg::after {
    width: 700px;
    height: 700px;
  }

  .gradient-orb-3 {
    width: 550px;
    height: 550px;
  }
}
