/* SuperSoftware – katalog výrobních aplikací */
:root {
  --primary: #1847b8;
  --primary-dark: #0f3290;
  --primary-light: #3d6ae8;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
  --max-width: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.catalog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.catalog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.catalog-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
}

.catalog-nav a { color: var(--text-muted); transition: color 0.2s; }
.catalog-nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 71, 184, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(24, 71, 184, 0.25);
}

.btn--white {
  background: #fff;
  color: var(--primary-dark);
}

/* Hero catalog */
.catalog-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(24, 71, 184, 0.12), transparent),
    var(--bg);
}

.catalog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(24, 71, 184, 0.08);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.catalog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.catalog-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

/* App grid */
.section { padding: 3rem 0 4rem; }

.section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.app-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.app-card__accent {
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
}

.app-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.app-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.app-card__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.app-card__summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.app-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-card__link {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.app-card__link--primary { color: #fff; }
.app-card__link--ghost {
  color: var(--text-muted);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.app-card__link--ghost:hover { background: rgba(15, 23, 42, 0.04); }

/* Detail page */
.detail-hero {
  padding: 3rem 0;
  color: #fff;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.detail-hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.detail-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.detail-hero__tagline {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.detail-hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.detail-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-shot img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.detail-content { padding: 3rem 0 4rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

.detail-block h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.detail-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.detail-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, var(--primary));
}

.detail-sidebar {
  display: grid;
  gap: 1.25rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.info-card .detail-list li { font-size: 0.9375rem; }

.detail-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
}

.detail-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.detail-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.detail-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.catalog-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.catalog-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .detail-hero__grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-shot { order: -1; }

  .catalog-nav { display: none; }
}

@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; }
}
