/* Global CSS Variables & Reset */
:root {
  --bg-darker: #050811;
  --bg-dark: #0b0f19;
  --card-bg: rgba(18, 26, 43, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --font-family: 'Plus Jakarta Sans', sans-serif;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: color var(--transition-normal);
}

.nav-back:hover {
  color: var(--emerald);
  border-color: var(--emerald);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color var(--transition-normal);
}

.nav-link:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--emerald);
  color: #050811;
  box-shadow: 0 4px 20px var(--emerald-glow);
}

.btn-primary:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.hero-metric-item {
  text-align: center;
}

.hm-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.hm-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-graphic {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.graphic-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.graphic-card:hover {
  transform: translateX(8px);
}

.graphic-card i {
  width: 32px;
  height: 32px;
}

.graphic-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.graphic-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Common Section Containers */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Services Tabs Section */
.services-section {
  background: var(--bg-dark);
}

.services-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.srv-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.srv-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.srv-tab-btn.active {
  background: var(--emerald);
  color: #050811;
  border-color: var(--emerald);
}

.srv-tab-content {
  display: none;
}

.srv-tab-content.active {
  display: block;
}

.srv-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
}

.srv-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.srv-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 14px 0;
}

.srv-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.srv-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.srv-visual-frame {
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.srv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ERP Suite Explorer & Sandbox */
.erp-suite-section {
  background: var(--bg-darker);
}

.erp-modules-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.erp-mod-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.erp-mod-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.erp-mod-btn.active {
  background: var(--gold);
  color: #050811;
  border-color: var(--gold);
}

.erp-sandbox-wrapper {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.erp-sandbox-header {
  background: #111726;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.w-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #10b981; }

.window-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.live-status-badge {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 800;
}

.erp-sandbox-body {
  padding: 32px;
}

.erp-pane {
  display: none;
}

.erp-pane.active {
  display: block;
}

.erp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.erp-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.stat-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 11px;
  color: var(--text-muted);
}

.erp-pipeline-preview h4 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #fff;
}

.pipeline-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pipe-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}

.pipe-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pipe-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pipe-item.bg-win {
  border-left: 3px solid var(--emerald);
}

/* Case Studies Section */
.case-studies-section {
  background: var(--bg-dark);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.cs-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform 0.3s;
}

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

.cs-img-box {
  position: relative;
  height: 200px;
}

.cs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(5, 8, 17, 0.85);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.cs-body {
  padding: 24px;
}

.cs-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cs-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cs-metric-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.cs-metric-highlight strong {
  display: block;
  font-size: 18px;
  color: var(--emerald);
}

.cs-metric-highlight span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Calculator Section */
.calculator-section {
  background: var(--bg-darker);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.calc-info h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.calc-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.calc-guarantee-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
}

.calc-guarantee-box h4 {
  color: #fff;
  font-size: 16px;
}

.calc-guarantee-box p {
  margin: 0;
  font-size: 12px;
}

.calc-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
}

.calc-form-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.calc-group {
  margin-bottom: 20px;
}

.calc-group label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.calc-result-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-top: 24px;
}

.res-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.res-amount {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--emerald);
  margin: 4px 0;
}

.res-subtext {
  font-size: 11px;
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  background: var(--bg-dark);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
}

.contact-info {
  padding: 48px;
  border-right: 1px solid var(--border-color);
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item h4 {
  font-size: 15px;
  color: #fff;
}

.info-item p {
  margin: 0;
  font-size: 13px;
}

.contact-form {
  padding: 48px;
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.form-success {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.form-success.active {
  display: flex;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo {
  height: 24px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero-container, .srv-details-grid, .calc-wrapper, .contact-wrapper, .profit-sim-grid {
    grid-template-columns: 1fr;
  }
  
  .services-tabs-bar {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ==========================================
   BUSINESS PROFITABILITY & LOSS SIMULATOR
   ========================================== */
.profit-sim-section {
  background: var(--bg-dark);
}

.profit-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.profit-sim-controls, .profit-sim-output {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
}

.profit-sim-controls h3, .profit-sim-output h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.sim-group {
  margin-bottom: 22px;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sim-label-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.sim-val-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
}

.sim-slider {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  accent-color: var(--emerald);
  cursor: pointer;
}

/* Output Column Styles */
.p-metrics-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.p-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
}

.p-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.p-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0;
}

.p-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.net-profit-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.net-profit-banner.is-loss {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.net-profit-banner.is-loss .np-amount {
  color: #ef4444;
}

.np-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.np-amount {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--emerald);
  margin: 4px 0;
}

.np-pct {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.business-health-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.health-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.health-status-dot {
  font-size: 16px;
}

.health-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.business-health-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
