/* ===========================
   software.css — Dedicated Software Page Styles
   =========================== */

/* ============================
   1. SOFTWARE HERO
   ============================ */
.sw-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.sw-hero .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sw-hero .hero-content .subtitle {
  font-size: 1.15rem;
  color: var(--white-alpha-60);
  margin-bottom: 40px;
  line-height: 2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   2. PAIN POINTS
   ============================ */
.sw-pain {
  background: var(--dark-3);
}

.sw-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.sw-pain-card {
  padding: 28px;
  transition: var(--transition);
  border-top: 3px solid rgba(220, 53, 69, 0.6);
}

.sw-pain-card:hover {
  transform: translateY(-4px);
  border-top-color: rgba(220, 53, 69, 0.9);
}

.sw-pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(220, 53, 69, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sw-pain-icon svg {
  width: 26px;
  height: 26px;
  color: #dc3545;
}

.sw-pain-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sw-pain-card p {
  font-size: 0.9rem;
  color: var(--white-alpha-60);
  line-height: 1.8;
}

/* ============================
   3. FEATURES DEEP-DIVE (TABS)
   ============================ */
.sw-features {
  background: var(--dark-1);
}

.sw-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.sw-tab {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--white-alpha-05);
  border: 1px solid var(--white-alpha-10);
  color: var(--white-alpha-60);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sw-tab:hover {
  color: var(--gold-1);
  border-color: var(--gold-1);
}

.sw-tab.active {
  background: var(--gold-gradient);
  color: var(--dark-1);
  border-color: transparent;
}

.sw-panel {
  display: none;
}

.sw-panel.active {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: start;
  animation: swFadeIn 0.4s ease;
}

@keyframes swFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.sw-feature-detail h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sw-feature-detail .en-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-1);
  margin-bottom: 20px;
  direction: ltr;
}

.sw-feature-detail > p {
  color: var(--white-alpha-60);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 2;
}

.sw-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sw-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--white-alpha-80);
}

.sw-feature-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-1);
}

.sw-spec-card {
  padding: 28px;
  border-radius: var(--radius);
}

.sw-spec-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-1);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--white-alpha-10);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 0.9rem;
  color: var(--white-alpha-60);
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-1);
  direction: ltr;
}

/* ============================
   4. SUPPORTED PLAN TYPES
   ============================ */
.sw-plan-types {
  background: var(--dark-3);
}

.sw-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sw-plan-card {
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.sw-plan-card::before {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
  margin: 0 auto 20px;
}

.sw-plan-card:hover::before {
  width: 60%;
}

.sw-plan-card:hover {
  transform: translateY(-6px);
}

.sw-plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.sw-plan-card:hover .sw-plan-icon {
  background: var(--gold-gradient);
}

.sw-plan-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold-1);
  transition: var(--transition);
}

.sw-plan-card:hover .sw-plan-icon svg {
  color: var(--dark-1);
}

.sw-plan-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sw-plan-card .en-name {
  font-size: 0.8rem;
  color: var(--gold-1);
  margin-bottom: 12px;
  direction: ltr;
}

.sw-plan-card p {
  font-size: 0.85rem;
  color: var(--white-alpha-60);
  line-height: 1.7;
}

/* ============================
   5. BEFORE / AFTER
   ============================ */
.sw-before-after {
  background: var(--dark-1);
}

.sw-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.sw-ba-card {
  padding: 32px;
}

.sw-ba-card--before {
  border-right: 4px solid #dc3545;
}

.sw-ba-card--after {
  border-right: 4px solid var(--gold-1);
}

.sw-ba-label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.sw-ba-card--before .sw-ba-label {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.sw-ba-card--after .sw-ba-label {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold-1);
}

.sw-ba-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--white-alpha-80);
  padding: 8px 0;
}

.sw-ba-card ul li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sw-ba-card--before ul li svg {
  color: #dc3545;
}

.sw-ba-card--after ul li svg {
  color: var(--gold-1);
}

.sw-ba-highlight {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.sw-ba-highlight p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-1);
  line-height: 2;
}

/* ============================
   6. ARCHITECTURE PIPELINE
   ============================ */
.sw-architecture {
  background: var(--dark-3);
}

.sw-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  direction: rtl;
}

.sw-pipeline-step {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.sw-pipeline-step:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--dark-1);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.sw-pipeline-step .step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.sw-pipeline-step .step-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold-1);
}

.sw-pipeline-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sw-pipeline-step p {
  font-size: 0.82rem;
  color: var(--white-alpha-60);
  line-height: 1.7;
}

/* Arrow connectors between steps */
.sw-pipeline-arrow {
  display: flex;
  align-items: center;
  padding-top: 36px;
  color: var(--gold-1);
  font-size: 1.4rem;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================
   7. TECH SPECS TABLE
   ============================ */
.sw-specs {
  background: var(--dark-1);
}

.sw-specs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--white-alpha-10);
  -webkit-overflow-scrolling: touch;
}

.sw-specs-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
}

.sw-specs-table thead th {
  background: rgba(212, 168, 67, 0.1);
  padding: 16px 14px;
  font-weight: 700;
  color: var(--gold-1);
  border-bottom: 2px solid var(--white-alpha-10);
  white-space: nowrap;
}

.sw-specs-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--white-alpha-05);
  color: var(--white-alpha-80);
  vertical-align: middle;
}

.sw-specs-table tbody td:first-child {
  text-align: right;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.sw-specs-table tbody td:nth-child(2) {
  background: rgba(212, 168, 67, 0.04);
  color: var(--gold-1);
  font-weight: 600;
}

.sw-specs-table tbody tr:hover {
  background: var(--white-alpha-05);
}

/* ============================
   8. GOLD STATS BAND
   (Reuses .authority-stats from plans.css)
   ============================ */

/* ============================
   9. INTEGRATIONS
   ============================ */
.sw-integrations {
  background: var(--dark-3);
}

.sw-integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sw-integration-card {
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.sw-integration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.sw-integration-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.sw-integration-card:hover .sw-integration-icon {
  background: var(--gold-gradient);
}

.sw-integration-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold-1);
  transition: var(--transition);
}

.sw-integration-card:hover .sw-integration-icon svg {
  color: var(--dark-1);
}

.sw-integration-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sw-integration-card p {
  font-size: 0.85rem;
  color: var(--white-alpha-60);
  line-height: 1.7;
}

/* ============================
   10. FAQ ACCORDION
   ============================ */
.sw-faq {
  background: var(--dark-1);
}

/* Reuses .faq-list, .faq-item, .faq-question, .faq-arrow, .faq-answer, .faq-answer-inner from plans.css */

/* ============================
   11. FINAL CTA
   ============================ */
.sw-cta {
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}

.sw-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(212, 168, 67, 0.08), transparent);
}

.sw-cta .cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ============================
   RESPONSIVE — Software Page
   ============================ */

@media (max-width: 1024px) {
  .sw-panel.active {
    grid-template-columns: 1fr;
  }

  .sw-integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-pipeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sw-pipeline-step {
    flex: 0 0 calc(33.333% - 16px);
  }

  .sw-pipeline-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .sw-hero .hero-content h1 {
    font-size: 2rem;
  }

  .sw-hero .hero-content .subtitle {
    font-size: 1rem;
  }

  .sw-hero {
    min-height: 70vh;
  }

  .sw-pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-tabs {
    gap: 6px;
  }

  .sw-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .sw-panel.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sw-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-ba-grid {
    grid-template-columns: 1fr;
  }

  .sw-pipeline {
    flex-direction: column;
    align-items: stretch;
  }

  .sw-pipeline-step {
    flex: auto;
  }

  .sw-pipeline-arrow {
    display: none;
  }

  .sw-integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-specs-table {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .sw-hero .hero-content h1 {
    font-size: 1.6rem;
  }

  .sw-pain-grid {
    grid-template-columns: 1fr;
  }

  .sw-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .sw-feature-detail h3 {
    font-size: 1.3rem;
  }

  .sw-plan-grid {
    grid-template-columns: 1fr;
  }

  .sw-ba-card {
    padding: 24px;
  }

  .sw-integrations-grid {
    grid-template-columns: 1fr;
  }
}
