:root {
  color-scheme: dark;
  --bg: #05090d;
  --panel: #0b1218;
  --panel-2: #101a22;
  --text: #f4f8fb;
  --muted: #98a8b4;
  --line: rgba(154, 190, 209, 0.16);
  --cyan: #30d7e8;
  --cyan-soft: rgba(48, 215, 232, 0.14);
  --red: #f04444;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 8%, rgba(48, 215, 232, 0.08), transparent 28rem); z-index: -1; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.section-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { width: min(1160px, calc(100% - 40px)); height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { width: 20px; aspect-ratio: 1; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 18px rgba(48, 215, 232, 0.45); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 2px; height: 6px; background: var(--cyan); left: 8px; top: 3px; transform-origin: bottom; transform: rotate(35deg); }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 0.92rem; }
nav a:hover, footer a:hover { color: var(--cyan); }
.language-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.language-switch button { display: grid; place-items: center; width: 34px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; filter: saturate(.72); opacity: .62; }
.language-switch button:hover { opacity: 1; filter: none; }
.language-switch button[aria-pressed="true"] { background: rgba(76,203,236,.16); box-shadow: inset 0 0 0 1px rgba(76,203,236,.42); filter: none; opacity: 1; }
.hero { width: min(1320px, calc(100% - 40px)); min-height: 680px; display: grid; grid-template-columns: .49fr .51fr; align-items: center; gap: 46px; padding-block: 76px 62px; }
.eyebrow { margin: 0 0 13px; color: var(--cyan); text-transform: uppercase; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 5vw, 4.65rem); line-height: 1; letter-spacing: -0.056em; max-width: 650px; }
h1 span { color: var(--cyan); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.046em; }
.hero-lead { max-width: 620px; color: #bdc8d0; font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 17px; }
.button { border: 1px solid transparent; border-radius: 10px; padding: 13px 20px; font: inherit; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: #021014; box-shadow: 0 10px 36px rgba(48,215,232,.25), 0 0 22px rgba(48,215,232,.08); }
.button-secondary { background: rgba(255,255,255,.025); border-color: rgba(48,215,232,.42); color: var(--text); box-shadow: inset 0 0 18px rgba(48,215,232,.025), 0 0 20px rgba(48,215,232,.035); }
.hardware-note { color: #6f808c; font-size: 0.78rem; }
.device-stage { min-height: 550px; position: relative; isolation: isolate; background: radial-gradient(circle at 83% 5%, rgba(48,215,232,.95) 0 2px, rgba(48,215,232,.2) 3px, transparent 7px), radial-gradient(circle at 99% 39%, rgba(48,215,232,.95) 0 2px, rgba(48,215,232,.2) 3px, transparent 7px), radial-gradient(circle at 76% 95%, rgba(48,215,232,.95) 0 2px, rgba(48,215,232,.2) 3px, transparent 7px); }
.device-stage::before { content: ""; position: absolute; inset: 25px 3px 18px -24px; z-index: -2; border: 1px solid rgba(48,215,232,.28); border-radius: 50%; transform: rotate(-9deg); box-shadow: inset 0 0 60px rgba(48,215,232,.035), 0 0 18px rgba(48,215,232,.045); animation: hero-orbit 12s ease-in-out infinite alternate; }
.device-stage::after { content: ""; position: absolute; width: 430px; height: 430px; top: 62px; left: -10px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(48,215,232,.14), transparent 68%); filter: blur(18px); }
.device { --device-size: 160px; position: absolute; width: var(--device-size); margin: 0; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.device img { width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 24px 56px rgba(0,0,0,.7), 0 0 0 5px #111a20, 0 0 0 7px #2a363d, 0 0 24px rgba(48,215,232,.075); }
.device::before { content: ""; position: absolute; top: -7px; left: -7px; z-index: 2; width: calc(var(--device-size) + 14px); height: calc(var(--device-size) + 14px); border-radius: 50%; background: conic-gradient(from 205deg, transparent 0 18%, rgba(125,238,255,.16) 23%, rgba(255,255,255,.72) 26%, rgba(85,225,248,.2) 30%, transparent 36% 77%, rgba(48,215,232,.48) 84%, transparent 92%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); pointer-events: none; filter: drop-shadow(0 0 7px rgba(48,215,232,.22)); }
.device figcaption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.device-analog { --device-size: 420px; top: 68px; left: -3px; z-index: 3; animation: hero-float-main 6s ease-in-out infinite; }
.device-analog img { box-shadow: 0 42px 96px rgba(0,0,0,.74), 0 0 0 9px #111a20, 0 0 0 11px #2a363d, 0 0 56px rgba(48,215,232,.14); }
.device-analog::before { top: -11px; left: -11px; width: calc(var(--device-size) + 22px); height: calc(var(--device-size) + 22px); background: conic-gradient(from 205deg, transparent 0 15%, rgba(125,238,255,.17) 20%, rgba(255,255,255,.82) 24%, rgba(85,225,248,.22) 28%, transparent 35% 76%, rgba(48,215,232,.55) 83%, transparent 92%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); filter: drop-shadow(0 0 10px rgba(48,215,232,.3)); }
.device-analog::after { content: ""; position: absolute; top: calc(var(--device-size) + 25px); left: 10%; z-index: -1; width: 80%; height: 34px; border-radius: 50%; background: radial-gradient(ellipse, rgba(87,226,248,.22) 0%, rgba(48,215,232,.1) 34%, transparent 72%); filter: blur(9px); transform: scaleY(.58); pointer-events: none; }
.device-digital-day { top: -2px; right: 3px; z-index: 2; animation: hero-float-satellite 7s ease-in-out infinite; }
.device-night { top: 190px; right: 3px; z-index: 2; animation: hero-float-satellite 7s ease-in-out -2.3s infinite; }
.device-night img { box-shadow: 0 24px 56px rgba(0,0,0,.72), 0 0 0 5px #111a20, 0 0 0 7px #2a363d, 0 0 30px rgba(240,68,68,.09); }
.device-radar { top: 382px; right: 3px; z-index: 2; animation: hero-float-satellite 7s ease-in-out -4.6s infinite; }
@keyframes hero-float-main { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes hero-float-satellite { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes hero-orbit { from { transform: rotate(-9deg); } to { transform: rotate(-6deg); } }
.section-block { padding-block: 108px; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.narrow { max-width: 1000px; }
.section-heading.feature-heading { max-width: none; }
.feature-heading h2 { white-space: nowrap; }
.section-heading > p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid article { padding: 26px 24px; background: linear-gradient(145deg, rgba(17,29,38,.9), rgba(8,15,20,.9)); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-grid h3 { margin: 19px 0 7px; font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.feature-grid p a { color: var(--cyan); font-weight: 750; text-decoration: underline; text-decoration-color: rgba(48,215,232,.46); text-underline-offset: .18em; }
.feature-grid p a:hover, .feature-grid p a:focus-visible { color: #8cecf5; text-decoration-color: currentColor; }
.feature-grid p a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.feature-icon { color: var(--cyan); font-size: 1.7rem; line-height: 1; }
#funkce { padding-top: 62px; }
.display-gallery { padding-top: 18px; }
.clock-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clock-gallery figure { margin: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.clock-gallery .image-zoom { min-height: 0; padding: 20px; aspect-ratio: 1; }
.clock-gallery .image-zoom img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.clock-gallery figcaption { padding: 14px 18px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); }
.clock-gallery .night-preview { border-color: rgba(240,68,68,.25); box-shadow: inset 0 0 30px rgba(240,68,68,.035); }
.clock-gallery .night-preview figcaption { color: #d9a0a0; border-top-color: rgba(240,68,68,.2); }
.hardware-section { padding-bottom: 108px; }
.hardware-panel { display: grid; gap: 30px; padding: 38px 40px; background: linear-gradient(145deg, rgba(17,29,38,.9), rgba(8,15,20,.9)); border: 1px solid var(--line); border-radius: var(--radius); }
.hardware-panel h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.hardware-panel > div:first-child > p:last-child { margin-bottom: 0; color: var(--muted); }
.hardware-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.retailer-logo { min-height: 102px; padding: 18px 24px; display: grid; place-items: center; background: #fff; border: 2px solid transparent; border-radius: 14px; overflow: hidden; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.retailer-logo:hover, .retailer-logo:focus-visible { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 10px 30px rgba(48,215,232,.12); }
.retailer-logo:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.retailer-logo img { width: auto; max-width: 100%; height: 62px; object-fit: contain; }
.installer-section { background: linear-gradient(110deg, #081117, #0c171e); border-block: 1px solid var(--line); }
.installer-layout { display: grid; grid-template-columns: 1fr .86fr; gap: 90px; align-items: center; padding-block: 110px; }
.installer-layout > div:first-child > p:not(.eyebrow) { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.steps li { display: flex; align-items: center; gap: 15px; }
.steps li > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(48,215,232,.35); border-radius: 50%; color: var(--cyan); font-weight: 800; }
.steps strong, .steps small { display: block; }
.steps small { color: var(--muted); }
.installer-card { padding: 34px; text-align: center; background: rgba(5,10,14,.72); border: 1px solid rgba(48,215,232,.22); border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.installer-orbit { width: 72px; height: 72px; margin: 0 auto 20px; border: 1px solid rgba(48,215,232,.25); border-radius: 50%; display: grid; place-items: center; }
.installer-orbit span { width: 38px; height: 38px; border: 3px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 25px rgba(48,215,232,.28); }
.installer-label { margin-bottom: 3px; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.installer-version { margin-bottom: 22px; font-size: 1.45rem; font-weight: 800; }
.firmware-select-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .8rem; text-align: left; }
.firmware-select { width: 100%; margin-bottom: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.firmware-select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.firmware-select-label[hidden], .firmware-select[hidden] { display: none; }
.firmware-select:disabled { cursor: wait; opacity: .62; }
.install-action { width: 100%; font-size: 1rem; }
esp-web-install-button:not([ready]) { display: none; }
.installer-status { min-height: 1.7em; margin: 14px 0 0; color: var(--muted); font-size: .86rem; }
.installer-status.error { color: #ff8888; }
.installer-downgrade { margin: 18px 0 0; padding: 13px 14px; border: 1px solid rgba(240,68,68,.35); border-radius: 10px; background: rgba(240,68,68,.08); color: #ffb0b0; font-size: .78rem; text-align: left; }
.installer-warning { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #7f909b; font-size: .76rem; text-align: left; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.showcase-grid figure { margin: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.image-zoom { position: relative; width: 100%; min-height: 300px; padding: 22px; border: 0; background: #070c10; color: var(--text); cursor: zoom-in; display: grid; place-items: center; overflow: hidden; }
.image-zoom img { width: 100%; height: 270px; object-fit: contain; object-position: center; transition: transform 180ms ease; }
.image-zoom span { position: absolute; right: 14px; bottom: 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(3,8,11,.86); color: #c9d6dd; font-family: inherit; font-size: .72rem; font-weight: 700; line-height: 1; opacity: 0; transform: translateY(4px); transition: opacity 160ms ease, transform 160ms ease; }
.image-zoom:hover img, .image-zoom:focus-visible img { transform: scale(1.015); }
.image-zoom:hover span, .image-zoom:focus-visible span { opacity: 1; transform: translateY(0); }
.image-zoom:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.device-preview img { height: 300px; }
.showcase-grid figcaption { padding: 14px 18px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); }
.showcase-grid figure:last-child { grid-column: 1 / -1; width: min(430px, 100%); justify-self: center; }
.lightbox { width: min(1180px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 48px 18px 18px; border: 1px solid rgba(48,215,232,.28); border-radius: 20px; background: #05090d; color: var(--text); box-shadow: 0 35px 100px rgba(0,0,0,.78); overflow: auto; }
.lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(5px); }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100vh - 125px); margin: auto; object-fit: contain; }
.lightbox p { margin: 12px 38px 0; color: var(--muted); text-align: center; font-size: .88rem; }
.lightbox-close { position: absolute; top: 9px; right: 11px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); color: var(--text); font: 400 1.65rem/1 sans-serif; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.video-section video { width: min(760px, 100%); aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
footer { border-top: 1px solid var(--line); color: #768792; font-size: .83rem; }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner div { display: flex; gap: 22px; }

@media (max-width: 900px) {
  nav { gap: 12px; }
  nav > a { display: none; }
  .hero, .installer-layout { grid-template-columns: 1fr; }
  .hero { width: min(100% - 40px, 1160px); padding-top: 56px; }
  .device-stage { min-height: 550px; max-width: 560px; width: 100%; margin: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .installer-layout { gap: 55px; }
}

@media (max-width: 620px) {
  .section-shell, .site-header, .hero { width: min(100% - 28px, 1160px); }
  .site-header { height: 68px; }
  .hero { gap: 42px; padding-block: 48px 70px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  h2 { font-size: 2.35rem; }
  .feature-heading h2 { white-space: normal; }
  .hero-actions .button { width: 100%; }
  .hero { overflow: clip; }
  .device-stage { min-height: 430px; }
  .device-stage::before { inset: 2px 24px 70px; transform: rotate(-5deg); }
  .device-stage::after { width: 270px; height: 270px; top: 24px; left: 50%; transform: translateX(-50%); }
  .device-analog { top: 16px; left: 50%; transform: translateX(-50%); }
  .device.device-analog { --device-size: min(72vw, 270px); }
  .device-analog img { box-shadow: 0 30px 66px rgba(0,0,0,.68), 0 0 0 7px #111a20, 0 0 0 9px #2a363d, 0 0 34px rgba(48,215,232,.1); }
  .device { --device-size: min(25vw, 94px); }
  .device img { box-shadow: 0 16px 36px rgba(0,0,0,.68), 0 0 0 4px #111a20, 0 0 0 6px #2a363d; }
  .device-digital-day { top: auto; right: auto; bottom: 0; left: 2px; }
  .device-night { top: auto; right: auto; bottom: 0; left: 50%; transform: translateX(-50%); }
  .device-radar { top: auto; right: 2px; bottom: 0; }
  .device-night img { box-shadow: 0 16px 36px rgba(0,0,0,.7), 0 0 0 4px #111a20, 0 0 0 6px #2a363d, 0 0 20px rgba(240,68,68,.08); }
  .feature-grid, .showcase-grid, .clock-gallery { grid-template-columns: 1fr; }
  .hardware-section { padding-bottom: 76px; }
  .hardware-panel { padding: 28px 22px; }
  .retailer-logo { min-height: 92px; padding: 16px 20px; }
  .retailer-logo img { height: 54px; }
  .showcase-grid figure:last-child { grid-column: auto; }
  .image-zoom { min-height: 230px; padding: 14px; }
  .image-zoom img, .device-preview img { height: 220px; }
  .lightbox { padding: 46px 10px 14px; }
  .section-block, .installer-layout { padding-block: 76px; }
  .installer-card { padding: 26px 20px; }
  .footer-inner { padding-block: 28px; flex-direction: column; align-items: flex-start; }
  .footer-inner div { flex-wrap: wrap; gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .device, .device-stage::before { animation: none !important; }
}
