/* iot4.eu — single stylesheet, no external fonts (GDPR-friendly) */
:root {
  --ink: #0b1520;
  --ink-2: #3a4955;
  --muted: #62727e;
  --paper: #f5f7f8;
  --card: #ffffff;
  --line: #dde4e8;
  --teal: #0fa89a;
  --teal-2: #19c3b3;
  --night: #0b1520;
  --night-2: #13212e;
  --warn: #f5c451;
  --r: 18px;
  --gut: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef1;
    --ink-2: #b9c6cd;
    --muted: #8d9ca6;
    --paper: #0e1821;
    --card: #15222e;
    --line: #243441;
    --teal: #19c3b3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 750; max-width: 16ch; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 720; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .8em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.caption { font-size: .9rem; color: var(--muted); margin-top: .8em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.35em; border-radius: 999px;
  background: var(--teal-2); color: #04211e; font-weight: 700; text-decoration: none; border: 2px solid var(--teal-2);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(25, 195, 179, .7); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn.ghost:hover { border-color: #fff; box-shadow: none; }
.btn.big { font-size: 1.05rem; padding: 1em 1.6em; word-break: break-word; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.top.solid { background: rgba(11, 21, 32, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; color: var(--teal-2); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--teal-2); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700;
  padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: #fff; color: #0b1520; border-radius: 14px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .45);
}
.lang li a { display: block; padding: 9px 14px; border-radius: 9px; text-decoration: none; font-size: .95rem; }
.lang li a:hover { background: #eef5f5; }
.lang li a[aria-current] { font-weight: 700; color: var(--teal); }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: transform .25s; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: min(100svh, 960px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 16, 24, .88) 0%, rgba(8, 16, 24, .55) 45%, rgba(8, 16, 24, .05) 80%), linear-gradient(0deg, rgba(8, 16, 24, .9) 0%, rgba(8, 16, 24, 0) 40%); }
.hero-in { position: relative; padding-top: 120px; padding-bottom: 40px; }
.hero .lead { color: rgba(255, 255, 255, .85); }
.hero .eyebrow { color: var(--teal-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 36px; }
.stat { padding: 18px 22px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat:first-child { border-radius: 14px 0 0 14px; }
.stat:last-child { border-radius: 0 14px 14px 0; }
.stat b { display: block; font-size: 1.9rem; color: var(--teal-2); letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .78); }

/* sections */
.sec { padding: clamp(72px, 10vw, 130px) 0; }
.sec.alt { background: color-mix(in srgb, var(--paper) 70%, var(--line)); }
.sec.dark { background: var(--night); color: #e8eef1; }
.sec.dark .lead { color: #b9c6cd; }
.head { margin-bottom: 44px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split-img img { border-radius: var(--r); box-shadow: 0 30px 70px -30px rgba(11, 21, 32, .45); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s, border-color .25s; }
.feat:hover { transform: translateY(-4px); border-color: var(--teal); }
.feat p { color: var(--muted); margin: 0; font-size: .97rem; }
.feat-ico { width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.feat-ico svg { width: 24px; height: 24px; }

.nav-demo { margin-top: 56px; }
.lidar { width: 100%; height: auto; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.lidar .target { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .35; } }

.films { margin-top: 56px; }
.films h3 { margin: 0 0 18px; }
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.film-grid.two { grid-template-columns: repeat(2, 1fr); }
.films-sim { margin: 40px 0 4px !important; }
.films-sim + .caption { margin: 0 0 18px; max-width: 70ch; }
@media (max-width: 900px) { .film-grid, .film-grid.two { grid-template-columns: 1fr; } }
.film { margin: 0; }
.film video { display: block; width: 100%; height: auto; border-radius: var(--r); background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.film figcaption { font-size: .92rem; color: var(--muted); margin-top: .7em; }
.film figcaption b { color: var(--ink); margin-right: .25em; }

.specs-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 56px; }
.specs, .gallery { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.specs dl { margin: 0; }
.specs dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .92rem; }
.specs dd { margin: 0; font-weight: 600; font-size: .97rem; }
.gal { display: grid; grid-template-columns: 1.33fr 1fr; gap: 12px; }
.gal img { border-radius: 12px; height: 100%; object-fit: cover; }

/* robot family */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 22px; display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-art { aspect-ratio: 4 / 3; border-radius: 12px; background: radial-gradient(120% 90% at 50% 20%, #eaf6f5, #d5e3e7); margin: 0 0 16px; display: grid; place-items: center; overflow: hidden; }
.card-art svg { width: 92%; }
.card-art.photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 28%, transparent); color: var(--ink); margin-bottom: 10px; }
.badge.live { background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); }
@media (prefers-color-scheme: dark) { .card-art { background: radial-gradient(120% 90% at 50% 20%, #203544, #15222e); } }

/* SVG micro-animations */
.card .arm { animation: arm 4s ease-in-out infinite; transform-box: view-box; }
@keyframes arm { 50% { transform: rotate(-7deg); } }
.card .waves path { animation: blink 1.8s ease-in-out infinite; }
.card .waves path:nth-child(2) { animation-delay: .3s; }
.card .waves path:nth-child(3) { animation-delay: .6s; }
@keyframes blink { 50% { opacity: .15; } }
.card .lift { animation: lift 3.2s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateY(-12px); } }
.card .beam { animation: beam 1.1s steps(2, jump-none) infinite; }
@keyframes beam { 50% { opacity: .1; } }

/* platform layers */
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.layers li {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; font-weight: 600;
  background: linear-gradient(90deg, color-mix(in srgb, var(--teal-2) calc(10% + var(--i) * 5%), var(--night-2)), var(--night-2));
  border: 1px solid rgba(25, 195, 179, .25);
}
.layers span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; color: var(--teal-2); min-width: 2.2em; }
.js .layers li { opacity: 0; transform: translateX(40px); transition: opacity .6s, transform .6s; transition-delay: calc((5 - var(--i)) * 90ms); }
.js .layers.in li { opacity: 1; transform: none; }

/* tech */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech { border-top: 3px solid var(--teal); padding-top: 18px; }
.tech p { color: var(--muted); font-size: .96rem; }
.num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--teal); font-size: .85rem; display: block; margin-bottom: 10px; }

/* contact */
.contact { background: radial-gradient(90% 120% at 80% 0%, #124a4a 0%, var(--night) 60%); color: #fff; text-align: center; }
.contact .lead { color: #c5d3d9; margin: 0 auto 30px; }
.contact-in h2 { max-width: 20ch; margin-inline: auto; }

.foot { background: #070e15; color: #8d9ca6; font-size: .9rem; padding: 26px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .split, .specs-wrap { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: rgba(11, 21, 32, .97);
    transform: translateY(-120%); transition: transform .3s; margin: 0;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .nav.open { transform: none; }
  .burger { display: block; }
  .lang { margin-left: auto; }
  .top.menu-open { background: rgba(11, 21, 32, .97); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .feat-grid, .tech-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat:first-child { border-radius: 14px 14px 0 0; }
  .stat:last-child { border-radius: 0 0 14px 14px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 16, 24, .95) 0%, rgba(8, 16, 24, .72) 55%, rgba(8, 16, 24, .6) 100%); }
  .specs dl div { grid-template-columns: 1fr; gap: 2px; }
  .gal { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .layers li { opacity: 1; transform: none; }
}

/* contact form */
.cform { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; text-align: left; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cform label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: #c5d3d9; }
.cform input, .cform textarea {
  font: inherit; font-weight: 400; color: #fff; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: .75em .9em; width: 100%; box-sizing: border-box;
}
.cform textarea { resize: vertical; min-height: 8em; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--teal-2); background: rgba(255, 255, 255, .1); }
.cform .btn { justify-self: center; cursor: pointer; font: inherit; font-weight: 700; margin-top: 6px; }
.cform .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { text-align: center; min-height: 1.4em; margin: 0; font-weight: 600; }
.cf-status.ok { color: var(--teal-2); }
.cf-status.err { color: var(--warn); }
.cf-note { text-align: center; font-size: .85rem; color: #8d9ca6; margin: 0; }
.cf-alt { margin-top: 26px; color: #c5d3d9; }
.cf-alt a { color: #fff; }
