:root {
  --bg-dark: #080812;
  --accent-gold: #e2b04c;
  --accent-gold-glow: rgba(226, 176, 76, 0.4);
  --glass-bg: rgba(20, 15, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #030305;
  background-image: 
    radial-gradient(circle at 50% 0, rgba(226, 176, 76, 0.15) 0, rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 50% 100%, #151025 0, rgba(0, 0, 0, 0) 80%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  min-height: 100vh;
}

.bg-canvas {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 50px;
  overflow: hidden;
}

.bg-canvas::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--accent-gold), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 50px 160px, var(--accent-gold), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 130px 90px, var(--accent-gold), rgba(0, 0, 0, 0));
  background-size: 200px 200px;
  opacity: 0.25;
  z-index: -2;
  animation: move-stars 100s linear infinite;
  pointer-events: none;
}

.glow-1,
.glow-2 {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  top: -10%;
  left: 20%;
  width: 60%;
  height: 50vh;
  background: radial-gradient(ellipse at 50% 0, var(--accent-gold) 0, transparent 70%);
  filter: blur(80px);
  opacity: 0.2;
  animation: pulse-light 8s infinite alternate;
}

.glow-2 {
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: #2a1547;
  filter: blur(150px);
  opacity: 0.5;
  animation: float-slow 15s infinite alternate-reverse;
}

@keyframes float-slow {
  0% {
    transform: translate(0);
  }
  100% {
    transform: translate(-30px, -40px);
  }
}

@keyframes pulse-light {
  0% {
    opacity: 0.15;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.3;
    transform: scale(1.05);
  }
}

@keyframes move-stars {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -500px 1000px;
  }
}

.link-tree {
  max-width: 580px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-wrapper {
  padding: 8px;
  border: 2px solid rgba(226, 176, 76, 0.3);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.logo-wrapper:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
}

.logo-circle {
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 30px var(--accent-gold-glow);
  object-fit: cover;
  display: block;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.site-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-item:hover {
  transform: scale(1.03);
  border-color: rgba(226, 176, 76, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(226, 176, 76, 0.2);
}

.link-item:active {
  transform: scale(0.99);
}

.link-item:hover::before {
  opacity: 1;
}

.link-item:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.link-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.2rem;
  flex-shrink: 0;
  color: var(--accent-gold);
  transition: background 0.3s ease;
}

.link-item:hover .link-icon {
  background: rgba(226, 176, 76, 0.15);
}

.link-label {
  flex: 1 1 auto;
  font-weight: 500;
  font-size: 1.1rem;
}

.link-arrow {
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.link-item:hover .link-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--accent-gold);
}

footer {
  margin-top: 3rem;
  opacity: 0.35;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 480px) {
  .link-tree {
    padding: 2.5rem 1rem;
  }
  .site-title {
    font-size: 1.75rem;
  }
  .site-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }
  .link-item {
    padding: 1rem 1.2rem;
  }
  .link-label {
    font-size: 1rem;
  }
  .link-icon {
    width: 36px;
    height: 36px;
    margin-right: 1rem;
  }
}
