/* ═══════════════════════════════════════════════
   Gexa Cloud — Software / ERP page
   ═══════════════════════════════════════════════ */
.page-software {
  --sw-ink: #0B1F3A;
  --sw-navy: #071427;
  --sw-blue: #1E90FF;
  --sw-cyan: #00B4D8;
  --sw-violet: #6C5CE7;
  --sw-surface: #F5F8FC;
  --sw-line: #E3EAF3;
  --sw-grad: linear-gradient(135deg, #1E90FF 0%, #00B4D8 100%);
  --sw-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-family: var(--sw-font);
  background: #fff;
}
.page-software[dir="rtl"] { font-family: var(--font-ar); --sw-font: var(--font-ar); }
.page-software h1, .page-software h2, .page-software h3, .page-software h4 { font-family: var(--sw-font); letter-spacing: -0.02em; }
.page-software[dir="rtl"] h1, .page-software[dir="rtl"] h2, .page-software[dir="rtl"] h3, .page-software[dir="rtl"] h4 { letter-spacing: 0; }

/* ─── Buttons ─── */
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.sw-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sw-btn-primary { background: var(--sw-grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(30,144,255,.6); }
.sw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(30,144,255,.7); color: #fff; }
.sw-btn-ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.sw-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.sw-btn-soft { background: #fff; color: var(--sw-ink); border-color: var(--sw-line); }
.sw-btn-soft:hover { border-color: var(--sw-blue); color: var(--sw-blue); }
.sw-btn-block { width: 100%; }
.sw-arrow { transition: transform .25s ease; }
.sw-btn:hover .sw-arrow { transform: translateX(4px); }
[dir="rtl"] .sw-arrow { transform: scaleX(-1); }
[dir="rtl"] .sw-btn:hover .sw-arrow { transform: scaleX(-1) translateX(4px); }

/* ─── Shared heading ─── */
.sw-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sw-blue); background: rgba(30,144,255,.09); padding: 6px 12px; border-radius: 999px;
}
[dir="rtl"] .sw-eyebrow { letter-spacing: 0; font-size: .8rem; }
.sw-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sw-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--sw-ink); margin: 14px 0 12px; }
.sw-head p { color: var(--text-muted); font-size: 1.06rem; }

/* ═══ Hero ═══ */
.sw-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #123a73 0%, transparent 60%), linear-gradient(160deg, #050d1c 0%, var(--sw-navy) 45%, #0B1F3A 100%);
  padding: calc(var(--header-h) + 72px) 0 96px;
}
.sw-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sw-hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.sw-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.sw-orb-1 { width: 420px; height: 420px; background: #1E90FF; top: -120px; inset-inline-end: 8%; animation: swFloat 14s ease-in-out infinite; }
.sw-orb-2 { width: 340px; height: 340px; background: #6C5CE7; bottom: -160px; inset-inline-start: -60px; opacity: .35; animation: swFloat 18s ease-in-out infinite reverse; }
.sw-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.sw-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; font-weight: 600; color: #cfe6ff;
  animation: fadeInUp .6s ease both;
}
.sw-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #2EE6A6; box-shadow: 0 0 0 4px rgba(46,230,166,.18); animation: pulse 2s infinite; }
.sw-hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; margin: 22px 0 18px;
  background: linear-gradient(180deg, #fff 30%, #a9d4ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeInUp .6s .08s ease both;
}
[dir="rtl"] .sw-hero h1 { line-height: 1.35; }
.sw-hero-lead { color: rgba(226,236,250,.78); font-size: 1.15rem; line-height: 1.75; max-width: 540px; animation: fadeInUp .6s .16s ease both; }
.sw-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fadeInUp .6s .24s ease both; }
.sw-stats { display: flex; gap: 0; margin-top: 46px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; animation: fadeInUp .6s .32s ease both; }
.sw-stats > div { flex: 1; padding-inline-end: 20px; }
.sw-stats > div + div { padding-inline-start: 20px; border-inline-start: 1px solid rgba(255,255,255,.1); }
.sw-stats dt { font-size: 2rem; font-weight: 800; background: var(--sw-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; font-family: 'Outfit', var(--sw-font); }
.sw-stats dd { margin: 6px 0 0; color: rgba(226,236,250,.65); font-size: .86rem; line-height: 1.4; }

/* Mock dashboard */
.sw-hero-visual { position: relative; animation: fadeInUp .8s .2s ease both; }
.sw-mock {
  border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.96); color: var(--sw-ink);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform .6s ease;
}
[dir="rtl"] .sw-mock { transform: perspective(1400px) rotateY(8deg) rotateX(4deg); }
.sw-hero-visual:hover .sw-mock { transform: perspective(1400px) rotateY(0) rotateX(0); }
.sw-mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #EEF2F8; border-bottom: 1px solid var(--sw-line); direction: ltr; }
.sw-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.sw-mock-bar i:nth-child(2) { background: #FEBC2E; }
.sw-mock-bar i:nth-child(3) { background: #28C840; }
.sw-mock-bar span { margin-inline-start: 12px; font-size: .72rem; color: #7b8aa3; background: #fff; padding: 3px 12px; border-radius: 6px; font-family: 'Inter', system-ui, sans-serif; }
.sw-mock-body { display: grid; grid-template-columns: 58px 1fr; min-height: 300px; }
.sw-mock-side { background: var(--sw-ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sw-mock-side b { width: 30px; height: 30px; border-radius: 9px; background: var(--sw-grad); margin-bottom: 8px; }
.sw-mock-side span { width: 26px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); }
.sw-mock-side span.on { background: var(--sw-cyan); }
.sw-mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sw-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sw-mock-kpis > div { border: 1px solid var(--sw-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sw-mock-kpis small { font-size: .68rem; color: #7b8aa3; font-weight: 600; }
.sw-mock-kpis strong { font-size: 1.05rem; font-weight: 800; font-family: 'Outfit', var(--sw-font); }
.sw-mock-kpis em { font-style: normal; font-size: .66rem; font-weight: 700; color: #12b981; }
.sw-mock-chart { flex: 1; min-height: 120px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; border: 1px solid var(--sw-line); border-radius: 12px; background: linear-gradient(180deg, #fbfdff, #f3f7fc); }
.sw-mock-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #1E90FF, #00B4D8); opacity: .9; transform-origin: bottom; animation: swGrow 1s cubic-bezier(.2,.8,.2,1) both; }
.sw-mock-chart span:nth-child(odd) { background: linear-gradient(180deg, #a6cdfa, #cfe5fb); }
.sw-mock-chart span:nth-child(2) { animation-delay: .05s } .sw-mock-chart span:nth-child(3) { animation-delay: .1s }
.sw-mock-chart span:nth-child(4) { animation-delay: .15s } .sw-mock-chart span:nth-child(5) { animation-delay: .2s }
.sw-mock-chart span:nth-child(6) { animation-delay: .25s } .sw-mock-chart span:nth-child(7) { animation-delay: .3s }
.sw-mock-chart span:nth-child(8) { animation-delay: .35s }
.sw-mock-rows { display: flex; flex-direction: column; gap: 7px; }
.sw-mock-rows span { height: 9px; border-radius: 5px; background: #EDF2F8; }
.sw-mock-rows span:nth-child(1) { width: 92%; } .sw-mock-rows span:nth-child(2) { width: 76%; } .sw-mock-rows span:nth-child(3) { width: 58%; }
.sw-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.97); color: var(--sw-ink); box-shadow: 0 20px 50px -12px rgba(0,0,0,.45);
  animation: swFloat 6s ease-in-out infinite;
}
.sw-float small { display: block; font-size: .7rem; color: #7b8aa3; font-weight: 600; }
.sw-float b { font-size: .85rem; font-weight: 800; }
.sw-float-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sw-grad); color: #fff; flex-shrink: 0; }
.sw-float-ic svg { width: 20px; height: 20px; }
.sw-float-1 { bottom: -22px; inset-inline-start: -28px; }
.sw-float-2 { top: -26px; inset-inline-end: -18px; animation-delay: -3s; }
.sw-float-2 .sw-float-ic { background: linear-gradient(135deg, #6C5CE7, #A66CFF); }

/* ═══ Solutions ═══ */
.sw-solutions { padding: 96px 0 104px; background: linear-gradient(180deg, #fff 0%, var(--sw-surface) 100%); }
.sw-tabs-wrap {
  position: relative; z-index: 20; margin: 0 auto 36px;
  display: flex; justify-content: center;
}
.page-software .sw-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 7px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--sw-line); border-radius: 18px; box-shadow: 0 12px 40px -18px rgba(11,31,58,.3);
}
.page-software .sw-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  background: transparent; border: 0; box-shadow: none; color: #4b5d79; font-weight: 700; font-size: .88rem;
  font-family: inherit; cursor: pointer; white-space: nowrap; transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.page-software .sw-tab:hover { background: rgba(30,144,255,.08); color: var(--sw-blue); box-shadow: none; }
.page-software .sw-tab.active { background: var(--sw-ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(11,31,58,.6); }
.sw-tab-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(30,144,255,.1); color: var(--sw-blue); transition: inherit; }
.sw-tab-ic svg { width: 16px; height: 16px; }
.sw-tab.active .sw-tab-ic { background: var(--sw-grad); color: #fff; }

/* Panel */
.page-software .sw-panel { display: none; }
.page-software .sw-panel.active { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; animation: fadeInUp .45s ease both; }
.sw-panel-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.sw-panel-card {
  position: relative; overflow: hidden; padding: 32px 28px; border-radius: 24px; color: #fff;
  background: radial-gradient(400px 260px at 100% 0%, rgba(30,144,255,.45), transparent 60%), linear-gradient(160deg, #0d264a 0%, var(--sw-navy) 100%);
  box-shadow: 0 30px 60px -25px rgba(11,31,58,.55);
}
.sw-panel-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.sw-panel-card > * { position: relative; z-index: 1; }
.sw-panel-ic { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--sw-grad); color: #fff; box-shadow: 0 14px 30px -10px rgba(30,144,255,.8); margin-bottom: 22px; }
.sw-panel-ic svg { width: 32px; height: 32px; }
.sw-panel-card .sw-eyebrow { background: rgba(255,255,255,.1); color: #9fd0ff; }
.page-software .sw-panel-card h3 { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin: 14px 0 10px; }
.page-software .sw-panel-card .panel-desc { color: rgba(226,236,250,.75); font-size: .96rem; line-height: 1.7; margin-bottom: 24px; }
.sw-panel-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.sw-panel-meta > div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.sw-panel-meta b { display: block; font-size: 1.6rem; font-weight: 800; font-family: 'Outfit', var(--sw-font); line-height: 1.1; }
.sw-panel-meta span { font-size: .8rem; color: rgba(226,236,250,.65); }
.sw-panel-card .sw-btn + .sw-btn { margin-top: 10px; }
.sw-panel-card .sw-btn-soft { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.sw-panel-card .sw-btn-soft:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }

/* Modules */
.sw-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sw-module {
  background: #fff; border: 1px solid var(--sw-line); border-radius: 20px; padding: 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sw-module:hover { transform: translateY(-3px); border-color: rgba(30,144,255,.35); box-shadow: 0 24px 50px -24px rgba(11,31,58,.28); }
.sw-module:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sw-module-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px dashed var(--sw-line); }
.sw-module-num {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(30,144,255,.12), rgba(0,180,216,.12)); color: var(--sw-blue);
  font-weight: 800; font-size: .9rem; font-family: 'Outfit', var(--sw-font);
}
.sw-module-head h4 { flex: 1; margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--sw-ink); }
.sw-module-count { font-size: .75rem; font-weight: 700; color: #6b7c96; background: var(--sw-surface); border: 1px solid var(--sw-line); padding: 3px 10px; border-radius: 999px; font-family: 'Outfit', var(--sw-font); }
.sw-feature-list { display: grid; grid-template-columns: 1fr; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sw-module:last-child:nth-child(odd) .sw-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.sw-feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: .92rem; color: #46576f; line-height: 1.55; }
.sw-check { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; background: rgba(18,185,129,.12); color: #0f9f6e; }
.sw-check svg { width: 12px; height: 12px; }

/* ═══ Core features ═══ */
.sw-core { padding: 100px 0; background: #fff; position: relative; }
.sw-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sw-core-item {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: var(--sw-surface); border: 1px solid transparent; font-weight: 600; font-size: .93rem; color: var(--sw-ink);
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.sw-core-item:hover { background: #fff; border-color: rgba(30,144,255,.3); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11,31,58,.35); }
.sw-core-item .sw-check { width: 28px; height: 28px; border-radius: 9px; background: var(--sw-grad); color: #fff; margin: 0; }
.sw-core-item .sw-check svg { width: 15px; height: 15px; }

/* CTA polish */
.page-software .sw-cta { border-radius: 0; }

/* ─── Animations ─── */
@keyframes swFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes swGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .page-software *, .page-software *::before { animation: none !important; transition: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .page-software .sw-panel.active { grid-template-columns: 300px 1fr; }
  .sw-modules { grid-template-columns: 1fr; }
  .sw-module:last-child:nth-child(odd) .sw-feature-list,
  .sw-modules .sw-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 960px) {
  .sw-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-hero { padding: calc(var(--header-h) + 48px) 0 80px; }
  .sw-hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .sw-hero-copy { text-align: center; }
  .sw-hero-lead { margin-inline: auto; }
  .sw-hero-actions { justify-content: center; }
  .sw-hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .page-software .sw-panel.active { grid-template-columns: 1fr; }
  .sw-panel-aside { position: static; }
  .sw-tabs-wrap { position: sticky; top: calc(var(--header-h) + 8px); justify-content: flex-start; }
  .page-software .sw-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; max-width: 100%; }
  .page-software .sw-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .sw-core-grid { grid-template-columns: 1fr; }
  .sw-solutions, .sw-core { padding: 72px 0; }
  .sw-stats { flex-direction: column; gap: 16px; text-align: start; }
  .sw-stats > div, .sw-stats > div + div { padding: 0; border: 0; display: flex; align-items: center; gap: 14px; }
  .sw-stats dd { margin: 0; }
  .sw-hero-actions .sw-btn { flex: 1 1 100%; }
  .sw-float { display: none; }
  .sw-mock { transform: none !important; }
  .sw-mock-body { grid-template-columns: 1fr; }
  .sw-mock-side { display: none; }
  .sw-modules .sw-feature-list,
  .sw-module:last-child:nth-child(odd) .sw-feature-list { grid-template-columns: 1fr; }
  .sw-module { padding: 20px; }
  .sw-panel-card { padding: 26px 22px; }
}
