
/* ===== CSS Variables ===== */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.05);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* ===== Base ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
.navbar-main {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}
.navbar-main.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue-700) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand-custom .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.nav-link-custom {
  font-weight: 500;
  color: var(--gray-700) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition);
  font-size: .925rem;
}
.nav-link-custom:hover {
  background: var(--blue-50);
  color: var(--blue-600) !important;
}
.nav-phone {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff !important;
  font-weight: 600;
  padding: 10px 20px !important;
  border-radius: 50px;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-phone:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

/* ===== Hero ===== */
.hero-section {
  background: linear-gradient(135deg, #0c1f3f 0%, #13294b 30%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,.05) 0%, transparent 70%);
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.2);
  border: 1px solid rgba(96,165,250,.3);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.5);
  color: #fff;
}
.hero-btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  color: #fff;
  box-shadow: none;
  margin-left: 12px;
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* ===== Section headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Product cards ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-card.selected {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.product-card .select-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: #fff;
  font-size: 12px;
  color: transparent;
}
.product-card.selected .select-indicator {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}
.product-card .product-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 4px;
  padding-right: 32px;
  letter-spacing: -0.3px;
}
.product-card .product-series {
  font-size: .78rem;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card .product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-card .spec-tag {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: .78rem;
  color: var(--gray-700);
  font-weight: 500;
  white-space: nowrap;
}
.product-card .product-divider {
  border-top: 1px solid var(--gray-200);
  margin: auto 0 16px;
}
.product-card .product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.product-card .product-price-unit {
  font-size: .8rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* Cable card variant */
.product-card.cable-card .product-price {
  font-size: 1.2rem;
}

/* ===== Pagination ===== */
.pagination-custom {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.pagination-custom .page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination-custom .page-btn:hover:not(.active):not(:disabled) {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-600);
}
.pagination-custom .page-btn.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}
.pagination-custom .page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pagination-custom .page-arrow {
  font-size: 1rem;
}

/* ===== Floating order bar ===== */
.order-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--gray-900);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1050;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: none;
  font-weight: 600;
  font-size: .95rem;
}
.order-bar.visible {
  transform: translateX(-50%) translateY(0);
}
.order-bar .order-count {
  background: var(--blue-500);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}
.order-bar:hover {
  background: #000;
}

/* ===== Modal ===== */
.modal-custom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-custom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-custom {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  position: relative;
}
.modal-custom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-custom-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}
.modal-custom-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.modal-custom-subtitle {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.modal-selected-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.modal-selected-list li {
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  font-weight: 500;
}
.modal-selected-list li .item-price {
  color: var(--gray-900);
  font-weight: 700;
  white-space: nowrap;
}
.modal-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: right;
  padding: 14px 0;
  border-top: 2px solid var(--gray-200);
  margin-bottom: 20px;
}
.form-phone {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  outline: none;
  background: var(--gray-50);
}
.form-phone:focus {
  border-color: var(--blue-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-phone::placeholder {
  color: var(--gray-400);
}
.btn-submit-order {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.btn-submit-order:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(37,99,235,.4);
}
.btn-submit-order:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.order-success {
  text-align: center;
  padding: 8px 0 4px;
}
.order-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(5, 150, 105, .12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.order-success-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.order-success-text {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}
.form-check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

/* ===== Features strip ===== */
.features-strip {
  background: var(--blue-50);
  padding: 28px 0;
  border-bottom: 1px solid var(--blue-100);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.feature-item .feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.feature-item .feat-text {
  font-weight: 600;
  font-size: .85rem;
  color: var(--gray-800);
}

/* ===== How it works ===== */
.how-section {
  background: #fff;
}
.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1040px;
  margin: 0 auto;
}
.how-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  min-width: 0;
}
.how-step-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-50), #fff);
  border: 2px solid var(--blue-200);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.how-step:hover .how-step-icon {
  border-color: var(--blue-400);
  box-shadow: 0 8px 24px rgba(59,130,246,.15);
  transform: translateY(-2px);
}
.how-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.how-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.how-step-text {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}
.how-step-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 26px;
  color: var(--blue-300);
  font-size: 1.25rem;
}

/* ===== CTA section ===== */
.cta-section {
  background: linear-gradient(135deg, #0c1f3f, #13294b);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.15) 0%, transparent 70%);
}
.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  letter-spacing: -0.5px;
}
.cta-text {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  position: relative;
  margin: 16px 0 28px;
}

/* ===== Footer ===== */
.footer-main {
  background: var(--gray-900);
  color: rgba(255,255,255,.6);
  padding: 48px 0 32px;
  font-size: .9rem;
}
.footer-main h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-main a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: var(--transition);
}
.footer-main a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
}

/* ===== Toast ===== */
.toast-custom {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #059669;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.toast-custom.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeInUp .5s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 1.5rem; }
  .product-card { padding: 18px; }
  .product-card .product-name { font-size: .95rem; }
}
@media (max-width: 991px) {
  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 400px;
  }
  .how-step {
    width: 100%;
    padding: 0;
  }
  .how-step-connector {
    padding: 8px 0;
    transform: rotate(90deg);
  }
}
@media (max-width: 767px) {
  .hero-section { padding: 60px 0 50px; min-height: auto; }
  .hero-title { font-size: 1.8rem; }
  .hero-btn-outline { margin-left: 0; margin-top: 10px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .section-title { font-size: 1.5rem; }
  .order-bar { padding: 12px 20px; font-size: .85rem; gap: 10px; bottom: 16px; }
  .modal-custom { padding: 20px; width: 95%; }
}
@media (max-width: 575px) {
  .pagination-custom .page-btn { width: 36px; height: 36px; font-size: .8rem; border-radius: 8px; }
  .features-strip .col-6 { margin-bottom: 12px; }
}
