/* ═══════════════════════════════════════════════════════════════
   Software Marketing Page CSS
   Dark-theme styles for rich marketing templates & source_html pages.
   Uses --sw-accent / --sw-accent2 CSS custom properties (overridable per product).
   Scoped under .sw-marketing or .sw-custom-page.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- Variables ---------- */
.sw-marketing,
.sw-custom-page {
    --sw-accent: #7c5dff;
    --sw-accent2: #5b8cff;
    --sw-bg: #020611;
    --sw-bg2: #0a1128;
    --sw-text: #f4f7ff;
    --sw-muted: #9ea7c4;
    --sw-border: rgba(158, 167, 196, .12);
    --sw-card-bg: rgba(10, 17, 40, .6);
    --sw-radius: 12px;
    color: var(--sw-text);
}

/* ---------- Custom source_html wrapper ---------- */
.sw-custom-page {
    width: 100%;
    overflow-x: hidden;
}

/* ---------- Shared Section ---------- */
.sw-marketing .sw-section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.sw-marketing .sw-section-alt {
    background: var(--sw-bg2);
}
.sw-marketing .sw-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .5rem;
    color: var(--sw-text);
}
.sw-marketing .sw-section-sub {
    font-size: 1.1rem;
    text-align: center;
    color: var(--sw-muted);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ---------- Hero ---------- */
.sw-hero {
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}
.sw-hero-badge {
    display: inline-block;
    background: rgba(124, 93, 255, .12);
    color: var(--sw-accent);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.sw-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--sw-text);
}
.sw-hero-sub {
    font-size: 1.15rem;
    color: var(--sw-muted);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.sw-hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.sw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--sw-accent);
    color: #fff;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: opacity .2s;
}
.sw-btn-primary:hover { opacity: .85; }
.sw-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--sw-text);
    padding: .75rem 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--sw-border);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: border-color .2s;
}
.sw-btn-secondary:hover { border-color: var(--sw-accent); }

/* Hero Stats */
.sw-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.sw-hero-stat {
    text-align: center;
}
.sw-hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sw-accent);
    line-height: 1.2;
}
.sw-hero-stat-label {
    font-size: .85rem;
    color: var(--sw-muted);
    margin-top: .25rem;
}

/* ---------- Features Grid ---------- */
.sw-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.sw-feature-card {
    background: var(--sw-card-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 1.75rem;
    transition: border-color .2s;
}
.sw-feature-card:hover {
    border-color: var(--sw-accent);
}
.sw-feature-icon {
    font-size: 1.75rem;
    margin-bottom: .75rem;
}
.sw-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--sw-text);
}
.sw-feature-card p {
    font-size: .95rem;
    color: var(--sw-muted);
    line-height: 1.6;
}

/* ---------- Workflow Steps ---------- */
.sw-workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: step;
}
.sw-workflow-step {
    position: relative;
    padding: 1.5rem;
    background: var(--sw-card-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    counter-increment: step;
}
.sw-workflow-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--sw-accent);
    color: #fff;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.sw-workflow-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--sw-text);
}
.sw-workflow-step p {
    font-size: .9rem;
    color: var(--sw-muted);
    line-height: 1.6;
}

/* ---------- Comparison Table ---------- */
.sw-comparison-wrap {
    overflow-x: auto;
}
.sw-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.sw-comparison-table th,
.sw-comparison-table td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sw-border);
}
.sw-comparison-table thead th {
    color: var(--sw-accent);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sw-comparison-table tbody td {
    color: var(--sw-muted);
}
.sw-comparison-table tbody td:first-child {
    color: var(--sw-text);
    font-weight: 500;
}
.sw-comparison-table tbody tr:hover {
    background: rgba(124, 93, 255, .04);
}

/* ---------- Tech Specs ---------- */
.sw-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.sw-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .75rem 0;
    border-bottom: 1px solid var(--sw-border);
}
.sw-spec-label {
    font-weight: 500;
    color: var(--sw-text);
}
.sw-spec-value {
    color: var(--sw-muted);
    text-align: right;
}

/* ---------- Pricing Tiers ---------- */
.sw-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.sw-pricing-card {
    background: var(--sw-card-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.sw-pricing-card.sw-pricing-featured {
    border-color: var(--sw-accent);
    position: relative;
}
.sw-pricing-card.sw-pricing-featured::before {
    content: 'Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sw-accent);
    color: #fff;
    padding: .2rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.sw-pricing-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--sw-text);
}
.sw-pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--sw-accent);
    margin-bottom: .25rem;
}
.sw-pricing-period {
    font-size: .85rem;
    color: var(--sw-muted);
    margin-bottom: 1.25rem;
}
.sw-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.sw-pricing-features li {
    padding: .4rem 0;
    color: var(--sw-muted);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.sw-pricing-features li::before {
    content: '\2713';
    color: var(--sw-accent);
    font-weight: 700;
}

/* ---------- Testimonials ---------- */
.sw-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.sw-testimonial-card {
    background: var(--sw-card-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 1.75rem;
}
.sw-testimonial-quote {
    font-size: 1rem;
    color: var(--sw-muted);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
}
.sw-testimonial-author {
    font-weight: 600;
    color: var(--sw-text);
    font-size: .95rem;
}
.sw-testimonial-role {
    font-size: .85rem;
    color: var(--sw-muted);
}

/* ---------- Bottom CTA ---------- */
.sw-cta {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(124,93,255,.08), rgba(91,140,255,.08));
    border-radius: var(--sw-radius);
    max-width: 800px;
    margin: 0 auto 3rem;
}
.sw-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--sw-text);
}
.sw-cta p {
    font-size: 1.05rem;
    color: var(--sw-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.sw-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Basic Fallback ---------- */
.sw-basic .sw-basic-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--sw-muted);
    max-width: 800px;
}
.sw-basic .sw-basic-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}
.sw-basic .sw-basic-features li {
    padding: .6rem 0;
    color: var(--sw-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.sw-basic .sw-basic-features li::before {
    content: '\2713';
    color: var(--sw-accent);
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sw-hero { padding: 3.5rem 1rem 2.5rem; }
    .sw-hero h1 { font-size: 1.75rem; }
    .sw-marketing .sw-section { padding: 3rem 1rem; }
    .sw-marketing .sw-section-title { font-size: 1.75rem; }
    .sw-hero-stats { gap: 1.5rem; }
    .sw-features-grid,
    .sw-workflow-steps,
    .sw-pricing-grid,
    .sw-testimonials-grid { grid-template-columns: 1fr; }
    .sw-specs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dedicated Product Page Styles (.sw-page wrapper)
   Used by: airgridpro.php, techsight-kpi-dashboards.php,
            techsight-rmm.php
   ============================================================ */

/* ── Screenshots Section ─────────────────────────────────── */
.product-screenshots { text-align: center; }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.screenshots-grid img {
  width: 100%; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.screenshots-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* ── 2-Column Pricing Grid (product pages) ───────────────── */
.sw-page .pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; max-width: 800px; margin: 0 auto;
}

@media (max-width: 768px) {
  .sw-page .pricing-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
}
