/* ============================================
   ImEDA — Linear-inspired Design System
   ============================================ */

/* ---- Hero ---- */
.ln-hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 80px;
  margin: -48px -72px 0;
  overflow: hidden;
}

.ln-hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, rgba(37,99,235,0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

.ln-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

.ln-hero-content {
  position: relative;
  z-index: 1;
}

.ln-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.25);
  background: rgba(124,58,237,0.08);
  margin-bottom: 28px;
}

.ln-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f0f6fc;
  margin-bottom: 24px;
}

.ln-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ln-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #8b949e;
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.ln-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ln-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.ln-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(124,58,237,0.45);
  text-decoration: none;
}

.ln-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c9d1d9;
  border: 1px solid #30363d;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.ln-btn-ghost:hover {
  border-color: #58a6ff;
  color: #f0f6fc;
  text-decoration: none;
}

/* ---- Sections ---- */
.ln-section {
  padding: 64px 0;
  border-top: 1px solid rgba(48,54,61,0.6);
}

.ln-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7c3aed;
  margin-bottom: 12px;
}

.ln-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f6fc;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.ln-desc {
  font-size: 1.05rem;
  color: #8b949e;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ---- Grids ---- */
.ln-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ln-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ln-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* ---- Cards ---- */
.ln-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
}

.ln-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,58,237,0.06), transparent 40%);
  pointer-events: none;
}

.ln-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}

.ln-card:hover::before {
  opacity: 1;
}

.ln-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 8px;
}

.ln-card p {
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.6;
  margin: 0;
}

.ln-card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

/* AI card accent */
.ln-card-ai {
  border-color: rgba(124,58,237,0.12);
}

.ln-card-ai:hover {
  border-color: rgba(124,58,237,0.3);
}

.ln-card-ai h4 {
  color: #a78bfa;
}

/* Link card */
.ln-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ln-card-link:hover {
  text-decoration: none;
}

/* Architecture card */
.ln-arch-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b949e;
  margin-bottom: 8px;
}

.ln-card-arch h4 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* Tags */
.ln-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  color: #8b949e;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

.ln-tag.blue {
  color: #58a6ff;
  background: rgba(88,166,255,0.06);
  border-color: rgba(88,166,255,0.15);
}

/* ---- Tech Stack ---- */
.ln-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ln-tech-item {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c9d1d9;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s;
}

.ln-tech-item:hover {
  border-color: rgba(124,58,237,0.35);
  color: #f0f6fc;
}

/* ---- Footer ---- */
.ln-footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid rgba(48,54,61,0.4);
  text-align: center;
  color: #484f58;
  font-size: 0.82rem;
}

/* ---- Fade-in animation ---- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ln-hero {
    padding: 60px 16px 48px;
    margin: -20px -16px 0;
  }
  .ln-title {
    font-size: 2.4rem;
  }
  .ln-heading {
    font-size: 1.5rem;
  }
  .ln-grid-4, .ln-grid-3, .ln-grid-2 {
    grid-template-columns: 1fr;
  }
}
