/* Kompatiqo Backup, marketing site. Same design language as kcm.kompatiqo.cz: dark navy, one teal
   accent, Hanken Grotesk, left-aligned sections with numbered steps, a bento and a timeline.
   No animation library, one small script for the mobile menu. */

@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070b12; --bg-2: #0b1119; --bg-rgb: 7, 11, 18;
  --glass: rgba(255, 255, 255, .04); --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --text: #e8eef5; --muted: #8b98a8;
  --accent: #22c7d6; --accent-rgb: 34, 199, 214; --accent-ink: #06262b;
  --chrome: #12191f;
  --gutter: 16px; --col: 1200px; --nav-h: 64px;
  --r-btn: 8px; --r-card: 16px; --r-shot: 12px;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 24px; --nav-h: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body);
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration-color: rgba(var(--accent-rgb), .6); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-btn); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-btn); border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), filter .2s var(--ease-out);
}
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1.0625rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: rgba(var(--bg-rgb), .35); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { max-width: var(--col); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav__mark { flex: none; }
.nav__name { display: flex; flex-direction: column; font-weight: 600; font-size: 1rem; line-height: 1.1; letter-spacing: -.01em; }
.nav__by { font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.nav__menu { display: flex; align-items: center; gap: 12px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9375rem; font-weight: 500; text-decoration: none; }
.nav__list a:hover { background: rgba(255, 255, 255, .06); }
.nav__lang { font-size: .875rem; color: var(--muted); }
.nav__cta { min-height: 40px; padding: 8px 16px; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform .2s var(--ease-out); }
.nav__toggle-bar { top: 21px; }
.nav__toggle-bar::before { left: 0; top: -6px; }
.nav__toggle-bar::after { left: 0; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) {
  .js .nav__toggle { display: block; }
  .js .nav__menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .nav__menu.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .no-js .nav__list { display: none; }
}

/* Hero: a real disk photographed by Gunnar Wolf (credits page), pushed back by a shade */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 48px) 0 clamp(56px, 9vw, 112px); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .78) 45%, rgba(var(--bg-rgb), .35) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 40%); }
.hero__in { position: relative; width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.hero__copy { max-width: 46rem; }
.hero__h { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -.03em; }
.hero__line { display: block; }
.hero__line + .hero__line { color: var(--muted); }
.hero__sub { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: #c4cdd8; max-width: 38rem; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pills { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .875rem; color: #c4cdd8; background: rgba(var(--bg-rgb), .4); }
.credit { font-size: .75rem; color: rgba(139, 152, 168, .8); }
.hero .credit { position: absolute; right: var(--gutter); bottom: 12px; }
.credit a { color: inherit; }

/* Sections */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--alt { background: var(--bg-2); }
.sec__in { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.sec__head { max-width: 44rem; margin-bottom: clamp(40px, 6vw, 72px); }
.h2 { font-size: clamp(2.125rem, 4vw, 3.25rem); }
.lead { margin-top: 16px; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 38rem; }
.note { margin-top: 12px; font-size: .875rem; color: var(--muted); }

.shot { display: block; overflow: hidden; border-radius: var(--r-shot); border: 1px solid var(--line); background: var(--chrome); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); margin: 0; }
.shot img { display: block; width: 100%; height: auto; }

/* Tour: text and screenshot side by side, alternating */
.steps { display: grid; gap: clamp(56px, 8vw, 104px); }
.step { display: grid; gap: 24px; align-items: center; }
.step__text { position: relative; padding-left: 52px; }
.step__n { position: absolute; left: 0; top: .25em; font-size: .9375rem; color: var(--accent); }
.step__h { font-size: 1.625rem; }
.step__p { margin-top: 12px; color: var(--muted); max-width: 34rem; }
@media (min-width: 960px) {
  .step { grid-template-columns: 5fr 7fr; gap: 56px; }
  .step:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .step:nth-child(even) .step__text { order: 2; }
  .step--tall .shot { max-width: 520px; }
}

/* Rescue USB */
.rescue__top { display: grid; gap: 32px; align-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
.rescue__photo { margin: 0; }
.rescue__photo img { display: block; width: 100%; border-radius: var(--r-card); }
.rescue__photo figcaption { margin-top: 8px; }
@media (min-width: 960px) { .rescue__top { grid-template-columns: 6fr 5fr; gap: 56px; } }
.facts { display: grid; gap: 16px; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--glass); }
.fact__h { font-size: 1.25rem; line-height: 1.2; }
.fact__p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.usb-shots { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 720px) { .usb-shots { grid-template-columns: repeat(3, 1fr); } }
.usb-shots figcaption { padding: 10px 14px; font-size: .875rem; color: var(--muted); background: var(--chrome); border-top: 1px solid var(--line); }

/* Bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); } .cell--photo { grid-row: span 2; } }
.cell { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--glass); }
.cell__h { font-size: 1.25rem; line-height: 1.2; }
.cell__p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.cell--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.cell--photo img { display: block; width: 100%; flex: 1; object-fit: cover; min-height: 240px; }
.cell--photo figcaption { padding: 20px 24px; }

/* Timeline (licence) */
.timeline { display: grid; gap: 28px; }
@media (min-width: 960px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.tl { position: relative; padding-left: 56px; }
@media (min-width: 960px) { .tl { padding-left: 0; padding-top: 60px; } }
.tl__n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .5); color: var(--accent); font-size: .9375rem; }
.tl__h { font-size: 1.25rem; line-height: 1.2; padding-top: 6px; }
.tl__p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* Requirements */
.req { display: grid; gap: 0; border-top: 1px solid var(--line); }
.req__row { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .req__row { grid-template-columns: 16rem 1fr; gap: 24px; } }
.req__k { font-weight: 600; }
.req__v { color: var(--muted); }

/* Contact */
.contact__box { position: relative; padding: clamp(32px, 5vw, 56px); border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), .12), transparent 60%), var(--glass); }
.contact__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact__mail { color: var(--muted); }

/* Footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.foot__in { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Credits page */
.doc { max-width: 52rem; margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--gutter) 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 40px; }
.doc p, .doc li { margin-top: 12px; color: #c4cdd8; }
.doc li { padding-left: 0; }
.doc .credit-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
