:root {
  --bg: #08090c;
  --panel: #111318;
  --panel-2: #181b22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef2;
  --dim: #9298a3;
  --faint: #5d626c;
  --blue: #4f6bff;
  --orange: #ff9a3c;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* --- nawigacja */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: linear-gradient(var(--bg), rgba(8, 9, 12, 0.6) 70%, transparent);
  backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.brand b { font-weight: 400; color: var(--dim); margin-left: 0.22em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--dim); }
.nav-links a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #fff; background: var(--blue);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 30px -8px rgba(79, 107, 255, 0.7);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: #6179ff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 12px 40px -8px rgba(79, 107, 255, 0.9); }
.btn span { transition: transform 0.2s; }
.btn:hover span { transform: translateX(3px); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.sm { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; color: #fff; }

/* --- hero */
.hero { position: relative; padding: 150px clamp(16px, 4vw, 48px) 40px; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(50% 40% at 50% 62%, rgba(79, 107, 255, 0.22), transparent 70%),
    radial-gradient(30% 25% at 70% 40%, rgba(255, 154, 60, 0.08), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 6px 14px 6px 12px; border-radius: 99px;
  font-size: 13px; color: var(--dim); background: rgba(255, 255, 255, 0.03); box-shadow: 0 0 0 1px var(--line) inset;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
h1 {
  margin: 0; font-size: clamp(42px, 7vw, 92px); line-height: 1; font-weight: 600; letter-spacing: -0.045em;
}
.grad {
  background: linear-gradient(90deg, #fff 0%, #aab6ff 45%, var(--blue) 75%, var(--orange) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 34em; margin: 28px auto 0; font-size: clamp(16px, 1.3vw, 18px); color: var(--dim); }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* --- okno aplikacji */
.stage { perspective: 2000px; margin: 72px auto 0; max-width: 1240px; }
.window {
  --rx: 0deg; --ry: 0deg; --lift: 1;
  position: relative; border-radius: 14px; overflow: hidden; text-align: left;
  background: var(--panel); box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(79, 107, 255, 0.5);
  transform: rotateX(calc(var(--lift) * 18deg + var(--rx))) rotateY(var(--ry)) scale(calc(1 - var(--lift) * 0.06));
  transform-origin: 50% 0; transition: transform 0.25s ease-out; will-change: transform;
}
.bar {
  display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 14px;
  font-size: 12.5px; color: var(--dim); border-bottom: 1px solid var(--line); background: #0d0f13; white-space: nowrap;
}
.bar-mark { width: 20px; height: 20px; flex: none; }
.file { color: var(--text); font-weight: 500; }
.tabs { display: flex; gap: 2px; overflow: hidden; }
.tabs i { font-style: normal; padding: 4px 9px; border-radius: 6px; }
.tabs i.on { background: var(--panel-2); color: var(--text); }
.status { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.status b { font: 500 12px var(--mono); color: var(--text); margin-left: 8px; }
.live { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.view { position: relative; aspect-ratio: 16 / 8.2; background: #0b0d12; overflow: hidden; }
#city { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; display: flex; gap: 8px; z-index: 2; }
.tl { top: 16px; left: 16px; }
.tr { top: 16px; right: 16px; }
.bl { left: 16px; bottom: 16px; }
.br { right: 16px; bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px;
  font: 500 13px var(--mono); background: rgba(17, 19, 24, 0.88); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(8px);
}
.chip.km { background: var(--blue); color: #fff; font-size: 15px; box-shadow: 0 6px 24px -6px rgba(79, 107, 255, 0.8); }
.chip.km b { font-weight: 600; min-width: 3.2ch; text-align: right; }
.chip.place svg { width: 15px; height: 15px; color: var(--blue); }
.seg { display: flex; padding: 3px; border-radius: 10px; background: rgba(17, 19, 24, 0.88); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(8px); }
.seg button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--dim); cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--blue); color: #fff; }
.panel { border-radius: 12px; background: rgba(17, 19, 24, 0.86); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(10px); }
.elev { flex-direction: column; gap: 6px; width: min(46%, 440px); padding: 10px 14px 12px; }
.elev-head { display: flex; gap: 4px; font-size: 11px; color: var(--faint); }
.elev-head .now { margin-left: auto; color: var(--dim); }
.elev-head .now b { color: var(--text); font-weight: 500; }
#elev { width: 100%; height: 56px; display: block; }
.mini { width: 170px; height: 120px; padding: 0; }
#mini { width: 100%; height: 100%; display: block; }
.mini .n { position: absolute; top: 6px; right: 9px; font-size: 10px; color: var(--faint); }

.timeline { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border-top: 1px solid var(--line); background: #0d0f13; }
.tl-play { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--blue); cursor: pointer; display: grid; place-items: center; }
.tl-play svg { width: 13px; height: 13px; fill: #fff; }
.tl-play .ic-play, .paused .tl-play .ic-pause { display: none; }
.paused .tl-play .ic-play { display: block; }
.track {
  position: relative; flex: 1; height: 30px; border-radius: 6px; cursor: ew-resize; touch-action: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 10%) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 2%) 0 0 / 100% 4px no-repeat,
    rgba(255, 255, 255, 0.02);
}
.clip {
  position: absolute; left: 0; right: 0; bottom: 3px; height: 17px; padding: 0 8px; border-radius: 4px;
  font-size: 10.5px; line-height: 17px; color: #f3c59a; background: rgba(255, 154, 60, 0.12); box-shadow: 0 0 0 1px rgba(255, 154, 60, 0.45) inset;
}
.head { position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; margin-left: -1px; background: var(--orange); pointer-events: none; }
.head span {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 500; color: #1a1206; background: var(--orange);
}
.tl-info { flex: none; font-size: 11.5px; color: var(--dim); }
.hint { margin: 18px 0 0; font-size: 11.5px; color: var(--faint); letter-spacing: 0.02em; }

/* --- sekcje */
.sec { max-width: 1240px; margin: 0 auto; padding: 140px clamp(20px, 4vw, 48px) 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; color: var(--blue); letter-spacing: 0.04em; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.sub { margin: 18px 0 0; font-size: 17px; color: var(--dim); }

.card {
  --x: 50%; --y: 50%;
  position: relative; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--x) var(--y), rgba(79, 107, 255, 0.16), transparent 60%);
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.3s;
  padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(140, 160, 255, 0.8), transparent 60%);
}
.card:hover::before, .card:hover::after { opacity: 1; }

.demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo { padding: 10px; }
.demo-poster, .demo iframe { display: block; width: 100%; aspect-ratio: 3 / 4; border: 0; border-radius: 10px; background: #0b0d12; }
.demo-poster {
  position: relative; overflow: hidden;
  background-image: var(--img, none), linear-gradient(transparent 55%, rgba(8, 9, 12, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px),
    radial-gradient(70% 90% at 30% 20%, #2b3a6b, #12151d 70%);
  background-size: cover;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.demo-poster.night { background-image: var(--img, none), linear-gradient(transparent 55%, rgba(8, 9, 12, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.04) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.04) 46px 48px),
    radial-gradient(70% 90% at 70% 30%, #4a2b1c, #100e10 70%); }
.demo:hover .demo-poster { transform: scale(1.02); }
.demo-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 6px 6px; }
.demo-meta .t { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.demo-meta .m { font-size: 12px; color: var(--faint); white-space: nowrap; }
.play {
  position: absolute; inset: 0; margin: auto; z-index: 2; width: 64px; height: 64px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset; backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s;
}
.play::before { content: ''; position: absolute; left: 26px; top: 22px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #fff; }
.play:hover { background: var(--blue); transform: scale(1.06); }
.demo.soon .play { opacity: 0.35; cursor: default; background: rgba(255, 255, 255, 0.1); transform: none; }
.demo.soon .demo-meta .m::after { content: ' · wkrótce'; color: var(--orange); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 26px 24px 28px; min-height: 220px; display: flex; flex-direction: column; }
.feat:hover { transform: translateY(-3px); }
.tag { align-self: flex-start; font-size: 11px; padding: 4px 9px; border-radius: 6px; color: var(--orange); background: rgba(255, 154, 60, 0.1); }
.feat h3 { margin: 56px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }
.feat p { margin: 0; color: var(--dim); font-size: 14.5px; }
.end { display: flex; align-items: center; gap: 20px; margin-top: 48px; }
.note { font-size: 12px; color: var(--faint); }

.foot {
  max-width: 1240px; margin: 160px auto 0; padding: 32px clamp(20px, 4vw, 48px) 48px;
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px;
}

@media (max-width: 1000px) {
  .tabs { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .mini { width: 130px; height: 92px; }
}
@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 120px; }
  .view { aspect-ratio: 4 / 5; }
  .elev { width: calc(100% - 32px); bottom: 16px; }
  .mini { display: none; }
  .tl-info, .hint, .file { display: none; }
  .chip.place { display: none; }
  .demo-list, .features { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .window { transition: none; } .live { animation: none; } }
