/* ==========================================================================
   Hackathon Ethereum Lima 2026 — Official Completed View Stylesheet
   Matches Ethereum Lima Platform Design System & Color Palette
   ========================================================================== */

:root {
  /* Color Palette — Aligned with ecosystem-eth-peru */
  --bg-primary: #080b11;
  --bg-surface: #0e1118;
  --bg-surface-2: #111521;
  --bg-card: rgba(14, 17, 24, 0.78);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(198, 244, 45, 0.35);

  /* Hackathon 2026 Brand Accent Colors */
  --neon-lime: #c6f42d;
  --neon-lime-hover: #b4df24;
  --neon-cyan: #00f0ff;
  --eth-blue: #214afe;
  --eth-blue-light: #6f9bff;
  --eth-purple: #664eed;
  --eth-orange: #ff461d;
  --eth-green: #10b981;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.72);
  --text-muted: rgba(248, 250, 252, 0.45);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glows */
  --glow-lime: 0 0 35px rgba(198, 244, 45, 0.32);
  --glow-blue: 0 0 40px rgba(33, 74, 254, 0.28);
  --glow-purple: 0 0 40px rgba(102, 78, 237, 0.25);
  --card-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Ambient Lighting & Backdrop */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

.glow-top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 78, 237, 0.45), transparent 70%);
  top: -120px;
  left: 15%;
}

.glow-bottom {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(33, 74, 254, 0.35), transparent 70%);
  bottom: -150px;
  right: 10%;
  animation-delay: -5s;
}

.glow-center {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(198, 244, 45, 0.16), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -9s;
}

/* Grid Overlay Texture */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Viewport Layout — Centered Vertically & Horizontally */
.viewport-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.25rem 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Top Navigation Bar */
.top-nav {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: rgba(14, 17, 24, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.top-nav:hover {
  border-color: var(--border-medium);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.02em;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--neon-lime);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(198, 244, 45, 0.08);
  border: 1px solid rgba(198, 244, 45, 0.2);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(198, 244, 45, 0.16);
  border-color: var(--neon-lime);
  box-shadow: 0 0 16px rgba(198, 244, 45, 0.25);
  transform: translateY(-1px);
}

.icon-external {
  transition: transform 0.2s ease;
}

.nav-link:hover .icon-external {
  transform: translate(1px, -1px);
}

/* Main Content Area */
.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2.25rem 0;
}

/* Status Pill */
.status-pill-wrapper {
  margin-bottom: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9d66;
  background: rgba(255, 70, 29, 0.09);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 70, 29, 0.28);
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--eth-orange);
  box-shadow: 0 0 10px var(--eth-orange);
  animation: pulseDot 2s infinite ease-in-out;
}

/* Main Hero Card */
.hero-card {
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--neon-lime) 20%, 
    var(--neon-cyan) 50%, 
    var(--eth-purple) 80%, 
    transparent 100%);
  opacity: 0.8;
}

.hero-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(102, 78, 237, 0.12);
}

/* Logo Section */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hackathon-logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.hackathon-logo:hover {
  transform: scale(1.02);
}

/* Tech Badges */
.badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.tag-lime {
  background: rgba(198, 244, 45, 0.08);
  color: var(--neon-lime);
  border: 1px solid rgba(198, 244, 45, 0.22);
}

.tag-blue {
  background: rgba(111, 155, 255, 0.08);
  color: var(--eth-blue-light);
  border: 1px solid rgba(111, 155, 255, 0.22);
}

.tag-purple {
  background: rgba(139, 92, 246, 0.08);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.22);
}

/* Titles & Descriptions */
.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 1.1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, var(--neon-lime) 65%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.68;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 600;
}

/* Announcement Banner */
.announcement-banner {
  background: rgba(17, 21, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  position: relative;
  transition: all 0.25s ease;
}

.announcement-banner:hover {
  border-color: rgba(198, 244, 45, 0.3);
  background: rgba(22, 27, 43, 0.85);
}

.banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(198, 244, 45, 0.15), rgba(33, 74, 254, 0.15));
  border: 1px solid rgba(198, 244, 45, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-lime);
  flex-shrink: 0;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.banner-headline {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.banner-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.9rem;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-primary {
  background: var(--neon-lime);
  color: #050406;
  border: none;
  box-shadow: 0 4px 20px rgba(198, 244, 45, 0.3);
}

.btn-primary:hover {
  background: #d4ff38;
  transform: translateY(-2px);
  box-shadow: var(--glow-lime);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-icon {
  stroke: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-number {
  font-size: 1.4rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-lime);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer Section */
.footer {
  width: 100%;
  max-width: 820px;
  margin-top: 1.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--neon-lime);
}

.dot-separator {
  color: var(--border-medium);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f1422;
  color: var(--neon-lime);
  border: 1px solid rgba(198, 244, 45, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(198, 244, 45, 0.2);
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Keyframe Animations */
@keyframes ambientFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.08);
  }
  100% {
    transform: translateY(20px) scale(0.95);
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-card {
    padding: 2.25rem 1.4rem;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .announcement-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 1.15rem;
  }

  .banner-icon {
    margin: 0 auto;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .nav-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .viewport-wrapper {
    padding: 1rem 0.85rem 1.5rem;
  }

  .hackathon-logo {
    max-width: 270px;
  }

  .top-nav {
    padding: 0.65rem 1rem;
  }

  .nav-logo {
    height: 20px;
  }
}
