/* ==========================================================================
   M90 TECHNOLOGIES — MAIN STYLES & SPECIALIZED INTERFACES
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: clamp(1rem, 2vw, 1.75rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  background: var(--hero-mesh);
}



.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  text-align: left;
}

.hero-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-emerald-500);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--brand-emerald-500);
  opacity: 0.5;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(2); opacity: 0; }
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-title-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.52;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
}

.hero-trust-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.hero-trust-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.hero-dual-switch {
  display: flex;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.hero-switch-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-switch-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.hero-blueprint-view {
  background: var(--brand-navy-950);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-mono);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(0, 102, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
  pointer-events: none;
}

.blueprint-header {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.blueprint-tag {
  color: var(--brand-cyan-400);
  font-size: 0.7rem;
}

.blueprint-layers {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  position: relative;
  z-index: 2;
  margin: 0.55rem 0;
}

.layer-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  line-height: 1.25;
  transition: all var(--transition-fast);
}

.layer-bar:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: var(--brand-cyan-400);
  transform: translateX(3px);
}

.layer-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.layer-icon {
  color: var(--brand-cyan-400);
}

.layer-status {
  color: var(--brand-emerald-500);
  font-weight: 600;
  font-size: 0.68rem;
}

.floating-kpi-card {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   7 Domains Interactive Explorer
   ========================================================================== */
.domain-nav-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 3px 0;
  margin-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.domain-nav-tabs::-webkit-scrollbar {
  display: none;
}

.domain-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.42rem 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  line-height: 1.3;
  text-decoration: none;
}

.domain-tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-card-subtle);
  transform: translateY(-1px);
}

.domain-tab-btn.active {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

.domain-tab-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
  background: var(--bg-card-subtle);
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
}

.domain-tab-btn.active .domain-tab-num {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.domain-detail-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.domain-detail-pane.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .domain-detail-pane.active {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.domain-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.domain-scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.domain-scope-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card-subtle);
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.22s ease,
              color 0.2s ease;
  user-select: none;
}

.domain-scope-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--brand-blue-500);
  background-color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.16);
  color: var(--brand-blue-600);
}

[data-theme="dark"] .domain-scope-item:hover {
  background-color: rgba(0, 102, 255, 0.12);
  border-color: var(--brand-cyan-400);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.28);
  color: #FFFFFF;
}

.domain-scope-item svg {
  color: var(--brand-emerald-500);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0;
  transition: transform 0.22s ease, color 0.2s ease;
}

.domain-scope-item:hover svg {
  transform: scale(1.25);
  color: var(--brand-blue-500);
}

[data-theme="dark"] .domain-scope-item:hover svg {
  color: var(--brand-cyan-400);
}

/* ==========================================================================
   Project Cost & Scope Estimator
   ========================================================================== */
.estimator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .estimator-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.estimator-step {
  margin-bottom: 1.75rem;
}

.estimator-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.estimator-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-strong);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.estimator-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.estimator-chip.selected {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.estimator-slider-wrap {
  margin-top: 1rem;
}

.slider-val-display {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.estimator-summary-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-metric {
  margin-bottom: 1.25rem;
}

.summary-metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   Page Headers & Banners
   ========================================================================== */
.page-header {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  background: var(--hero-mesh);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 1rem;
}

.page-header-desc {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
}

/* Timeline / Company Story */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--border-strong);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
  }
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
  }
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-page);
  box-shadow: 0 0 0 2px var(--accent-primary);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -10px;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
  }
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-left: 3rem;
}

@media (min-width: 768px) {
  .timeline-card {
    margin-left: 0;
  }
}

/* Call to Action Banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

/* ==========================================================================
   Contact Page Detail Cards (Reference UI)
   ========================================================================== */
.contact-card-label {
  color: #0066FF !important;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}

.contact-val-link {
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  line-height: 1.55;
  transition: color var(--transition-fast);
}

.contact-val-link:hover {
  color: #0066FF !important;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: #0066FF;
  border-color: #0066FF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  stroke: currentColor;
}


