/* Live Tape – hlavní stránka. Tmavá, střídmá, bez knihoven; zařízení jsou nakreslená v CSS. */
:root {
  --bg: #07090e;
  --panel: #0d121c;
  --line: #1a2232;
  --text: #c3cbdb;
  --muted: #7d889e;
  --head: #f4f7fc;
  --accent: #3b8cff;
  --glow: rgb(59 140 255 / 0.35);
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --max: 1160px;
  --gap: clamp(88px, 12vw, 160px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  color: var(--head);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  max-width: 14ch;
}
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* popisky: strojové písmo, jediný „technický“ prvek textu */
.label,
.note,
.num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.label {
  color: var(--accent);
  margin: 0 0 20px;
}
.note {
  color: var(--muted);
  margin: 20px 0 0;
  letter-spacing: 0.1em;
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text);
  max-width: 56ch;
  margin: 24px 0 0;
}

/* tlačítka */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 8px 30px -8px var(--glow);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 10px 40px -6px var(--glow);
}
.btn-ghost {
  background: transparent;
  color: var(--head);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.btn-ghost:hover {
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* horní lišta: sklo */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(7 9 14 / 0.72);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--head);
}
.logo span {
  color: var(--accent);
  margin-left: 0.4em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--head);
}

/* úvod: jemná mřížka a záře jen tady */
.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  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(ellipse 70% 60% at 50% 30%, black, transparent);
  opacity: 0.6;
}
.hero-devices {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  padding-bottom: 40px;
}
.hero-devices::before {
  content: '';
  position: absolute;
  inset: 10% 15% 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%);
  filter: blur(40px);
}
.dev.hero-phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: clamp(110px, 17%, 200px);
}

/* ---- zařízení: oficiální rámečky Applu (Product Bezels) s naší aplikací na displeji ---- */
.dev {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 60px rgb(0 0 0 / 0.6));
}

/* proč: tři sloupce oddělené linkou */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: var(--gap);
}
.why > div {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.num {
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.why p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
}

/* produkty: zařízení a text vedle sebe, střídavě */
.product {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  margin-top: var(--gap);
}
.product.reverse {
  grid-template-columns: 1fr 1.25fr;
}
.product.reverse .dev-mac {
  order: 2;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

/* remote: iPad a iPhone vedle sebe */
.remote {
  margin-top: var(--gap);
  padding: var(--gap) 0;
  background: linear-gradient(180deg, transparent, var(--panel) 30%, var(--panel) 70%, transparent);
  text-align: center;
}
.remote .lead {
  margin-inline: auto;
}
.remote-devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 64px;
}
.remote-devices .dev-ipad {
  width: clamp(220px, 34%, 400px);
}
.remote-devices .dev-iphone {
  width: clamp(120px, 17%, 200px);
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.specs div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.specs strong {
  color: var(--head);
  font-weight: 600;
}
.specs span {
  color: var(--muted);
  font-size: 15px;
}

/* závěrečná výzva */
.cta {
  text-align: center;
  margin-top: var(--gap);
  margin-bottom: var(--gap);
}
.cta p {
  color: var(--muted);
  margin: 16px 0 0;
}
.cta .actions {
  justify-content: center;
}
/* stažení: Mac, iPhone, Android */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dl strong {
  color: var(--head);
}
.dl > span {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}
.dl .btn {
  margin-top: auto;
  justify-content: center;
}
.dl small {
  color: var(--muted);
  font-size: 13px;
}
.btn.is-off {
  opacity: 0.55;
  pointer-events: none;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* telefon a tablet */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-row .btn {
    margin-left: auto;
  }
  .why,
  .specs {
    grid-template-columns: 1fr;
  }
  .product,
  .product.reverse {
    grid-template-columns: 1fr;
  }
  .product.reverse .dev-mac {
    order: 0;
  }
  .hero-phone {
    right: 2%;
    width: 26%;
  }
  .remote-devices .dev-ipad {
    width: 58%;
  }
  .remote-devices .dev-iphone {
    width: 30%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
