/* ============================================================
   Selbicky Labs — stylesheet
   Paleta inspirovaná kostkou: měď, tmavě modrá, oliva
   ============================================================ */

:root {
  --bg:        #0e141b;
  --bg-2:      #131c25;
  --surface:   #18222d;
  --surface-2: #1f2c39;
  --line:      #293744;

  --copper:    #c75d2c;
  --copper-lt: #e89154;
  --copper-dk: #8f4220;
  --olive:     #7a7a5c;

  --text:      #eceae3;
  --muted:     #99a4af;

  --maxw: 1140px;
  --radius: 4px;

  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-lt);
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; font-weight: 700; }

.accent { color: var(--copper-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  /* ostrý, zkosený roh — inspirace hranou kostky */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-lt); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--copper-lt); color: var(--copper-lt); transform: translateY(-2px); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.18rem;
  color: var(--text);
  white-space: nowrap;
}
.wordmark b { color: var(--copper-lt); font-weight: 700; }
.wordmark.sm { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 20, 27, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-cube { display: block; transition: transform 0.3s ease; }
.brand:hover .brand-cube { transform: rotate(-6deg) scale(1.05); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-size: 0.95rem; color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--text); }
.nav .btn:hover { color: var(--copper-lt); }

.header-right { display: flex; align-items: center; gap: 18px; }

/* Přepínač jazyků */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.lang-switch:hover { border-color: var(--copper-lt); }
.lang-switch i { color: var(--line); font-style: normal; }
.lang-switch span { transition: color 0.2s ease; }
.lang-switch span.active { color: var(--copper-lt); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 96px;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(199, 93, 44, 0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(122, 122, 92, 0.12), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.13;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: 24px; letter-spacing: -0.01em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2rem; color: var(--copper-lt); }
.hero-stats span { font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Apps grid ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.app-card:hover { transform: translateY(-4px); border-color: var(--copper-dk); }
.app-card.is-live { border-color: rgba(199, 93, 44, 0.5); }
.app-card.is-live::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--copper);
}

.app-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--copper-lt);
}
.is-soon .app-icon { color: var(--olive); }

.badge {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge-live { color: var(--copper-lt); border-color: var(--copper-dk); background: rgba(199, 93, 44, 0.1); }

.app-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.app-tag { font-family: var(--font-head); font-size: 0.86rem; color: var(--copper-lt); letter-spacing: 0.03em; margin-bottom: 14px; }
.is-soon .app-tag { color: var(--olive); }
.app-desc { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }

.app-feats { list-style: none; margin-bottom: 22px; }
.app-feats li { position: relative; padding-left: 22px; color: var(--text); font-size: 0.95rem; margin-bottom: 8px; }
.app-feats li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg);
}

.app-foot { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-size: 0.85rem; color: var(--copper-lt); letter-spacing: 0.04em; }
.price.muted { color: var(--muted); }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.studio-intro h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 20px; }
.studio-intro p { color: var(--muted); margin-bottom: 16px; max-width: 46ch; }

.values { list-style: none; display: grid; gap: 18px; }
.values li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 22px 24px;
}
.value-num { font-family: var(--font-head); font-size: 0.85rem; color: var(--copper-lt); letter-spacing: 0.1em; }
.values h3 { font-size: 1.2rem; margin: 6px 0 6px; }
.values p { color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; background:
    radial-gradient(700px 360px at 50% 0%, rgba(199, 93, 44, 0.14), transparent 60%), var(--bg); }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.cta .section-lead { margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { color: var(--muted); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .studio-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav { gap: 22px; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 360px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 14px 24px; }
  .hero { padding: 72px 0 64px; }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 0; }
}
