/* 5thave.llc - Futuristic Neon Logo Showcase */
/* Self-contained premium dark cosmic theme */

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #111116;
  --bg-elevated: #18181f;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent-cyan: #67f6ff;
  --accent-purple: #c084fc;
  --accent-pink: #f472b6;
  --accent-gold: #fbbf24;
  --border-subtle: #27272a;
  --glow-cyan: rgba(103, 246, 255, 0.5);
  --glow-purple: rgba(192, 132, 252, 0.4);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Canvas for Stars */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
  background: radial-gradient(circle at 50% 30%, rgba(103, 246, 255, 0.06) 0%, transparent 60%);
}

.hero-content {
  max-width: 1100px;
  text-align: center;
  z-index: 1;
}

.hero-logo-wrapper {
  position: relative;
  margin: 0 auto 2.5rem;
  max-width: 620px;
  padding: 1.5rem;
}

.hero-logo {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 
    0 0 40px var(--glow-cyan),
    0 0 80px var(--glow-purple),
    0 25px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s cubic-bezier(0.23, 1.0, 0.32, 1), 
              box-shadow 0.4s ease;
  border: 1px solid rgba(103, 246, 255, 0.15);
}

.hero-logo:hover {
  transform: scale(1.015);
  box-shadow: 
    0 0 60px var(--glow-cyan),
    0 0 120px var(--glow-purple),
    0 35px 80px rgba(0, 0, 0, 0.5);
}

.hero-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--bg-deep);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  font-size: 0.75rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.1em;
  font-weight: 600;
  box-shadow: 0 0 15px var(--glow-purple);
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #e2e8f0, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Neon Buttons */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
}

.btn-neon:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 25px var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-neon.secondary {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn-neon.secondary:hover {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 0 25px var(--glow-purple);
}

/* Sections */
section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Collection Grid */
#collection .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.variant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  cursor: pointer;
}

.variant-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4),
              0 0 0 1px rgba(103, 246, 255, 0.1);
}

.variant-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border-bottom: 1px solid var(--border-subtle);
}

.variant-card:hover img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: white;
}

.card-body .essence {
  font-size: 0.8rem;
  color: var(--accent-purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.card-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--accent-cyan);
  background: rgba(103, 246, 255, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

/* Insights Section */
#insights .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.insight-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  opacity: 0.6;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.insight-header img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.insight-header .meta h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.insight-header .meta span {
  font-size: 0.75rem;
  color: var(--accent-pink);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.insight-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: white;
}

.insight-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.insight-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.insight-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.insight-stats .stat strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Modal */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: white;
  font-size: 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
  transform: rotate(90deg);
}

.modal-body {
  padding: 3rem 2.5rem 2.75rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.modal-logo-wrapper {
  position: relative;
}

.modal-logo {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 50px var(--glow-purple);
  border: 1px solid rgba(255,255,255,0.08);
}

.modal-info h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.modal-info .essence-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.12em;
  margin-bottom: 1.35rem;
}

.modal-info p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-item {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.15rem;
  border-radius: 12px;
}

.meta-item .label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.meta-item .value {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer .seed {
  font-family: ui-monospace, monospace;
  color: var(--accent-purple);
  background: rgba(192, 132, 252, 0.1);
  padding: 0.1rem 0.6rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Utility */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.hidden {
  display: none !important;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav-links {
    gap: 1.25rem;
    font-size: 0.9rem;
  }
  
  .hero-logo-wrapper {
    max-width: 92%;
    padding: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-neon {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}