/* ==========================================================================
   Baibars Software - Modern Industrial AI Design System
   ========================================================================== */

:root {
  --bg-primary: #080c16;
  --bg-secondary: #0d1322;
  --bg-card: rgba(16, 24, 40, 0.75);
  --bg-card-hover: rgba(22, 34, 58, 0.85);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(0, 242, 254, 0.35);
  
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --glow-card: 0 12px 35px -10px rgba(0, 0, 0, 0.6);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

section, .section, [id] {
  scroll-margin-top: 90px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(37, 99, 235, 0.04) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 65%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--accent-cyan);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 22, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(14, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  color: #040914;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.45);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--accent-cyan);
  color: #fff;
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

/* Badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 50px;
}

/* Hero Mockup Visual */
.hero-visual-card {
  margin: 40px auto 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 12px;
  box-shadow: var(--glow-card), var(--glow-cyan);
  max-width: 1040px;
  overflow: hidden;
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* Trust / Integration Logos */
.trust-bar {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.trust-title {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.4);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Two Products Split Grid */
.product-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 110px;
}

.product-showcase.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.product-badge.surplus {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.product-badge.procure {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.product-name {
  font-size: 32px;
  font-weight: 800;
}

.problem-box {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid var(--accent-rose);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: #fecdd3;
  line-height: 1.5;
}

.problem-box strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* Interactive Interactive Mockup Container */
.interactive-panel {
  background: #0d1527;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow-card);
}

.panel-header {
  background: #111b33;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.panel-status {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-body {
  padding: 20px;
}

/* Surplus Interactive UI Search */
.search-input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-cyan);
}

.preset-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.preset-pill {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-secondary);
  border: 1px solid rgba(56, 189, 248, 0.15);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.preset-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  border-color: var(--accent-cyan);
}

.surplus-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.surplus-card {
  background: rgba(16, 25, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.surplus-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(20, 32, 58, 0.9);
}

.part-meta h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.part-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

.part-cert-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.part-pricing {
  text-align: right;
}

.part-price-curr {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.part-discount {
  font-size: 11px;
  color: var(--accent-emerald);
  display: block;
}

/* RFQ Interactive Matrix Comparison */
.rfq-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.rfq-matrix-table th, .rfq-matrix-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rfq-matrix-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.rfq-matrix-table tr.best-choice {
  background: rgba(0, 242, 254, 0.08);
  border-left: 2px solid var(--accent-cyan);
}

.score-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.score-badge.high { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.score-badge.mid { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.score-badge.low { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

/* Interactive Calculator */
.calc-card {
  background: linear-gradient(145deg, #0f172a 0%, #0d1527 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--glow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.slider-group {
  margin-bottom: 28px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.slider-header span:last-child {
  color: var(--accent-cyan);
  font-size: 16px;
  font-weight: 700;
}

input[type=range] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.calc-results-box {
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-item {
  margin-bottom: 24px;
}

.result-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.result-val {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.result-val.highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Workflow Steps */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.step-number {
  font-size: 36px;
  font-weight: 900;
  color: rgba(56, 189, 248, 0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Security & Architecture */
.security-banner {
  background: linear-gradient(90deg, rgba(14, 23, 42, 0.9) 0%, rgba(13, 21, 39, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
}

.sec-item {
  display: flex;
  gap: 16px;
}

.sec-icon {
  font-size: 28px;
  color: var(--accent-cyan);
}

.sec-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sec-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* CTA Footer Block */
.cta-banner {
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.15) 0%, rgba(10, 15, 29, 0.95) 70%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  box-shadow: var(--glow-cyan);
  margin-bottom: 80px;
}

.cta-banner h2 {
  font-size: 42px;
  margin-bottom: 18px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050811;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 320px;
  font-size: 13px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1240px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .brand-logo-img { height: 44px; }
}

@media (max-width: 992px) {
  .hero-title { font-size: 40px; }
  .product-showcase, .product-showcase.reverse {
    grid-template-columns: 1fr;
  }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-card { grid-template-columns: 1fr; }
  .security-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: 32px; }
  .hero-cta { flex-direction: column; }
  .workflow-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
