@import url('shared/base.css');

/* Landing page: centered layout */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Override section padding for landing */
.landing {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  padding: 80px 24px;
}

/* Hero - override base hero which expects full-page product layout */
.hero {
  min-height: auto;
  padding: 0;
  margin-bottom: 64px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid var(--primary-mid);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* Background orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #34d39915, transparent 70%);
  top: -10%;
  left: -5%;
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f59e0b10, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: float 12s ease-in-out infinite reverse;
}

/* Tool cards */
.tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 80px;
}

.tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--primary);
  color: var(--bg-deep);
}

.tool-content {
  min-width: 0;
}

.tool-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2px;
  line-height: 1.2;
}

.tool-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 300;
}

.tool-tech {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tool-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.tool-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
  margin-top: 4px;
}

.tool-card:hover .tool-link {
  color: var(--primary);
}

/* Footer overrides for landing */
footer {
  padding-top: 32px;
}

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

footer a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
  .landing {
    padding: 60px 20px;
  }

  .hero {
    margin-bottom: 48px;
  }

  .tool-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .tool-icon svg {
    width: 32px;
    height: 32px;
  }

  .tool-link {
    justify-self: start;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
