/* ============================================================
   BASTADEV 2026 — design system
   Duální téma (dark výchozí / light), CZ-EN, žádný build step
   ============================================================ */

:root {
  /* Typografie */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max: 1160px;
  --pad: clamp(20px, 4vw, 32px);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Akcenty (společné) */
  --blue: #5b8cff;
  --violet: #8b6cff;
  --mint: #35d6a5;
  --gradient: linear-gradient(100deg, var(--blue), var(--violet) 55%, var(--mint));

  /* Dark (výchozí) */
  --bg: #090b10;
  --bg-2: #0d1017;
  --surface: rgba(255, 255, 255, .035);
  --surface-solid: #10141d;
  --ink: #edf0f8;
  --ink-2: #aab0c2;
  --muted: #7e8598;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --nav-bg: rgba(9, 11, 16, .68);
  --card-hover: rgba(255, 255, 255, .06);
  --glow-a: rgba(91, 140, 255, .16);
  --glow-b: rgba(139, 108, 255, .12);
  --glow-c: rgba(53, 214, 165, .09);
  --shadow-card: 0 18px 50px -20px rgba(0, 0, 0, .6);
  --btn-primary-ink: #07090e;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --ink: #0e1220;
  --ink-2: #454c60;
  --muted: #858b9d;
  --line: rgba(14, 18, 32, .09);
  --line-strong: rgba(14, 18, 32, .18);
  --nav-bg: rgba(255, 255, 255, .72);
  --card-hover: #ffffff;
  --glow-a: rgba(91, 140, 255, .14);
  --glow-b: rgba(139, 108, 255, .10);
  --glow-c: rgba(53, 214, 165, .10);
  --shadow-card: 0 18px 44px -22px rgba(30, 42, 80, .25);
  --blue: #3e6ee8;
  --violet: #6f55e6;
  --mint: #0ea87e;
  --btn-primary-ink: #ffffff;
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.08; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; padding: clamp(64px, 9vw, 110px) 0; }

/* Gradientní text */
.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mono kicker nad nadpisy */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
  display: inline-block;
}

.h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-head p { color: var(--muted); max-width: 46ch; font-size: 15.5px; }

/* ---------- Pozadí ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 480px at 12% -6%, var(--glow-a), transparent 68%),
    radial-gradient(560px 480px at 92% 18%, var(--glow-b), transparent 68%),
    radial-gradient(700px 560px at 50% 110%, var(--glow-c), transparent 70%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  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 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- Navigace ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .04em;
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--gradient);
  display: inline-grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 16px -4px rgba(91, 140, 255, .55);
}
.logo b { font-weight: 700; }
.logo span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  border-radius: 100px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  display: inline-grid; place-items: center;
  color: var(--ink-2); transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--blue); }
.icon-btn svg { width: 16px; height: 16px; }
[data-theme="light"] .icon-moon { display: none; }
:root:not([data-theme="light"]) .icon-sun { display: none; }

.lang-btn {
  height: 36px; padding: 0 13px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--ink-2); transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--ink); border-color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn-primary {
  background: var(--gradient); background-size: 150% 150%;
  color: var(--btn-primary-ink);
  box-shadow: 0 10px 30px -10px rgba(91, 140, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(91, 140, 255, .7); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); }
.nav .btn { padding: 9px 18px; font-size: 14px; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(140px, 18vh, 190px) 0 clamp(40px, 6vw, 70px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 700;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero .lead {
  font-size: clamp(16.5px, 1.8vw, 20px);
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-ctas .btn { padding: 15px 30px; font-size: 15.5px; }
.hero-note {
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-note svg { width: 15px; height: 15px; color: var(--mint); flex: none; }

/* ---------- Marquee (technologie) ---------- */
.marquee-block { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-label {
  text-align: center; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  flex: none;
  padding: 9px 17px; border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
  white-space: nowrap;
}
.chip em { font-style: normal; color: var(--blue); }

/* ---------- Bento služby ---------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}
.card {
  grid-column: span 2;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--card-hover); }
.card.wide { grid-column: span 3; }
.card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}
.card:nth-child(even) .card-icon { color: var(--violet); background: color-mix(in srgb, var(--violet) 9%, transparent); }
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .num {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); opacity: .7;
}

/* ---------- AI panel ---------- */
.ai-panel {
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  position: relative; overflow: hidden;
  background:
    radial-gradient(560px 340px at 88% -10%, rgba(139, 108, 255, .35), transparent 65%),
    radial-gradient(480px 320px at -8% 110%, rgba(53, 214, 165, .22), transparent 65%),
    linear-gradient(135deg, #131629, #1a1533 55%, #101b28);
  border: 1px solid rgba(139, 108, 255, .35);
  color: #eef0f8;
}
.ai-panel .kicker { color: #b7a6ff; }
.ai-panel .kicker::before { background: #b7a6ff; }
.ai-panel .h2 { max-width: 22ch; color: #fff; }
.ai-panel > p { color: #b9bdd2; max-width: 62ch; margin: 18px 0 36px; font-size: clamp(15px, 1.6vw, 17.5px); }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 13px; }
.ai-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .25s, transform .25s;
}
.ai-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.ai-card h4 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.ai-card p { font-size: 13.5px; color: #a9aec7; line-height: 1.55; }
.ai-card .ai-ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: rgba(139, 108, 255, .2); color: #c9baff;
}
.ai-card .ai-ico svg { width: 17px; height: 17px; }

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; counter-reset: step; }
.step {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  transition: transform .25s, border-color .25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--mint);
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Reference ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.work-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease;
  display: block;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--blue); }
.work-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-body { padding: 18px 20px 20px; }
.work-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-title h3 { font-size: 17px; font-weight: 600; }
.work-url { font-family: var(--font-mono); font-size: 11.5px; color: var(--blue); white-space: nowrap; }
.work-body p { color: var(--muted); font-size: 13.5px; margin-top: 7px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted);
}
.work-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.work-note a { color: var(--blue); font-weight: 500; }

/* ---------- Certifikáty ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; }
.cert-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px;
  transition: transform .25s, border-color .25s;
  text-align: left;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.cert-card img { border-radius: 8px; width: 100%; height: auto; aspect-ratio: 1400 / 990; object-fit: cover; }
.cert-card figcaption { font-size: 12.5px; color: var(--ink-2); padding: 10px 6px 4px; line-height: 1.4; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(5, 6, 10, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%); max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8);
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 100px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: 20px;
  display: grid; place-items: center;
}

/* ---------- Kontakt ---------- */
.contact-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative; overflow: hidden;
}
.contact-panel::before {
  content: ""; position: absolute; inset: auto 0 -180px 0; height: 320px;
  background: radial-gradient(420px 240px at 50% 100%, var(--glow-a), transparent 70%);
  pointer-events: none;
}
.contact-panel .h2 { margin-bottom: 16px; }
.contact-panel > p { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; font-size: 16px; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }
.contact-ctas .btn { padding: 15px 28px; font-size: 15.5px; }

/* ---------- Footer ---------- */
footer { padding: clamp(44px, 6vw, 64px) 0 28px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 40px; }
.foot-col p, .foot-col a { font-size: 14px; color: var(--muted); line-height: 2; display: block; }
.foot-col a:hover { color: var(--ink); }
.foot-col .foot-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px;
}
.foot-col a.accent { color: var(--blue); }
.copyright {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}

/* ---------- Scroll reveal (aktivní jen s JS — bez něj je vše viditelné) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .eyebrow .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:last-child { grid-column: span 2; }
}
@media (max-width: 840px) {
  .nav-links {
    position: fixed; top: 64px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 15px; }
  .burger { display: inline-grid; }
  .nav .btn-primary { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: span 1; }
  .hero-ctas .btn { width: 100%; }
  .contact-ctas .btn { width: 100%; }
}
