/* MODULTEC.KZ — Bento Modular Architecture Design System (Казахстан)
   Официальная бренд-айдентика:
   - Primary Brand Blue: #0B3E66
   - Primary Brand Blue Hover: #072C49
   - Brand Slate Grey: #5A6A78
   - Brand Light Blue / Frost: #EDF4F9
   - Canvas Tint: #F0F3F7
*/

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-brand-blue: #0B3E66;
  --color-brand-blue-hover: #072C49;
  --color-brand-blue-light: #EDF4F9;
  --color-brand-grey: #5A6A78;
  --color-canvas: #f0f3f7;
  --color-surface-white: #ffffff;
  --color-surface-soft: #e5ebf2;
  --color-surface-muted: #d5dfea;
  --color-dark: #0B3E66;
  --color-dark-card: #0c2338;
  --color-dark-card-hover: #12334f;
  --color-text-main: #0B3E66;
  --color-text-muted: #5A6A78;
  --color-text-light: #8292a1;
  --color-border-light: rgba(11, 62, 102, 0.08);
  --color-accent-blue: #0B3E66;
  --radius-bento: 32px;
  --radius-card: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-canvas);
  color: var(--color-text-main);
  font-family: 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Typography refinements */
h1, h2, h3, h4 {
  font-family: 'Onest', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-brand-blue);
}

/* Custom minimal scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #eef2f6;
}

::-webkit-scrollbar-thumb {
  background: #5A6A78;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0B3E66;
}

/* Bento Cards */
.bento-hero-left {
  background: #ffffff;
  border-radius: var(--radius-bento);
  box-shadow: 0 4px 24px -2px rgba(11, 62, 102, 0.04);
}

.bento-hero-right {
  border-radius: var(--radius-bento);
  overflow: hidden;
  box-shadow: 0 4px 24px -2px rgba(11, 62, 102, 0.08);
  position: relative;
}

.bento-stat-card {
  background: #ffffff;
  border: 1px solid rgba(11, 62, 102, 0.08);
  border-radius: 18px;
  transition: all 0.25s ease;
}

.bento-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 62, 102, 0.2);
  box-shadow: 0 8px 20px -4px rgba(11, 62, 102, 0.08);
}

.bento-dark-item {
  background-color: var(--color-dark-card);
  border-radius: 20px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-dark-item:hover {
  background-color: var(--color-dark-card-hover);
  transform: translateX(4px);
  box-shadow: 0 8px 24px -4px rgba(11, 62, 102, 0.3);
}

.bento-catalog-container {
  background-color: #e5ebf2;
  border-radius: 36px;
}

.bento-catalog-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(11, 62, 102, 0.2);
}

.pill-btn-black {
  background: var(--color-brand-blue);
  color: #ffffff;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.pill-btn-black:hover {
  background: var(--color-brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(11, 62, 102, 0.35);
}

.pill-btn-white {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-brand-blue);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(11, 62, 102, 0.1);
  transition: all 0.2s ease;
}

.pill-btn-white:hover {
  background: #ffffff;
  color: var(--color-brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 62, 102, 0.18);
}

.slider-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-blue);
  box-shadow: 0 2px 10px rgba(11, 62, 102, 0.08);
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: var(--color-brand-blue);
  color: #ffffff;
  transform: scale(1.05);
}

/* Payment & terms alternating cards */
.payment-card-light {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(11, 62, 102, 0.08);
  transition: all 0.25s ease;
}

.payment-card-light:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 62, 102, 0.2);
  box-shadow: 0 12px 24px -4px rgba(11, 62, 102, 0.1);
}

.payment-card-dark {
  background: var(--color-dark-card);
  color: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.payment-card-dark:hover {
  background: var(--color-dark-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(11, 62, 102, 0.35);
}

/* Step outlined badges */
.step-number-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 62, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-brand-grey);
  background: #ffffff;
}

/* Range input styling for calculator */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #d5dfea;
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 62, 102, 0.4);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: var(--color-brand-blue-hover);
}

/* Modal styles */
.modal-backdrop {
  background: rgba(11, 62, 102, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content-animate {
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==================== MODULTEC BRAND UTILITY OVERRIDES ==================== */
.bg-\[\#141618\] {
  background-color: #0B3E66 !important;
}

.hover\:bg-black:hover {
  background-color: #072C49 !important;
}

.hover\:bg-\[\#141618\]:hover {
  background-color: #072C49 !important;
}

.text-\[\#141618\] {
  color: #0B3E66 !important;
}

.border-\[\#141618\] {
  border-color: #0B3E66 !important;
}

.hover\:text-black:hover {
  color: #0B3E66 !important;
}

.group-hover\:bg-black:hover {
  background-color: #072C49 !important;
}

/* Technical blueprint grid pattern */
.blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(11, 62, 102, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 62, 102, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Architectural Hotspots */
.cad-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.cad-hotspot-btn {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(11, 62, 102, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(11, 62, 102, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.cad-hotspot-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(11, 62, 102, 0.5);
  animation: hotspot-pulse 2.2s infinite ease-out;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.cad-hotspot:hover .cad-hotspot-btn {
  transform: scale(1.15);
  background: #072C49;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 6px 16px rgba(11, 62, 102, 0.45);
}

.cad-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 26, 36, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 30;
}

.cad-hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(20, 26, 36, 0.94) transparent transparent transparent;
}

.cad-hotspot:hover .cad-hotspot-tooltip,
.cad-hotspot:focus-within .cad-hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

