@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Color System & Tokens */
:root {
  --bg-color: #000000;
  --panel-bg: rgba(255, 255, 255, 0.015);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-hover: rgba(255, 255, 255, 0.15);
  
  /* Neon Accents */
  --color-pink: #ff2a85;
  --color-violet: #8b5cf6;
  --color-cyan: #00f5ff;
  --color-lime: #39ff14;
  
  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --text-primary: #f4f4f6;
  --text-muted: #8e8e9f;
  --text-dark: #52525b;
  
  --header-height: 80px;
  --max-width: 960px; /* Swiss Inspired compact width for premium layout readability */
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Accents */
.bg-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.glow-pink {
  background: radial-gradient(circle, var(--color-pink) 0%, transparent 70%);
  width: 50vw;
  height: 50vw;
  top: -10vw;
  left: -10vw;
  animation: float-glow-1 25s infinite alternate ease-in-out;
}

.glow-violet {
  background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
  width: 60vw;
  height: 60vw;
  bottom: -15vw;
  right: -10vw;
  animation: float-glow-2 30s infinite alternate ease-in-out;
}

.glow-cyan {
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
  width: 45vw;
  height: 45vw;
  top: 40%;
  left: 60%;
  animation: float-glow-3 28s infinite alternate ease-in-out;
}

.glow-lime {
  background: radial-gradient(circle, var(--color-lime) 0%, transparent 70%);
  width: 40vw;
  height: 40vw;
  bottom: 30%;
  left: -5%;
  animation: float-glow-4 22s infinite alternate ease-in-out;
}

/* Background Grid Pattern */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0.15) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0.15) 100%);
}

/* Floating Question Marks Container */
.bg-question-marks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.floating-q {
  position: absolute;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-primary);
  font-weight: 800;
  pointer-events: none;
  user-select: none;
  animation: float-q 20s infinite linear;
  filter: blur(0.5px);
}

/* Keyframe Animations */
@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  100% { transform: translate(6vw, 4vw) scale(1.1); opacity: 0.35; }
}
@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1.05); opacity: 0.25; }
  100% { transform: translate(-5vw, -6vw) scale(0.95); opacity: 0.35; }
}
@keyframes float-glow-3 {
  0% { transform: translate(0, 0) scale(0.95); opacity: 0.2; }
  100% { transform: translate(4vw, -4vw) scale(1.05); opacity: 0.3; }
}
@keyframes float-glow-4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  100% { transform: translate(-3vw, 4vw) scale(1.1); opacity: 0.25; }
}
@keyframes float-q {
  0% { transform: translateY(105vh) rotate(0deg); }
  100% { transform: translateY(-10vh) rotate(360deg); }
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav-logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nav-logo-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
}

.logo-question {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 32px;
  height: 32px;
  z-index: 110;
}

.menu-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, width 0.3s ease;
}

.menu-line:last-child {
  width: 14px;
}

.menu-btn.active .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
  width: 22px;
}

.menu-btn.active .menu-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
  width: 22px;
}

/* Mobile Overlay Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-link:hover {
  background: linear-gradient(135deg, var(--color-pink), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-nav-footer {
  margin-top: 4rem;
  font-family: var(--font-primary);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Glassmorphism Generic Card */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.glass-card:hover {
  border-color: var(--panel-border-hover);
}

/* Main Container Layout */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 4rem 1.5rem;
}

/* Swiss Section Headers */
.section-container {
  padding: 4.5rem 0 1.5rem 0;
}

.section-tag {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.tag-icon {
  color: var(--color-violet);
}

/* Hero Section */
.hero-section {
  min-height: calc(75vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-pink) 20%, var(--color-violet) 55%, var(--color-cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-desc {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Hero Avatar Stage & Accessories */
.hero-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.avatar-stage {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  position: relative;
  touch-action: none;
}

/* Split Neon Background Glow */
.avatar-glow {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.40) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(57, 255, 20, 0.22) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Borderless transparent avatar container matching mockup */
.avatar-card {
  transform-style: preserve-3d;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  position: relative;
  overflow: visible; /* Allows image depth components to float out */
  z-index: 1;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateZ(50px) scale(1.02);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 90%);
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 90%);
  z-index: 2;
  transition: mask-image 0.3s ease;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 65%, rgba(0, 0, 0, 0.95) 98%);
  z-index: 3;
  pointer-events: none;
  transform: translateZ(30px);
}

.avatar-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 4;
  transform: translateZ(70px);
}

/* Handwritten Annotation Accessories */
.avatar-annotation {
  position: absolute;
  right: -15px;
  top: 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 5;
}

.annotation-text {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
  transform: rotate(6deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.annotation-arrow {
  opacity: 0.45;
  transform: rotate(-10deg) translateX(-8px);
}

/* Interaction guide lines on the left */
.avatar-guide {
  position: absolute;
  left: -20px;
  bottom: 10%;
  pointer-events: none;
  z-index: 5;
}

.guide-svg {
  opacity: 0.5;
}

/* About Section */
.about-card {
  padding: 2.25rem 2.25rem;
  border-radius: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-title {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-text-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Theme Section (Horizontal card design matching mockup) */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.theme-icon {
  font-size: 2.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.theme-card:hover .theme-icon {
  transform: scale(1.1);
}

.theme-text-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.theme-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.theme-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Accents on Hover */
.theme-card[data-accent="pink"]:hover { border-color: rgba(255, 42, 133, 0.25); box-shadow: 0 8px 30px rgba(255, 42, 133, 0.12); }
.theme-card[data-accent="cyan"]:hover { border-color: rgba(0, 245, 255, 0.25); box-shadow: 0 8px 30px rgba(0, 245, 255, 0.12); }
.theme-card[data-accent="lime"]:hover { border-color: rgba(57, 255, 20, 0.25); box-shadow: 0 8px 30px rgba(57, 255, 20, 0.12); }

.theme-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.theme-card[data-accent="pink"] .theme-card-glow { background: radial-gradient(circle at top right, rgba(255, 42, 133, 0.08) 0%, transparent 60%); }
.theme-card[data-accent="cyan"] .theme-card-glow { background: radial-gradient(circle at top right, rgba(0, 245, 255, 0.08) 0%, transparent 60%); }
.theme-card[data-accent="lime"] .theme-card-glow { background: radial-gradient(circle at top right, rgba(57, 255, 20, 0.08) 0%, transparent 60%); }

.theme-card:hover .theme-card-glow { opacity: 1; }

/* Manifest Section (Single Row panel design matching mockup) */
.manifest-panel {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 1.25rem 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.manifest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  position: relative;
}

.manifest-icon-dot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pink-dot { background: rgba(255, 42, 133, 0.08); border: 1px solid rgba(255, 42, 133, 0.15); color: var(--color-pink); }
.violet-dot { background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.15); color: var(--color-violet); }
.red-dot { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.15); color: #ef4444; }
.lime-dot { background: rgba(57, 255, 20, 0.08); border: 1px solid rgba(57, 255, 20, 0.15); color: var(--color-lime); }

.manifest-text {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Links Section (Full width stack matching mockup) */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.link-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.75rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.link-row-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-row-icon {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.link-row-platform {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.link-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.link-row-handle {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.link-row-arrow {
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover States */
.link-row-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.instagram-row:hover .link-row-icon { color: #e1306c; }
.youtube-row:hover .link-row-icon { color: #ff0000; }
.tiktok-row:hover .link-row-icon { color: var(--color-cyan); }

.link-row-card:hover .link-row-handle { color: var(--text-primary); }
.link-row-card:hover .link-row-arrow { color: var(--text-primary); transform: translate(2px, -2px); }

/* Footer */
.footer {
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-copyright {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Responsive Media Queries */
@media (max-width: 767px) {
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1.85rem; }
  .avatar-annotation, .avatar-guide { display: none; } /* Prevent horizontal overflow */
}

/* Desktop Styles */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
  .hero-title { font-size: 5rem; }
  .hero-subtitle { font-size: 2.75rem; }
  
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Horizontal single row panel layout for manifest */
  .manifest-panel {
    flex-direction: row;
    padding: 1.5rem 0;
  }
  .manifest-item {
    flex: 1;
    justify-content: center;
    padding: 0 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .manifest-item:last-child {
    border-right: none;
  }
}
