:root {
  --bg: #07101f;
  --bg-2: #0a1528;
  --panel: #0e1a30;
  --panel-2: #13223d;
  --line: #1d2d4b;
  --line-2: #2a3d60;
  --text: #eaf0f8;
  --muted: #93a1b8;
  --yellow: #ffc919;
  --yellow-2: #ffb000;
  --blue: #2f6bff;
  --cyan: #38e1ff;
  --red: #ff5a5f;
  --green: #3ddc84;
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hl { color: var(--yellow); }
.eyebrow {
  display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--yellow); margin-bottom: .8em;
}
.section { padding: 110px 0; }
.section__head { margin-bottom: 48px; }
.section__head--split { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section__head--split h2 { margin: 0; }
.section__head--split > p { margin: 0; }
.section__head--center { text-align: center; }

/* BACKGROUND BULB (centered, lights up on scroll) */
.bg-bulb {
  --lit: 0;
  --bh: 58vh;
  position: fixed; top: 72px; z-index: -1; pointer-events: none;
  height: var(--bh); width: calc(var(--bh) * 200 / 330);
  left: calc(50% - var(--bh) * 100 / 330);
  transform-origin: 50% 0; animation: sway 10s ease-in-out infinite;
}
.bg-bulb svg { position: relative; width: 100%; height: 100%; overflow: visible; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.bg-bulb__wire { stroke: rgba(234, 240, 248, .1); stroke-width: 1.2; }
.bg-bulb__line { fill: none; stroke: rgba(234, 240, 248, .12); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.bg-bulb__glass {
  fill: rgba(255, 214, 102, calc(var(--lit) * .15));
  stroke: rgba(255, 214, 102, calc(.12 + var(--lit) * .55)); stroke-width: 1.4;
}
.bg-bulb__filament {
  stroke: #ffd966; stroke-width: 2; opacity: calc(.2 + var(--lit) * .8);
  filter: drop-shadow(0 0 calc(var(--lit) * 6px) #ffc919) drop-shadow(0 0 calc(var(--lit) * 16px) #ff9d00);
}
.bg-bulb__glow {
  position: absolute; left: 50%; top: 52%; width: 160vmin; height: 160vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 102, .32) 0, rgba(255, 201, 25, .12) 16%, rgba(255, 201, 25, .04) 34%, transparent 58%);
  opacity: var(--lit);
}
/* flicker when fully lit */
.bg-bulb.on .bg-bulb__glow { animation: bulbOn .9s ease-out; }
@keyframes bulbOn { 0% { opacity: .2; } 15% { opacity: 1; filter: brightness(1.8); } 30% { opacity: .5; } 45% { opacity: 1; filter: brightness(1.4); } 100% { opacity: 1; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--yellow); color: #121000; }
.btn--primary:hover { background: #ffd54a; }
.btn--ghost { border-color: var(--line-2); background: rgba(7, 16, 31, .6); }
.btn--ghost:hover { border-color: var(--yellow); }
.btn--small { padding: .65em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1.05em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.round-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line-2); transition: border-color .2s, background .2s;
}
.round-btn:hover { border-color: var(--yellow); }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 16, 31, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #12306b, #0b1a3a); border: 1px solid #23417e;
}
.brand__mark svg { width: 22px; height: 22px; fill: var(--yellow); }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: .04em; }
.brand__text small { font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .92rem; transition: color .2s; position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--yellow); border-radius: 2px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__micro { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }

.hero__video {
  position: relative; margin: 0; width: 340px; justify-self: center; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: #000;
}
.hero__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; left: 16px; right: 16px; bottom: 96px;
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 14px; border: 0; text-align: left;
  background: var(--yellow); color: #121000; font-weight: 600; font-size: .92rem; line-height: 1.25; transition: transform .2s;
}
.video-play:hover { transform: scale(1.03); }
.video-play small { display: block; font-weight: 500; opacity: .7; }
.video-play__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #121000; }
.video-play__icon svg { width: 16px; height: 16px; fill: var(--yellow); margin-left: 2px; }
.hero__video figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 12px;
  background: rgba(7, 16, 31, .85); border: 1px solid var(--line-2); transition: opacity .3s;
}
.hero__video figcaption b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero__video figcaption span { color: var(--muted); font-size: .85rem; }
.hero__video.playing .video-play, .hero__video.playing figcaption { opacity: 0; pointer-events: none; }

.stats {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 72px;
  border-top: 1px solid var(--line);
}
.stats li { padding: 24px 0 0; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.stats span { color: var(--muted); font-size: .88rem; }

/* HOUSE */
.house-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.house-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: #050b1c;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.house { width: 100%; height: auto; user-select: none; }
.house-toolbar { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px;
  padding: 0 .9em; border-radius: 10px; font-size: .84rem; font-weight: 500;
  background: rgba(7, 16, 31, .7); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
}
.chip:hover { border-color: var(--yellow); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#dayNight .i-sun, #dayNight[aria-pressed="true"] .i-moon { display: none; }
#dayNight[aria-pressed="true"] .i-sun { display: block; }
#soundToggle .i-sound, #soundToggle[aria-pressed="true"] .i-mute { display: none; }
#soundToggle[aria-pressed="true"] .i-sound { display: block; }

.demo-bar {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; overflow: hidden;
  background: var(--panel); border-top: 1px solid var(--line-2);
}
.demo-bar__btn {
  flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0;
  display: grid; place-items: center; background: var(--yellow); color: #121000;
}
.demo-bar__btn svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-bar__btn .i-play, .demo-bar__btn[aria-pressed="false"] .i-pause { display: none; }
.demo-bar__btn[aria-pressed="false"] .i-play { display: block; }
.demo-bar__body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.demo-bar__tag {
  flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); padding: .25em .6em; border-radius: 6px; background: rgba(255, 201, 25, .12);
}
.demo-bar__caption { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.demo-bar__caption.swap { opacity: 0; }
.demo-bar__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.demo-bar__progress span { display: block; height: 100%; width: 0; background: var(--yellow); }

.toast {
  position: absolute; top: 14px; right: 14px; max-width: 60%;
  padding: .55em 1em; border-radius: 10px; font-size: .84rem;
  background: rgba(255, 90, 95, .95); color: #fff;
  opacity: 0; transform: translateY(-8px); transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: rgba(14, 26, 48, .92); border: 1px solid var(--line-2); }

/* SVG: sky and surroundings */
.sky--dusk, .sky--night, .stars, .moon, .sun { transition: opacity 1.2s; }
.sky--dusk, .sky--night, .stars, .moon { opacity: 0; }
.house.dusk .sky--dusk { opacity: 1; }
.house.night .sky--night, .house.night .stars, .house.night .moon { opacity: 1; }
.house.night .sun { opacity: 0; }
.sun { transition: opacity 1.2s, transform 1.2s; }
.house.dusk .sun { transform: translateY(150px); opacity: .9; }
.stars circle { animation: twinkle 3s ease-in-out infinite; }
.stars circle:nth-child(3n) { animation-delay: 1s; }
.stars circle:nth-child(3n+1) { animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .3; } }
.ground { fill: #3f9a5d; transition: fill 1.2s; }
.house.dusk .ground { fill: #2c6a45; }
.house.night .ground { fill: #173f2b; }
.driveway { fill: #3a3f47; }
.roof { fill: #5b2c2c; }
.chimney { fill: #4a2424; }
.structure, .slab { fill: #2b3140; }
.garage-roof { fill: #3a4152; }

/* Rooms */
.room { cursor: pointer; outline: none; }
.room .shade { fill: #040817; opacity: .32; transition: opacity .5s; pointer-events: none; }
.house.dusk .room .shade { opacity: .58; }
.house.night .room .shade { opacity: .8; }
.room.on .shade { opacity: 0 !important; }
.room .glow { opacity: 0; transition: opacity .5s; pointer-events: none; mix-blend-mode: screen; }
.room.on .glow { opacity: .35; }
.house.dusk .room.on .glow { opacity: .55; }
.house.night .room.on .glow { opacity: .75; }
.room .wall { transition: filter .3s; }
.room:hover .wall, .room:focus-visible .wall { filter: brightness(1.08); }
.lamp-shade { fill: #39404f; }
.lamp-flat { fill: #9aa3b3; transition: fill .3s; }
.room.on .lamp-flat { fill: #eafcff; filter: drop-shadow(0 0 6px #bff3ff); }
.bulb-dot { fill: #555b66; transition: fill .3s; }
.room.on .bulb-dot { fill: #fff6c8; filter: drop-shadow(0 0 6px #ffd23f); }
.room-label {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  fill: #fff; paint-order: stroke; stroke: rgba(7, 12, 28, .8); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none;
}
.room.pulse > g:first-child { animation: roomPulse .6s; }
@keyframes roomPulse { 40% { filter: brightness(1.25); } }

/* Garden */
.post-light { fill: #555b66; transition: fill .3s; }
.room--outdoor.on .post-light { fill: #fff6c8; filter: drop-shadow(0 0 8px #ffd23f); }
.room--outdoor .ground-glow { transform-box: fill-box; transform-origin: center; transform: scaleY(.35); }

/* Pool */
.pool__water { fill: #3fb7e8; transition: fill .8s; }
.house.dusk .pool__water { fill: #2a7fb0; }
.house.night .pool__water { fill: #164b70; }
.pool__halo { fill: #2de2e6; opacity: 0; filter: blur(18px); transition: opacity .6s; pointer-events: none; }
.pool__spot { fill: #3b4a5c; transition: fill .3s; }
.pool__waves path { animation: wave 4s linear infinite; }
.pool__waves path:nth-child(2) { animation-duration: 6s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-60px); } }
.house .pool.on .pool__water { animation: rgb 6s linear infinite; }
.pool.on .pool__halo { opacity: .55; animation: rgb 6s linear infinite; }
.pool.on .pool__spot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
@keyframes rgb {
  0%, 100% { fill: #00c2ff; }
  20% { fill: #1de9b6; }
  40% { fill: #7c4dff; }
  60% { fill: #ff4fa3; }
  80% { fill: #2979ff; }
}

/* Devices */
.device { cursor: pointer; }
.fan__blades { transform-box: fill-box; transform-origin: center; }
.fan.on .fan__blades { animation: spin .35s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tv__screen { fill: #1b1f27; transition: fill .3s; }
.tv.on .tv__screen { animation: tv 3s steps(1) infinite; filter: drop-shadow(0 0 12px rgba(120, 200, 255, .7)); }
@keyframes tv { 0% { fill: #4fc3f7; } 25% { fill: #81c784; } 50% { fill: #ffb74d; } 75% { fill: #ba68c8; } }
.shower__water line { stroke: #6cc6ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; opacity: 0; }
.shower.on .shower__water line { opacity: .9; animation: drip .5s linear infinite; }
@keyframes drip { to { stroke-dashoffset: -20; } }
.shower__led { fill: #444; }
.shower.on .shower__led { fill: #ff5a1f; filter: drop-shadow(0 0 4px #ff5a1f); }
.gate__panel { transform-box: fill-box; transform-origin: top; transition: transform 1.6s cubic-bezier(.5, 0, .3, 1); }
.gate.on .gate__panel { transform: scaleY(.08); }
.gate-led { fill: #444; }
.gate-led.moving { fill: #ff9f1c; animation: blink .4s steps(1) infinite; }
@keyframes blink { 50% { fill: #444; } }
.meter-disc { transform-box: fill-box; transform-origin: center; animation: spin var(--disc-speed, 0s) linear infinite; }

.house.blackout .room .shade { opacity: .85 !important; }
.house.blackout .room .glow { opacity: 0 !important; }

/* PAINEL */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; display: grid; gap: 18px;
}
.panel__title { font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin: 0 0 10px; }
.meter { background: #040a16; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.meter__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.meter__led { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.meter__led.off { background: var(--red); box-shadow: 0 0 8px var(--red); }
.meter__value {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1.1;
  color: var(--cyan); text-shadow: 0 0 18px rgba(56, 225, 255, .4); font-variant-numeric: tabular-nums;
}
.meter__value small { font-size: 1rem; margin-left: 4px; color: var(--muted); text-shadow: none; }
.meter__bar { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; margin: 8px 0; }
.meter__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  background-size: 300px 100%; transition: width .5s;
}
.meter__foot { display: flex; justify-content: space-between; font-size: .78rem; }
.meter__foot b { color: var(--text); }

.scenes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scene {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: .65em .5em; border-radius: 10px; font-size: .84rem; font-weight: 500;
  background: var(--panel-2); border: 1px solid var(--line); transition: .2s;
}
.scene svg { width: 16px; height: 16px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene:hover, .scene.active { border-color: var(--yellow); }
.scene.active { background: rgba(255, 201, 25, .08); }

.breaker-board { background: #d9dde3; border-radius: 14px; padding: 12px; color: #1b2230; }
.breaker-board__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.breaker-board .panel__title { margin: 0; color: #1b2230; }
.breakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.breaker {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: #f4f5f7; border: 1px solid #b9c0ca; border-radius: 8px;
  padding: 6px 8px; text-align: left; font-size: .76rem; line-height: 1.2; color: #1b2230;
}
.breaker__switch { flex: none; position: relative; width: 16px; height: 26px; border-radius: 3px; background: #2b2f36; box-shadow: inset 0 0 0 2px #15181d; }
.breaker__switch::after { content: ""; position: absolute; left: 3px; right: 3px; height: 10px; bottom: 3px; border-radius: 2px; background: #9aa3b3; transition: .2s; }
.breaker.on .breaker__switch::after { bottom: 13px; background: var(--green); box-shadow: 0 0 6px var(--green); }
.breaker__name { display: block; font-weight: 600; }
.breaker__w { display: block; color: #5d6676; font-size: .7rem; }
.breaker:hover { border-color: #7d8796; }
.main-breaker {
  display: flex; align-items: center; gap: 8px;
  background: #1b2230; color: #fff; border: 0; border-radius: 8px; padding: 6px 10px 6px 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .1em;
}
.main-breaker__lever { position: relative; width: 26px; height: 30px; border-radius: 4px; background: #0d1117; }
.main-breaker__lever::after { content: ""; position: absolute; left: 4px; right: 4px; height: 12px; bottom: 3px; border-radius: 3px; background: var(--red); transition: .2s; }
.main-breaker.on .main-breaker__lever::after { bottom: 15px; background: var(--green); }
.breaker-board.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service { display: flex; flex-direction: column; background: var(--bg); padding: 30px 26px; transition: background .3s; }
.service__cta { margin-top: auto; padding-top: 18px; font-size: .88rem; font-weight: 600; color: var(--yellow); opacity: .75; transition: opacity .2s; }
.service:hover .service__cta { opacity: 1; }
.service:hover { background: var(--panel); }
.service p { color: var(--muted); margin: 0; font-size: .92rem; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(255, 201, 25, .1); color: var(--yellow);
  transition: transform .3s var(--ease);
}
.service:hover .service__icon { transform: translateY(-3px); }
.service__icon svg { width: 26px; height: 26px; fill: currentColor; }

/* WARNING SIGNS */
.pain__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pain__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.pain__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 201, 25, .1); color: var(--yellow); }
.pain__icon svg { width: 24px; height: 24px; fill: currentColor; }
.pain__item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.pain__item p { margin: 0; color: var(--muted); font-size: .9rem; }
.pain__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 24px; padding: 22px 26px; border-radius: var(--radius); background: var(--panel-2); border-left: 3px solid var(--yellow);
}
.pain__cta p { margin: 0; font-size: 1.05rem; }

/* FAQ */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq__head h2 { margin-bottom: .4em; }
.faq__head .btn { margin-top: 8px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 44px 22px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--yellow); transition: transform .25s;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.form__micro { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* CASES */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: .55em 1.1em; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: rgba(7, 16, 31, .6); border: 1px solid var(--line-2); color: var(--muted); transition: .2s;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.active { background: var(--yellow); border-color: var(--yellow); color: #121000; }
.filter__count { opacity: .6; margin-left: 4px; font-size: .8em; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 10 / 11; background: var(--panel); border: 1px solid var(--line);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.case.hidden { display: none; }
.case.fade { opacity: 0; transform: scale(.97); }
/* a 4:5 image inside a 10:11 card hides the brand strip at the bottom of the artwork */
.case img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transform-origin: 50% 0; transition: transform .8s var(--ease); }
.case:hover img { transform: scale(1.05); }
.case::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 9, 20, .92));
}
.case__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 1; }
.case__info h3 { margin: 8px 0 0; font-size: 1.15rem; }
.case__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .84rem; color: var(--yellow);
  opacity: 0; transform: translateY(6px); transition: .3s var(--ease);
}
.case:hover .case__more, .case:focus-visible .case__more { opacity: 1; transform: none; }
.case__video {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7, 16, 31, .7); backdrop-filter: blur(6px);
}
.case__video svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .7em; border-radius: 6px; background: rgba(255, 201, 25, .15); color: var(--yellow);
}
.cases__more { display: flex; justify-content: center; margin-top: 40px; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 14, .82); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  width: min(980px, 100%); max-height: calc(100vh - 32px);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.98); transition: .35s var(--ease);
}
.modal.open .modal__dialog { opacity: 1; transform: none; }
.modal__img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: cover; background: #000; }
.modal__video { width: 100%; height: min(820px, calc(100vh - 32px)); object-fit: contain; background: #000; }
.modal__img[hidden], .modal__video[hidden] { display: none; }
.modal__body { padding: 36px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.modal__body h3 { font-size: 1.5rem; margin: 12px 0 6px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(7, 16, 31, .7); }
.modal__arrow--prev { left: 14px; }
.modal__arrow--next { left: calc(100% - 360px - 56px); }

/* TESTIMONIALS (sliding carousel) */
.testimonials { max-width: 860px; margin: 0 auto; }
.testimonials__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.testimonials__track { display: flex; gap: 24px; transition: transform .8s var(--ease); }
.testimonial {
  flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 40px 36px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line);
}
.testimonial blockquote { margin: 0 0 24px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; font-family: var(--font-display); font-weight: 500; max-width: 640px; }
.testimonial__who { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; flex: none;
  background: linear-gradient(135deg, var(--blue), #12306b); font-weight: 700; font-family: var(--font-display);
}
.testimonial__who b { display: block; text-align: left; }
.testimonial__who small { display: block; color: var(--muted); text-align: left; }
.testimonials__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.testimonials__dots { display: flex; gap: 8px; }
.testimonials__dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--line-2); transition: .3s; }
.testimonials__dots button.active { width: 28px; background: var(--yellow); }

/* ABOUT */
.about__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about__photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 112%; object-fit: cover; object-position: top; }
.about__photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 12px;
  background: rgba(7, 16, 31, .85); border: 1px solid var(--line-2);
}
.about__photo figcaption b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.about__photo figcaption span { color: var(--muted); font-size: .85rem; }
.steps__title { margin: 0 0 12px; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 14px; height: 2px; background: var(--yellow); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li > span { flex: none; }
.steps li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #121000; font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.steps h3 { margin: 2px 0 2px; font-size: .98rem; }
.steps p { margin: 0; color: var(--muted); font-size: .82rem; }

/* CONTACT */
.contact { padding-top: 40px; }
.contact__box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  padding: 48px; border-radius: 28px; border: 1px solid var(--line-2);
  background: var(--panel);
}
.contact__links { display: grid; gap: 10px; margin-top: 28px; }
.contact__link {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: rgba(7, 16, 31, .5); border: 1px solid var(--line); font-weight: 600; transition: border-color .2s;
}
a.contact__link:hover { border-color: var(--yellow); }
.contact__link small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.contact__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 201, 25, .1); }
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: rgba(4, 10, 22, .7); border: 1px solid var(--line-2);
  border-radius: 12px; padding: .8em 1em; resize: vertical; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 201, 25, .15); }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 80px; background: var(--bg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .88rem; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .house-wrap { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr 1fr; }
  .breaker-board { grid-column: 1 / -1; }
  .breakers { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .section__head--split { grid-template-columns: 1fr; gap: 12px; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 16, 31, .98); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav__links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .nav__links a.active::after { display: none; }
  .nav.open .nav__links { max-height: 360px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { padding-top: 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; margin-bottom: 0; }
  .hero__video { order: 3; width: 100%; max-width: 480px; align-self: center; aspect-ratio: 4 / 5; margin: 24px 0; }
  .hero .lead { order: 4; }
  .hero__actions { order: 5; margin-top: 20px; }
  .hero__micro { order: 6; text-align: center; }
  .pain__grid { grid-template-columns: 1fr 1fr; }
  .faq__inner { grid-template-columns: 1fr; gap: 32px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 48px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 420px; }
  .contact__box { grid-template-columns: 1fr; padding: 28px 20px; gap: 32px; }
  .modal__dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__img { max-height: 55vh; }
  .modal__video { height: 55vh; }
  .modal__arrow { top: 27vh; }
  .modal__arrow--next { left: auto; right: 14px; }
  .modal__body { padding: 24px 20px; }
  .bg-bulb { --bh: 44vh; }
}
@media (max-width: 600px) {
  .panel { grid-template-columns: 1fr; }
  .breakers { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 20px 16px; }
  .service__icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; }
  .service__icon svg { width: 22px; height: 22px; }
  .service h3 { font-size: .95rem; }
  .service p { font-size: .82rem; }
  .service__cta { padding-top: 12px; font-size: .82rem; }
  .cases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case { border-radius: var(--radius); }
  .case__info { padding: 12px; }
  .case__info h3 { font-size: .88rem; margin-top: 6px; }
  .case__info .tag { font-size: .6rem; }
  .case__video { top: 8px; right: 8px; width: 28px; height: 28px; }
  .stats li { padding: 18px 12px 0 0; }
  .stats b { font-size: 1.3rem; }
  .form__row { grid-template-columns: 1fr; }
  .house-toolbar .chip__label { display: none; }
  .house-toolbar { top: 8px; left: 8px; }
  .demo-bar { padding: 8px 12px 8px 8px; }
  .demo-bar__tag { display: none; }
  .demo-bar__caption { font-size: .8rem; }
  .demo-bar__btn { width: 28px; height: 28px; }
  .testimonial { padding: 32px 22px 26px; }
  .pain__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}
