/* banan.io homepage */
.hp-body {
  background: #0a0a0a;
  color: #fff;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* Header */
.hp-header {
  padding: 5rem 2rem 3.5rem;
  text-align: center;
}
.hp-logo {
  font-family: monospace;
  font-size: clamp(2.2rem, 9vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  display: inline-block;
  animation: glitch 9s infinite;
}
@keyframes glitch {
  0%,93%,100% { text-shadow: none; transform: none; }
  94% { text-shadow: 3px 0 #00d4ff, -3px 0 #ff6b35; }
  95% { text-shadow: -4px 0 #00d4ff, 4px 0 #ff6b35; transform: skewX(-1deg); }
  96% { text-shadow: 3px 0 #c8ff00, -3px 0 #7c3aed; letter-spacing: 0.08em; }
  97% { text-shadow: none; transform: none; letter-spacing: -0.03em; }
}

/* Card grid */
.hp-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 5rem;
}

/* Card */
.hp-card {
  display: flex;
  align-items: stretch;
  min-height: 280px;
  background: var(--bg, #111);
  text-decoration: none;
  color: #fff;
  opacity: 0;
  transform: translateY(50px);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
}
.hp-card.visible {
  animation: slideUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hp-card:nth-child(1).visible { animation-delay: 0s; }
.hp-card:nth-child(2).visible { animation-delay: 0.12s; }
.hp-card:nth-child(3).visible { animation-delay: 0.24s; }
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.hp-card--flip { flex-direction: row-reverse; }

/* Card hover glow */
.hp-card:hover {
  box-shadow: 0 0 60px -15px var(--accent, #888), inset 0 0 0 1px var(--accent, transparent);
  z-index: 1;
}

/* SVG illustration side */
.hp-card-img {
  flex: 1.1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hp-card-img svg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

/* Text side */
.hp-card-text {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid var(--accent, #555);
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 100%);
}
.hp-card--flip .hp-card-text {
  border-left: none;
  border-right: 3px solid var(--accent, #555);
}

.hp-card-text h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--accent, #fff);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hp-card-text p {
  margin: 0 0 1.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  font-size: 0.9rem;
}
.hp-card-arrow {
  font-size: 1.4rem;
  color: var(--accent, #fff);
  display: inline-block;
  transition: transform 0.2s ease;
}
.hp-card:hover .hp-card-arrow {
  transform: translateX(8px);
}

/* Mobile */
@media (max-width: 680px) {
  .hp-card,
  .hp-card--flip { flex-direction: column; }
  .hp-card-img { min-height: 200px; flex: none; }
  .hp-card-text {
    border-left: none !important;
    border-right: none !important;
    border-top: 3px solid var(--accent, #555);
    padding: 1.75rem;
  }
}
