/* dev.furian.sk – showroom of Furcenzo's Mac apps */

:root {
  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --bg-soft: #f2f2f6;
  --text: #1d1d1f;
  --text-dim: #5f5f66;
  --border: #e3e3e8;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --code-bg: #f0f0f4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --bg-elev: #1b1b20;
    --bg-soft: #1f1f25;
    --text: #f2f2f5;
    --text-dim: #a1a1aa;
    --border: #2e2e36;
    --accent: #5b82ff;
    --accent-text: #ffffff;
    --code-bg: #24242b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.45);
  }
}

/* Language switching: only the current language is visible. English is the default (no JS needed). */
html:not([lang="sk"]) [data-l="sk"],
html[lang="sk"] [data-l="en"] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}
.brand {
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-dim {
  color: var(--text-dim);
  font-weight: 450;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.topnav > a {
  color: var(--text);
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch a {
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.lang-switch a:hover {
  text-decoration: none;
  color: var(--text);
}
html:not([lang="sk"]) .lang-switch a[data-set-lang="en"],
html[lang="sk"] .lang-switch a[data-set-lang="sk"] {
  background: var(--accent);
  color: var(--accent-text);
}

/* ---------- hero ---------- */

.hero {
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: center;
}
h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}
.app-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
  text-align: left;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.app-card img {
  flex: none;
  width: 72px;
  height: 72px;
}
.app-card strong {
  display: block;
  font-size: 19px;
}
.app-card span span {
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- app sections ---------- */

.app {
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.app-head {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.app-icon {
  flex: none;
  width: 128px;
  height: 128px;
}
h2 {
  font-size: clamp(30px, 4.5vw, 42px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 4px 0 10px;
}
h3 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.pitch {
  font-size: clamp(18px, 2.2vw, 21px);
  margin: 0 0 18px;
  max-width: 720px;
}
.meta {
  color: var(--text-dim);
  font-size: 14px;
  margin: 12px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--text-dim);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  border-color: var(--accent);
  filter: brightness(1.08);
}
.ver {
  font-weight: 450;
  opacity: 0.85;
}

/* ---------- screenshots ---------- */

.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.shot figcaption {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}
.shot-wide {
  margin-top: 40px;
}
.shots-pair {
  display: grid;
  grid-template-columns: 2fr 5fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.shots-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

/* ---------- features & install ---------- */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.features li {
  padding-left: 22px;
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  padding: 10px 10px 10px 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: none;
  padding: 0;
  font-size: 15px;
}
.cmd-small code {
  font-size: 13px;
}
.copy {
  flex: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
}
.copy:hover {
  border-color: var(--text-dim);
}
.copy.copied {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
}
.copy.copied span {
  visibility: hidden;
}
.copy {
  position: relative;
}
.copy.copied::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: visible;
}

/* ---------- notes & footer ---------- */

.notes {
  padding-top: 56px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.notes h2 {
  font-size: 30px;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.note {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px 20px;
  min-width: 0;
}
.note h3 {
  margin-top: 18px;
  font-size: 19px;
}

.footer {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .topnav > a {
    display: none;
  }
  .hero {
    padding-top: 44px;
  }
  .app-cards,
  .features,
  .note-grid,
  .shots-three {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots-pair .shot:first-child {
    max-width: 320px;
    margin: 0 auto;
  }
  .app-head {
    flex-direction: column;
    gap: 16px;
  }
  .app-icon {
    width: 96px;
    height: 96px;
  }
}
