/* ============================================
   automation.css – Network Automation detail page
   Service detail within nexthop.engineering design system
   ============================================ */

/* --- Hero: compact, no particles --- */
.auto-hero {
  min-height: auto;
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.auto-hero .section-label {
  margin-bottom: 1.5rem;
}

.auto-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 720px;
}

/* --- Problem Grid --- */
.auto-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
}

.auto-problem-card {
  background: var(--bg-secondary);
  padding: 2.25rem;
  position: relative;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auto-problem-card:hover {
  background: var(--bg-card);
}

.auto-problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.auto-problem-icon svg {
  width: 20px;
  height: 20px;
}

.auto-problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.auto-problem-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Solution Grid --- */
.auto-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
}

.auto-solution-card {
  background: var(--bg-secondary);
  padding: 2rem;
  position: relative;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auto-solution-card:hover {
  background: var(--bg-card);
}

.auto-solution-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.auto-solution-icon svg {
  width: 18px;
  height: 18px;
}

.auto-solution-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.auto-solution-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Differentiators --- */
.auto-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.auto-diff-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.auto-diff-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.auto-diff-icon svg {
  width: 20px;
  height: 20px;
}

.auto-diff-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.auto-diff-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Reference List --- */
.auto-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auto-ref-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.auto-ref-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* --- CTA Section --- */
.auto-cta-section {
  text-align: center;
}

.auto-cta {
  max-width: 560px;
  margin: 0 auto;
}

.auto-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
}

.auto-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* --- Back Link (reuse from dot11) --- */
.nav-links a.nav-back-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a.nav-back-link:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-links a.nav-back-link::after {
  background: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .auto-problem-grid {
    grid-template-columns: 1fr;
  }

  .auto-solution-grid {
    grid-template-columns: 1fr;
  }

  .auto-diff-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .auto-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .auto-problem-card {
    padding: 1.75rem 1.5rem;
  }

  .auto-solution-card {
    padding: 1.5rem;
  }
}

