/* ==========================================================================
   LINKSOLAR — Google Stitch Next-Level Design System & Interactive Modules
   Inspired by Google Stitch Generative UI & Vibe Design Aesthetics
   - Glassmorphism Bento Grids & Micro-Interactions
   - Live Interactive Solar & PM Surya Ghar Subsidy ROI Calculator
   - 24/7 Interactive Power Flow Telemetry Simulator
   - Next-Gen Hardware & Tech Stack Bento
   - DHBVN Gurugram Locality Feasibility Checker
   - Polished Ambient Lighting & Micro-Animations
   ========================================================================== */

:root {
  --stitch-primary: #0F172A;
  --stitch-surface: #FFFFFF;
  --stitch-surface-glass: rgba(255, 255, 255, 0.82);
  --stitch-surface-dark: #0A0F1D;
  --stitch-border: rgba(15, 23, 42, 0.08);
  --stitch-border-glass: rgba(255, 255, 255, 0.2);
  --stitch-border-glow: rgba(245, 158, 11, 0.4);
  
  --stitch-amber: #F59E0B;
  --stitch-yellow: #FFE600;
  --stitch-emerald: #10B981;
  --stitch-cyan: #0EA5E9;
  --stitch-purple: #8B5CF6;
  
  --stitch-gradient-solar: linear-gradient(135deg, #FFE600 0%, #F59E0B 50%, #EA580C 100%);
  --stitch-gradient-clean: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
  --stitch-gradient-dark: linear-gradient(180deg, #0A0F1D 0%, #030712 100%);
  
  --stitch-shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  --stitch-shadow-card: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --stitch-shadow-glow: 0 12px 40px -8px rgba(245, 158, 11, 0.25);
  --stitch-shadow-cyan-glow: 0 12px 40px -8px rgba(14, 165, 233, 0.25);
  
  --stitch-radius-sm: 10px;
  --stitch-radius-md: 16px;
  --stitch-radius-lg: 24px;
  --stitch-radius-xl: 32px;
  --stitch-radius-full: 9999px;
}

/* Ensure smooth anchor jumps account for sticky header */
section[id], div[id] {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   0. TOP SMART ANNOUNCEMENT TICKER (Google Stitch Aesthetic)
   ========================================================================== */
.stitch-announcement-bar {
  background: #000000;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.stitch-announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.stitch-ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  padding: 3px 10px;
  border-radius: var(--stitch-radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stitch-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: stitchPulse 2s infinite ease-in-out;
}

@keyframes stitchPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.stitch-ticker-text {
  color: #E2E8F0;
  font-size: 0.8rem;
}

.stitch-ticker-text strong {
  color: #FFE600;
}

.stitch-ticker-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stitch-ticker-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stitch-ticker-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   1. HERO ENHANCEMENT PILLS & BENTO TELEMETRY
   ========================================================================== */
.stitch-hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  max-width: 900px;
}

.stitch-telemetry-chip {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--stitch-radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--stitch-shadow-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stitch-telemetry-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--stitch-shadow-card);
}

.stitch-telemetry-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stitch-telemetry-icon.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.stitch-telemetry-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.stitch-telemetry-icon.cyan {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
}

.stitch-telemetry-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  font-weight: 700;
}

.stitch-telemetry-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--ref-font-display);
}

/* ==========================================================================
   2. INTERACTIVE GOOGLE STITCH SOLAR & SUBSIDY CALCULATOR
   ========================================================================== */
.stitch-calculator-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
  position: relative;
  overflow: hidden;
}

.stitch-ambient-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.stitch-ambient-orb.orb-1 {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.6) 0%, rgba(245, 158, 11, 0.2) 60%, transparent 80%);
}

.stitch-ambient-orb.orb-2 {
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, rgba(16, 185, 129, 0.15) 60%, transparent 80%);
}

.stitch-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: var(--stitch-radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.stitch-section-title {
  font-family: var(--ref-font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 16px;
  line-height: 1.15;
}

.stitch-section-sub {
  font-size: 1.05rem;
  color: #475569;
  max-width: 650px;
  margin: 0 0 44px;
  line-height: 1.6;
}

.stitch-calc-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Left Controls Panel */
.stitch-calc-controls {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--stitch-radius-xl);
  padding: 36px;
  box-shadow: var(--stitch-shadow-card);
}

.stitch-slider-group {
  margin-bottom: 30px;
}

.stitch-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.stitch-slider-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-slider-val {
  font-family: var(--ref-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  background: #F8FAFC;
  padding: 4px 14px;
  border-radius: var(--stitch-radius-sm);
  border: 1px solid #E2E8F0;
}

.stitch-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stitch-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000000;
  border: 3px solid #FFE600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.stitch-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #1E293B;
}

.stitch-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000000;
  border: 3px solid #FFE600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.stitch-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}

/* Property Type Selector in Calc */
.stitch-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stitch-type-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--stitch-radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  transition: all 0.2s ease;
}

.stitch-type-btn.active {
  background: #000000;
  color: #FFE600;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Toggle Option Bar */
.stitch-toggle-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--stitch-radius-md);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.stitch-toggle-card:hover {
  border-color: #CBD5E1;
}

.stitch-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stitch-toggle-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-toggle-sub {
  font-size: 0.8rem;
  color: #64748B;
}

/* Switch Input */
.stitch-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.stitch-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.stitch-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 26px;
}

.stitch-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.stitch-switch input:checked + .stitch-switch-slider {
  background-color: #000000;
}

.stitch-switch input:checked + .stitch-switch-slider:before {
  transform: translateX(22px);
  background-color: #FFE600;
}

/* Right Output Panel (Dark Glass Stitch Aesthetic) */
.stitch-calc-results {
  background: var(--stitch-gradient-dark);
  color: #FFFFFF;
  border-radius: var(--stitch-radius-xl);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stitch-calc-results::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.stitch-result-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.stitch-result-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 230, 0, 0.15);
  border: 1px solid rgba(255, 230, 0, 0.3);
  color: #FFE600;
  padding: 4px 12px;
  border-radius: var(--stitch-radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stitch-result-size-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.stitch-result-size-val {
  font-family: var(--ref-font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.stitch-result-size-val span {
  font-size: 1.3rem;
  color: #FFE600;
  font-weight: 700;
  margin-left: 2px;
}

.stitch-subsidy-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  padding: 6px 14px;
  border-radius: var(--stitch-radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.stitch-subsidy-pill small {
  display: block;
  font-size: 0.68rem;
  color: #A7F3D0;
  font-weight: 500;
}

/* Metrics Grid in Results */
.stitch-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.stitch-metric-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--stitch-radius-md);
  padding: 16px;
  transition: background 0.2s ease;
}

.stitch-metric-box:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stitch-metric-label {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stitch-metric-val {
  font-family: var(--ref-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

.stitch-metric-val.green {
  color: #34D399;
}

.stitch-metric-val.gold {
  color: #FFE600;
}

.stitch-metric-note {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 2px;
}

.stitch-calc-cta-btn {
  background: #FFE600;
  color: #000000;
  border: none;
  padding: 16px 24px;
  border-radius: var(--stitch-radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(255, 230, 0, 0.3);
  width: 100%;
}

.stitch-calc-cta-btn:hover {
  background: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   3. 24/7 INTERACTIVE POWER FLOW TELEMETRY SIMULATOR
   ========================================================================== */
.stitch-powerflow-section {
  padding: 90px 0;
  background: #060913;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.stitch-powerflow-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 0, 0.4), transparent);
}

.stitch-flow-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.stitch-flow-modes {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--stitch-radius-full);
  padding: 4px;
  gap: 4px;
}

.stitch-mode-btn {
  background: transparent;
  color: #94A3B8;
  border: none;
  padding: 8px 18px;
  border-radius: var(--stitch-radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stitch-mode-btn.active {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stitch-flow-canvas-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stitch-radius-xl);
  padding: 40px 30px;
  position: relative;
}

/* Nodes Grid */
.stitch-nodes-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.stitch-node-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stitch-radius-lg);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.stitch-node-card.active-solar {
  border-color: rgba(255, 230, 0, 0.6);
  box-shadow: 0 0 30px rgba(255, 230, 0, 0.25);
  background: rgba(255, 230, 0, 0.08);
}

.stitch-node-card.active-battery {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

.stitch-node-card.active-grid {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.08);
}

.stitch-node-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
}

.stitch-node-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.stitch-node-stat {
  font-family: var(--ref-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFE600;
}

.stitch-node-sub {
  font-size: 0.7rem;
  color: #94A3B8;
  margin-top: 4px;
}

/* Status explanation banner */
.stitch-flow-status-banner {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--stitch-radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.stitch-status-message {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #E2E8F0;
}

.stitch-live-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: stitchPulse 1.5s infinite;
}

/* ==========================================================================
   4. HARDWARE & TECH STACK BENTO GRID (Google Stitch Style)
   ========================================================================== */
.stitch-hardware-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.stitch-hardware-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.stitch-bento-card {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--stitch-radius-xl);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stitch-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: var(--stitch-shadow-card);
}

.stitch-bento-card.col-8 {
  grid-column: span 8;
}

.stitch-bento-card.col-4 {
  grid-column: span 4;
}

.stitch-bento-card.col-6 {
  grid-column: span 6;
}

.stitch-bento-card.dark {
  background: #0A0F1D;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.1);
}

.stitch-bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--stitch-radius-full);
  margin-bottom: 16px;
  width: fit-content;
}

.stitch-bento-badge.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

.stitch-bento-badge.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.stitch-bento-badge.cyan {
  background: rgba(14, 165, 233, 0.15);
  color: #0284C7;
}

.stitch-bento-card.dark .stitch-bento-badge.yellow {
  background: rgba(255, 230, 0, 0.2);
  color: #FFE600;
}

.stitch-bento-card.dark .stitch-bento-badge.emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.stitch-bento-title {
  font-family: var(--ref-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: inherit;
  letter-spacing: -0.01em;
}

.stitch-bento-desc {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 24px;
}

.stitch-bento-card.dark .stitch-bento-desc {
  color: #94A3B8;
}

.stitch-bento-spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 20px;
}

.stitch-bento-card.dark .stitch-bento-spec-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.stitch-spec-val {
  font-family: var(--ref-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: inherit;
}

.stitch-spec-lbl {
  font-size: 0.7rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 2px;
}

.stitch-bento-card.dark .stitch-spec-lbl {
  color: #94A3B8;
}

/* ==========================================================================
   5. DHBVN 4-STEP COMMISSIONING ROADMAP
   ========================================================================== */
.stitch-roadmap-section {
  padding: 80px 0;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.stitch-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.stitch-step-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--stitch-radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.25s ease;
}

.stitch-step-card:hover {
  transform: translateY(-4px);
  border-color: #000000;
  box-shadow: var(--stitch-shadow-card);
}

.stitch-step-number {
  font-family: var(--ref-font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #E2E8F0;
  line-height: 1;
  margin-bottom: 14px;
}

.stitch-step-card:hover .stitch-step-number {
  color: #FFE600;
}

.stitch-step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.stitch-step-desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
}

.stitch-step-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 3px 10px;
  border-radius: var(--stitch-radius-full);
}

/* ==========================================================================
   6. GURUGRAM SECTOR FEASIBILITY BAR
   ========================================================================== */
.stitch-sector-checker {
  background: #000000;
  color: #FFFFFF;
  border-radius: var(--stitch-radius-xl);
  padding: 32px 40px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.stitch-sector-left {
  max-width: 480px;
}

.stitch-sector-left h3 {
  font-family: var(--ref-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #FFFFFF;
}

.stitch-sector-left p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin: 0;
}

.stitch-sector-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: var(--stitch-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stitch-sector-select {
  background: transparent;
  color: #FFFFFF;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  outline: none;
  cursor: pointer;
}

.stitch-sector-select option {
  background: #0F172A;
  color: #FFFFFF;
}

.stitch-sector-btn {
  background: #FFE600;
  color: #000000;
  border: none;
  padding: 10px 22px;
  border-radius: var(--stitch-radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stitch-sector-btn:hover {
  background: #FFFFFF;
}

.stitch-sector-result-pill {
  width: 100%;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--stitch-radius-md);
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* ==========================================================================
   7. GOOGLE STITCH PRODUCTS SHOWCASE SECTION
   ========================================================================== */
.stitch-products-section {
  padding: 95px 0 35px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.stitch-products-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.stitch-products-header-centered {
  text-align: center;
  margin-bottom: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stitch-products-title-bold {
  font-family: var(--ref-font-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #0F172A;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-align: center;
}

.stitch-product-filter-slider-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
  padding: 4px 12px 6px;
}

.stitch-product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto;
}

.stitch-prod-filter-btn {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 9px 22px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.stitch-prod-filter-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.stitch-prod-filter-btn.active {
  background: #0F172A;
  color: #FFE600;
  border-color: #0F172A;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .stitch-product-filter-bar {
    gap: 8px;
  }
  .stitch-prod-filter-btn {
    padding: 7px 15px;
    font-size: 0.78rem;
  }
}

.stitch-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.stitch-prod-card {
  background: #FAFAFA;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--stitch-radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stitch-prod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--stitch-shadow-card);
  background: #FFFFFF;
}

.stitch-prod-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stitch-prod-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--stitch-radius-full);
  background: #F1F5F9;
  color: #475569;
}

.stitch-prod-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--stitch-radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.stitch-prod-img-wrap {
  width: 100%;
  height: 210px;
  border-radius: var(--stitch-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background: #F1F5F9;
  position: relative;
}

.stitch-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.stitch-prod-card:hover .stitch-prod-img-wrap img {
  transform: scale(1.05);
}

.stitch-prod-title {
  font-family: var(--ref-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px;
  line-height: 1.3;
}

.stitch-prod-desc {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 20px;
}

.stitch-prod-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--stitch-radius-md, 12px);
  padding: 12px 14px;
  margin-bottom: 22px;
  align-items: center;
  transition: all 0.25s ease;
}

.stitch-prod-card:hover .stitch-prod-specs-grid,
.prod-item-card:hover .stitch-prod-specs-grid {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.stitch-prod-specs-grid.cols-1 {
  grid-template-columns: 1fr;
}

.stitch-prod-specs-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.stitch-prod-specs-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stitch-prod-spec-item {
  text-align: center;
  padding: 2px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stitch-prod-spec-lbl {
  font-size: 0.68rem;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.stitch-prod-spec-val {
  font-family: var(--ref-font-display, 'Outfit', sans-serif);
  font-size: 0.90rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  white-space: pre-line;
  word-break: break-word;
}

.stitch-prod-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 16px;
  width: 100%;
}

.stitch-prod-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.stitch-prod-inquire-btn {
  background: #FFE600;
  color: #000000;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex: none;
  border: 1px solid #FFE600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stitch-prod-inquire-btn .text {
  background: transparent !important;
  color: #000000 !important;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  width: auto;
  height: auto;
}

.stitch-prod-inquire-btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.stitch-prod-inquire-btn:hover {
  background: #FFEA2E;
  border-color: #FFEA2E;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 230, 0, 0.45);
}

.stitch-prod-inquire-btn:hover .arrow {
  transform: translateX(4px);
}

.stitch-prod-wa-btn {
  width: 32px;
  height: 32px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.stitch-prod-wa-btn:hover {
  background: #20BA5A;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* Card Admin Action Controls (Visible only when logged in) */
.stitch-prod-admin-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

body.admin-editing-active .stitch-prod-admin-bar {
  display: flex;
}

.stitch-card-admin-btn {
  background: rgba(10, 15, 29, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stitch-card-admin-btn:hover {
  background: #FFE600;
  color: #000000;
  border-color: #FFE600;
}

.stitch-card-admin-btn.delete-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .stitch-calc-bento {
    grid-template-columns: 1fr;
  }
  .stitch-nodes-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .stitch-bento-card.col-8,
  .stitch-bento-card.col-4,
  .stitch-bento-card.col-6 {
    grid-column: span 12;
  }
  .stitch-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stitch-hero-telemetry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stitch-announcement-bar {
    display: none;
  }
  .stitch-nodes-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stitch-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stitch-sector-checker {
    padding: 24px 18px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--stitch-radius-lg);
  }
  .stitch-sector-picker {
    flex-direction: column;
    border-radius: var(--stitch-radius-md);
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
  }
  .stitch-sector-input {
    width: 100%;
    font-size: 16px !important;
    padding: 14px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
  }
  .stitch-sector-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    justify-content: center;
  }
  .stitch-calc-controls,
  .stitch-calc-results {
    padding: 22px 16px;
  }
  .stitch-calc-slider-wrap input[type="range"] {
    height: 10px;
    touch-action: pan-y;
  }
  .stitch-calc-slider-wrap input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
  .stitch-calc-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
  .stitch-products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .stitch-product-filter-slider-wrap {
    margin: 0 auto 20px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  .stitch-product-filter-bar {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .stitch-prod-filter-btn {
    flex-shrink: 0;
    padding: 7px 15px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 9999px;
  }
  .stitch-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .stitch-prod-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  .stitch-prod-title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
  }
  .stitch-prod-desc {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    margin-bottom: 10px !important;
  }
  .stitch-prod-specs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    padding: 6px 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: 1px dashed #E2E8F0 !important;
  }
  .stitch-prod-img-wrap {
    height: 135px !important;
    margin-bottom: 10px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 480px) {
  .stitch-products-grid {
    gap: 8px !important;
  }
  .stitch-products-title-bold {
    font-size: 1.45rem;
    letter-spacing: -0.01em;
  }
  .stitch-prod-specs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
  }
  .stitch-calc-actions {
    flex-direction: column;
  }
  .stitch-calc-actions .stitch-calc-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   HOMEPAGE STITCH PRODUCTS MULTI-IMAGE THUMBNAIL GALLERY
   ========================================================================== */
.stitch-prod-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stitch-prod-photo-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.stitch-card-thumbs-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 8;
  max-width: 90%;
  pointer-events: auto;
}

.stitch-card-thumb-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #1E293B;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.65;
  flex-shrink: 0;
  box-sizing: border-box;
}

.stitch-card-thumb-btn:hover {
  opacity: 1;
  transform: scale(1.15);
  border-color: rgba(255, 230, 0, 0.6);
}

.stitch-card-thumb-btn.active {
  opacity: 1;
  border-color: #FFE600;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.6);
  transform: scale(1.1);
}

.stitch-card-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
