/* ==========================================================================
   Demo Centre — bring your EV / visit / watch demo
   ========================================================================== */

/* ---- Bring your EV (landing) ---- */
.dc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

.dc-hero-bg { position: absolute; inset: 0; z-index: -2; }
.dc-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.dc-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,15,0.95) 0%, rgba(5,8,15,0.6) 45%, rgba(5,8,15,0.1) 68%, rgba(5,8,15,0.5) 100%),
    linear-gradient(0deg, rgba(5,8,15,1) 0%, transparent 40%);
}

.dc-content { max-width: 560px; position: relative; z-index: 1; }
.dc-content h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 16px; }
.dc-content .lede { color: var(--text); margin-bottom: 22px; font-size: 1.05rem; }

.dc-checks { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.dc-checks li { display: flex; gap: 10px; align-items: center; font-size: 0.96rem; }
.dc-checks svg { color: var(--blue-light); flex-shrink: 0; }

.dc-fine { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
.dc-fine svg { color: var(--blue-light); }

.signage {
  position: absolute;
  right: 6%;
  top: 22%;
  z-index: 1;
  width: 240px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: rgba(5,8,15,0.85);
  backdrop-filter: blur(6px);
  padding: 22px;
  text-align: center;
}

.signage .eyebrow { display:block; font-size:0.62rem; margin-bottom: 10px; }
.signage h2, .signage h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.signage .loc { color: var(--blue-light); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.signage p { color: var(--muted); font-size: 0.82rem; margin-bottom: 14px; }
.signage .house-ic { color: var(--blue-light); }

/* Video CTA row */
.video-row {
  display: grid;
  grid-template-columns: 220px 1fr auto auto auto;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  background: var(--navy-panel);
  margin-top: 30px;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #16233a, #060a12);
}
.video-thumb .play-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.video-row .stat { text-align: center; }
.video-row .stat b { display: block; font-size: 1.5rem; color: var(--blue-light); }
.video-row .stat span { font-size: 0.76rem; color: var(--muted); }

/* ---- 5-item feature strip: 3 top, 2 bottom, centered ---- */
.feature-strip-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
}
.feature-strip-5 .feature-item {
  flex: 0 0 auto;
  width: calc(33.333% - 27px);
  min-width: 220px;
}

@media (max-width: 980px) {
  .feature-strip-5 .feature-item { width: calc(50% - 20px); }
}
@media (max-width: 560px) {
  .feature-strip-5 .feature-item { width: 100%; }
}

/* ---- Visit page ---- */
.visit-hero { padding-top: 150px; padding-bottom: 30px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 30px; align-items: center; }
.visit-copy h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 16px; }
.visit-copy .lede { color: var(--muted); margin-bottom: 22px; }
.visit-list { list-style: none; display: grid; gap: 12px; }
.visit-list li { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; }
.visit-list svg { color: var(--blue-light); flex-shrink: 0; }

.visit-photo-wrap { position: relative; }
.visit-photo-wrap img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; height: auto; }

.badge-circle {
  position: absolute;
  top: -8%; left: -14%;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-light);
  background: rgba(5,8,15,0.88);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  box-shadow: 0 0 40px rgba(47,107,255,0.4);
  animation: pulse-hub 3s ease-in-out infinite;
}

.map-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--navy-panel);
  padding: 24px;
}
.map-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.map-card > p { color: var(--muted); font-size: 0.86rem; margin-bottom: 18px; }

.mini-map {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}
.mini-map img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info-pills { display: flex; gap: 16px; margin: 26px 0; flex-wrap: wrap; }
.info-pill { display: flex; gap: 10px; align-items: flex-start; }
.info-pill svg { color: var(--blue-light); flex-shrink: 0; margin-top: 2px; }
.info-pill strong { display: block; font-size: 0.88rem; }
.info-pill span { color: var(--muted); font-size: 0.78rem; }

.steps-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 10px;
}
.steps-card h3 { margin-bottom: 24px; }
.steps-row { display: flex; align-items: flex-start; gap: 0; }
.step { flex: 1; text-align: left; padding-right: 14px; }
.step .ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.8rem; }
.step-arrow { color: var(--muted-dim); margin: 18px 6px 0; flex-shrink: 0; }

.testimonial-video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.tv-video { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; background: linear-gradient(135deg,#16233a,#060a12); display:flex; align-items:center; justify-content:center; }

.brand-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin: 50px 0 20px; opacity: 0.7; }
.brand-strip span { font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }

/* ---- Watch demo page ---- */
.watch-hero { padding-top: 150px; padding-bottom: 60px; }
.watch-grid { display: grid; grid-template-columns: 1fr 0.85fr 0.85fr; gap: 26px; align-items: start; }
.watch-copy h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 16px; }
.watch-copy .lede { color: var(--muted); margin-bottom: 20px; }

.player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  margin-top: 24px;
}
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .center-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(47,107,255,0.6);
}
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.72rem; }
.player .progress { flex: 1; height: 3px; background: rgba(255,255,255,0.25); border-radius: 2px; overflow: hidden; }
.player .progress i { display: block; width: 8%; height: 100%; background: var(--blue-light); }

/* Live power flow card */
.flow-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--navy-panel); }
.flow-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.85rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 0.75rem; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.flow-mini { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 6px; text-align: center; }
.flow-mini .node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; }
.flow-mini .node .ic { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--blue-light); }
.flow-mini .node b { font-size: 0.78rem; }
.flow-mini .node span { font-size: 0.7rem; color: var(--muted); }
.flow-mini .hub { position: relative; display: flex; align-items: center; justify-content: center; z-index: 1; }
.flow-mini .hub .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,182,122,0.15); border-color: var(--green); color: var(--green); animation: pulse-hub 2.6s ease-in-out infinite; }

.flow-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(0, 182, 122, 0.7);
  opacity: 0;
  pointer-events: none;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes flow-to-solar {
  0%, 100% { opacity: 0; top: 50%; left: 50%; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  96% { top: 14%; left: 50%; }
}
@keyframes flow-to-ev {
  0%, 100% { opacity: 0; top: 50%; left: 50%; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  96% { top: 50%; left: 14%; }
}
@keyframes flow-to-battery {
  0%, 100% { opacity: 0; top: 50%; left: 50%; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  96% { top: 86%; left: 14%; }
}
@keyframes flow-to-home {
  0%, 100% { opacity: 0; top: 50%; left: 50%; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  96% { top: 86%; left: 86%; }
}
.flow-dot.to-solar { animation-name: flow-to-solar; animation-duration: 2s; }
.flow-dot.to-ev { animation-name: flow-to-ev; animation-duration: 2s; }
.flow-dot.to-battery { animation-name: flow-to-battery; animation-duration: 2.2s; }
.flow-dot.to-home { animation-name: flow-to-home; animation-duration: 1.8s; }
.flow-dot.d2 { animation-delay: -1s; }

.flow-note { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.flow-note svg { color: var(--blue-light); flex-shrink: 0; }

/* Phone card */
.phone-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(160deg, #0d1622, #060a12); }
.phone-card .app-head { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.phone-card .big-num { font-size: 1.8rem; font-weight: 800; }
.phone-card .big-num span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.phone-grid .cell { text-align: center; font-size: 0.72rem; color: var(--muted); }
.phone-grid .cell b { display: block; font-size: 0.85rem; color: var(--white); }

@media (max-width: 1080px) {
  .dc-hero-bg img { object-position: 70% center; }
  .signage { display: none; }
  .video-row { grid-template-columns: 1fr; text-align: center; }
  .visit-grid, .watch-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 20px; }
  .step-arrow { display: none; }
  .testimonial-video-row { grid-template-columns: 1fr; }
  .badge-circle { top: 12px; left: 12px; width: 110px; height: 110px; font-size: 0.8rem; }
}
