/* ============================================================
 * SystemGalerii — Landing / marketing section styles
 * These component classes were referenced by the marketing pages
 * but had no visual definition, leaving sections unstyled and
 * left-aligned. Built on the existing design tokens (--sg-*).
 * ============================================================ */

/* ── Section layout ─────────────────────────────────────── */
.sg-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 4.5rem 1.25rem;
  width: 100%;
}

.sg-section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sg-text, #f5f5f5);
  margin: 0 auto 0.75rem;
  max-width: 22ch;
}

.sg-section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--sg-text-secondary, #a0a0b0);
  margin: 0 auto;
  max-width: 60ch;
}

/* ── Feature grid + cards ───────────────────────────────── */
.sg-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.sg-feature-card {
  display: flex;
  flex-direction: column;
  background: var(--sg-surface, #141414);
  border: 1px solid var(--sg-border, #2a2a36);
  border-radius: var(--sg-radius-xl, 16px);
  padding: 1.75rem;
  height: 100%;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease;
}

.sg-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--sg-border-light, #333344);
  background: var(--sg-surface-2, #1a1a24);
  box-shadow: var(--sg-shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.3));
}

.sg-feature-card h1,
.sg-feature-card h2,
.sg-feature-card h3,
.sg-feature-card h4 {
  color: var(--sg-text, #f5f5f5);
}

.sg-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: var(--sg-radius-lg, 12px);
  font-size: 1.4rem;
}

/* ── Pricing grid (cards already styled, grid was missing) ─ */
.sg-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  align-items: stretch;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sg-section {
    padding: 3rem 1rem;
  }
  .sg-feature-grid,
  .sg-pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sg-feature-card {
    padding: 1.4rem;
  }
}
