/* ═══════════════════════════════════════════════════════════════════════════
   iMeter Pro — Premium Product Page
   Wattsonic | 2026
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --imtr-accent: #5E9B50;
  --imtr-accent-light: #8BC34A;
  --imtr-accent-dark: #2E8B6E;
  --imtr-accent-2: #3A9D6A;
  --imtr-accent-dim: rgba(94, 155, 80, 0.08);
  --imtr-gradient: linear-gradient(135deg, #8BC34A, #5E9B50, #2E8B6E);
  --imtr-gradient-h: linear-gradient(90deg, #8BC34A, #5E9B50, #2E8B6E);

  --imtr-dark-1: #0a0a0a;
  --imtr-dark-2: #111111;
  --imtr-dark-3: #1a1a1a;
  --imtr-dark-card: rgba(255, 255, 255, 0.035);

  --imtr-light-1: #ffffff;
  --imtr-light-2: #fafafa;
  --imtr-light-3: #f5f5f5;

  --imtr-text: #0f0f0f;
  --imtr-text-soft: #555;
  --imtr-text-muted: #999;

  --imtr-radius-xl: 20px;
  --imtr-radius-lg: 14px;
  --imtr-radius-md: 10px;
  --imtr-radius-sm: 6px;
  --imtr-radius-pill: 999px;

  --imtr-shadow-subtle: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --imtr-shadow-card: 0 1px 2px rgba(0,0,0,0.03);
  --imtr-shadow-elevated: 0 12px 40px rgba(0,0,0,0.06);

  --imtr-max: 1200px;
  --imtr-ease: cubic-bezier(0.22, 0.72, 0.14, 1);
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
.imtr-page {
  font-family: var(--font-sans);
  color: var(--imtr-text);
  background: var(--imtr-light-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.imtr-page *, .imtr-page *::before, .imtr-page *::after {
  box-sizing: border-box;
}

.imtr-container {
  width: min(var(--imtr-max), calc(100% - 48px));
  margin: 0 auto;
}

/* ─── Shared Typography ───────────────────────────────────────────────────── */
.imtr-kicker {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--imtr-accent);
}

.imtr-kicker--light { color: var(--imtr-accent-light); }

.imtr-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 580;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--imtr-text);
}

.imtr-section-title--light { color: #fff; }

/* ─── Reveal Animation ───────────────────────────────────────────────────── */
.imtr-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.imtr-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.imtr-reveal[data-delay="100"] { transition-delay: 80ms; }
.imtr-reveal[data-delay="200"] { transition-delay: 160ms; }
.imtr-reveal[data-delay="300"] { transition-delay: 240ms; }
.imtr-reveal[data-delay="400"] { transition-delay: 320ms; }

/* ─── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes imtrFlowDash {
  to { stroke-dashoffset: -20; }
}

@keyframes imtrPulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.4; }
}

@keyframes imtrEmit {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.2; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   S1: HERO — Clean, confident, editorial
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--imtr-dark-1);
  overflow: hidden;
}

.imtr-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Very subtle radial gradient — replaces grid pattern + glow */
.imtr-hero__bg::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(94, 155, 80, 0.06) 0%, transparent 70%);
}

/* Grid pattern — ultra-subtle, no animation */
.imtr-hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
}

/* Glow element hidden — handled by ::after now */
.imtr-hero__glow { display: none; }

.imtr-hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--imtr-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  padding: 140px 0 100px;
}

.imtr-hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.imtr-hero__badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.imtr-hero__iot-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--imtr-accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}

.imtr-hero__brand {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.imtr-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #fff;
}

.imtr-hero__sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
  max-width: 440px;
  font-weight: 400;
}

.imtr-hero__protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.imtr-hero__proto-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  transition: all 400ms ease;
}

.imtr-hero__proto-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* Product render — static, confident */
.imtr-hero__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.imtr-hero__render {
  /* No animation — static and confident */
}

.imtr-hero__render-placeholder {
  width: 280px;
  height: 320px;
}

.imtr-hero__render-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.5));
}

.imtr-hero__din-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

/* Scroll cue — hidden (unnecessary) */
.imtr-hero__scroll-cue { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   S2: VALUE METRICS — Clean horizontal strip, no cards
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-metrics {
  padding: 0;
  background: var(--imtr-light-1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.imtr-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.imtr-metrics__item {
  text-align: center;
  padding: 56px 20px;
  position: relative;
}

.imtr-metrics__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.06);
}

.imtr-metrics__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 580;
  letter-spacing: -0.04em;
  color: var(--imtr-text);
  line-height: 1;
}

.imtr-metrics__unit {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--imtr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.imtr-metrics__label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--imtr-text-muted);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════════
   S3: DUAL CT ARCHITECTURE
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-dualct {
  padding: 160px 0;
  background: var(--imtr-light-1);
}

.imtr-dualct__inner {
  width: min(var(--imtr-max), calc(100% - 48px));
  margin: 0 auto;
}

.imtr-dualct__header {
  max-width: 600px;
  margin-bottom: 72px;
}

.imtr-dualct__subtitle {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--imtr-text-soft);
  font-weight: 400;
}

/* Diagram — dark immersive container */
.imtr-dualct__diagram {
  margin-bottom: 80px;
  padding: 48px;
  background: #0a0a0a;
  border-radius: var(--imtr-radius-xl);
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.imtr-dualct__svg {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  height: auto;
}

.imtr-dualct__center-ring {
  animation: imtrPulse 3s ease-in-out infinite;
}

.imtr-dualct__emit {
  animation: imtrEmit 1.8s ease-in-out infinite;
}

.imtr-dualct__flow--iot {
  stroke-width: 0.8;
  fill: none;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
  animation: imtrFlowDash 2.5s linear infinite;
}

/* Dual CT features — minimal cards */
.imtr-dualct__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--imtr-radius-lg);
  overflow: hidden;
}

.imtr-dualct__feat {
  padding: 40px 32px;
  background: var(--imtr-light-2);
}

.imtr-dualct__feat-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
  color: var(--imtr-text-muted);
}

.imtr-dualct__feat-icon svg { width: 100%; height: 100%; }

.imtr-dualct__feat h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--imtr-text);
}

.imtr-dualct__feat p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--imtr-text-soft);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════════
   S4: IoT PROTOCOL STACK — Dark, technical, restrained
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-iot {
  padding: 160px 0;
  background: var(--imtr-dark-1);
}

.imtr-iot__inner {
  width: min(var(--imtr-max), calc(100% - 48px));
  margin: 0 auto;
}

.imtr-iot__header {
  max-width: 560px;
  margin-bottom: 80px;
}

.imtr-iot__subtitle {
  margin: 20px 0 0;
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* Product photo in IoT section */
.imtr-iot__photo {
  margin: 48px auto 56px;
  text-align: center;
  position: relative;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Ambient glow — slow rotating backlight */
.imtr-iot__photo::before {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(94, 155, 80, 0.15) 10%,
    transparent 25%,
    rgba(58, 157, 106, 0.10) 40%,
    transparent 55%,
    rgba(94, 155, 80, 0.12) 70%,
    transparent 85%
  );
  filter: blur(40px);
  animation: imtr-glow-rotate 12s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.imtr-iot__photo img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5))
         drop-shadow(0 0 4px rgba(94, 155, 80, 0.4))
         drop-shadow(0 0 16px rgba(94, 155, 80, 0.15))
         drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

@keyframes imtr-glow-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .imtr-iot__photo::before { animation: none; }
}

/* Protocol stack layers */
.imtr-iot__stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.imtr-iot__layer {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.imtr-iot__layer-label {
  padding: 16px 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.imtr-iot__layer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--imtr-radius-lg);
  overflow: hidden;
}

.imtr-iot__layer-cards--edge {
  grid-template-columns: repeat(3, 1fr);
}

/* Protocol cards — minimal, no hover theatrics */
.imtr-iot__proto-card {
  padding: 32px 28px;
  background: var(--imtr-dark-2);
  transition: background 300ms ease;
}

.imtr-iot__proto-card:hover {
  background: var(--imtr-dark-3);
}

.imtr-iot__proto-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.3);
}

.imtr-iot__proto-card--sunspec .imtr-iot__proto-icon { color: var(--imtr-accent-light); }
.imtr-iot__proto-card--eebus .imtr-iot__proto-icon { color: #60a5fa; }
.imtr-iot__proto-card--wifi .imtr-iot__proto-icon,
.imtr-iot__proto-card--lan .imtr-iot__proto-icon { color: rgba(255,255,255,0.3); }
.imtr-iot__proto-card--modbus .imtr-iot__proto-icon { color: #fbbf24; }
.imtr-iot__proto-card--mqtt .imtr-iot__proto-icon { color: #a78bfa; }

.imtr-iot__proto-icon svg { width: 100%; height: 100%; }

.imtr-iot__proto-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.imtr-iot__proto-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
}

.imtr-iot__proto-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  background: rgba(94, 155, 80, 0.12);
  color: var(--imtr-accent-light);
  border: none;
}

.imtr-iot__proto-card--eebus .imtr-iot__proto-badge {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}

.imtr-iot__proto-card--mqtt .imtr-iot__proto-badge {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

/* Edge intelligence items */
.imtr-iot__edge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--imtr-dark-2);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 400;
}

.imtr-iot__edge-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   S5: MEASUREMENT CAPABILITY
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-measure {
  padding: 160px 0;
  background: var(--imtr-light-1);
}

.imtr-measure__header {
  max-width: 600px;
  margin-bottom: 72px;
}

.imtr-measure__header .imtr-kicker { margin-bottom: 20px; }

.imtr-measure__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.imtr-measure__quadrant {
  position: relative;
  padding: 40px;
  background: var(--imtr-light-2);
  border-radius: var(--imtr-radius-xl);
}

.imtr-measure__quad-svg {
  width: 100%;
  height: auto;
}

/* Live badge */
.imtr-quad__live {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--imtr-text-muted);
}

.imtr-quad__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--imtr-accent);
  animation: imtr-live-pulse 2s ease-in-out infinite;
}

@keyframes imtr-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(94, 155, 80, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(94, 155, 80, 0); }
}

/* Active quadrant highlight */
.imtr-measure__quad-svg rect[data-active="true"] {
  transition: fill 0.6s ease, stroke-opacity 0.6s ease;
}

/* Params list */
.imtr-measure__params {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.imtr-measure__param-group h4 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imtr-text-muted);
}

.imtr-measure__param {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.imtr-measure__param:last-child { border-bottom: none; }

.imtr-measure__param-name {
  font-size: 0.88rem;
  color: var(--imtr-text-soft);
  font-weight: 400;
}

.imtr-measure__param-acc,
.imtr-measure__param-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--imtr-text);
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════════════════════
   S6: MODEL MATRIX
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-models {
  padding: 160px 0;
  background: var(--imtr-light-2);
}

.imtr-models__header {
  max-width: 600px;
  margin: 0 auto 72px;
  text-align: center;
}

/* Comparison cards — minimal, no borders */
.imtr-models__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--imtr-radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

.imtr-models__tier {
  padding: 48px 40px;
  background: var(--imtr-light-1);
}

.imtr-models__tier:hover {
  /* No bouncy hover — just stays clean */
}

.imtr-models__tier--pro {
  background: var(--imtr-light-1);
}

.imtr-models__tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.imtr-models__tier-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--imtr-text);
}

.imtr-models__tier-badge {
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--imtr-text-muted);
}

.imtr-models__tier-badge--pro {
  background: var(--imtr-accent-dim);
  color: var(--imtr-accent);
}

.imtr-models__tier-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.imtr-models__tier-features li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--imtr-text-soft);
  font-weight: 400;
}

.imtr-models__tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.imtr-models__tier--pro .imtr-models__tier-features li::before {
  background: var(--imtr-accent);
}

.imtr-models__tier-comm {
  display: flex;
  gap: 6px;
}

.imtr-models__comm-chip {
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
}

.imtr-models__comm-chip--active {
  background: var(--imtr-accent-dim);
  color: var(--imtr-accent);
}

.imtr-models__comm-chip--inactive {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.2);
  text-decoration: line-through;
}

.imtr-models__tier--pro .imtr-models__comm-chip--inactive {
  background: var(--imtr-accent-dim);
  color: var(--imtr-accent);
  text-decoration: none;
}

/* Product photo in model section */
.imtr-models__photo {
  margin-top: 48px;
  text-align: center;
}

.imtr-models__photo img {
  max-width: 640px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Interactive Model Configurator */
.imtr-configurator {
  margin-top: 24px;
}

.imtr-configurator__inner {
  background: var(--imtr-light-1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--imtr-radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.imtr-configurator__selectors {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.imtr-configurator__group {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.imtr-configurator__label {
  flex-shrink: 0;
  width: 100px;
  padding-top: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imtr-text-muted);
}

.imtr-configurator__options {
  display: flex;
  gap: 10px;
  flex: 1;
}

.imtr-configurator__options--quad {
  gap: 8px;
}

.imtr-configurator__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 12px 20px;
  background: var(--imtr-light-2);
  border: 1.5px solid transparent;
  border-radius: var(--imtr-radius-md);
  cursor: pointer;
  transition: all 250ms var(--imtr-ease);
  font-family: var(--font-sans);
  text-align: left;
}

.imtr-configurator__opt:hover {
  background: var(--imtr-light-3);
  border-color: rgba(0, 0, 0, 0.06);
}

.imtr-configurator__opt.is-active {
  background: var(--imtr-accent-dim);
  border-color: var(--imtr-accent);
}

.imtr-configurator__opt.is-active::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--imtr-accent);
}

.imtr-configurator__opt-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--imtr-text);
  line-height: 1.2;
}

.imtr-configurator__opt.is-active .imtr-configurator__opt-name {
  color: var(--imtr-accent-dark);
}

.imtr-configurator__opt-sub {
  font-size: 0.72rem;
  color: var(--imtr-text-muted);
  font-weight: 400;
}

.imtr-configurator__opt--compact {
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--imtr-text);
}

.imtr-configurator__opt--compact.is-active {
  color: var(--imtr-accent-dark);
}

.imtr-configurator__opt--compact::after { display: none !important; }

/* Result card */
.imtr-configurator__result {
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 200ms ease;
}

.imtr-configurator__result.is-updating {
  opacity: 0.4;
}

.imtr-configurator__result-sku {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--imtr-text);
  letter-spacing: -0.02em;
  transition: color 300ms ease;
}

.imtr-configurator__result.is-pro .imtr-configurator__result-sku {
  color: var(--imtr-accent);
}

.imtr-configurator__result-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.imtr-configurator__spec {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--imtr-text-soft);
}

.imtr-configurator__spec-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.imtr-configurator__result-count {
  font-size: 0.72rem;
  color: var(--imtr-text-muted);
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .imtr-configurator__inner {
    padding: 24px;
    gap: 24px;
  }

  .imtr-configurator__group {
    flex-direction: column;
    gap: 8px;
  }

  .imtr-configurator__label {
    width: auto;
    padding-top: 0;
  }

  .imtr-configurator__options {
    flex-wrap: wrap;
  }

  .imtr-configurator__opt {
    min-width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
  }

  .imtr-configurator__options--quad .imtr-configurator__opt {
    min-width: calc(25% - 6px);
    flex: 0 0 calc(25% - 6px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   S7: TECHNICAL SPECIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-specs {
  padding: 160px 0;
  background: var(--imtr-light-1);
}

.imtr-specs__header {
  max-width: 600px;
  margin-bottom: 72px;
}

.imtr-specs__groups {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.imtr-specs__group {}

.imtr-specs__group-name {
  margin: 0 0 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imtr-text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.imtr-specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.imtr-specs__cell {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.imtr-specs__cell dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--imtr-text-muted);
  margin-bottom: 4px;
}

.imtr-specs__cell dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--imtr-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   S8: ECOSYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-eco {
  padding: 160px 0;
  background: var(--imtr-light-2);
}

.imtr-eco__header {
  max-width: 600px;
  margin-bottom: 72px;
}

.imtr-eco__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--imtr-radius-xl);
  overflow: hidden;
}

.imtr-eco__card {
  padding: 48px 36px;
  background: var(--imtr-light-1);
}

.imtr-eco__card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  color: var(--imtr-text-muted);
}

.imtr-eco__card--wattmate .imtr-eco__card-icon { color: var(--imtr-text-muted); }
.imtr-eco__card--hems .imtr-eco__card-icon { color: var(--imtr-text-muted); }

.imtr-eco__card--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--imtr-light-2);
}

.imtr-eco__card--more .imtr-eco__card-icon {
  color: var(--imtr-accent);
}

.imtr-eco__card--more p {
  font-size: 0.82rem;
  color: var(--imtr-text-muted);
}

.imtr-eco__card-icon svg { width: 100%; height: 100%; }

.imtr-eco__card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--imtr-text);
}

.imtr-eco__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--imtr-text-soft);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════════
   S9: CTA — The one moment green takes center stage
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-cta {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
  background: var(--imtr-light-1);
}

.imtr-cta__bg { display: none; }

.imtr-cta__content {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 48px));
  margin: 0 auto;
}

.imtr-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 580;
  letter-spacing: -0.04em;
  color: var(--imtr-text);
}

.imtr-cta__sub {
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--imtr-text-soft);
  font-weight: 400;
}

.imtr-cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.imtr-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--imtr-radius-pill);
  transition: all 300ms ease;
}

.imtr-cta__btn--primary {
  background: var(--imtr-text);
  color: #fff;
}

.imtr-cta__btn--primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.imtr-cta__btn--secondary {
  background: transparent;
  color: var(--imtr-text-soft);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.imtr-cta__btn--secondary:hover {
  color: var(--imtr-text);
  border-color: rgba(0, 0, 0, 0.25);
}

.imtr-cta__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.imtr-cta__trust-badge {
  padding: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--imtr-text-muted);
  background: none;
  border-radius: 0;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-footer {
  padding: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--imtr-text-muted);
  background: var(--imtr-light-1);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MQTT Terminal Widget
   ═══════════════════════════════════════════════════════════════════════════ */
.imtr-mqtt-term {
  max-width: 720px;
  margin: 0 auto 64px;
  border-radius: var(--imtr-radius-lg);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.imtr-mqtt-term__titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.imtr-mqtt-term__dots {
  display: flex;
  gap: 6px;
}

.imtr-mqtt-term__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.imtr-mqtt-term__dot--close  { background: #ff5f57; }
.imtr-mqtt-term__dot--min    { background: #febc2e; }
.imtr-mqtt-term__dot--max    { background: #28c840; }

.imtr-mqtt-term__title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.imtr-mqtt-term__body {
  padding: 20px 20px 16px;
  height: 320px;
  overflow-y: auto;
  scrollbar-width: none;
}
.imtr-mqtt-term__body::-webkit-scrollbar {
  display: none;
}

.imtr-mqtt-term__lines {
  display: flex;
  flex-direction: column;
}

.imtr-mqtt-term__line {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.imtr-mqtt-term__line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.imtr-mqtt-term__line--system   { color: #febc2e; }
.imtr-mqtt-term__line--sub      { color: #60a5fa; }
.imtr-mqtt-term__line--pub      { color: var(--imtr-accent-light); }
.imtr-mqtt-term__line--data     { color: rgba(255, 255, 255, 0.55); }
.imtr-mqtt-term__line--action   { color: #a78bfa; }
.imtr-mqtt-term__line--success  { color: var(--imtr-accent); }
.imtr-mqtt-term__line--divider  { color: rgba(255, 255, 255, 0.1); }

.imtr-mqtt-term__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--imtr-accent-light);
  opacity: 0.7;
  margin-top: 4px;
  animation: imtr-cursor-blink 1s step-end infinite;
}

@keyframes imtr-cursor-blink {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .imtr-mqtt-term__line {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .imtr-mqtt-term__cursor {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .imtr-hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 120px 0 80px;
  }

  .imtr-hero__text { align-items: center; }
  .imtr-hero__sub { max-width: 480px; }
  .imtr-hero__protocols { justify-content: center; }
  .imtr-hero__badge-row { justify-content: center; }
  .imtr-dualct__header { max-width: none; text-align: center; }
  .imtr-dualct__subtitle { margin-left: auto; margin-right: auto; }
  .imtr-measure__header { max-width: none; text-align: center; }
  .imtr-iot__header { max-width: none; text-align: center; }
  .imtr-iot__subtitle { margin-left: auto; margin-right: auto; }
  .imtr-specs__header { max-width: none; text-align: center; }
  .imtr-eco__header { max-width: none; text-align: center; }

  .imtr-dualct__features { grid-template-columns: 1fr; }

  .imtr-iot__layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .imtr-iot__layer-cards--edge { grid-template-columns: repeat(2, 1fr); }

  .imtr-measure__grid { grid-template-columns: 1fr; }

  .imtr-models__compare { grid-template-columns: 1fr; }

  .imtr-eco__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .imtr-mqtt-term { margin-bottom: 48px; }
  .imtr-mqtt-term__body { padding: 16px; height: 280px; }
  .imtr-mqtt-term__line { font-size: 0.68rem; line-height: 1.6; }

  .imtr-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .imtr-metrics__item:nth-child(2)::after { display: none; }

  .imtr-metrics__item {
    padding: 40px 16px;
  }

  .imtr-dualct__diagram { padding: 20px; }

  .imtr-iot__layer-cards--edge { grid-template-columns: 1fr; }

  .imtr-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .imtr-hero__render-placeholder {
    width: 200px;
    height: 230px;
  }

  .imtr-dualct, .imtr-iot, .imtr-measure,
  .imtr-models, .imtr-specs, .imtr-eco, .imtr-cta {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  .imtr-mqtt-term__body { padding: 12px; height: 240px; }
  .imtr-mqtt-term__line { font-size: 0.62rem; }

  .imtr-hero__content {
    width: calc(100% - 32px);
    padding: 100px 0 60px;
  }

  .imtr-hero__title { font-size: 2.2rem; }
  .imtr-hero__sub { font-size: 0.95rem; }

  .imtr-hero__render-placeholder {
    width: 180px;
    height: 210px;
  }

  .imtr-metrics__grid { grid-template-columns: 1fr 1fr; }

  .imtr-specs__grid { grid-template-columns: 1fr; }

  .imtr-container {
    width: calc(100% - 32px);
  }

  .imtr-dualct__inner,
  .imtr-iot__inner {
    width: calc(100% - 32px);
  }

  .imtr-dualct, .imtr-iot, .imtr-measure,
  .imtr-models, .imtr-specs, .imtr-eco, .imtr-cta {
    padding: 80px 0;
  }

  .imtr-models__tier { padding: 32px 24px; }
  .imtr-eco__card { padding: 32px 24px; }
}
