/* ==========================================================================
   JK dizajn — motion kit (demo)
   Tmavý štúdiový vizuál, monochrom + acid-green akcent, filmový grain.
   Všetky animácie sú čisté CSS (transform/opacity), rešpektujú reduced-motion.
   ========================================================================== */

:root {
  --bg: #0a0c0b;
  --panel: #0f1310;
  --panel-2: #121713;
  --line: #232a24;
  --line-2: #2f3830;
  --text: #eef1ec;
  --muted: #96a098;
  --accent: #c8ff3d;
  --accent-2: #ff4b3e;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

/* Filmový grain cez celú stránku */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------- Topbar --------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 11, 0.86);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0c0b;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: lowercase;
}

.badge {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar__link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.topbar__link:hover {
  color: var(--accent);
}

/* -------------------------------- Hero ---------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.hero__copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.lead {
  margin: 18px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0c0b;
}

.btn--accent:hover {
  background: #d6ff63;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 34px 0 0;
}

.facts > div {
  display: grid;
  gap: 2px;
}

.facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Štúdio (SVG scéna) */
.stage {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(200, 255, 61, 0.06), transparent 60%),
    linear-gradient(180deg, #0d110e, #090b09);
}

.stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.stage__caption {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ------------------------------- Sekcie --------------------------------- */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section__head {
  max-width: 660px;
  margin-bottom: 26px;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section__lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: #3b473c;
  transform: translateY(-2px);
}

.card--wide {
  grid-column: 1 / -1;
}

.card__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 212px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(200, 255, 61, 0.055), transparent 65%),
    var(--panel-2);
}

.card__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.card__body {
  padding: 16px 18px 18px;
}

.card__body h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card__body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.card__meta {
  margin-top: 10px !important;
  font-family: var(--mono);
  font-size: 10px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

/* --------------------------- CIRCLE sekvencer --------------------------- */
.seq {
  position: relative;
  width: 100%;
  max-width: 372px;
  padding: 16px;
}

.seq__grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 5px;
}

.seq__cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #1a211b;
  box-shadow: inset 0 0 0 1px #212a22;
}

.seq__cell.is-on {
  background: #37422f;
}

.seq__cell.is-hit {
  animation: hit 4s linear infinite;
  animation-delay: calc(var(--c) * 0.25s);
}

.seq__playhead {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 16px;
  width: 2px;
  background: var(--accent);
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(200, 255, 61, 0.5);
  animation: sweep 4s linear infinite;
}

/* --------------------------- Nightshift stĺpce -------------------------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  height: 132px;
  padding: 0 18px 16px;
}

.bar {
  flex: 1;
  height: calc(var(--h) * 1%);
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), #6d8f1f);
  transform-origin: bottom;
  animation: bar calc(1.4s + var(--s)) ease-in-out infinite alternate;
  animation-delay: var(--d);
}

.bar--hot {
  background: linear-gradient(180deg, var(--accent-2), #8d1f18);
}

.timecode {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ------------------------------ AGROSPA pole ---------------------------- */
.tractor {
  animation: drive 18s linear infinite;
}

.wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 1.4s linear infinite;
}

.bird {
  animation: bird 18s linear infinite;
}

.bird--2 {
  animation-delay: 0.35s;
}

.wheat {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: sway 5s ease-in-out infinite alternate;
}

/* -------------------------------- Ďalej --------------------------------- */
.section--next {
  padding-top: 8px;
}

.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.next-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.next-list strong {
  color: var(--text);
  font-weight: 600;
}

.next-list em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* -------------------------------- Footer -------------------------------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 34px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* --------------------------- Štúdio (hero) ------------------------------ */
.moon {
  animation: glow 9s ease-in-out infinite;
}

.cursor {
  animation: blink 1.1s steps(1) infinite;
}

.progress {
  transform-box: fill-box;
  transform-origin: left center;
  animation: progressFill 6s ease-in-out infinite;
}

.float--a {
  animation: float 7s ease-in-out infinite;
}

.float--b {
  animation: float 9s ease-in-out infinite;
  animation-delay: -2s;
}

.float--c {
  animation: float 8s ease-in-out infinite;
  animation-delay: -4s;
}

.float--d {
  animation: float 10s ease-in-out infinite;
  animation-delay: -6s;
}

.wavebar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: wave 1.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.steam {
  animation: steam 4s ease-in-out infinite;
}

.steam--2 {
  animation-delay: 0.8s;
}

.steam--3 {
  animation-delay: 1.6s;
}

.paper--1 {
  animation: float 11s ease-in-out infinite;
}

.paper--2 {
  animation: float 13s ease-in-out infinite;
  animation-delay: -3s;
}

.leaf {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: sway 6s ease-in-out infinite alternate;
}

.leaf--2 {
  animation-delay: -1.5s;
}

.leaf--3 {
  animation-delay: -3s;
}

.dust circle {
  animation: dust 18s linear infinite;
  animation-delay: var(--d, 0s);
}

.lamp__glow {
  animation: glow 10s ease-in-out infinite;
}

.lamp__bulb {
  animation: blink 4s steps(1) infinite;
}

@keyframes dust {
  0% { transform: translate(0, 24px); opacity: 0; }
  35% { opacity: 0.5; }
  100% { transform: translate(var(--x, 12px), -70px); opacity: 0; }
}

/* Animácie bežia len keď je scéna na obrazovke (šetrí batériu). */
[data-motion].is-paused * {
  animation-play-state: paused !important;
}

/* ------------------------------- Animácie ------------------------------- */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes steam {
  0% { opacity: 0; transform: translateY(6px); }
  30% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes progressFill {
  0% { transform: scaleX(0.12); }
  60%, 100% { transform: scaleX(1); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes drive {
  from { transform: translate(-90px, 150px); }
  to { transform: translate(980px, 150px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bird {
  0%, 38% { transform: translate(0, 0); opacity: 1; }
  48% { transform: translate(-16px, -30px); opacity: 1; }
  62% { transform: translate(-46px, -64px); opacity: 0; }
  63%, 100% { transform: translate(-46px, -64px); opacity: 0; }
}

@keyframes sway {
  from { transform: rotate(-1.5deg); }
  to { transform: rotate(1.5deg); }
}

@keyframes sweep {
  from { left: 16px; }
  to { left: calc(100% - 18px); }
}

@keyframes hit {
  0%, 3% { background: var(--accent); box-shadow: 0 0 10px rgba(200, 255, 61, 0.55); }
  9%, 100% { background: #37422f; box-shadow: none; }
}

@keyframes bar {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

/* ------------------------------- Responzívne ---------------------------- */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    padding-top: 72px;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .facts { gap: 18px; }
  .section { padding: 40px 18px; }
  .topbar { padding: 12px 16px; }
  .topbar__link { display: none; }
}

/* --------------------------- Prístupnosť -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .tractor { transform: translate(420px, 150px); }
  .seq__playhead { display: none; }
}


